Table Of Contents
Getting Up and Running
Prepare to Configure the Switch
Establish a Console Port Connection
Set the Switch IP Configuration
Configure Switch Ports
Getting Up and Running
Very little configuration is required to establish basic connectivity to the switch. This section describes the basic tasks needed to get the switch up and running:
Step 1
Prepare to Configure the Switch—Obtain the information you need to configure the switch.
Step 2
Establish a Console Port Connection—Connect to the switch through the console port to access the command-line interface (CLI).
Step 3
Set the Switch IP Configuration—Assign an IP address and subnet mask to the switch interface, and configure a default gateway.
Step 4
Configure Switch Ports—Make sure the switch ports are properly configured to communicate with connected devices.
Prepare to Configure the Switch
Before configuring the switch, make sure the chassis, switching modules, and power supplies are installed and cabled to specification. Refer to the hardware documentation for your switch for information on installation.
Switch chassis and modules require specific minimum software versions. shows the minimum software versions required for the platforms disucssed in this publication. For detailed software version requirements for your switch chassis, switching modules, and other hardware, see the release notes for your supervisor engine software release.
Table 1 Software Version Requirements for Catalyst Switches
Switch Chassis
|
Minimum Software Version
|
Catalyst 5500 chassis (WS-C5500, 13-slot)
|
2.2(1)
|
Catalyst 5509 chassis (WS-C5509, 9-slot)
|
4.2(1)
|
Catalyst 5505 chassis (WS-C5505, 5-slot)
|
2.3(1)
|
Catalyst 5000 chassis (WS-C5000, 5-slot)
|
1.1
|
Catalyst 5002 chassis (WS-C5002, 2-slot)
|
2.2(1)
|
Catalyst 4003 (WS-C4003, 3-slot)
|
4.4(1)
|
Catalyst 4912G (WS-C4912G)
|
4.5(1)
|
Catalyst 2948G (WS-C2948G)
|
4.4(1)
|
Catalyst 2926G (WS-C2926GS and WS-C2926GL)
|
4.3(1a)
|
Catalyst 2926 (WS-C2926T and WS-C2926F)
|
2.4(2)
|
Before you begin configuring the switch, you should collect the following information:
•
A map or diagram of your network topology showing how the switch will be used in the network.
•
The IP address and subnet mask for the switch. You will assign this address to the in-band (sc0) interface on the switch.
•
The IP address of the default gateway for the network (typically the IP address of a router connected to the same network).
Establish a Console Port Connection
Connecting a terminal to the supervisor engine console port allows you to access the switch CLI before the switch is configured and connected to the network.
Note
Refer to the hardware documentation for your switch model for information on connecting a terminal to the console port.
You must enter privileged mode to perform most of the tasks described in this publication. Enter the enable command to enter privileged mode.
To connect to the switch through the console port and to enter privileged mode, perform this task:
Task
|
Command
|
Step 1 Make sure the terminal connected to the console port is configured as follows: 9600 baud, 8 data bits, no parity, 1 stop bit.
|
-
|
Step 2 Power up the switch. Output from the bootup script appears on the terminal screen.
|
-
|
Step 3 At the Enter Password prompt, press Return.
|
-
|
Step 4 Enter privileged mode.
|
enable
|
Step 5 At the Enter Password prompt, press Return.
|
-
|
This example shows the end of the bootup cycle and how to enter privileged mode. By default, both the normal and privileged mode passwords are not set; press Return at the Enter Password prompts. The output on your switch might look different, depending on the switch model you are booting.
Exiting Off-line Diagnostics
Cisco Systems, Inc. Console
IP address for Catalyst not configured
BOOTP will commence after the ports are online
Ports are coming online ...
Cisco Systems, Inc. Console
1999 May 14 22:17:46 %SYS-5-MOD_OK:Module 1 is online
1999 May 14 22:17:48 %SYS-5-MOD_OK:Module 3 is online
1999 May 14 22:17:51 %SYS-5-MOD_OK:Module 2 is online
Note
When the switch boots with the in-band (sc0) interface address set to 0.0.0.0 (the default on a new switch or after the configuration is cleared), the switch attempts to obtain an IP address using BOOTP and RARP. For more information, see the Software Configuration Guide for your switch.
Set the Switch IP Configuration
Before you can Telnet to your switch, you need to:
•
Assign an IP address, a subnet mask, and a VLAN number to the in-band (sc0) interface
•
Configure one or more default gateways
This information allows you to communicate with the switch using IP.
Note
The Catalyst 4000 family switches and the Catalyst 2948G switch have an out-of-band Ethernet management (me1) interface in addition to the in-band (sc0) interface. For information on configuring the me1 interface, see the Software Configuration Guide for your switch.
When configuring the switch for the first time, assign the in-band (sc0) interface to the default VLAN, VLAN 1. After you have configured additional VLANs, you can assign the interface to any VLAN.
Make sure the IP address you specify belongs to the IP subnet associated with that VLAN, and that you configure an appropriate default gateway for that subnet (for example, the IP address of a router interface in the same subnet).
To set the switch IP configuration, perform this task in privileged mode:
Task
|
Command
|
Step 1 Assign an IP address and subnet mask to the switch interface.
|
set interface sc0 ip_addr netmask
|
Step 2 (Optional) Assign the switch interface to a VLAN. (If you do not specify a VLAN, VLAN 1 is used.)
|
set interface sc0 vlan_num
|
Step 3 Specify at least one default gateway for the switch. The default gateway address should be the address of a router interface in the same subnet/VLAN as the switch IP address.
|
set ip route default gateway
|
Step 4 Verify the in-band interface configuration.
|
show interface
|
Step 5 Verify the default gateway assignment.
|
show ip route
|
This example shows how to assign an IP address and default gateway to the switch, and verify the configuration:
Console> (enable) set interface sc0 10.10.1.20 255.255.255.0
Interface sc0 IP address and netmask set.
Console> (enable) set ip route default 10.10.1.1
Console> (enable) show interface
sl0: flags=50<DOWN,POINTOPOINT,RUNNING>
slip 0.0.0.0 dest 0.0.0.0
sc0: flags=63<UP,BROADCAST,RUNNING>
vlan 1 inet 10.10.1.20 netmask 255.255.255.0 broadcast 10.10.1.255
me1: flags=62<DOWN,BROADCAST,RUNNING>
inet 0.0.0.0 netmask 255.0.0.0 broadcast 0.0.0.0
Console> (enable) show ip route
Fragmentation Redirect Unreachable
------------- -------- -----------
Destination Gateway Flags Use Interface
----------------------- ----------------------- ------ ---------- ---------
default 10.10.1.1 UG 0 sc0
10.10.1.0 10.10.1.20 U 0 sc0
Configure Switch Ports
When you connect Ethernet, Fast Ethernet, or Gigabit Ethernet ports on the switch to other devices, these conditions must be met:
•
Both ends of a link must use the same port speed and duplex
•
Flow control and link negotiation parameters (if supported) must be compatible
In most cases, the default port configuration is adequate. If you have trouble communicating with the connected device, check the port configuration on both ends of the link.
Gigabit Ethernet ports (and some Fast Ethernet ports) support flow control and link negotiation. In most cases, you do not need to change the default configuration.
To change the port configuration, perform this task in privileged mode:
Task
|
Command
|
Step 1 On 10/100-Mbps Fast Ethernet ports, you can explicitly set the port speed or you can use the auto keyword to allow the port to autonegotiate both port speed and duplex mode with the connected port.
|
set port speed mod_num/port_num {10 | 100 | auto}
|
Step 2 On Ethernet or Fast Ethernet ports, set the port duplex mode. Make sure the duplex mode is the same on both ends of the link.
|
set port duplex mod_num/port_num {full | half}
|
Step 3 On Fast or Gigabit Ethernet ports (on supported hardware), set the flow control mode for transmit (Tx) and receive (Rx).
|
set port flowcontrol mod_num/port_num {receive | send} {on | off | desired}
|
Step 4 On Fast or Gigabit Ethernet ports (on supported hardware), configure link negotiation.
|
set port negotiation mod_num/port_num {enable | disable}
|
Step 5 Set the port name, if desired.
|
set port name mod_num/port_num name_string
|
Step 6 Verify the port configuration.
|
show port mod_num/port_num
|
This example shows how to configure the port speed, duplex mode, and port name on a 10/100-Mbps Fast Ethernet port, and how to verify the port configuration:
Console> (enable) set port speed 6/1 100
Port(s) 6/1 speed set to 100Mbps.
Console> (enable) set port duplex 6/1 full
Port(s) 6/1 set to full-duplex.
Console> (enable) set port name 6/1 Sparc Ultra
Console> (enable) show port 6/1
Port Name Status Vlan Level Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
6/1 Sparc Ultra connected trunk normal full 100 10/100BaseTX
--------------------------
Thu Apr 30 1999, 18:38:59