![]() |
Catalyst 2900 Series Configuration Guide and Command
Ref | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Switch Command Reference ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Table of ContentsSwitch Command Reference
clear alias clear arp clear cam clear config clear counters clear help clear ip alias clear ip route clear log clear snmp trap clear spantree portvlanpri clear trunk clear vlan clear vtp configure disable disconnect download download serial enable help history ping quit reset set alias set arp set cam set cdp disable set cdp enable set cdp interval set enablepass set help set interface set ip alias set ip fragmentation set ip help set ip redirect set ip route set ip unreachable set length set logout set module disable set module enable set module help set module name set password set port disable set port duplex set port enable set port help set port level set port name set port speed set port trap set prompt set snmp community set snmp help set snmp rmon set snmp trap set span set spantree disable set spantree enable set spantree fwddelay set spantree hello set spantree help set spantree maxage set spantree portcost set spantree portfast set spantree portpri set spantree portvlanpri set spantree priority set system baud set system contact set system help set system location set system modem set system name set time set trunk set vlan set vtp show alias show arp show cam show cdp show config show flash show help show interface show ip alias show ip help show ip route show log show mac show module show netstat show port show snmp show span show spantree show system show test show time show trunk show users show version show vlan show vtp show vtp help slip telnet test help test snmp trap upload wait write
Switch Command ReferenceThis chapter describes each command in the Catalyst 2900 Command Line Interface (CLI). Use these commands to configure and maintain the Catalyst 2900. Command Line Interface OverviewTable 5-1 lists command aliases that have been defined for ease of use. Like regular commands, aliases are not case sensitive. Unlike regular commands, however, some aliases cannot be abbreviated. Table 5-1: Command Aliases
Table 5-2 lists all the switch commands in the Catalyst 2900 CLI. Table 5-2: Command Line Interface Commands
clear aliasUse the clear alias command to clear the shorthand versions of commands. clear alias allclear alias name Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to erase the alias called arpdel: Console> (enable) clear alias arpdel Command alias deleted. Console> (enable) clear alias all Command alias table cleared. Console> (enable) Related Commandssession clear arpUse the clear arp command to delete a specific entry or all entries from the Address Resolution Protocol (ARP) table. clear arp allclear arp ip_address Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to remove IP address 198.133.219.209 from the ARP table and then remove all entries from the ARP table: Console> (enable) clear arp 198.133.219.209 ARP entry deleted. Console> (enable) clear arp all ARP table cleared. Console> (enable) Related Commandsset arp clear camUse the clear cam command to delete a specific entry or all entries from the Address Recognition Protocol table (identified as the Content Addressable Memory, or CAM table). clear cam mac_addr [vlan]clear cam {dynamic | static | permanent} [ vlan ] Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to remove MAC address 00-40-0b-a0-03-fa from the CAM table: Console> (enable) clear cam Usage: Console> (enable) clear cam 00-40-0b-a0-03-fa CAM table entry cleared. The following example shows how to clear dynamic entries from the CAM table: Console> (enable) clear cam dynamic Dynamic CAM entries cleared. Console> (enable) Related Commandsset bridge help clear configUse the clear config command to clear the system or module configuration information stored in NVRAM. clear config allclear config mod_num Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to delete the configuration information stored in NVRAM on module 2: Console> (enable) clear config 2 This command will clear module 2 configuration. Do you want to continue (y/n) [n]? y .............................. Module 2 configuration cleared. Console> (enable) clear config 1 This command will clear module 1 configuration. Do you want to continue (y/n) [n]? y ...... Module 1 configuration cleared. host% Console> (enable) clear config all This command will clear all configuration in NVRAM. Do you want to continue (y/n) [n]? y ........................................... Connection closed by foreign host host% clear countersUse the clear counters command to clear MAC and port counters. clear countersSyntax DescriptionThis command has no keywords or arguments. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to reset MAC and port counters to zero: Console> (enable) clear counters MAC and Port counters cleared. Console> (enable) clear helpUse the clear help command to list the clear commands with brief descriptions of their functions. clear helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list all of the clear commands: Console> (enable) clear help Commands: ------------------------------------------------------------------------------- clear alias Clear aliases of commands clear arp Clear ARP table entries clear cam Clear CAM table entries clear config Clear configuration and reset system clear counters Clear MAC and Port counters clear help Show this message clear ip Clear IP, use 'clear ip help' for more info clear log Clear the system error log clear snmp Clear SNMP trap receiver address clear spantree Clear spantree port vlan priority clear trunk Clear trunk ports clear vlan Clear a VLAN clear vtp Clear VTP statistics Console> (enable) Related Commandclear ip aliasUse the clear ip alias command to clear IP aliases that were set using the set ip alias command. clear ip alias allclear ip alias name Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to delete a previously defined IP alias named simba: Console> (enable) clear ip alias simba IP alias deleted. Related Commandsset ip alias clear ip routeUse the clear ip route command to delete all IP routing table entries. clear ip route allclear ip route destination gateway Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to delete the table entry for destination 134.12.3.0, elvis gateway: Console> (enable) clear ip route Usage: clear ip route all Usage: clear ip route Related Commandsset ip route clear logUse the clear log command to delete all entries in the system error log. clear logclear log mod_num Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to clear the system error log: Console> (enable) clear log System error log cleared. Console> (enable) Related Commandshow log
clear snmp trapUse the clear snmp trap command to clear an entry from the SNMP trap receiver table. clear snmp trap allclear snmp trap rcvr_address Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to clear the trap for IP address 192.122.173.82: Console> (enable) clear snmp trap 192.122.173.82 SNMP trap receiver deleted. Console> (enable) Related Commandsset snmp trap clear spantree portvlanpriUse the clear spantree portvlanpri command to reset the spantree port vlan priority. clear spantree portvlanpri mod_num/port_num vlansSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to reset the spantree port priority: Console> (enable) clear spantree portvlanpri ? Usage: clear spantree portvlanpri Related Commandsset spantree portvlanpri show spantree clear trunkUse the clear trunk command to reset trunk ports to bridge ports or to clear partial information in the trunk table. clear trunk mod_num/port_num [ vlans ]Syntax Description
DefaultIf VLANs are specified, they are removed from the list of allowed VLANs on the trunk. If you do not specify a VLAN range, the mode is set to auto for Dynamic Interswitch Link (DISL) trunk ports and off for other trunk ports. Refer to the set trunk command for more information about auto and off modes. Command ModePrivileged. Usage GuidelinesIf VLANs are specified, only the specified VLANs are cleared from the trunk port table. When all VLANs in the trunk port are cleared, the port is automatically reset to a regular bridge port. Default VLANs cannot be cleared on the trunk. ExampleThe following example shows how to clear the trunk for module 1, port 2: Console> (enable) clear trunk 1/2 Clear Trunk 1/2 100-200 Port 1/2 mode set to auto VLAN(s) 100-200 cleared from port 1/2 Console> (enable) Related Commandsset trunk clear vlanUse the clear vlan command to delete an existing vlan from a management domain. clear vlan vlan_numSyntax
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to clear an existing vlan from a management domain: Console> (enable) clear vlan ? Usage: clear vlan Related Commandsset vlan clear vtpUse the clear vtp command statistics to clear the vtp statistics. clear vtp statisticsSyntax Description
DefaultThis command has no default setting. Command ModePrivileged. Usage GuidelinesThe term VTP represents the Virtual Trunk Protocol. ExampleConsole> (enable) clear vtp ? Usage: clear vtp statistics Console> (enable) clear vtp statistics vtp statistics cleared. Console> (enable) Related Commandsset vtp configureUse the configure command to download a configuration file from the network and execute each command in that file. configure networkconfigure host file Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. Usage GuidelinesRefer to the "Creating a Configuration File" appendix for information about constructing a configuration file to be downloaded using the configure command. ExampleFollowing is a sample file called system5.cfg in the tftpboot directory: begin show time set ip alias conc7 198.133.219.207 set ip alias montreux 198.133.119.42 set ip alias cres 192.122.174.42 set prompt system5> set password #empty string old password pingpong pingpong end # Each line contains a command, except lines that begin with ! or #. The following example shows how to download the configuration file called system5.cfg from the 192.122.174.42 host: Console> (enable) configure 192.122.174.42 system5.cfg Configure using system5.cfg from cres (y/n) [n]? y / Done. Finished Network Download. (446 bytes) >> show time Wed Feb 22 1995, 17:42:50 >> set ip alias conc7 198.133.219.207 IP alias added. >> set ip alias montreux 198.133.219.40 IP alias added. >> set ip alias cres 192.122.174.42 IP alias added. >> set prompt system5> >> set password Enter old password: Enter new password: pingpong Retype new password: pingpong Password changed. system5> (enable) Related Commandshow config disableUse the disable command to return the console interface to normal mode. disableSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to return the console to normal mode: Console> (enable) disable Console> Related Commandenable disconnectUse the disconnect command to close an active console port or Telnet session. disconnect consoledisconnect ip_addr Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. Usage GuidelinesIf multiple sessions from the same IP address exist, the disconnect command will check if the current process is also from the same IP address. If it is not, all Telnet sessions from the specified IP address are disconnected. If it is, all sessions, other than the current session, are disconnected. The system prompts whether to disconnect the current Telnet session. You can answer n and remain connected or answer y and be disconnected. ExampleThe following example shows how to close a Telnet session with a host with IP address 198.134.214.4: Console> (enable) disconnect 198.134.214.4 Telnet session from 198.134.214.4 disconnected. (1) Console> (enable) disconnect console Console session disconnected. Related Commandtelnet downloadUse the download command to copy a software image from a specified host to a designated module's Flash memory. download host file [ module_num ]Syntax Description
DefaultIf a module number is not specified, the default is module 1. Command ModePrivileged. Usage GuidelinesThe Catalyst 2900 supports two ways to download new code to the processors: TFTP network download through any network port, and kermit serial download through the EIA/TIA-232 Console port.This command downloads code to the module's Flash memory. Catalyst 2900 software will reject an image if it is not a valid image for the module. ExampleThe following example shows how to download the c2900__spvxx.bin file, where xx is the software version number, from the mercury host: Console> (enable) download mercury c2900_spv11.bin Download image c2900_spv11.bin from mercury to module 1FLASH (y/n) [n]? y \ Done. Finished Network Download. (100604 bytes) host% intelquery: id=0x89898989 code=0xa2a2a2a2 FLASH on Synergy: Type Address Location Intel 28F008 20000000 NMP (P3) 4MB SIM erase(b=14, c=1): block(s): 14 Erase done Programming Flash: Flash Programming Complete erase(b=2, c=4): block(s): 2 3 4 5 Erase done Programming Flash: Flash Programming Complete System must be reset to run new image The following example shows how to download the acpflash_1111.bbi code from the mercury host: Console> (enable) download mercury acpflash_1111.bbi 3 This command will reset Module 3. Download image acpflash_1111.bbi from mercury to Module 3 FLASH (y/n) [n]? y / Done. Finished network download. (1964012 bytes) Console> (enable) Related Commandsreset download serialUse the download serial command to copy software images to the supervisor card or Flash memory through a serial port. download serialSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. Usage GuidelinesThis command uses Kermit protocol through the serial EIA/TIA-232 console port. The download serial command is not allowed from a Telnet session.
ExampleIn the following example, a tty port is connected to the CLI port on the Catalyst 2900. Following is a sample session showing a connection to a remote terminal from a Sun workstation and the use of the serial download command to copy a software image to the supervisor card: [At local Sun workstation] host% kermit C-Kermit 5A(172) ALPHA, 30 Jun 91, SUNOS 4.0 (BSD) Type ? or 'help' for help C-Kermit>set line /dev/ttyb C-Kermit>c Connecting to /dev/ttyb, speed 9600. The escape character is ^ (ASCII 28). Type the escape character followed by C to get back, or followed by ? to see other options. Console> enable Enter Password: Console> (enable) set system baud 19200 ^\C [Back at local sun workstation] C-Kermit>set speed 19200 /dev/ttyb, 19200 bps C-Kermit>c Connecting to /dev/ttyb, speed 19200. The escape character is ^ (ASCII 28). Type the escape character followed by C to get back, or followed by ? to see other options. Console> (enable) download serial Download Supervisor image via console port (y/n) [n]? y Concentrator Boot ROM (Ver 1.00) Waiting for DOWNLOAD!! Return to your local Machine by typing its escape sequence Issue Kermit send command from there[ Send 'Filename'] ^\C [Back at Local System] C-Kermit>send c2900___xx.bin SF c2900___xx.bin => c2900___XX.BIN, Size: 1233266 X to cancel file, CR to resend current packet Z to cancel group, A for status report E to send Error packet, Ctrl-C to quit immediately: .......................... ............................................................................... ...... [OK] ZB C-Kermit> quit host% Related Commandsset baud enableUse the enable command to activate Privileged. mode. In privileged mode, certain commands are available, and certain displays have extra information. enableSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesThe designation (enable) indicates that the system is in privileged mode and that privileged commands can be entered. ExampleThe following example shows how to enter privileged mode: Console> enable Enter password: Console> (enable) Related Commanddisable helpUse the help command to list the top-level commands available in the current mode. helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal and Privileged. Usage GuidelinesIn normal mode, the help command provides a list of the top-level commands available in normal mode. In privileged mode, this command provides a list of the top-level commands available in privileged mode. ExampleThe following example shows how to list the top-level commands available in normal mode: Console> (enable) help Commands: ---------------------------------------------------------------------- clear Clear, use 'clear help' for more info configure Configure system from terminal/network disable Disable privileged mode disconnect Disconnect user session download Download code to a processor enable Enable privileged mode help Show this message history Show contents of history substitution buffer ping Send echo packets to hosts quit Exit from the Admin session reset Reset system or module session Tunnel to ATM module set Set, use 'set help' for more info show Show, use 'show help' for more info slip Attach/detach Serial Line IP interface telnet Telnet to a remote host test Test, use 'test help' for more info upload Upload code from a processor wait Wait for x seconds write Write system configuration to terminal/network Console> (enable) The following example shows how to list the top-level commands available in privileged mode: Console> (enable) help Commands: ---------------------------------------------------------------------- clear Clear, use 'clear help' for more info configure Configure system from terminal/network disable Disable privileged mode disconnect Disconnect user session download Download code to a processor enable Enable privileged mode help Show this message history Show contents of history substitution buffer ping Send echo packets to hosts quit Exit from the Admin session reset Reset system or module session Tunnel to ATM module set Set, use 'set help' for more info show Show, use 'show help' for more info slip Attach/detach Serial Line IP interface telnet Telnet to a remote host test Test, use 'test help' for more info upload Upload code from a processor wait Wait for x seconds write Write system configuration to terminal/network Console> (enable) historyThe history command shows the contents of the history substitution buffer. Refer to the "Configuring the Software" chapter for details about the history substitution buffer. historySyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesThe history buffer size is fixed at 20 commands. ExampleIn the following example, the history command lists the contents of the history substitution buffer: Console> history
1 help
2 history
Console> !2
Console> history
1 help
2 history
3 history
pingUse the ping command to send Internet Control Message Protocol (ICMP) echo request packets to another node on the network. ping hostping -s host [ packet_size ] [ packet_count ] Syntax Description
DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesPress Ctrl-C to stop pinging. Following are sample results of the ping command:
ExampleThe following example shows how to ping a host with IP alias elvis a single time, then ping it once per second until you press Ctrl-C to stop pinging: Console> ping elvis elvis is alive Console> ping -s elvis ping elvis: 56 data bytes 64 bytes from elvis: icmp_seq=0. time=11 ms 64 bytes from elvis: icmp_seq=1. time=8 ms 64 bytes from elvis: icmp_seq=2. time=8 ms 64 bytes from elvis: icmp_seq=3. time=7 ms 64 bytes from elvis: icmp_seq=4. time=11 ms 64 bytes from elvis: icmp_seq=5. time=7 ms 64 bytes from elvis: icmp_seq=6. time=7 ms ^C ----elvis PING Statistics---- 7 packets transmitted, 7 packets received, 0% packet loss round-trip (ms) min/avg/max = 7/8/11 Console> Related Commandsset ip route quitUse the quit command to exit an CLI session. quitSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesThe exit and logout commands perform the same function as the quit command. ExampleThe following example shows how to close a connection with the CLI: Console> quit Connection closed by foreign host. host% Related Commandsexit resetUse the reset command to restart the system or an individual line card. reset systemreset mod_num Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. Usage GuidelinesIf a no module number or module 1 is specified, the command resets the entire system. ExampleThe following example shows how to reset module 2: Console> (enable) reset 2 This command will reset module 2. Do you want to continue (y/n) [n]? y Resetting module 2... Console> (enable) set aliasUse the set alias command to define shorthand versions of commands. set alias name command [ parameter ] [ parameter ]Syntax Description
DefaultNo aliases configured. Command ModePrivileged. Usage GuidelinesThe name all cannot be defined as an alias. ExampleThe following example shows how to set arpdel as the alias for the clear arp command: Console> (enable) set alias arpdel clear arp Command alias added. Console> (enable) Related Commandsclear alias set arpThe set arp command adds entries into the Address Resolution Protocol (ARP) table and sets the ARP aging time for the table. set arp agingtime agingtimeset arp ip_addr hw_addr Syntax Description
DefaultNo ARP table entries exist, and ARP aging is set to 1200 seconds. Command ModePrivileged. ExampleThe following example shows how to set the aging time for the ARP table to 1800 seconds and add an entry for a physical unit with IP address 198.133.219.232 and a MAC address of 00-00-0c-40-0f-bc to the ARP table: Console> (enable) set arp agingtime 1800 ARP aging time set to 1800 seconds. Console> (enable) set arp 198.133.219.232 00-00-0c-40-0f-bc ARP entry added. Console> (enable) Related Commandsclear arp set camUse the set cam command to add entries into the Content Addressable Memory (CAM) table and to set the aging time for the table. The default configuration has a local MAC address(es), spanning-tree address (01-80-c2-00-00-00), and CDP multicast address for destination port 1/3 (the NMP). Note Although this command refers to the CAM table, the table is an EARL table. set cam agingtime vlan agingtime set cam {dynamic | static | permanent} unicast_mac mod/ports [ vlan ] set cam {dynamic | static | permanent} multicast_mac mod/ports [ vlan ] Syntax Description
DefaultThe default aging time for all configured VLANs is 300 seconds. Setting aging time to 0 disables aging. Command ModePrivileged. Usage GuidelinesIf the given MAC address is a multicast (xn-xx-xx-xx-xx-xx where n is xxx1 [that is, the least significant bit of the most significant byte is set to 1]) or broadcast address (ff-ff-ff-ff-ff-ff) and multiple ports are specified, the ports must all be in the same VLAN. If the given address is a unicast address and multiple ports are specified, the ports must be in different VLANs. ExampleThe following example shows how to set the CAM table aging time to 300 seconds; how to add a unicast entry to the table for module 2, port 9; and how to add a permanent multicast entry to the table for module 1, port 1, and module 2, ports 1, 3, and 8 through 12. Console> (enable) set cam agingtime 1 300 CAM table aging time set. Console> (enable) set cam static 00-00-0c-a0-03-fa 2/9 Static unicast entry added to CAM table. Console> (enable) set cam permanent 01-40-0b-a0-03-fa 1/1,2/1,2/3,2/8-12 Permanent multicast entry added to CAM table. Console> (enable) Related Commandsclear cam set cdp disableUse the set cdp disable command to disable the Cisco Discovery Protocol (CDP) information display on specified ports. If enable or disable is not specified, the current setting remains active. set cdp disable mod_num/port_numset cdp disable all Syntax Description
DefaultThe default system configuration has CDP enabled with a message interval of 60 seconds for every port. Command ModePrivileged. Usage GuidelinesWhen enabling or disabling CDP and the message interval is not specified, the existing message interval is used. ExampleThe following example shows how to disable the CDP message display for port 1 on module 2: Console> (enable) set cdp 2/1 disable Port 2/1 CDP disabled. Console> (enable) Related Commandsset cdp enable set cdp enableUse the set cdp enable command to enable the Cisco Discovery Protocol (CDP) information display. If enable or disable is not specified, the current setting remains active. set cdp enable mod_num/port_numset cdp enable all Syntax Description
DefaultThe default system configuration has CDP enabled with a message interval of 60 seconds for every port. When you use the clear config command, the number of lines in the terminal display screen is reset to the factory default of 100. Command ModePrivileged. Usage GuidelinesWhen enabling or disabling CDP and the message interval is not specified, the existing message interval is used. ExampleThe following example shows how to enable the CDP message display for port 1 on module 2: Console> (enable) set cdp 2/1 enable Port 2/1 CDP enabled. Console> (enable) Related Commandsset cdp disable set cdp intervalUse the set cdp interval command to set the message interval for Cisco Discovery Protocol (CDP) on each port. set cdp interval mod_num/port_num intervalset cdp interval all Syntax Description
DefaultThe default system configuration has CDP enabled with a message interval of 60 seconds for every port. Command ModePrivileged. Usage GuidelinesYou can set the message interval within the range of 5 to 900 seconds. ExampleThe following example shows how to set the CDP message interval for
port 10 on module 2 to Console> (enable) Related Commandsset cdp disable set enablepassThe set enablepass command changes the password for the privileged level on the CLI. set enablepassSyntax DescriptionThis command has no arguments or keywords. DefaultThe default configuration does not have enable password configured. Command ModePrivileged. Usage GuidelinesThe command prompts you for the old password. If the password is valid, the command then prompts you to enter a new password twice. A zero length password is allowed. ExampleThe following example shows how to establish a new password: Console> (enable) set enablepass Enter old password: Enter new password: Retype new password: Password changed. Console> (enable) Related Commandsenable set helpUse the set help command to list the set commands with brief descriptions of their functions. set helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal and Privileged. Usage GuidelinesIn normal mode, the set help command lists the set commands available in normal mode. In privileged mode, the set help command lists the set commands available in privileged mode. ExampleThe following example shows how to list the set commands available in normal mode: Console> set help Commands: ------------------------------------------------------------------------------ set help Show this message set length Set number of lines in display (0 to disable 'more') Console> The following example shows how to list the set commands available in privileged mode: Console> (enable)
set interfaceUse the set interface command to configure network interfaces. set interface sc0/sl0 {up | down}set interface sc0 [vlan vlan_num ] [ip_address [ netmask [ broadcast ]]] set interface sl0 slip_address dest_address Syntax Description
DefaultThe default configuration is sc0 and sl0 with IP address, netmask, and broadcast set as 0.0.0.0. The destination address for sl0 is also 0.0.0.0. Command ModePrivileged. Usage GuidelinesThe set interface command can be used to assign network addresses, subnet masks for the Catalyst interfaces administratively and destination addresses for slip interfaces. It can also be used to bring the interfaces up or down administratively. There are two configurable network interfaces to a Catalyst 2900: in-band (sc0) and SLIP (sl0). Once you assign an IP address to sc0, the Catalyst 2900 becomes accessible through Ethernet interfaces. ExampleThe following example shows how to set the following elements from the console port:
It also shows administratively how to bring down interface sc0 using a console terminal: Console> (enable) set interface sc0 192.200.11.44 255.255.255.0 Interface sc0 IP address and netmask set. Console> (enable) set interface sl0 192.200.10.45 192.200.10.103 Interface sl0 SLIP and destination address set. Console> (enable) set interface sc0 down. Interface sc0 administratively down. Console> (enable) The following example shows how to set the IP address for sc0 through a Telnet session: Console> (enable) set interface sc0 192.200.11.40 This command may disconnect active telnet sessions. Do you want to continue (y/n) [n]? y Interface sc0 IP address set. The following example shows how to take the interface out of operation through a Telnet session: Console> (enable) set interface sc0 down This command will inactivate telnet sessions. Do you want to continue (y/n) [n]? y Interface sc0 administratively down. The interface hangs until timeout or until sc0 is up again. The following example shows how to identify the VLAN on which to store the IP address: Console> (enable) set interface sc0 5 Interface sc0 vlan set. Console> (enable) Console> (enable) set interface sc0 200 Vlan is not active, user needs to set vlan 200 active Interface sc0 vlan set. Console> (enable) The interface hangs until timeout or until sc0 is up again. Related Commandshow interface set ip aliasUse the set ip alias command to add aliases of IP addresses. set ip alias name ip_addrSyntax Description
DefaultThe default configuration has one IP alias (0.0.0.0) configured as the default. Command ModePrivileged. ExampleThe following example shows how to define an IP alias of mercury for IP address 192.122.174.234: Console> (enable) set ip alias mercury 192.122.174.234 IP alias added. Console> (enable) Related Commandsclear ip alias set ip fragmentationUse the set ip fragmentation command to enable or disable the fragmentation for IP packets bridged between Ethernet networks, which have different maximum transmission units (MTUs). set ip fragmentation {enable | disable}Syntax DescriptionDefaultThe default value is IP fragmentation enabled. Command ModePrivileged. ExampleThe following example shows how to disable IP fragmentation: Console> (enable) set ip fragmentation disable IP fragmentation disabled for module 2 Console> (enable) Related Commandset ip route set ip helpUse the set ip help command to list the set ip commands. set ip helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the set ip commands: Console> (enable) set ip help Set ip commands: ---------------------------------------------------------------------- set ip alias Set alias for IP Address set ip fragmentation Set IP fragmentation enable/disable set ip help Show this message set ip redirect Set ICMP redirect enable/disable set ip route Set IP routing table entry set ip unreachable Set ICMP unreachable messages Console> (enable) Related Commandsset ip alias set ip redirectUse the set ip redirect command to enable or disable ICMP redirect messages for the Catalyst 2900. set ip redirect {enable | disable}Syntax Description
DefaultThe default configuration has ICMP redirect enabled. Command ModePrivileged. ExampleThe following example shows how to deactivate the redirection of ICMP messages: Console> (enable) set ip redirect disable ICMP redirect messages disabled. Console> (enable) Related Commandsshow ip route set ip routeThe set ip route command adds IP addresses or aliases to the IP routing table. set ip route destination gateway [ metric ]Syntax Description
DefaultThe default configuration routes the local network through the sc0 interface with metric 0 as soon as sc0 is configured. Command ModePrivileged. ExampleThe following example shows how to set the default route to 192.122.173.42: Console> (enable) set ip route default 192.122.173.42 Route added. Console> (enable) Related Commandsclear ip route set ip unreachableUse the set ip unreachable command to enable or disable Internet Control Message Protocol (ICMP) unreachable messages for the switch. set ip unreachable {enable | disable}Syntax Description
DefaultThe default is ICMP unreachable messages enabled. Command ModePrivileged. Usage GuidelinesWhen enabled, the switch returns an ICMP unreachable message to the Internet source host whenever it receives an IP datagram that it cannot deliver. When disabled, the switch does not notify the Internet source host when it receives an IP datagram that it cannot deliver. ExampleThe following example shows how to disable ICMP unreachable messages: Console> (enable) set ip unreachable disable ICMP unreachable message disabled for module 4 Console> (enable) Related Commandsshow ip unreachable set lengthUse the set length command to configure the number of lines in the terminal display screen. set length number (in normal mode)set length number [ default ] (in privileged mode only) Syntax Description
DefaultThe default value is 24 lines upon starting a session. When the value is changed in a session, it applies only to that administration session. Command ModeNormal. Usage GuidelinesOutput from a single command that overflows a single display screen is followed by the --More-- prompt. At the --More-- prompt, you can type Ctrl-C to quit, q or Q to quit, press the Spacebar to display an additional screen of output, or press Return to display one more line of output. Setting the screen length to 0 turns off the scrolling feature and causes the entire output to be displayed at once. Unless a default value is specified, a value that is changed in an administrative session only applies to the current session. ExampleThe following example shows how to use normal mode to set the screen length to 30 lines: Console> The following example shows how to use privileged mode to set the screen length to 24 lines for the current administration session and all other sessions: Console> (enable) set logoutUse the set logout command to set the number of minutes until the system automatically disconnects an idle session. set logout timeoutSyntax Description
DefaultThe default value is 20 minutes. Usage GuidelinesYou can specify a timeout period from 0 to 10,000 minutes. Setting the value to 0 disables the automatic disconnection of idle sessions. Command ModePrivileged. ExampleThe following example shows how to use the set logout command: Console> (enable) set module disableUse the set module disable command to disable a module. set module disable mod_numSyntax Description
DefaultThe default configuration has all modules enabled. Command ModePrivileged. Usage GuidelinesAvoid disabling a module via a Telnet session because your Telnet session may be established on the module being disabled. In such case, the Telnet session will hang. The supervisor module cannot be disabled. ExampleThe following example shows how to disable module 1 through the console port: Console> (enable) set module disable 1 Module 2 disabled. Console> (enable) The following example shows how to disable module 2 through a Telnet session: Console> (enable) set module disable 2 This command may disconnect your telnet session. Do you want to continue (y/n) [n]? y Module 2 disabled. Related Commandsset module enable set module enableUse the set module enable command to enable a module. set module enable module_numSyntax Description
DefaultThe default setting has all modules enabled. Command ModePrivileged. Usage GuidelinesIf an individual port on a module was previously disabled, enabling the module does not enable the disabled port. ExampleThe following example shows how to enable module 2: Console> (enable) set module enable 2 Module 2 enabled. Console> (enable) Related Commandsset module disable set module helpUse the set module help command to list the set module commands. set module helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the set module commands: Console> (enable) set module help Commands: ------------------------------------------------------------------------------ set module disable Disable a module set module enable Enable a module set module help Show this message set module name Set module name Console> (enable) set module nameUse the set module name command to set the name for a module. set module name module_num [ module_name ]Syntax Description
DefaultThe default configuration has no module names configured for any modules. Command ModePrivileged. Usage GuidelinesIf the module name is not specified, it is cleared. ExampleThe following example shows how to set the name for module 1 to supervisor: Console> (enable) set module name 1 Supervisor Module name set. Console> (enable) Related Commandshow module set passwordUse the set password command to change the initial level password on the CLI. set passwordSyntax DescriptionThis command has no arguments or keywords. DefaultThe default configuration has no password configured. Command ModePrivileged. Usage GuidelinesThe command prompts you for the old password followed by the new password. If the old password is valid, the command then prompts you to enter a new password twice. A zero length password is allowed. Old and new passwords typed are not echoed. ExampleThe following example shows how to set an initial password: Console> (enable) set password Enter old password: Enter new password: Retype new password: Password changed. Console> (enable) Related Commandset enablepass set port disableUse the set port disable command to disable a port. set port disable mod_num/port_numSyntax Description
DefaultThe default system configuration has all ports enabled. Command ModePrivileged. ExampleThe following example shows how to take port 10 on module 2out of service: Console> (enable) set port disable 2/10 Port 2/10 disabled. Console> (enable) Related Commandsset port enable set port duplexUse the set port duplex command to configure the transmission type of an Ethernet or Fast Ethernet interface. set port duplex mod num/port num {full | half | auto}Syntax Description
DefaultThe default configuration for 10 Mbps and 100 Mbps modules has all Ethernet ports set to half duplex. The default configuration for 10/100 Mbps Fast Ethernet modules has all ports set to auto. Command ModePrivileged. Usage GuidelineEthernet and Fast Ethernet interfaces can be configured to either full duplex or half duplex. When a port is in auto-sensing mode, enabled by the set port speed command, both its speed and duplex are determined by auto-sensing. The following type of error messages is therefore generated if you attempt to set the transmission type of auto-sensing Fast Ethernet ports to half or full duplex mode: cat4-lnf> (enable)
ExampleThe following example shows how to set port 1 on module 2 to full duplex: Console> (enable) set port duplex 2/1 full Port 2/1 set to full-duplex. Console> (enable) Related Commandshow port set port enableUse the set port enable command to enable or disable a port. set port enable mod_num/port_numSyntax Description
DefaultAll ports enabled. Command ModePrivileged. ExampleThe following example shows how to enable port 3 on module 2: Console> (enable) set port enable 2/3 Port 2/3 enabled. Console> (enable) Related Commandsset port disable set port helpUse the set port help command to list the set port commands. set port helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the set port commands: Console> (enable) set port help Commands: ------------------------------------------------------------------------------ set port disable Disable a port set port duplex Set port transmission type (full/half duplex) set port enable Enable a port set port help Show this message set port level Set port priority level (normal/high) set port name Set port name set port speed Set port transmission speed (10/100 Mbps) set port trap Set port up/down trap (enable/disable) Console> (enable) Related Commandsset port disable set port levelUse the set port level command to set the priority level of the port on the switching bus. set port level mod_num/port_num {normal | high}Syntax Description
DefaultThe default configuration has all ports at normal priority level. Command ModePrivileged. ExampleThe following example shows how to set the priority level for port 2 on module 1 to high: Console> (enable) set port level 1/2 high Port 1/2 port level set to high. Console> (enable) Related Commandsset port disable set port nameUse the set port name command to configure a name for a port. set port name mod_num/port_num [ name_string ]Syntax Description
DefaultThe default configuration has no port name configured for any port. Command ModePrivileged. Usage GuidelinesIf the name string is not specified, the port name is cleared. ExampleThe following example shows how to set port 1 on module 4 to Fred Grover: Console> (enable) set port name 4/1 Fred Grover Port 4/1 name set. Console> (enable) Related Commandsset port disable set port speedUse the set port speed command to configure the speed of a 10/100 Fast Ethernet interface. set port speed mod num/port num {10 | 100 | auto}Syntax Description
DefaultThe default configuration has all 10/100 Mbps Fast Ethernet Switching Module ports set to auto. Command ModePrivileged. Usage GuidelinesFast Ethernet interfaces on the 10/100 Mbps Fast Ethernet Switching module can be configured to either 10 Mbps or 100 Mbps. They can also be set to auto-sensing mode, allowing them to sense and distinguish between 10 Mbps and 100 Mbps port transmission speeds and full-duplex or half-duplex port transmission types at a remote port connection. Set at auto-sensing mode, the interfaces automatically configure themselves to operate at the proper speed and transmission type. ExampleThe following examples show how to set port 1 on module 2 to auto-sensing mode, configured to either 10 Mbps or 100 Mbps: Console> (enable) set port speed Usage: set port speed Related Commandsset port disable set port trapUse the set port trap command to enable or disable the standard SNMP link trap operation (up or down) for a port. set port trap mod_num/port_num enable | disableSyntax Description
DefaultThe default configuration has all port traps disabled. Command ModePrivileged. ExampleConsole> (enable) set port trap Usage: set port trap Related Commandsset port disable set port duplex set port enable set port help set port level set port name show port set promptUse the set prompt command to change the prompt for the CLI. set prompt prompt_stringSyntax Description
DefaultThe default configuration has the prompt "Console>". Command ModePrivileged. ExampleThe following example shows how to set the prompt to "system100>": Console> (enable) set prompt system100> system100> (enable) set snmp communityUse the set snmp community command to set one of the three SNMP community strings. set snmp community access_type [ community_string ]Syntax Description
DefaultThe following communities with preestablished access types have been set as defaults:
Command ModePrivileged. ExampleThe following example shows how to set the SNMP community called hocuspocus to read-write access type: Console> (enable) set snmp community read-write hocuspocus SNMP read-write community string set. Console> (enable) set snmp community read-only SNMP read-only community string cleared. Console> (enable) Related Commandshow snmp set snmp helpUse the set snmp help command to list the set snmp commands. set snmp helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the set snmp commands: Console> (enable)
set snmp rmonUse the set snmp rmon command to enable or disable SNMP remote monitoring (RMON) support. set snmp rmon enable | disableSyntax Description
DefaultThe default is that remote monitoring support is enabled. Command ModePrivileged. Usage GuidelinesThe following configurations and implementations are supported:
ExampleThe following example shows how to enable and disable remote monitoring support: Console> (enable) Related Commandshow snmp set snmp trapUse the set snmp trap command to enable, disable, or add an entry into the SNMP authentication trap receiver table, or to enable or disable other specific types of traps on the system. set snmp trap enable | disable [ all | module | chassis | bridge | repeater | auth | vtp ]set snmp trap rcvr_address rcvr_community Syntax Description
DefaultThe default configuration has the SNMP authentication trap disabled. Command ModePrivileged. ExampleThe following example shows how to enable an entry in the SNMP trap receiver table: Console> (enable) The following example shows how to add an entry in the SNMP trap receiver table: Console> (enable)
Related Commandsclear snmp trap
set spanUse the set span command to set up the port analyzer. set span enable set span disable set span src_mod/src_port dest_mod/dest_port [ rx | tx | both ] set span src_vlan dest_mod/dest_port [ rx | tx | both ] Syntax Description
DefaultThe default configuration has port monitoring disabled, port 1/1 as the monitoring port (destination), VLAN 1 as the monitored VLAN (source), and both transmit and receive packets monitored. If the parameter rx, tx, or both is not specified, the default is both. Command ModePrivileged. Usage GuidelinesAfter the port analyzer is enabled and the defaults set up, subsequent commands replace source ports, VLANs, and destination ports. Use either a dedicated remote monitor probe or a Sniffer analyzer to monitor ports. The following SPAN configurations and implementations are supported:
Example----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
Console> (enable) set span
Usage: set span enable
set span disable
set span
Related Commandsclear config all show span set spantree disableUse the set spantree disable command to disable the spanning-tree algorithm for a VLAN. set spantree disable [ vlan ]Syntax Description
DefaultThe default configuration has all spanning trees enabled. Command ModePrivileged. ExampleThe following example shows how to disable the spanning-tree algorithm for VLAN 1: Console> (enable) set spantree disable 1 VLAN 1 bridge spanning tree disabled. Console> (enable) Related Commandsset spantree enable set spantree enableUse the set spantree enable command to enable the spanning-tree algorithm for a VLAN. set spantree enable [ vlan ]Syntax Description
DefaultThe default configuration has all spanning trees enabled. Command ModePrivileged. ExampleThe following example shows how to activate the spanning-tree algorithm for VLAN 1: Console> (enable) set spantree enable 1 VLAN 1 bridge spanning tree enabled. Console> (enable) Related Commandsshow spantree set spantree fwddelayUse the set spantree fwddelay command to set the bridge forward delay for a VLAN. set spantree fwddelay delay [ vlan ]Syntax Description
DefaultThe default configuration has fwddelay set to 15 seconds for all VLANs. Command ModePrivileged. ExampleThe following example shows how to set the bridge forward delay for VLAN 1000 to 16 seconds: Console> (enable) set spantree fwddelay 16 1000 VLAN 1000 bridge forward delay set to 16 seconds. Console> (enable) Related Commandshow spantree set spantree helloUse the set spantree hello command to set the bridge hello time for a VLAN. set spantree hello interval [ vlan ]Syntax Description
DefaultThe default configuration has hello time set to 2 seconds for all VLANs. Command ModePrivileged. ExampleThe following example shows how to set the spantree hello time to 2 seconds for VLAN 1000: Console> (enable) set spantree hello 2 1000 VLAN 1000 bridge hello time set to 2. Console> (enable) Related Commandshow spantree set spantree helpUse the set spantree help command to list the available set spantree commands. set spantree helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the set spantree commands: Console> (enable) set spantree ? Set spantree commands: ---------------------------------------------------------------------- set spantree disable Disable spanning tree set spantree enable Enable spanning tree set spantree fwddelay Set spantree forward delay set spantree hello Set spantree hello interval set spantree help Show this message set spantree maxage Set spantree max aging time set spantree portcost Set spantree port cost set spantree portfast Set spantree port fast start set spantree portpri Set spantree port priority set spantree priority Set spantree priority set spantree portvlanpri Set spantree port vlan priority Console> (enable) set spantree maxageUse the set spantree maxage command to set the bridge maximum aging time for a VLAN. set spantree maxage agingtime [ vlan ]Syntax Description
DefaultThe default configuration is 20 seconds. Command ModePrivileged. ExampleThe following example shows how to set the maximum aging time for VLAN 1000 to 20 seconds: Console> (enable) set spantree maxage 20 1000 VLAN 1000 bridge max aging time set to 20. Console> (enable) Related Commandshow spantree set spantree portcostUse the set spantree portcost command to set the bridge path cost for a port. set spantree portcost mod_num/port_num costSyntax Description
DefaultThe default configuration is as follows:
Command ModePrivileged. ExampleThe following example shows how to set the portcost for port 1 on module 4 to 10: Console> (enable) set spantree portcost 4/1 10 Bridge port 4/1 path cost set to 10. Console> (enable) Related Commandshow spantree set spantree portfastUse the set spantree portfast command to allow a port that is connected to a single workstation or PC to start faster when it is connected. set spantree portfast mod_num/port_num enable | disableSyntax Description
DefaultThis command has no default setting. Command ModePrivileged. Usage GuidelinesWhen you use the spantree portfast enable command on a port, when the port is connected it immediately enters into the spanning tree forwarding state rather than going through the normal spanning tree states such as listening and learning. Use this command on ports that are connected to a single workstation or PC only; do not use it on ports that are connected to networking devices such as hubs, routers, switches, bridges, or concentrators. ExampleThe following example shows how to set the spanning tree bridge portfast for port 2 on module 1. Console> (enable) set spantree portfast Usage: set spantree portfast set spantree portpriUse the set spantree portpri command to set the bridge priority for a port in spanning-tree algorithm. set spantree portpri mod_num/port_num prioritySyntax Description
DefaultThe default configuration has all ports with bridge priority set to 32. Command ModePrivileged. ExampleThe following example shows how to set the priority of port 1 on module 4 to 63: Console> (enable) set spantree portpri 4/1 63 Bridge port 4/1 priority set to 63. Console> (enable) Related Commandshow spantree set spantree portvlanpriUse the set spantree portvlanpri command to set the port priority for a subset of vlans in the trunk port. set spantree priority bridge_priority [ vlan ]Syntax Description
DefaultDefault configuration has the port Vlan priority set to 0 and no Vlans using this priority level. Subsequent calls to this command add Vlans to a specified port priority level. Additionally, subsequent calls to this command do not replace lans that are set at a specified port priority level. Command ModePrivileged. Usage GuidelinesSet the port priority within the range of 0 to 63. ExampleConsole> (enable) set spantree portvlanpri ? Usage: set spantree portvlanpri Related Commandsshow spantree set spantree priorityUse the set spantree priority command to set the bridge priority for a VLAN. set spantree priority bridge_priority [ vlan ]Syntax Description
DefaultThe default configuration has the bridge priority set to 32768. Command ModePrivileged. ExampleThe following example shows how to set the bridge priority of VLAN 1 to 4096: Console> (enable) set spantree priority 4096 VLAN 1 bridge priority set to 4096. Console> (enable) Related Commandshow spantree set system baudUse the set system baud command to set the console port baud rate. set system baud rateSyntax Description
DefaultThe default value is 9600 baud. Command ModePrivileged. ExampleThe following example shows how to set the system baud rate to 19200: Console> (enable) set system baud 19200 System console port baud rate set. Console> (enable) Related Commandshow system set system contactUse the set system contact command to set the system contact string. set system contact [ contact_string ]Syntax Description
DefaultThe default configuration has no system contact configured. Command ModePrivileged. ExampleThe following example shows how to set the system contact string to Luis x5529: Console> (enable) set system contact Luis x5529 System contact set. Console> (enable) Related Commandshow system set system helpUse the set system help command to list the set system commands. set system helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the set system commands: Console> (enable) set system help Commands: ------------------------------------------------------------------------------ set system baud Set system console port baud rate set system contact Set system contact set system help Show this message set system location Set system location set system modem Set system modem control (enable/disable) set system name Set system name Console> (enable) set system locationUse the set system location command to set the system location string. set system location [ location_string ]Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to set the system location string to "Closet 230 4/F": Console> (enable) set system location Closet 230 4/F System location set. Console> (enable) Related Commandshow system set system modemUse the set system modem command to enable or disable modem control lines on the console port. set system modem {enable | disable}Syntax Description
DefaultThe default configuration has modem control lines disabled. Command ModePrivileged. ExampleThe following example shows how to disable the modem control lines on the console port: Console> (enable) set system modem disable Modem control lines disabled on console port. Console> (enable) Related Commandshow system set system nameUse the set system name command to configure a name for the system. set system name [ name_string ]Syntax Description
DefaultThe default configuration has no system name configured. Command ModePrivileged. ExampleThe following example shows how to set the system name to "Support Group": Console> (enable) set system name Support Group System name set. Console> (enable) Related Commandshow system set timeUse the set time command to change the time of day in the system clock. set time [ day_of_week ] [ mm/dd/yy ] [ hh:mm:ss ]Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to set the system clock to Wednesday,
May 17, 1995 at Console> (enable) set time wed 5/17/95 13:25:55 Wed Feb 22 1995, 13:25:55 Console> (enable) Related Commandshow time set trunkUse the set trunk command to configure trunk ports. set trunk mod_num/port_num [ on | off | desirable | auto ] [ vlan_range ]Syntax Description
DefaultAll ports are nontrunk ports by default. The default vlan_range is 1 to 1000. Command ModePrivileged. Usage GuidelinesOnly Fast Ethernet ports can be configured as trunk ports. The set trunk command adds VLANs and ports to existing trunk groups; the command does not replace existing VLANs and ports with new VLANs and ports. VLAN numbers must be in the range from 1 to 1000. When a Catalyst 2900 port that is configured to auto detects a link bit, and it determines that the other end of the link is a trunk port, the Catalyst 2900 automatically converts the port configured to auto into trunking mode. The trunk port reverts to a nontrunk port when its link goes down. To return a trunk to a normal switched port, use the clear trunk command. ExampleThe following example shows how to set port 2 on module 1 as a trunk port: Console> (enable) Related Commandsclear trunk set vlanUse the set vlan command to group ports into a virtual LAN. set vlan vlan_num mod/ports ...
set vlan vlan_num [ name name ] [ type type ] [ mtu mtu ] [ said said ]
[ state state ] [ ring ring_number ] [ parent vlan_num ]
[ stp stp_type ] [ translation
vlan_num ] Syntax Description
DefaultThe default configuration has all switched Ethernet ports and Ethernet repeater ports in VLAN 1. The default SAID for VLAN 1 is 100001, for VLAN 2 is 100002, for VLAN 3 is 100003, and so on. The default type is Ethernet. The default mtu is 1500 bytes. The default status is "active". Command ModePrivileged. Usage GuidelinesYou cannot set multiple VLANs for ISL ports using this command. The VLAN name can be within the range of 1 to 32 characters in length. The VLAN number must be within the range of 1 to 1000. ExampleThe following example shows how to set VLAN 1000 to include ports 1 and
2 on module 1, and Console> (enable) set vlan Usage: set vlan Related Commandsclear vlan set vtpUse the set vtp command to set the management domain name, VLAN trunk protocol mode of operation, advertisement interval, and password values. set vtp [domain domain_name][mode mode][interval interval][passwd passwd] Syntax Description
DefaultThis default interval is 5 minutes. Command ModePrivileged. Usage GuidelinesThe interval range is from two to ten minutes. The password must be at least eight characters in length. Example
Related Commandsclear vtp statistics show vtp show vtp domain show vtp statistics show aliasUse the show alias command to display shorthand versions of command invocations. show alias [ name ]Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display all aliases: Console> show alias arpdelete clear arp resetclr clear config Related Commandsclear alias show arpUse the show arp command to display the Address Recognition Protocol (ARP) table. show arp [ noalias ]Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display the ARP table: Console> show arp ARP Aging time = 1200 sec cat7-lnf at 00-40-0b-ac-83-ff atlas at 00-00-0c-35-7f-42 Related Commandsclear arp show camUse the show cam command to display the CAM table. show cam {dynamic | static | permanent | system} [ vlan ]show cam {dynamic | static | permanent} mod_num/port_num show cam mac_addr [ vlan ] Syntax Description
DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesTo view the CAM aging time for a specific VLAN, use the show cam vlan command; to view aging time for all configured VLANs, use the show config command. ExampleThe following example shows how to display dynamic CAM entries for VLAN 1: Console> (enable) show cam dynamic 1 VLAN 1 Aging time = 300 sec * = Static Entry. + = Permanent Entry. # = System Entry. VLAN Destination MAC Destination Ports or VCs ---- ------------------ ---------------------------------------------------- 1 08-00-20-22-cd-c0 1/1 1 08-00-20-72-16-b8 3/41 1 00-40-0b-f0-03-ff 3/36 Matching CAM Entries = 3 Console> (enable) Related Commandsclear cam show cdpUse the show cdp command to display Cisco Discovery Protocol (CDP) information. show cdp neighbors [ mod_num ] [ detail ]show cdp neighbors [ mod_num/port_num ] [ detail ] show cdp port [ mod_num ] show cdp port [ mod_num/port_num ] Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display CDP information about neighboring systems: Console> (debug-eng) show cdp neighbor Port Device-ID Port-ID Platform Capability ---- ----------------------- ----------------- --------------------- ----------- 4/2 000041770(Workgroup Swi 5 WS-C1201 T 4/4 000102703 2/2 WS-C2900 S The following example shows how to display CDP information for a particular port: Console> (enable) show cdp port 2/1 Port CDP Status Message-Interval ---- ---------- ---------------- 2/1 enabled 60 Console> (enable) Related Commandsset cdp disable show configUse the show config command to display the current system configuration. show configSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows the contents of a configuration file: Console> (enable) show config ...................................... begin set password $1$FMFQ$HfZR5DUszVHIRhrz4h6V70 set enablepass $1$FMFQ$HfZR5DUszVHIRhrz4h6V70 set prompt Console>> set length 100 default set logout 0 ! #system set system baud 9600 set system modem disable set system name cat9-lnf set system location San Jose G-1 set system contact Cal P. ! #snmp set snmp community read-only public set snmp community read-write private set snmp community read-write-all secret set snmp rmon enable set snmp trap disable module set snmp trap disable chassis set snmp trap disable bridge set snmp trap disable repeater set snmp trap disable vtp set snmp trap disable auth ! #ip set interface sc0 3 172.20.25.132 255.255.0.0 172.20.255.255 set interface sl0 0.0.0.0 0.0.0.0 set arp agingtime 1200 set ip redirect enable set ip unreachable disable set ip fragmentation enable set ip route 0.0.0.0 172.20.1.201 1 set ip alias default 0.0.0.0 set ip alias max 171.69.193.165 set ip alias cat7-lnf 172.20.25.130 set ip alias cat9-lnf 172.20.25.132 set ip alias da_bears 172.20.22.7 set ip alias atlas 172.20.1.201 set ip alias lnf 172.20.0.0 ! #Command alias ! #bridge set bridge ipx snaptoether 8023raw set bridge ipx 8022toether 8023 #vtp set vtp domain Cal mode server interval 300 set vlan 100001 name default type ethernet mtu 1500 said 1 state active ring 0 bridg0 set vlan 100003 name VLAN0003 type ethernet mtu 1500 said 3 state active ring 0 brid0 set vlan 100055 name vlan55 type ethernet mtu 1500 said 85 state active ring 0 brid0 set vlan 100088 name vlan88 type token_ring mtu 1500 said 88 state active ring 0 br0 set vlan 101003 name token-ring-default type token_ring mtu 4500 said 1003 state 0 set vlan 101005 name trnet-default type tr_net mtu 4500 said 1005 state active ri0 set vlan 100001 translation 1003 translation 1002 set vlan 101002 translation 1003 translation 1 set vlan 101003 translation 1 translation 1002 ! #vlan ! #trunks set trunk 1/1 on 1-1000 set trunk 1/2 auto 1-1000 set trunk 2/1 auto 1-1000 set trunk 2/2 auto 1-1000 set trunk 2/3 auto 1-1000 set trunk 2/4 auto 1-1000 set trunk 2/5 auto 1-1000 set trunk 2/6 auto 1-1000 set trunk 2/7 auto 1-1000 set trunk 2/8 auto 1-1000 set trunk 2/9 auto 1-1000 set trunk 2/10 auto 1-1000 set trunk 2/11 auto 1-1000 set trunk 2/12 auto 1-1000 ! #cam set cam agingtime 1 300 set cam agingtime 3 300 set cam agingtime 55 300 ! #cdp set cdp enable 1/1-2,2/1-12 set cdp interval 1/1-2,2/1-12 60 ! #spantree #vlan 1 set spantree enable 1 set spantree fwddelay 15 1 set spantree hello 2 1 set spantree maxage 20 1 set spantree priority 32768 1 #vlan 3 set spantree enable 3 set spantree fwddelay 15 3 set spantree hello 2 3 set spantree maxage 20 3 set spantree priority 32768 3 #vlan 55 set spantree enable 55 set spantree fwddelay 15 55 set spantree hello 2 55 set spantree maxage 20 55 set spantree priority 32768 55 ! #trunk set spantree portcost 1/1 10 set spantree portpri 1/1 32 set spantree portvlanpri 1/1 0 set spantree portfast 1/1 disable set spantree portcost 1/2 10 set spantree portpri 1/2 32 set spantree portvlanpri 1/2 0 set spantree portfast 1/2 disable set spantree portcost 2/1 10 set spantree portpri 2/1 32 set spantree portvlanpri 2/1 0 set spantree portfast 2/1 disable set spantree portcost 2/2 10 set spantree portpri 2/2 32 set spantree portvlanpri 2/2 0 set spantree portfast 2/2 disable set spantree portcost 2/3 10 set spantree portpri 2/3 32 set spantree portvlanpri 2/3 0 set spantree portfast 2/3 disable set spantree portcost 2/4 10 set spantree portpri 2/4 32 set spantree portvlanpri 2/4 0 set spantree portfast 2/4 disable set spantree portcost 2/5 10 set spantree portpri 2/5 32 set spantree portvlanpri 2/5 0 set spantree portfast 2/5 disable set spantree portcost 2/6 10 set spantree portpri 2/6 32 set spantree portvlanpri 2/6 0 set spantree portfast 2/6 disable set spantree portcost 2/7 10 set spantree portpri 2/7 32 set spantree portvlanpri 2/7 0 set spantree portfast 2/7 disable set spantree portcost 2/8 10 set spantree portpri 2/8 32 set spantree portvlanpri 2/8 0 set spantree portfast 2/8 disable set spantree portcost 2/9 10 set spantree portpri 2/9 32 set spantree portvlanpri 2/9 0 set spantree portfast 2/9 disable set spantree portcost 2/10 10 set spantree portpri 2/10 32 set spantree portvlanpri 2/10 0 set spantree portfast 2/10 disable set spantree portcost 2/11 10 set spantree portpri 2/11 32 set spantree portvlanpri 2/11 0 set spantree portfast 2/11 disable set spantree portcost 2/12 10 set spantree portpri 2/12 32 set spantree portvlanpri 2/12 0 set spantree portfast 2/12 disable ! #module 1 set module name 1 set port enable 1/1-2 set port level 1/1-2 normal set port duplex 1/1-2 half set port trap 1/1-2 disable set port name 1/1-2 ! #module 2 set module name 2 set module enable 2 set port enable 2/1-12 set port level 2/1-12 normal set port duplex 2/1-12 half set port trap 2/1-12 disable set port name 2/1-12 ! #switch port analyzer set span 1 1/1 both set span disable end Console> (enable) Related Commandswrite show flashUse the show flash command to list flash code information, such as file code names, version numbers, and sizes. show flashSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the flash code versions: Console> (enable) show flash
File Version Size (bytes)
-------------- ----------------- -------------
c2901 nmp 2.126 780825
mcp 2.126 26323
lcp 2.126 25151
lcp 64k 2.126 36869
Console> (enable)
show helpUse the show help command to list the available show commands. show helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to list the show commands: Console>
show interfaceUse the show interface command to display network interfaces. show interfaceSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display sl0 and sc0: Console> show interface sl0: flags=51 Related Commandset interface show ip aliasThe show ip alias command shows aliases of IP addresses. show ip alias [ name ]Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display all IP aliases: Console> (enable) show ip alias elvis 192.122.174.11 mercury 192.122.174.234 neptune 198.211.203.44 show ip helpUse the show ip help command to list the show ip commands. show ip helpSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to list the show ip commands: Console> (enable) show ip help Show ip commands: ---------------------------------------------------------------------- show ip alias Show aliases for IP Addresses show ip route Show IP routing table Console> (enable) Related Commandsshow ip alias show ip routeUse the show ip route command to display IP routing table entries. show ip route [ noalias ]Syntax Description
DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesIf the noalias keyword is specified, IP aliases are not displayed; only IP addresses are displayed. ExampleThe following example shows how to display the established routes: Console> (enable) show ip route Fragmentation Redirect Unreachable ------------- -------- ----------- disabled enabled disabled Destination Gateway Flags Use Interface --------------- --------------- ------ ---------- --------- 172.20.0.0 172.20.22.181 U 0 sc0 default default UH 0 sl0 Console> (enable) Related Commandsclear ip route show logUse the show log command to display the system error log. show logSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to display the error log: Console> (enable) show log
Network Management Processor (NMP) Log:
Reset count: 1071
Re-boot History: Jul 25 1994 10:56:41 3, Jul 25 1994 10:56:41 3
Jul 25 1994 10:56:41 3, Jul 25 1994 10:56:41 3
Jul 25 1994 10:56:41 3, Jul 25 1994 10:56:41 3
Jul 25 1994 10:56:41 3, Jul 25 1994 10:56:41 3
Jul 25 1994 10:56:41 3
Bootrom Checksum Failures: 0 UART Failures: 0
Flash Checksum Failures: 17 Flash Program Failures: 0
Power Supply 1 Failures: 6 Power Supply 2 Failures: 11
DRAM Failures: 0
Exceptions: 7
Last Exception occurred on Jul 25 1994 10:56:41 ...
PC: 0005D3FE, Status: 2000, Vector: 7008
sp+00: 20000005 D3FE7008 103FE7B8 00A50025
sp+10: 002500A5 FFFFFFCE FFFFFFCE 00000033
sp+20: FFFFFFCE 00000033 FFFFFFCE 00003300
sp+30: 00000000 00000000 00000000
D0: FFFFFFCE, D1: 0000007F, D2: 00000004, D3: 00000002
D4: 00000000, D5: 00000000, D6: 00000000, D7: 00000000
A0: 000015EF, A1: FFFFFFCF, A2: FFFFFFCE, A3: 00000000
A4: 00000000, A5: 00000000, A6: 103FE7A8, sp: 103FE76C
Console> (enable)
Related Commandclear log show macUse the show mac command to display MAC counters. show macshow mac mod_num show mac mod_num/port_num Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display MAC information: Console> show mac MAC Rcv-Frms Xmit-Frms Rcv-Multi Xmit-Multi Rcv-Broad Xmit-Broad ------- ---------- ---------- ---------- ---------- ---------- ---------- 1/1 98839 6475 98839 6474 0 1 1/2 0 0 0 0 0 0 2/1 0 0 0 0 0 0 2/2 0 0 0 0 0 0 2/3 0 0 0 0 0 0 2/4 0 0 0 0 0 0 2/5 0 0 0 0 0 0 2/6 0 0 0 0 0 0 2/7 0 0 0 0 0 0 2/8 0 0 0 0 0 0 2/9 0 0 0 0 0 0 2/10 0 0 0 0 0 0 2/11 0 0 0 0 0 0 2/12 0 0 0 0 0 0 MAC Dely-Exced MTU-Exced In-Discard Lrn-Discrd In-Lost Out-Lost ------- ---------- ---------- ---------- ---------- ---------- ---------- 1/1 0 0 375 0 0 0 1/2 0 0 0 0 0 0 2/1 0 0 0 0 0 0 2/2 0 0 0 0 0 0 2/3 0 0 0 0 0 0 2/4 0 0 0 0 0 0 2/5 0 0 0 0 0 0 2/6 0 0 0 0 0 0 2/7 0 0 0 0 0 0 2/8 0 0 0 0 0 0 2/9 0 0 0 0 0 0 2/10 0 0 0 0 0 0 2/11 0 0 0 0 0 0 2/12 0 0 0 0 0 0 Last-Time-Cleared -------------------------- Sun Apr 21 1996, 11:51:37 Console> Related Commandclear counters show moduleUse the show module command to display module status and information. show moduleSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display module status and information: Console> show module Mod Module-Name Ports Module-Type Model Serial-Num Status --- -------------------- ----- --------------------- -------- --------- ------- 1 2 100BaseTX Supervisor WS-X2900 002477455 ok 2 12 100BaseTX Ethernet WS-X2902 002567322 ok Mod MAC-Address(es) Hw Fw Sw --- ---------------------------------------- ------ ------ ---------------- 1 00-40-0b-b2-f4-00 thru 00-40-0b-b2-f7-ff 1.81 2.112 2.126 2 00-40-0b-d5-04-8c thru 00-40-0b-d5-04-97 1.4 1.2 2.126 Related Commandsset module disable show netstatUse the show netstat command to display statistics for the various protocols in the TCP/IP protocol stack. This command is also used to display the state of network connections currently active on the system. show netstat [ stats | tcp | udp | ip | icmp | interfaces | routes ]Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExamplesThe following example shows how to display default (TCP and UDP) statistics: Console> show netstat Active Internet connections (including servers) Proto Recv-Q Send-Q Local Address Foreign Address (State) tcp 0 128 192.122.174.221.23 192.122.174.40.1064 ESTABLISHED tcp 0 0 *.23 *.* LISTEN udp 0 0 *.161 *.* Console> The following example shows how to display TCP statistics: Console> (enable) show netstat tcp
tcp:
619 packets sent
586 data packets (33863 bytes)
16 data packets (2133 bytes) retransmitted
17 ack-only packets (11 delayed)
0 URG only packets
0 window probe packets
0 window update packets
0 control packets
806 packets received
595 acks (for 34475 bytes)
5 duplicate acks
0 acks for unsent data
329 packets (1082 bytes) received in-sequence
0 completely duplicate packets (0 bytes)
1 packet with some dup. data (1 byte duped)
3 out-of-order packets (0 bytes)
0 packets (0 bytes) of data after window
0 window probes
3 window update packets
0 packets received after close
0 discarded for bad checksums
0 discarded for bad header offset fields
0 discarded because packet too short
0 connection requests
4 connection accepts
4 connections established (including accepts)
3 connections closed (including 0 drops)
0 embryonic connections dropped
577 segments updated rtt (of 592 attempts)
13 retransmit timeouts
0 connections dropped by rexmit timeout
0 persist timeouts
0 keepalive timeouts
0 keepalive probes sent
0 connections dropped by keepalive
Console> (enable)
The following example shows how to display UDP statistics: Console> show netstat udp
udp:
0 incomplete headers
0 bad data length fields
0 bad checksums
0 socket overflows
1116 no such ports
Console>
The following example shows how to display IP statistics: Console> show netstat ip
ip:
957 total packets received
0 bad header checksums
0 with size smaller than minimum
0 with data size < data length
0 with header length < data size
0 with data length < header length
0 fragments received
0 fragments dropped (dup or out of space)
0 fragments dropped after timeout
0 packets forwarded
376 packets not forwardable
0 redirects sent
Console>
The following example shows how to display ICMP statistics: Console> show netstat icmp
icmp:
Redirect enabled
0 calls to icmp_error
0 errors not generated 'cuz old message was icmp
0 messages with bad code fields
0 messages < minimum length
0 bad checksums
0 messages with bad length
0 message responses generated
Console>
The following example shows how to display the IP routing table: Console> show netstat routes DESTINATION GATEWAY FLAGS USE INTERFACE 0.0.0.0 192.122.174.40 UG 13 sc0 192.122.174.0 192.122.174.221 U 457 sc0 Console> The following example shows how to display interface statistics: Console> show netstat interface Interface InPackets InErrors OutPackets OutErrors sl0 0 0 0 0 sc0 599 0 74 0 Console> Related Commandsset ip help show portUse the show port command to display port status and counters. show portshow port mod_num show port mod_num/port_num Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display the status and counters for all ports on module 2: Console> show port Port Name Status Vlan Level Duplex Speed Type ---- -------------------- ---------- ---------- ------ ------ ----- ----------- 1/1 connected trunk normal half 100 100BaseTX 1/2 notconnect 1 normal half 100 100BaseTX 2/1 notconnect 1 normal half 100 100BaseTX 2/2 notconnect 1 normal half 100 100BaseTX 2/3 notconnect 1 normal half 100 100BaseTX 2/4 notconnect 1 normal half 100 100BaseTX 2/5 notconnect 1 normal half 100 100BaseTX 2/6 notconnect 1 normal half 100 100BaseTX 2/7 notconnect 1 normal half 100 100BaseTX 2/8 notconnect 1 normal half 100 100BaseTX 2/9 notconnect 1 normal half 100 100BaseTX 2/10 notconnect 1 normal half 100 100BaseTX 2/11 notconnect 1 normal half 100 100BaseTX 2/12 notconnect 1 normal half 100 100BaseTX Port Align-Err FCS-Err Xmit-Err Rcv-Err ---- ---------- ---------- ---------- ---------- 1/1 0 0 0 0 1/2 0 0 0 0 2/1 0 0 0 0 2/2 0 0 0 0 2/3 0 0 0 0 2/4 0 0 0 0 2/5 0 0 0 0 2/6 0 0 0 0 2/7 0 0 0 0 2/8 0 0 0 0 2/9 0 0 0 0 2/10 0 0 0 0 2/11 0 0 0 0 2/12 0 0 0 0 Port Single-Col Multi-Coll Late-Coll Excess-Col Carri-Sens Runts Giants ---- ---------- ---------- ---------- ---------- ---------- --------- --------- 1/1 0 0 0 0 0 0 - 1/2 0 0 0 0 0 0 - 2/1 0 0 0 0 0 0 - 2/2 0 0 0 0 0 0 - 2/3 0 0 0 0 0 0 - 2/4 0 0 0 0 0 0 - 2/5 0 0 0 0 0 0 - 2/6 0 0 0 0 0 0 - 2/7 0 0 0 0 0 0 - 2/8 0 0 0 0 0 0 - 2/9 0 0 0 0 0 0 - 2/10 0 0 0 0 0 0 - 2/11 0 0 0 0 0 0 - 2/12 0 0 0 0 0 0 - Last-Time-Cleared -------------------------- Sun Apr 21 1996, 11:51:37 Console> Related Commandsclear counters show snmpUse the show snmp command to display the SNMP information. show snmp [ noalias ]Syntax Description
DefaultThis command has no default setting. Command ModeNormal and privileged. Usage GuidelinesIf "noalias" is specified, IP aliases are not displayed; otherwise IP addressees are shown. ExampleThe following example shows how to display the community strings in normal mode: Console> show snmp RMON: Enabled Traps Enabled: Chassis Port Traps Enabled: None Community-Access Community-String ---------------- -------------------- read-only public Trap-Rec-Address Trap-Rec-Community ---------------- -------------------- 192.122.173.42 public Console> The following example shows how to display the community strings in privileged mode: Console> (enable) show snmp show snmp RMON: Enabled Traps Enabled: Chassis Port Traps Enabled: None Community-Access Community-String ---------------- -------------------- read-only public Trap-Rec-Address Trap-Rec-Community ---------------- -------------------- 192.122.173.42 public Console> (enable) Related Commandsset snmp community
show spanUse the show span command to display switch port analyzer information. show spanSyntax DescriptionThis command has no keywords or arguments. DefaultThis command has no default setting. Command ModeNormal. Usage GuidelineThe Switched Port Analyzer analyzes the traffic through a switch port in the system. It also analyzes the traffic of a particular VLAN through all switch ports in the system. ExampleThe following example shows how to display port monitoring information. Console> show span Source Destination Direction Status --------- ------------ ---------------- -------- Port 2/3 Port 3/1-12 transmit disabled Console> Related Commandsclear config all show spantreeUse the show spantree command to display spanning-tree information for a VLAN. show spantree [ vlan ]show spantree mod_num/port_num Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display the spantree syntax structure and options: Console> The following example shows how to display the spantree configuration: Console> (enable) show spantree 1 VLAN 1 Spanning tree enabled Designated Root 00-40-0b-ac-80-00 Designated Root Priority 32768 Designated Root Cost 10 Designated Root Port 1/1 Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Bridge ID MAC ADDR 00-40-0b-b2-f4-00 Bridge ID Priority 32768 Bridge Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec Port Vlan Port-State Cost Priority Fast-Start -------- ---- ------------- ----- -------- ---------- 1/1 1 forwarding 10 32 disabled 1/2 1 not-connected 10 32 disabled 2/1 1 not-connected 10 32 disabled 2/2 1 not-connected 10 32 disabled 2/3 1 not-connected 10 32 disabled 2/4 1 not-connected 10 32 disabled 2/5 1 not-connected 10 32 disabled 2/6 1 not-connected 10 32 disabled 2/7 1 not-connected 10 32 disabled 2/8 1 not-connected 10 32 disabled 2/9 1 not-connected 10 32 disabled 2/10 1 not-connected 10 32 disabled 2/11 1 not-connected 10 32 disabled 2/12 1 not-connected 10 32 disabled The following example shows how to display the spantree configuration for module 1, ports 1 and 2, and module 2, ports 1 through 4: Console>
Related Commandsset spantree disable show systemUse the show system command to display the power supply, fan, temperature alarm, system, and modem status; the number of days, hours, minutes, and seconds since the last system restart; the baud rate; the MAC address range; and the system name, location, and contact. show systemSyntax DescriptionThis command has no keywords or arguments. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows the system status and other information: Console> show system PS-Status Fan-Status Temp-Alarm Sys-Status Uptime d,h:m:s Logout ---------- ---------- ---------- ---------- -------------- --------- ok ok off ok 1,23:10:38 none Modem Baud Traffic Peak Peak-Time ------- ----- ------- ---- ------------------------- disable 9600 0% 0% Sun Apr 21 1996, 11:51:37 System Name System Location System Contact ------------------------ ------------------------ ------------------------ Console> Related Commandsset system baud show testUse the show test command to display the results of diagnostic tests. show test mod_numSyntax Description
DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesThe Network Management Processor only applies to module 1; therefore, only the display for module 1 includes the NMP status. If other modules are specified, the NMP status is not displayed. ExampleThe following example shows how to display the test results for all tested modules: Console> show test
Network Management Processor (NMP) Status: (. = Pass, F = Fail, U = Unknown)
ROM: . RAM: . DUART: . Flash-EEPROM: . Ser-EEPROM: . NVRAM: .
FAN: . Temperature: . MCP Comm: .
PS (3.3V): . PS (12V): . PS (24V): .
8051 Diag Status for Module 1 (. = Pass, F = Fail, N = N/A)
CPU : . Ext Ram 0: . Ext Ram 1: . Ext Ram 2: N
DPRAM : . LTL Ram 0: . LTL Ram 1: N LTL Ram 2: N
BootChecksum: . CBL Ram 0: . CBL Ram 1: N CBL Ram 2: N
Saints : . Pkt Bufs : . Repeaters: N Sprom : .
SAINT/SAGE Status :
Ports 1 2 3
--------------
. . .
Packet Buffer Status :
Ports 1 2 3
--------------
. . .
System Diagnostic Status : (. = Pass, F = Fail, N = N/A)
Module 1 : MCP
EARL Status :
NewLearnTest: .
IndexLearnTest: .
DontForwardTest: .
MonitorTest .
DontLearn: .
FlushPacket: .
ConditionalLearn: .
EarlLearnDiscard: .
PMD Loopback Status :
Ports 1 2 3
--------------
. . .
show timeUse the show time command to display the current time of day in the system clock. show timeSyntax DescriptionThis command has no keywords or arguments. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display the current time: Console> show time Wed Feb 22 1995, 18:32:36 Console> Related Commandset time show trunkUse the show trunk command to display Interswitch Link information. show trunkSyntax DescriptionThis command has no arguments or keywords. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display trunk information: Console> show trunk Port Mode Status ------- --------- ------------ 1/1 on trunking 1/2 auto not-trunking 2/1 auto not-trunking 2/2 auto not-trunking 2/3 auto not-trunking 2/4 auto not-trunking 2/5 auto not-trunking 2/6 auto not-trunking 2/7 auto not-trunking 2/8 auto not-trunking 2/9 auto not-trunking 2/10 auto not-trunking 2/11 auto not-trunking 2/12 auto not-trunking Port Vlans allowed ------- --------------------------------------------------------------------- 1/1 1-1000 1/2 1-1000 2/1 1-1000 2/2 1-1000 2/3 1-1000 2/4 1-1000 2/5 1-1000 2/6 1-1000 2/7 1-1000 2/8 1-1000 2/9 1-1000 2/10 1-1000 2/11 1-1000 2/12 1-1000 Port Vlans active ------- --------------------------------------------------------------------- 1/1 1,3,55 1/2 1 2/1 1 2/2 1 2/3 1 2/4 1 2/5 1 2/6 1 2/7 1 2/8 1 2/9 1 2/10 1 2/11 1 2/12 1 Console> Related Commandsclear trunk show usersThe show users command shows if the console port is active or not and lists all active Telnet sessions with the IP address or IP alias of the originating host. show users [ noalias ]Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display the users of the active Telnet sessions: Console> show users Console Port ------------ Active Telnet Sessions --------------- mercury 199.132.34.7 Console> Related Commanddisconnect show versionUse the show version command to display software and hardware version information. show versionSyntax DescriptionThis command has no keywords or arguments. DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to display the software and hardware versions: Console> (enable) show version WS-C2900 Software, Version McpSW: 2.126 NmpSW: 2.126 Copyright (c) 1995,1996 by Cisco Systems NMP S/W compiled on Apr 15 1996, 06:30:58 MCP S/W compiled on Apr 15 1996, 06:24:03 System Bootstrap Version: 2.112 Hardware Version: 1.81 Model: WS-X2900 Serial #: 002477455 Module Ports Model Serial # Hw Fw Fw1 Sw ------ ----- ---------- --------- ------ ------ ------ -------------------- 1 2 WS-X2900 002477455 1.81 2.112 1.5 2.126 2 12 WS-X2903 002567322 1.4 1.2 2.126 8191K bytes of DRAM memory. 4096K bytes of FLASH memory. 256K bytes of non-volatile configuration memory. Uptime is 1 day, 23 hours, 15 minutes show vlanUse the show vlan command to display virtual LAN information. show vlan [ trunk ]show vlan vlan [ notrunk ] Syntax Description
DefaultThis command has no default setting. Command ModeNormal. Usage GuidelinesEach Ethernet switch port and Ethernet repeater group belongs to only one VLAN. ExampleThe following example shows how to display the ports assigned to all VLANs: Console> show vlan
VLAN Name Type Status Mod/Ports
---- -------------------------- ----- --------- ----------------
100001 default enet active 1/2
2/1-12
100003 VLAN0003 enet active
100088 vlan88 tring active
101003 token-ring-default tring active
101005 trnet-default trnet active
VLAN SAID MTU RingNo BridgeNo StpNo Parent Trans1 Trans2
----__ ---------- ----- ------ -------- ----- ------ ------ ------
100001 1 1500 0 0 0 0 1003 1002
100003 3 1500 0 0 0 0 0 0
100010 10 1500 0 0 0 0 0 0
100011 11 1500 0 0 0 0 0 0
100055 85 1500 0 0 0 0 0 0
100066 102 4500 2900 0 0 2900 0 0
100088 88 1500 0 0 0 0 0 0
100099 99 1500 0 0 0 0 0 0
101002 1002 4500 0 0 0 0 1003 1
101003 1003 4500 0 0 0 0 1 1002
101004 1004 4500 0 1004 0 0 0 0
101005 1005 4500 0 1005 0 0 0 0
Console>
Related Commandsset vlan
show vtpUse the show vtp (Virtual Trunk Protocol) command to display Virtual Trunk Protocol information. show vtpshow vtp [ domain ] show vtp [ statistics ] Syntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleConsole> show vtp Show vtp commands: ----------------------------------------------------------- show vtp domain Show VTP domain information show vtp help Show this message show vtp statistics Show VTP statistics Console> show vtp domain Domain index 1 Domain name catbox VTP version 1 Local mode client Config revision 0 Last updater 172.20.25.127 Vlan count 6 Max vlan storage 256 Notifications disabled Console> show vtp statistics VTP statistics: summary advts received 1 subset advts received 0 request advts received 30 summary advts transmitted 17 subset advts transmitted 9 request advts transmitted 0 No of config revision errors 0 No of config digest errors 0 Related Commandsset vtp show vtp helpUse the show vtp command to display available Virtual Trunk Protocol commands. show vtp helpSyntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThis example shows how to display Virtual Trunk Protocol commands. Console> show vtp help Show vtp commands: ----------------------------------------------------------- show vtp domain Show VTP domain information show vtp help Show this message show vtp statistics Show VTP statistics Related Commandsshow vtp slipUse the slip command to attach or detach Serial Line Interface Protocol (SLIP) for the console port. slip attach | detachSyntax Description
DefaultBy default, SLIP is not active (detached). Command ModePrivileged. Usage GuidelinesYou can use the slip command from a console port session or a Telnet session. ExampleThe following example shows how to enable SLIP for a console port during a console port session: Console> (enable) slip attach Console port now running SLIP. The following example shows how to disable SLIP for a console port during a Telnet session: Console> (enable) slip attach Console port now running SLIP. Related Commandset interface
telnetUse the telnet command to start a telnet connection to a remote host. telnet host [ port ]Syntax Description
Syntax DescriptionThis command has no keywords or arguments. DefaultThis command has no default setting. Command ModePrivileged. ExampleConsole> (enable) telnet help Usage: telnet Related Commanddisconnect
test helpUse the test help command to display the test commands. test helpSyntax DescriptionThis command has no keywords or arguments. DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to list the test commands: Console> (enable) test help Commands: ------------------------------------------------------------------------------ test help Show this message test snmp Send trap message to SNMP trap receivers Console> (enable) test snmp trapUse the test snmp trap command to send an SNMP trap message to the trap receivers. test snmp trap trap_number [ specific_number ]Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to run trap 0: Console> (enable) test snmp trap 0 SNMP trap message sent. (4) Console> (enable) Related Commandsclear snmp trap uploadUse the upload command to upload a code image to a network host. upload host file [ module_num ]Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. ExampleThe following example shows how to upload the supervisor image to the c5009_11.bin file on the mercury host: Console> (enable) upload mercury c5009_11.bin 3 Upload Module 1 image to c5009_11.bin on mercury (y/n) [n]? y / Done. Finished Network Upload. (153908 bytes) Console> (enable) Related Commanddownload waitUse the wait command to pause the CLI for a specified number of seconds. This command might be included in a configuration file. wait secondsSyntax Description
DefaultThis command has no default setting. Command ModeNormal. ExampleThe following example shows how to pause the CLI for five seconds: Console> wait 5 Console> writeUse the write command to upload the current configuration to a host or to display it on the terminal. write networkwrite terminal write host file Syntax Description
DefaultThis command has no default setting. Command ModePrivileged. Usage GuidelinesThe write terminal command is exactly the same as the show config command. The write host file command is a shorthand version of the write network command. ExampleConsole> (enable) write term ...................................... begin set password $1$FMFQ$HfZR5DUszVHIRhrz4h6V70 set enablepass $1$FMFQ$HfZR5DUszVHIRhrz4h6V70 set prompt cat9-lnf> set length 100 default set logout 0 ! #system set system baud 9600 set system modem disable set system name cat9-lnf set system location San Jose G-1 set system contact Cal P. ! #snmp set snmp community read-only public set snmp community read-write private set snmp community read-write-all secret set snmp rmon enable set snmp trap disable module set snmp trap disable chassis set snmp trap disable bridge set snmp trap disable repeater set snmp trap disable vtp set snmp trap disable auth ! #ip set interface sc0 3 172.20.25.132 255.255.0.0 172.20.255.255 set interface sl0 0.0.0.0 0.0.0.0 set arp agingtime 1200 set ip redirect enable set ip unreachable disable set ip fragmentation enable set ip route 0.0.0.0 172.20.1.201 1 set ip alias default 0.0.0.0 set ip alias max 171.69.193.165 set ip alias cat7-lnf 172.20.25.130 set ip alias cat9-lnf 172.20.25.132 set ip alias da_bears 172.20.22.7 set ip alias atlas 172.20.1.201 set ip alias lnf 172.20.0.0 ! #Command alias ! #bridge set bridge ipx snaptoether 8023raw set bridge ipx 8022toether 8023 #vtp set vtp domain Cal mode server interval 300 set vlan 100001 name default type ethernet mtu 1500 said 1 state active ring 0 bridg0 set vlan 100003 name VLAN0003 type ethernet mtu 1500 said 3 state active ring 0 brid0 set vlan 100055 name vlan55 type ethernet mtu 1500 said 85 state active ring 0 brid0 set vlan 100088 name vlan88 type token_ring mtu 1500 said 88 state active ring 0 br0 set vlan 101003 name token-ring-default type token_ring mtu 4500 said 1003 state 0 set vlan10 1005 name trnet-default type tr_net mtu 4500 said 1005 state active ri0 set vlan 100001 translation 1003 translation 1002 set vlan 101002 translation 1003 translation 1 set vlan 101003 translation 1 translation 1002 ! #vlan ! #trunks set trunk 1/1 on 1-1000 set trunk 1/2 auto 1-1000 set trunk 2/1 auto 1-1000 set trunk 2/2 auto 1-1000 set trunk 2/3 auto 1-1000 set trunk 2/4 auto 1-1000 set trunk 2/5 auto 1-1000 set trunk 2/6 auto 1-1000 set trunk 2/7 auto 1-1000 set trunk 2/8 auto 1-1000 set trunk 2/9 auto 1-1000 set trunk 2/10 auto 1-1000 set trunk 2/11 auto 1-1000 set trunk 2/12 auto 1-1000 ! #cam set cam agingtime 1 300 set cam agingtime 3 300 set cam agingtime 55 300 ! #cdp set cdp enable 1/1-2,2/1-12 set cdp interval 1/1-2,2/1-12 60 ! #spantree #vlan 1 set spantree enable 1 set spantree fwddelay 15 1 set spantree hello 2 1 set spantree maxage 20 1 set spantree priority 32768 1 #vlan 3 set spantree enable 3 set spantree fwddelay 15 3 set spantree hello 2 3 set spantree maxage 20 3 set spantree priority 32768 3 #vlan 55 set spantree enable 55 set spantree fwddelay 15 55 set spantree hello 2 55 set spantree maxage 20 55 set spantree priority 32768 55 ! #trunk set spantree portcost 1/1 10 set spantree portpri 1/1 32 set spantree portvlanpri 1/1 0 set spantree portfast 1/1 disable set spantree portcost 1/2 10 set spantree portpri 1/2 32 set spantree portvlanpri 1/2 0 set spantree portfast 1/2 disable set spantree portcost 2/1 10 set spantree portpri 2/1 32 set spantree portvlanpri 2/1 0 set spantree portfast 2/1 disable set spantree portcost 2/2 10 set spantree portpri 2/2 32 set spantree portvlanpri 2/2 0 set spantree portfast 2/2 disable set spantree portcost 2/3 10 set spantree portpri 2/3 32 set spantree portvlanpri 2/3 0 set spantree portfast 2/3 disable set spantree portcost 2/4 10 set spantree portpri 2/4 32 set spantree portvlanpri 2/4 0 set spantree portfast 2/4 disable set spantree portcost 2/5 10 set spantree portpri 2/5 32 set spantree portvlanpri 2/5 0 set spantree portfast 2/5 disable set spantree portcost 2/6 10 set spantree portpri 2/6 32 set spantree portvlanpri 2/6 0 set spantree portfast 2/6 disable set spantree portcost 2/7 10 set spantree portpri 2/7 32 set spantree portvlanpri 2/7 0 set spantree portfast 2/7 disable set spantree portcost 2/8 10 set spantree portpri 2/8 32 set spantree portvlanpri 2/8 0 set spantree portfast 2/8 disable set spantree portcost 2/9 10 set spantree portpri 2/9 32 set spantree portvlanpri 2/9 0 set spantree portfast 2/9 disable set spantree portcost 2/10 10 set spantree portpri 2/10 32 set spantree portvlanpri 2/10 0 set spantree portfast 2/10 disable set spantree portcost 2/11 10 set spantree portpri 2/11 32 set spantree portvlanpri 2/11 0 set spantree portfast 2/11 disable set spantree portcost 2/12 10 set spantree portpri 2/12 32 set spantree portvlanpri 2/12 0 set spantree portfast 2/12 disable ! #module 1 set module name 1 set port enable 1/1-2 set port level 1/1-2 normal set port duplex 1/1-2 half set port trap 1/1-2 disable set port name 1/1-2 ! #module 2 set module name 2 set module enable 2 set port enable 2/1-12 set port level 2/1-12 normal set port duplex 2/1-12 half set port trap 2/1-12 disable set port name 2/1-12 ! #switch port analyzer set span 1 1/1 both set span disable end Console>> (enable) The following example shows how to upload the system5.cfg file to the mercury host using the write hostfile command as a shorthand method: Console> (enable) write mercury system5.cfg Upload configuration to system5.cfg on mercury (y/n) [y]? y / Done. Finished Network Upload. (9003 bytes) Console> (enable) Related Command
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|