cc/td/doc/product/l3sw/2948g-l3/rel_12_0
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Initial Switch Router Configurations

Initial Switch Router Configurations

This chapter describes how to initially configure the Catalyst 2948G-L3 switch router.


Note You are at Step 2 in the suggested process for configuring your switch router (see Table 2-1). You should have already set up the hardware before proceeding with the initial switch router configurations.

Starting Up the Catalyst 2948G-L3 Switch Router

The following is a review of tasks you should have completed during hardware installation, including starting up the switch router. These tasks must be completed before proceeding with configuring your switch router.

Step 1 Check that the switch router is set for the correct AC (or DC) power voltages.

Refer to the Catalyst 2948G-L3 Hardware Installation Guide for correct power voltages

Step 2 Connect the cables to the switch router.

Step 3 Connect a console terminal to the switch router.

Step 4 Start up the switch router.

Step 5 Enter CLI configuration mode by answering no when you are prompted to enter the initial dialog:

Would you like to enter the initial dialog? [yes]: no

You see the following user EXEC prompt: Router>

Using Console Port and Management Port

You can configure the Catalyst 2948G-L3 switch router from a direct console connection to the console port or remotely through its management port.

For interface configuration instructions, see the "Configuring the Management Port" section.

For further details on configuring ports and lines for management access, refer to the Cisco IOS Configuration Fundamentals Configuration Guide.

Modem Support

The Catalyst 2948G-L3 switch router has a console terminal line that you might need to configure. For line configuration, you must first set up the line for the terminal or the asynchronous device attached to it. For a complete description of configuration tasks and commands used to set up your terminal line and settings, refer to the Configuration Fundamentals Configuration Guide and
Dial Solutions Configuration Guide.

You can connect a modem to the console port or to the auxiliary port on the Catalyst 2948G-L3 switch router. The following settings on the modem are required:

You can configure your modem by setting the DIP switches on the modem or by connecting the modem to terminal equipment. Refer to the user manual provided with your modem for the correct configuration information.


Note Because there are no hardware flow control signals available on the console port, the console port terminal characteristics should match the modem settings.

For further details on configuring ports and modems for management access, refer to the Cisco IOS Configuration Fundamentals Configuration Guide and Dial Solutions Configuration Guide.

About Passwords

There are two types of passwords.You can configure both an enable password and an enable secret password. For maximum security, the enable password should be different from the enable secret password.

An enable secret password can contain from 1 to 25 uppercase and lowercase alphanumeric characters. The first character cannot be a number. Spaces are valid password characters. Leading spaces are ignored; trailing spaces are recognized.

You will configure passwords in the next section, "Configuring the Management Port."

Configuring the Management Port

The management port on the switch router allows multiple simultaneous Telnet or SNMP network management sessions. Since there is no separate management port on the Catalyst 2948G-L3 switch router, you can configure any Fast Ethernet or Gigabit Ethernet port as a management port.

You can remotely configure the Catalyst 2948G-L3 switch router through the management port, but first you must configure an IP address so that the switch router is reachable. There are two ways to configure the management port interface: manually from the command-line interface (CLI) or by copying the configuration from the BOOTP server into NVRAM.


Note Before you begin to configure the management port interface manually, obtain the switch router's IP address and IP subnet mask. Also make sure the console cable is connected to the console port.

You can configure the management port from an IP connected network. To obtain remote management access using Telnet, use the following steps.

Step Command Purpose

1 . 

Router> enable

Router#

Enters enable mode.

The # prompt indicates enable mode.

2 . 

Router# configure terminal

Router(config)#

Enters global configuration mode. You can also abbreviate the command to config t.

The Router(config)# prompt indicates that you are in global configuration mode.

3 . 

Router(config)# enable password password

Sets the enable password.

See the "About Passwords" section.

4 . 

Router(config)# enable secret password

Enters an enable secret password. Once set, a user must enter the enable secret password to gain access to global configuration mode.

5 . 

Router(config)# interface f1

Router(config-if)#

Enters interface configuration mode on the Fast Ethernet interface.

You can use any Fast Ethernet interface f1-f48 or any Gigabit Ethernet interface g49-g50 to configure the management port.

6 . 

Router(config-if)# ip address ip-address subnetmask

Enters the IP address and IP subnet mask for the Fast Ethernet interface.

7 . 

