Cisco CHAPTER 3 User Manual

CHAPTER
Initial Switch Router Configurations
This chapter describes how to initially configure the Layer 3 switch routers.
Starting Up the Layer 3 Switch Router
Configuring the Management Port
Configuring the Host Name
Using the Boot Flash Memory SIMM
Recovering a System Image Using Xmodem and Ymodem
Updating the System Image
Note You are at Step 2 in the suggested process for configuring your Layer 3 switch router
(see Table 2-1 on page 2-1). You should have already set up the hardware before proceeding with the initial switch router configurations.
3

Starting Up the Layer 3 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 or the Catalyst 4908G-L3 Hardware Installation Guide for correct power voltages.
Step 2 Connect the cables to the switch router.
Step 3 Connect the console terminal to the switch router.
Catalyst 2948G-L3 and Catalyst 4908G-L3 Software Feature and Configuration Guide
78-10408-01, Cisco IOS Release 12.0(7)W5(15d)
3-1
Chapter 3 Initial Switch Router Configurations

Using the Console and the Management Ports

Step 4 Power on 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>
In this step, you can also choose to answer yes and continue to use the configuration menu that is provided.
Using the Console and the Management Ports
You can configure your switch router from a direct console connection to the console port or remotely through its management port.
If you are using a direct console connection, configure your terminal emulation program for
9600 baud, 8 data bits, no parity, and 1 stop bit.
If you are configuring the management port, you must assign an IP address to any Fast Ethernet or
Gigabit Ethernet port on your switch router, which serves as a management port.
For interface configuration instructions, see the “Configuring the Management Port” section on page 3-3.
For further details on configuring ports and lines for management access, refer to the Cisco IOS Configuration Fundamentals Configuration Guide.

Modem Support

You can connect a modem to the console port or to the auxiliary port on the switch router. The following settings on the modem are required:
Enable auto answer mode
Suppress result codes
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 Cisco IOS Dial Solutions Configuration Guide.

Modem Support for Recovering a System Image

The Catalyst 2948G-L3 and the Catalyst 4908G-L3 support Xmodem and Ymodem protocols. If all of the system images in the boot flash memory are somehow damaged or erased, you can copy an image from a local or remote computer (such as a PC, UNIX workstation, or Macintosh computer) using the
3-2
Catalyst 2948G-L3 and Catalyst 4908G-L3 Software Feature and Configuration Guide
78-10408-01, Cisco IOS Release 12.0(7)W5(15d)
Chapter 3 Initial Switch Router Configurations
Xmodem or Ymodem protocols. The Xmodem and Ymodem protocols support different speeds of file transfers. The maximum file transfer speed supported is 57600 baud. This functionality primarily serves as a disaster recovery technique where system images are recovered using Xmodem and Ymodem commands on the ROM monitor from the console port on your switch router.
See the “Recovering a System Image Using Xmodem and Ymodem” section on page 3-11.

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.
Enable password—The enable password is a nonencrypted password. It can contain any number of
uppercase and lowercase alphanumeric characters. Give the enable password only to users permitted to make configuration changes to the switch router.
Enable secret password—The enable secret password is a secure, encrypted password. By setting
an encrypted password, you can prevent unauthorized configuration changes. On systems running Cisco IOS, you must type in the enable secret password before you can access global configuration mode.You must type in the enable secret password to access boot ROM software.
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.

