cc/td/doc/product/lan/c29xx
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Configuring the Switch

Configuring the Switch

This chapter describes how to perform these configuration tasks:

For detailed descriptions and configuration instructions, refer to the Software Configuration Guide for your switch.

Default Global System Configuration

The default supervisor engine configuration is as follows:

Feature Default Setting

Console port

The console port is configured as follows: 9600 baud, 8 data bits, no parity, 1 stop bit.

Passwords

There is no default password for normal and privileged modes. Press Return at the Enter Password prompt.

System prompt

Console>

In-band (sc0) interface configuration

The in-band interface is in VLAN 1; the IP address, subnet mask, and broadcast address are set to 0.0.0.0.

Default gateway

Default gateway address is 0.0.0.0 with a metric of 0.

Default Ethernet, Fast Ethernet, and Gigabit Ethernet Configuration

The default Ethernet, Fast Ethernet, and Gigabit Ethernet port configuration is as follows:

Feature Default Setting

Port enable state

All ports are enabled.

Port name

None.

Port priority level

Normal.

Port duplex setting

Auto (to autonegotiate duplex mode) on Ethernet and Fast Ethernet; full-duplex on Gigabit Ethernet (half-duplex is not allowed).

Port speed (on 10/100-Mbps ports)

Auto (to autonegotiate both speed and duplex).

Spanning-Tree Protocol

Enabled for VLAN 1.

Spanning-tree port-VLAN cost

19 for Ethernet and Fast Ethernet ports, 4 for Gigabit Ethernet ports.

Spanning-tree port-VLAN priority

32.

VLAN

All ports are on VLAN 1.

Fast EtherChannel (available only on certain supervisor engine and Fast Ethernet ports)

Disabled.

Flow control (on Gigabit Ethernet ports)

Flow control send is set to desired; flow control receive is set to off.

Setting the Switch IP Address

Before you can Telnet to your Catalyst 2926 and Catalyst 2926G series switches, you need to assign an IP address, a subnet mask, and a default gateway. This information allows the switch to communicate using the IP protocol.

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 subnet associated with that VLAN.

To assign an IP address, subnet mask, and default gateway to your switch, perform these steps in privileged mode:

Task Command

    Step 1. Assign an IP address and subnet mask to the switch.

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. Assign a default gateway to the switch.

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

    Step 6. Test connectivity to a remote host on the network.

ping [-s] host [packet_size] [packet_count]

Configuring Ethernet, Fast Ethernet, and Gigabit Ethernet Ports

Ethernet, Fast Ethernet, and Gigabit Ethernet ports on both ends of a link must use the same port speed and duplex in order to communicate. The ports are configured as follows:

To set the port configuration on Ethernet or Fast Ethernet ports, perform these steps in privileged mode:

Task Command

    Step 1. On 10/100-Mbps Fast Ethernet ports, set the port speed. Use the auto keyword to configure 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. Use the auto keyword to configure the port to autonegotiate duplex mode1.

set port duplex mod_num/port_num {full | half | auto}

    Step 3. Enable the port, if necessary.

set port enable mod_num/port_num

    Step 4. Set the port name, if desired.

set port name mod_num/port_num name_string

    Step 5. Verify the port configuration.

show port mod_num/port_num

1On 10/100-Mbps Fast Ethernet ports, you cannot change the duplex mode manually if the port speed is set to auto.

Configuring the Global System Settings

You can specify a variety of useful global system settings for your switch, such as system name, current date and time, system prompt, and passwords.

To configure the global system settings, perform these steps in privileged mode:

Task Command

    Step 1. Set the system name.

set system name name_string

    Step 2. Set the current date and time.

set time mm/dd/yy hh:mm:ss

    Step 3. Set the system prompt. (By default, if the system name is set, it is used as the prompt. Use this command to override the default name.)

set prompt prompt_string

    Step 4. Set the console password (used to access the switch CLI).

set password

    Step 5. Set the enable password (used to access privileged configuration mode).

set enablepass

Checking Network Connectivity

After the switch is assigned an IP address and a default gateway, and at least one switch port is connected to the network and properly configured, you should be able to communicate with other nodes on the network.

To check whether the switch is properly connected and configured, perform these tasks in privileged mode:

Task Command

    Step 1. Ping another node on the network.

ping [-s] host [packet_size] [packet_count]

    Step 2. (Optional) Trace the route of packets through the network to another node (only Layer 3 devices, such as routers, will appear in the path).