Router(config-if)# no shutdown

Enables the interface.

8 . 

Router(config-if)# exit

Router(config)#

Returns to global configuration mode.

9 . 

Router(config)# line vty line-number

Router(config-line)#

Enters line configuration mode for virtual terminal connections. Commands entered in this mode control the operation of Telnet sessions to the Catalyst 2948G-L3 switch router.

10 . 

Router(config-line)# password password

Enters a password for Telnet sessions.

11 . 

Router(config-line)# Ctrl-Z

Router#

Returns to privileged EXEC mode.

12 . 

Router# copy running-config startup-config

Saves your configuration changes to NVRAM.


Note Any Fast Ethernet interface f1-f48 and any Gigabit Ethernet interface g49-g50 on the Catalyst 2948G-L3 switch router can be configured as a management port. Once you have configured an interface as a management port, you cannot route or bridge traffic to the other Ethernet ports on the switch router from this management port.

The Catalyst 2948G-L3 switch router should now be operating correctly. You can now use Telnet to remotely assign and verify configurations.

Displaying the Operating Configuration

You can display the configuration file when you are in EXEC (enable) mode.

Router# show running-config
Router# show startup-config

If you made changes to the configuration, but did not yet write the changes to NVRAM, the results of the show running-config will differ from the results of the show startup-config command.

Configuring the Host Name

In addition to the system passwords and enable password, your initial configuration should include the host name to make it easier to configure and troubleshoot the switch router. To configure the host name, use the following steps beginning in enable mode.

Step Command Purpose

1 . 

Router# configure terminal

Router(config)#

Enters global configuration mode.

2 . 

Router(config)# hostname name-string

Enters a system name. In this example, we set the hostname to "2948G-L3."

3 . 

2948G-L3(config)# end

2948G-L3#

Returns to privileged EXEC mode.

4 . 

2948G-L3# copy running-config startup-config

Copies your configuration changes to NVRAM.

Using the Boot Flash Memory SIMM

This section describes how to use the boot flash memory SIMM to perform the following system administration tasks:

Viewing the Contents of Boot Flash Memory

You can perform the following tasks with the associated commands to view the contents of the onboard boot flash memory SIMM:

2948G-L3# pwd
bootflash:
2948G-L3# dir          
Directory of bootflash:/
 
  1  -rw-     3153784              <no date>  cat2948g-in-mz.old
  2  -rw-     3153932              <no date>  cat2948g-in-mz
 
16777216 bytes total (7315372 bytes free)
2948G-L3#

Deleting Files from Boot Flash Memory

When you delete a file from boot flash memory, the system marks the file as deleted. Deleted files cannot be recovered. The boot flash memory is not released after the image file has been deleted, only the image file is marked as deleted.

Caution When deleting files from memory, be careful not to delete all the system images. You should always retain one known good image as a backup image.

The following is an example of the delete command. The delete command requires you to specify the filename.

2948G-L3# dir          
Directory of bootflash:/
 
  1  -rw-     3153784              <no date>  cat2948g-in-mz.old
  2  -rw-     3153932              <no date>  cat2948g-in-mz
 
16777216 bytes total (7315372 bytes free)
2948G-L3# delete cat2948g-in-mz.old
Delete filename [cat2948g-in-mz.old]?  
Delete bootflash:cat2948g-in-mz.old? [confirm]
2948G-L3# dir
Directory of bootflash:/
 
  2  -rw-     3153932              <no date>  cat2948g-in-mz
 
16777216 bytes total (7315372 bytes free)
 

Backing Up a System Image to a TFTP Server

To create a backup copy of your system image, or to verify that the copy in boot flash memory is the same as the original file on disk, you can copy system images from boot flash memory to a Trivial File Transfer Protocol (TFTP) server.

In some implementations of TFTP, you must create a dummy file on the TFTP server and give it read, write, and execute permissions before copying the file over it. Refer to your TFTP documentation for more information.

Tips Before you copy software between the network server and boot flash memory in the switch router, do the following:

To create a backup of the system software on a TFTP server, use the following steps beginning in privileged EXEC mode.

Step Command Purpose

1 . 

2948G-L3# dir bootflash:

Displays the contents of boot flash memory, including the names of the images that currently reside there.

Note the name of the image file you want to copy.

2 . 

2948G-L3# copy bootflash: tftp:

