![]() |
Catalyst 2900 User Guide
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Configuring the Software
![]() |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsConfiguring the SoftwareBefore You Begin
Configuration Task List Establish the Administrative Connection Set the System Information Set the Interface Type Configure SLIP on the Administrative Port Create a BOOTP Server Configure SNMP Management Test the Configuration Upgrading the Software Configuring the SoftwareThis chapter discusses the initial configuration of the Catalyst 2900 and describes how you configure such functions as IP addressing and SNMP management. An IP address must be assigned if you need to use Telnet to connect to the switch or use SNMP network management for the switch. Up to eight simultaneous Telnet sessions are possible. If your Telnet station or SNMP network management workstation is on a different network from the switch, a static routing table entry must also be added to the routing table. Use the set ip route command to set the static routing table entry. Note For definitions of all commands discussed in this chapter, refer to the "Command Reference" chapter of the publication Catalyst 2900 Configuration Guide and Command Reference. Before You BeginBefore you can begin your configuration, you will need the following information: Note After SLIP is enabled and attached on the Administrative port, an EIA/TIA-232 terminal cannot access the Catalyst 2900 through this port.
Configuration Task ListTo initially configure the Catalyst 2900, perform the following tasks:
You configure the switch through the administrative interface using three basic types of commands: set, show, and clear. Use the set commands to establish switch parameters. After each set command, use the show command to verify that you have entered the correct values and configured the switch correctly. If you make errors, use the set or clear command to overwrite or erase the parameter. For a list of available commands, type set help, show help, or clear help. To display the command usage, type the command and the word help, as the following example shows:
Console> (enable) set spantree hello help
Usage: set spantree hello <interval> [vlan]
(interval = 1..10, vlan = 1..1000)
Establish the Administrative ConnectionAfter installing and connecting the switch, perform the following tasks to start up and access the switch.
Figure 5-1: Initial Bootup Example Catalyst 2900 Power Up Diagnostics Init NVRAM Log LED Test ROM CHKSUM DUAL PORT RAM r/w RAM r/w RAM address test Byte/Word Enable test EARL test EARL test Done BOOTROM Version 2.1, Dated Mar 8 1996 16:24:38 BOOT date: 04/11/96 BOOT time: 15:17:12 IP address for Catalyst 2900 not configured BOOTP will commence after the ports are online Ports are coming online ... Cisco Systems Console Enter password: Set the System InformationAlthough not required, several system parameters should be set as part of the initial system setup. To set the system parameters, perform the following tasks in privileged mode:
Set the Interface TypeTo set the interface type, perform the following steps in privileged mode. Enter privileged mode by typing enable at the command prompt.
Figure 5-2: show interface Command Example
Console> (enable)
Figure 5-3: show route Command Example Console> (enable) show ip route Redirect -------- enabled Destination Gateway Flags Use Interface --------------- --------------- ------ ---------- --------- default 192.22.74.102 UG 59444 sc0 192.22.74.0 192.22.74.220 U 5 sc0 171.69.194.18 192.22.74.200 UGHDM 938427 sc0 171.69.194.181 192.22.74.200 UGHD 75065 sc0 Console> (enable) Configure SLIP on the Administrative PortTo configure the Administrative port for SLIP, perform the following tasks:
Create a BOOTP ServerIP address information can be set using BOOTP protocol. You can configure a BOOTP server with the MAC and IP addresses of the switch. Then the switch boots, and it automatically retrieves the IP address from the BOOTP server. The switch performs a BOOTP request only if the current IP address is set to 0.0.0.0. (This is the default for a new switch or a switch that has had its configuration file cleared using the clear config all command.) To configure a workstation as a BOOTP server, you must determine the MAC address of the switch, and add that MAC address to the BOOTP configuration file on the server. The following steps provide an example of creating a BOOTP server on a Sun workstation:
Figure 5-4: show config Command Example Console> (enable) show module Mod Module-Name Ports Model Serial-Num Hw Fw Sw Status --- -------------------- ----- -------- ---------- ------ ------ ------ -------- 1 2 WS-X2900 000102691 1.8 2.1 2.1 ok 2 12 WS-X2901 000095702 1.0 1.4 2.1 ok Mod MAC-Address(es) --- ---------------------------------------- 1 00-40-0b-90-b5-00 thru 00-40-0b-90-b8-ff 2 00-40-0b-30-04-f8 thru 00-40-0b-30-05-0f Console> (enable) Figure 5-5: BOOTP Configuration File Example
Configure SNMP ManagementSNMP, an application-layer protocol, facilitates the exchange of MIBs between network devices. SNMP community strings authenticate access to the MIB and function as embedded "passwords." For an SNMP message to be processed, the community string must match one of following three community-string modes configured in the switch:
When the switch resets or detects an incorrect community string, it sends a trap (or notification message) to a station. The set snmp trap command enters the IP address of the receiving station into the trap receiver table, which can hold up to ten addresses. When you enter addresses in the table, you must specify the community string that will appear in the trap message. You can control whether or not the switch issues an authentication trap by using the set snmp trap enable or set snmp trap disable command. To configure the switch to be managed using an SNMP network management workstation, perform the following tasks:
Test the ConfigurationAfter you have configured the IP addresses, test for connectivity between the switch and a host. The host can reside anywhere in your network. To test for connectivity, perform the following tasks:
Note The host must be connected to a port with an address on the same IP network, or you must configure a static route entry to reach the host network. Refer to the set ip route command in the "Switch Command Reference" chapter of the publication Catalyst 2900 Configuration Guide and Command Reference. For example, to test connectivity from the switch to a workstation with an IP address of 192.34.56.5, enter the command ping 192.34.56.5. If the switch receives a response, the following message is displayed: 192.34.56.5 is alive Note Parameters set through the administrative interface remain set even if you disconnect power to the switch. The clear config all command returns all parameters to their default values. Upgrading the SoftwareThis section describes how to update the software on the Catalyst 2900. New software to implement enhancements and maintenance releases will be provided periodically. The following are two methods you can use to update the software:
Note Software updates are distributed on Sun- and PC-compatible 3.5-inch disks. Use the procedures in this chapter to copy the software from the disks and download the software from the workstation to the switch. For more information on configuration commands, refer to the Catalyst 2900 Configuration Guide and Command Reference. Copying to Flash MemoryYou may need to copy a new image to Flash memory whenever a new image or maintenance release becomes available. To copy a new image into Flash memory (write to Flash memory), you must first reboot from ROM and then copy the new image into Flash memory. Use the copy tftp flash command for the copy procedure. The following are two sample displays, one from a telnet session and the other from the console, for reloading the switch and then copying a file (called c2900_spv11.bin) to Flash memory from a TFTP server (called torus):
Console> (enable) copy
Usage: copy tftp flash
copy flash tftp
Sample Telnet session:
Console> (enable) copy tftp flash
IP address or name of host? torus
Name of file to copy from?
Sample console session: Console> (enable) copy flash tftp IP address or name of host? torus Name of file to copy to? The system is now ready to be configured to boot from the new image you copied to Flash memory. For more information on the copy tftp flash command and other related commands, refer to the publication Catalyst 2900 Configuration Guide and Command Reference. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|