traceroute [-q nqueries] host [data_size]

    Step 3. If the host is unresponsive, check the IP address, subnet mask, broadcast address, and VLAN assignment of the in-band (sc0) switch interface.

show interface

    Step 4. If the interface is properly configured, check the default gateway assignment.

show ip route

Configuring Flow Control (Catalyst 2926G Series Switch Only)

The Catalyst 2926G series switch Gigabit Ethernet uplink ports and 10/100 Mbps autosensing Fast Ethernet switched ports use flow control, which inhibits packet transmission to the port for a period of time. If the port's receive buffer becomes full, the port transmits a "pause" packet that tells remote devices to delay sending more packets for a specified period of time. The port can also receive "pause" packets from other devices.

To configure flow control, enter the set port flowcontrol {receive | send} mod_num/port_num {off | on | desired} command. Table 5-1 lists the flow-control tasks and commands. By default, send is set to desired and receive is set to off.


Table 5-1: Gigabit Ethernet set port flowcontrol Commands
Task Command
  • Tell a local port to send flow-control packets to a remote device.

set port flowcontrol send mod_num/port_num on

  • Tell a local port to send flow-control packets if a remote device wants them.

set port flowcontrol send mod_num/port_num desired

  • Turn off a local port's ability to send flow- control packets to a remote device.

set port flowcontrol send mod_num/port_num off

  • Require a local port to be controlled by a remote device.

set port flowcontrol receive mod_num/port_num on

  • Allow a local port to operate with an attached device that is required to send flow-control packets or with an attached device that is not required to but may send flow-control packets.

set port flowcontrol receive mod_num/port_num desired

  • Turn off an attached device's ability to send flow-control packets to a local port.

set port flowcontrol receive mod_num/port_num off

The following examples show the results of the set port flowcontrol commands:

Console> (enable) set port flowcontrol send 1/1 on Port 1/1 will send flowcontrol to far end.
Console> (enable) set port flowcontrol send 1/1 desired Port 1/1 will send flowcontrol to far end if far end supports it Console> (enable) set port flowcontrol send 1/1 off Port 1/1 will not send flowcontrol to far end Console> (enable) set port flowcontrol receive 1/1 on Port 1/1 will require far end to send flowcontrol Console> (enable) set port flowcontrol receive 1/1 desired Port 1/1 will allow far end to send flowcontrol Console> (enable) set port flowcontrol receive 1/1 off Port 1/1 will not allow far end to send flowcontrol

To display the current flow-control status and statistics, enter the show port flowcontrol command. The following example shows the results of the show port flowcontrol command:

Console> show port flowcontrol Port  Send-Flowcontrol  Receive-Flowcntl  RxPause  TxPause  Admin    Oper     Admin   Oper ---- -----------------  ----------------  -------  ------- 1/1 on       disagree on      disagree   0        0 1/2 off      off      off     off        0        0

Configuring Link Negotiation (Catalyst 2926G Series Switch Only)

Caution Unlike autonegotiation with 10/100 Fast Ethernet, Gigabit Ethernet link negotiation does not involve negotiating port speed. You cannot disable link negotiation on Gigabit Ethernet ports using the set port speed command.

The Catalyst 2926G series switch Gigabit Ethernet uplink ports and 10/100 Mbps autosensing Fast Ethernet switched ports use link negotiation to exchange flow-control parameters, remote fault information, and duplex information (even though Cisco Gigabit Ethernet ports only support full-duplex mode). You configure link negotiation using the set port negotiation command. Port negotiation is enabled by default.

The ports on both ends of a link must have the same setting. The link will not come up if the ports at each end of the link are set inconsistently (link negotiation enabled on one port and disabled on the other). Refer to the Software Configuration Guide for your switch for more information.

To enable link negotiation on a port, perform this task in privileged mode:

Task Command

    Step 1. Enable link negotiation.

set port negotiation mod_num/port_num enable

    Step 2. Verify the link negotiation configuration.

show port negotiation [mod_num/port_num]

This example shows how to enable port negotiation and verify the configuration:

Console> (enable) set port negotiation 2/1 enable Port 2/1 negotiation enabled Console> (enable) show port negotiation 2/1 Port Link Negotiation ----- ---------------- 2/1 enabled Console> (enable)

To disable link negotiation on a port, perform this task in privileged mode:

Task Command

    Step 1. Disable Gigabit Ethernet link negotiation.

set port negotiation mod_num/port_num disable

    Step 2. Verify the link negotiation configuration.

show port negotiation [mod_num/port_num]