Configuring the Management Port

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 Layer 3 switch routers, you can configure any Fast Ethernet or Gigabit Ethernet port as a management port.
You can remotely configure the switch router through the management port, but first you must configure an IP address so that the switch router is reachable. You can manually configure the management port interface from the command-line interface (CLI).
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.
78-10408-01, Cisco IOS Release 12.0(7)W5(15d)
Catalyst 2948G-L3 and Catalyst 4908G-L3 Software Feature and Configuration Guide
3-3
Configuring the Management Port
You can configure the management port from an IP connected network. To obtain remote management access using Telnet, use the following steps:
Command Purpose
Step 1
Router> enable
Router#
Step 2
Router# configure terminal
Router(config)#
Step 3
Router(config)# enable password password
Step 4
Step 5
Router(config)# enable secret password Enters an enable secret password. Once set, a user must
Router(config)# interface type number
Router(config-if)#
Step 6
Router(config-if)# ip address ip-address subnetmask
Step 7
Step 8
Router(config-if)# no shutdown Enables the interface.
Router(config-if)# exit
Router(config)#
Step 9
Router(config)# line vty line-number
Router
Step 10
Step 11
Router(config-line)# password password Enters a password for Telnet sessions.
Router(config-line)# end
(config-line)#
Chapter 3 Initial Switch Router Configurations
Enters enable mode.
The # prompt indicates enable mode.
Enters global configuration mode. You can also abbreviate the command to config terminal. The Router(config)# prompt indicates that you are in global configuration mode.
Sets the enable password. See the “About Passwords” section on page 3-3.
enter the enable secret password to gain access to global configuration mode.
Enters interface configuration mode on the Ethernet interface.
You can use any Fast Ethernet interface 1-48 or any Gigabit Ethernet interface 49-50 on the Catalyst 2948G-L3 or any Gigabit Ethernet interface 1-8 on the Catalyst 4908G-L3 to configure the management port.
Enters the IP address and IP subnet mask for the interface specified in Step 5.
Returns to global configuration mode.
Enters line configuration mode for virtual terminal connections. Commands entered in this mode control the operation of Telnet sessions to the switch router.
Returns to privileged EXEC mode.
3-4
Router#
Step 12
Router# copy running-config
Saves your configuration changes to NVRAM.
startup-config
Note Any Fast Ethernet interface 1-48 and any Gigabit Ethernet interface 49-50 on the
Catalyst 2948G-L3 switch router, or any Gigabit Ethernet interface 1-8 on the Catalyst 4908G-L3 switch router, can be configured as a management port.
Your switch router should now be operating correctly. You can now use Telnet to remotely assign and verify configurations.
Catalyst 2948G-L3 and Catalyst 4908G-L3 Software Feature and Configuration Guide
78-10408-01, Cisco IOS Release 12.0(7)W5(15d)
Chapter 3 Initial Switch Router Configurations
You can display the configuration file when you are in privileged EXEC (enable) mode.
To see the current operating configuration, enter the following command at the enable prompt:
Router# show running-config
To see the configuration in NVRAM, enter the following command:
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:
Command Purpose
Step 1
Step 2
Step 3
Router# configure terminal
Router(config)#
Router(config)# hostname name-string Enters a system name. In this example, we set
Router(config)# end
Configuring the Host Name
Enters global configuration mode.
the hostname to “Router.”
Returns to privileged EXEC mode.
Router#
Step 4
Router# copy running-config startup-config Copies your configuration changes to

Using the Boot Flash Memory SIMM

The Catalyst 2948G-L3 and Catalyst 4908G-L3 switch routers use the onboard boot flash memory as the file storage system. The boot flash memory SIMM stores a copy of the switch router’s software image. 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
Deleting Files from Boot Flash Memory
Backing Up a System Image to a TFTP Server
Copying a System Image from a TFTP Server to a Boot Flash Memory SIMM
Erasing Files from a Full Boot Flash Memory SIMM
NVRAM.
78-10408-01, Cisco IOS Release 12.0(7)W5(15d)
Catalyst 2948G-L3 and Catalyst 4908G-L3 Software Feature and Configuration Guide
3-5
Using the Boot Flash Memory SIMM

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:
To determine which file system device you are accessing, use the print working directory (pwd)
command.
Router# pwd bootflash:
To list the directory contents of any boot flash memory media, use the dir [bootflash: ] command.
Router# 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) Router#
Chapter 3 Initial Switch Router Configurations

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.
To delete a file, use the delete command. The following example demonstrates how a specified image file is deleted using the delete command.
Router# 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) Router# delete cat2948g-in-mz.old Delete filename [cat2948g-in-mz.old]? Delete bootflash:cat2948g-in-mz.old? [confirm] Router# dir Directory of bootflash:/
2 -rw- 3153932 <no date> cat2948g-in-mz
16777216 bytes total (7315372 bytes free)
3-6
Catalyst 2948G-L3 and Catalyst 4908G-L3 Software Feature and Configuration Guide
78-10408-01, Cisco IOS Release 12.0(7)W5(15d)
Loading...
+ 12 hidden pages