Copies a file from boot flash memory to a TFTP server. Be sure to include a colon at the end of the tftp parameter as shown in this example.

3 . 

Source filename []? cat2948g-in-mz

Prompts you to enter the name of the system image.

4 . 

Address or name of remote host

[]? 171.69.1.129

Enters the domain name or IP address of the TFTP server. You can accept the default address in square brackets or enter a new address.

5 . 

Destination filename

[cat2948g-in-mz]?

Enters the destination filename. You can accept the default filename in square brackets or enter a new filename.

Copying a System Image from a TFTP Server to a Boot Flash Memory SIMM

It is a good idea to have a copy of the current system image on the boot flash memory SIMM in case the new image file that you copy from the TFTP server is corrupted.


Note You can also create a backup copy of your system image by copying the system image from boot flash memory to a Trivial File Transfer Protocol (TFTP) server. You can maintain a known good image as a backup image on the TFTP server. In case the new image file you copy from the TFTP server is corrupted, you can then retrieve the known good backup copy of the system image file from the TFTP server.

Use the following commands to copy the system image from the TFTP server to a boot flash memory SIMM beginning in privileged EXEC mode.

Step Command Purpose

1 . 

2948G-L3# dir bootflash:

Displays the contents of boot flash memory, including the names of the images that currently reside there.

2 . 

2948G-L3# copy tftp: bootflash:

Copies a file from a TFTP server to boot flash memory.

3 . 

Address or name of remote host []? 172.68.16.129

Enters the domain name or IP address of the TFTP server. You can accept the default address in square brackets or enter a new address.

4 . 

Source filename []? boot/cat2948g-in-mz

Prompts you to enter the name of the system image.

5 . 

Destination filename [cat2948g-in-mz]?

Enters the destination filename. You can accept the default filename in square brackets or enter a new filename.

6 . 

Erase bootflash:before copying? [confirm]

Erasing the bootflash filesystem will remove all files! Continue?

[confirm]no

Loading boot/cat2948g-in-mz from 171.69.1.129 (via FastEthernet1):

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!![OK - 3099840/6199296 bytes]

Verifying checksum... OK (0x447E)

3099840 bytes copied in 42.144 secs (73805 bytes/sec)

Enters no to save existing images on boot flash.

Erasing Files from a Full Boot Flash Memory SIMM

In the event that the boot flash memory is full, you must erase all the files in the boot flash memory filesystem before copying a new image file from the TFTP server.


Note It is important to have already created a backup copy of your system image by copying the system image from boot flash memory to a Trivial File Transfer Protocol (TFTP) server. You can maintain a known good image as a backup image on the TFTP server. In case the new image file you copy from the TFTP server is corrupted, you can retrieve the known good backup copy of the system image file from the TFTP server.

Use the following commands to first erase and clean boot flash memory and then copy the system image from the TFTP server to boot flash memory beginning in privileged EXEC mode.

Step Command Purpose

1 . 

2948G-L3# dir bootflash:

Displays the contents of boot flash memory, including the names of the images that currently reside there.

2 . 

2948G-L3# copy tftp: bootflash:

Copies a file from a TFTP server to boot flash memory.

3 . 

Source filename []? boot/cat2948g-in-mz

Prompts you to enter the name of the system image.

4 . 

Address or name of remote host []? 172.68.16.129

Enters the domain name or IP address of the TFTP server. You can accept the default address in square brackets or enter a new address.

5 . 

Destination filename [cat2948g-in-mz]?

Enters the destination filename. You can accept the default filename in square brackets or enter a new filename.

6 . 

Erase bootflash:before copying? [confirm]

Erasing the bootflash filesystem will remove all files! Continue?

[confirm]yes

Erasing device...

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

...erased

Erase of bootflash:complete

Loading boot/cat2948g-in-mz from 171.69.1.129 (via

FastEthernet2):

!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

[OK - 3143788/6287360 bytes]

Verifying checksum... OK (0xB5E8)

3143788 bytes copied in 40.736 secs (78594 bytes/sec)

Enters yes to erase the filesystem in boot flash memory before copying the new file from the TFTP server. This will erase all images on the boot flash and the new image will be the only image on the boot flash. This should be your good image.

Your next operation can be copying any new image as explained in "Copying a System Image from a TFTP Server to a Boot Flash Memory SIMM" section.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Apr 14 09:49:25 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.