This example shows how to disable port negotiation and verify the configuration:

Console> (enable) set port negotiation 2/1 disable Port 2/1 negotiation disabled Console> (enable) show port negotiation 2/1 Port Link Negotiation ----- ---------------- 2/1 disabled Console> (enable)

Upgrading the Supervisor Engine Software


Note To upgrade the supervisor engine software on the Catalyst 2926 and Catalyst 2926G series switch, see the section "Modifying the Startup Configuration" in the Software Configuration Guide for your switch.

New software releases are released periodically to implement new features and enhancements and to provide maintenance for existing releases. You can use the following two methods to update the software on the switch:

Use the procedures in the following sections to verify your current software version and then, if necessary, download new software to the supervisor engine.

Verifying the Software Version

When you start the switch, the system loads the system image from Flash memory. You can use the show flash or show version commands to display the current system image version.


Note If necessary, you can reload the system image from Flash memory without restarting the system. Refer to the reload command description in the Command Reference for your switch for details.

The show version and show flash commands show the current Flash code version on the first line of the supervisor engine display.

If the display shows that the system image loaded from Flash memory is not the correct version, enter the download command to load the new system image on the supervisor engine as described in the section "Downloading a New System Image (Catalyst 2926 Series Switch)" for a TFTP download procedure.

Downloading a New System Image (Catalyst 2926 Series Switch)


Note Software updates are distributed on Sun- and PC-compatible 3.5-inch disks.

To download a new image into Flash memory, perform the following steps from a console, using TFTP:


Step 1   Ensure that the workstation acting as the download server has the TFTP daemon.

Step 2   On Sun workstations, make sure the /etc/inetd.conf file contains the following line:

tftp dgram udp wait root /usr/etc/in.tftpd in.tftpd -p -s /tftpboot

Make sure the /etc/services file contains the following line:

tftp 69/udp

Step 3   Copy the new software from the floppy disks to the home directory specified for the TFTP daemon on the workstation (usually /tftpboot). If this directory does not exist, create it before continuing. The file you copy is cat5000.xx.bin, where xx is the software revision number.

Step 4   Log in to the switch through the console port or through a Telnet session.

Step 5   Enter the download host file command. Specify the IP address or host name of the workstation acting as the TFTP server. Also specify the file to download. The following is the command syntax:

Console> (enable) download host file

The following example shows how to download the file from the TFTP server:

Console> (enable) download 190.180.122.40 cat5000.xx.bin

Step 6   When the following prompt appears, press y:

Download image filename from IP address to Module 1? (y/n) [n]? y

The switch erases the Flash code and reprograms the module on the supervisor engine with the downloaded Flash code.

You see the following screen display:

Finished network download. (1136844 bytes) Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete Flash erase in progress ... Erase done Programming Flash: Flash Programming Complete The system needs to be reset to run the new image.

Step 7   Reset the switch.

Step 8   Perform the following steps to verify that the new Flash code version is loaded:

If the new Flash code version is displayed, your installation is complete.

If a different (older) version is displayed, the old Flash code version is still loading from Flash memory.

Downloading a New System Image Using TFTP (Catalyst 2926G Series Switch)

Use this procedure to download a software image to a Catalyst 2926G series switch:


Step 1   Copy the software image file to the appropriate TFTP directory on the workstation (usually /tftpboot on a UNIX workstation).

Step 2   Log into the Catalyst 2926G series switch through the console port or via a Telnet session. If you log in via Telnet, your Telnet session disconnects when you reset the switch to run the new software.

Step 3   Download the software image from the TFTP server using the copy tftp flash command.

When prompted, enter the IP address or host name of the TFTP server, the name of the file to download, the Flash device to which to copy the file, and the destination filename.

The Catalyst 2926G series switch downloads the image file to the Flash device.

Step 4   Prepend the image filename to the BOOT environment variable using the set boot system flash device:filename prepend command, so the new image boots when you reset the switch.

Step 5   Reset the Catalyst 2926G series switch using the reset system command. If you are connected to the switch via Telnet, your Telnet session disconnects.

During startup, the Flash memory on the supervisor engine is reprogrammed with the new Flash code.

Step 6   When the switch reboots, enter the show version command to check the version of the code on the switch.


hometocprevnextglossaryfeedbacksearchhelp
Posted: Tue Dec 17 19:23:22 PST 2002
All contents are Copyright © 1992--2002 Cisco Systems, Inc. All rights reserved.
Important Notices and Privacy Statement.