![]() |
Catalyst 1200 Installation and Configuration Guide
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Command Reference
![]() |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Table of ContentsCommand ReferenceCommand Line Processing
History Substitution Buffer Connecting to Catalyst Administration Top-Level Commands Displaying Information about Commands
clear Commands clear alias
configure Commandclear arp clear cam clear config clear counters clear filter clear help clear ip clear log clear multicast clear snmp help clear snmp trap clear trunk copy Command disable disconnect Command download Command enable Command help Command history Command ping Command quit Command reset Command set Commands set alias
show Commandsset arp set bridge help set bridge ipx set bridge vlan set cam set cdp disable set cdp enable set cdp help set cdp interval set enablepass set fddi alarm set fddi cam set fddi cutoff set fddi help set fddi tlmin set fddi tnotify set fddi treq set fddi userdata set filter set help set interface set ip alias set ip forwarding set ip fragmentation set ip help set ip helper set ip redirect set ip rip set ip route set ip unreachable set ip vlan set length set multicast agingtime set multicast disable set multicast enable set multicast group set multicast help set multicast router set password set port disable set port enable set port help set port name 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 portpri 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 show alias
slip Commandshow arp show bridge show cam show cdp show filter show help show interface show ip show log show mac show macdbg show macreg show macstatus show mbuf show multicast show netstat show port show portreg show snmp show span show spantree show system show test show time show trunk show users show version test Command upload Command wait Command write Command Command ReferenceThis appendix discusses all aspects of the command set for the Catalyst 1200 series Switch. A list of top-level commands is provided in Table C-1. Command Line ProcessingThe user interface for the admin. port on the switch is a basic command line interpreter similar to that of the UNIX C shell. Command-line editing is provided, including history substitution and aliasing. If you make a mistake while entering a command, use the Delete or Backspace key to erase the mistake and then reenter the command. History Substitution BufferCommands entered during a terminal session are stored in a history substitution buffer. Commands in this buffer can be repeated or edited in a style similar to the UNIX C shell. The buffer stores the last eight commands entered during a terminal session. (See the section "history Command," later in this appendix.) To repeat a recent command, do the following:
To modify and repeat the most recent command, do the following:
To add a string to the end of a previous command and repeat it, do the following:
Connecting to Catalyst AdministrationThere are two ways to connect to the admin. interface: the admin. port (EIA/TIA-232) or Telnet. The admin. port allows fixed baud rates. All Telnet sessions are automatically disconnected after remaining idle for 20 minutes. When connecting, "cisco Systems Console" is displayed. Connection via EIA/TIA-232A connection via EIA/TIA-232 appears as follows:
Cisco Systems Console
Enter password:
Sorry. Try again.
Enter password:
Console>
Console>
Console>
Connection via TelnetTo use Telnet, you must have set the IP address for the switch. Up to 12 simultaneous Telnet sessions are possible. To access the switch with Telnet, perform the following steps: Step 1 On the remote host, enter the following command, where hostname is the host name or IP address of the switch: %
!!!Step 2 Enter the admin. interface password. Note The password default is Return unless you have set a password using the set password command described later in this appendix. Step 3 When you are finished, enter quit to exit the Telnet session. Following is sample output of a Telnet session: nnnn!aaaaaa!?aaaSorry. Try again. E aaa^aaa^bbbaaaTop-Level CommandsThere are two categories of commands: privileged and normal. (See Table C-1.)
Table C-1: Top-Level Commands
Displaying Information about CommandsUse the ? command to display usage and syntax information about a specific command or to list groups of commands. In normal mode, use the ? command to display a list of top-level commands, as follows:
Console>
Note The overall function of the ? command is the same as the help command. In privileged mode, use the ? command to display a list of commands, as follows: Console> Note In general, you can use the ? command appended to any command associated with a group of commands: alias, set, show, and so forth. Or you can append it to any specific command for a list of usage and syntax information. The overall function of the ? command is the same as the help command. For an example of how the ? command can be used to display usage and syntax information about a specific command, refer to the clear alias command description. clear CommandsTable C-2 lists the clear commands. Table C-2: clear Commands
clear aliasUse the clear alias command to clear shorthand versions of commands. Following is a sample display: Console> (enable) See also set alias and show alias. clear arpUse the clear arp command to clear ARP tables. To delete an ARP entry, use the command clear arp ip_address, where ip_address is the address in the ARP table you want to delete. Following is a sample display:
Console> (enable)
See also set arp and show arp. clear camUse the clear cam command to clear CAM table entries. Following is a sample display:
Console> (enable) clear cam
Usage: clear cam <dynamic|static|permanent|all> [vlan]
clear cam <mac_addr> [vlan]
(vlan = 1..1000,
mac_addr should be of the form aa-bb-cc-dd-ee-ff)
Console> (enable)
See also set cam and show cam. clear configUse the clear config command to clear the configuration information stored in nonvolatile random access memory (NVRAM). The clear config command also resets the system. Following is a sample display: Console> (enable) clear countersUse the clear counters command to clear MAC and port counters. Following is a sample display:
Console> (enable)
clear filterUse the clear filter command to clear custom filtering parameters on a port that were previously set using the set filter command. Following is a sample display:
Console> (enable)
See also set filter and show filter. clear helpUse the clear help command to display the following information in privileged mode: Console> (enable) clear help Clear 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 filter Clear custom filter,use 'clear filter help' for more info clear help Show this message clear ip Clear IP, use 'clear ip help' for more info clear log Clear the system error log clear mac Clear mac, use 'clear mac help' for more info clear multicast Clear multicast, use 'clear multicast help' for more info clear snmp Clear SNMP, use 'clear snmp help' for more info clear trunk Clear trunk port Console> (enable)See also set help and show help. clear ipUse the clear ip command to clear IP information. Use the clear ip alias command to clear aliases of IP addresses. Use the clear ip route command to clear the IP route table entries. Use the clear ip helper to clear the helper IP address from a particular VLAN. It is only available in privileged mode. Following is a sample display:
Console> (enable) clear ip help
Commands:
--------------------------------------------------------------------
clear ip alias Clear aliases of IP Addresses
clear ip help Show this message
clear ip helper Clear helper IP Address
clear ip route Clear IP route table entries
Console> (enable) clear ip alias
Usage: clear ip alias all
clear ip alias <name>
Console> (enable) clear ip alias mars
IP alias deleted.
Console> (enable) clear ip alias all
All IP aliases deleted.
Console> (enable) clear ip helper
Usage: clear ip helper <vlan> [helper_vlans]
(vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable)
Console> (enable) clear ip helper 865 198.133.219.40
IP helper address cleared.
Console> (enable) clear ip route
Usage: clear ip route all
clear ip route <destination> <gateway>
(destination and gateway are ip alias or IP address in
dot notation: a.b.c.d)
Console> (enable) clear ip route default elvis
Route deleted.
Console> (enable)
See also set ip alias and show ip. clear logUse the clear log command to clear the system error log. Following is a sample display:
Console> (enable)
See also show log. clear multicastUse the clear multicast command to clear an IP multicast group or all IP multicast groups. Following is a sample display: Console> (enable) See also set multicast group and show multicast. clear snmp helpUse the clear snmp trap help command to display the clear snmp commands. Following is a sample display: Console> (enable) clear snmp help Clear snmp commands ------------------------------------------------------------------------clear snmp help Show this message clear snmp trap Clear SNMP trap receiver address Console> (enable) clear snmp trapUse the clear snmp command to clear an entry from the SNMP trap receiver table. Following is a sample display:
Console> (enable) clear snmp trap
Usage: clear snmp trap all
clear snmp trap <rcvr_address>
(rcvr_address is ip alias or IP address in dot notation:a.b.c.d)
Console> (enable) clear snmp trap 192.122.173.82
SNMP trap receiver deleted.
Console> (enable)
See also set snmp help and show snmp. clear trunkUse the clear trunk command to clear partial information in the trunk port table or convert trunk link back to bridge ports. This command disables transitencapsulation if the mode is on. If VLANs are specified, only those VLANs are cleared from the trunk port table. When all VLANs in the trunk port are cleared, the port automatically converts back to a regular bridge port. Following is a sample display:
Console> (enable) clear trunk help
Usage: clear trunk [vlans]
(An example of vlans is 1,3,865-869)
Console> (enable) clear trunk
Port 1 no longer a trunk port
See also set trunk and show trunk. configure CommandUse the configure network command to download a configuration batch file (designated by filename) from a TFTP server (designated by the server) and then execute the commands in the file. Following is a sample display of the configure command: Console> (enable) If the server is not specified, the default is the first entry in the SNMP trap receiver table. The configure terminal command prompts you to use the set commands to configure the system. Following is a sample display:
Console> (enable)
Configuration files are simply multiple Catalyst commands collected in a file. Each Catalyst command is entered on one line. The file should be delimited by begin and end statements and may have comments (identified by a pound sign [#]) as the first character on the line; however, comments must be on lines by themselves. Some commands prompt you for input or confirmation. With input commands, responses should follow the command on the next line(s) to ensure proper operation. Note Some confirmations prompted for in a Telnet session are not in EIA/TIA-232 connection sessions. Configuration files should consist only of ASCII text, and should not be larger than 4,608 bytes (4.5 KB). Following is a sample configuration: show time set ip alias conc7 198.103.219.207 set ip alias montreux 198.103.219.40 set ip alias cres 192.102.174.42 set prompt catalyst5> set password #empty string old password pingpong pingpong end # Following is a sample admin. session:
Usage: configure network
configure terminal
configure <host> <file>
Console> (enable) configure 192.122.174.42 catalyst5.cfg
Configure using catalyst5.cfg from 192.122.174.42 (y/n) [n]? y
>> show time
Wed Mar 30 1994, 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 catalyst5>
>> set password
Enter old password:
Enter new password: pingpong
Retype new password: pingpong
Password changed.
catalyst5> (enable)
When you enter the configure network command, you are prompted for the host server, then for the configuration filename. copy CommandUse the copy command to copy data movement processor (DMP) or network management processor (NMP) image files between the network host and Flash memory using the TFTP protocol. Following is a sample display: Console> (enable) disableUse the disable command to turn off enable mode, as follows:
Console> (enable)
See also the "enable Command " section. disconnect CommandUse the disconnect command to temporarily disconnect the FDDI port from the FDDI ring temporarily without disconnecting the FDDI cables. The default is connect. Following is a sample display: Console> (enable) See also "copy Command" section. download CommandUse the download command to download code to the network management processor (the default) or the data movement processor. Following is a sample display: Console> (enable)
enable CommandUse the enable command to turn on privileged mode. Certain commands are available, and certain displays have extra information in privileged mode. Note The designation (enable) indicates both privileged commands and that the system is in privileged mode. Following is a sample display: Console> enable Enter password: Console> (enable) See also the "clear Commands" section. help CommandUse the help command to display the following information in normal mode: Console> Use the help command to display the following information in privileged mode:
Console> (enable)
history CommandUse the history command to display the contents of the history substitution buffer, as follows:
Console> (enable)
ping CommandUse the ping command to send Internet Control Message Protocol (ICMP) echo packets to another node on the network. Following is a sample display: Console> Following are options of the ping command:
Note Enter Ctrl-C to stop pinging.
Following are sample results of the ping command:
Note If you assigned an IP alias to a host address (see "set ip alias" later in this appendix), you can specify this alias in the ping command instead of in the IP address. quit CommandUse the quit command to quit the current admin. interface session, as follows:
Console>
reset CommandUse the reset command to reset the system. This command is available only in privileged mode.Following is a sample display: Console> (enable) set CommandsTable C-3 lists the set commands. Table C-3: set Commands
1 P = privileged. 2 CDP = Cisco Discovery Protocol 3 LER = Link Error Rate 4 RIP = Routing Information Protocol set aliasUse the set alias command to add shorthand versions of command invocations. The maximum number of aliases that can be defined is 20. The aliases listed in Table C-4 are predefined. Following is a sample display: Console> (enable) set alias help Usage: set alias <name> <command> [parameter] [parameter] ... Console> (enable) set alias set sysloc set system location Failed to add command alias. set is a reserved word. Console> (enable) set alias sysloc set system location Command alias added. Console> (enable) sysloc san francisco System location set. Table C-4: alias Commands
Following is a sample display:
Console> (enable)
See also clear alias and show alias. set arpUse the set arp command to add ARP table entries. To add an ARP entry, use the command set arp ip_address hardware_address, where ip_address is the IP address to add, and hardware_address is the hardware address associated with the IP address. Following is a sample display:
Console> (enable)
See also clear arp and show arp. set bridge helpUse the set bridge help command to show the following display in privileged mode: Console> (enable) set bridge help Set bridge commands: ---------------------------------------------------------------------- set bridge help Show this message set bridge ipx Set default IPX translation set bridge vlan Set bridge Virtual LAN set bridge ipxAs a normal function, the Catalyst 1200 series switch can forward Internetwork Packet Exchange (IPX) packets received on FDDI ports to Ethernet ports, or it can forward IPX packets received on Ethernet ports to FDDI ports. To do this, the switch must be configured for specific IPX protocol translations. By default, the following IPX protocol translations are configured:
You can customize these settings if your environment requires it. Following is a sample display:
Console> (enable) set bridge help
Set bridge commands:
----------------------------------------------------------------------
set bridge help Show this message
set bridge ipx Set default IPX translation
set bridge vlan Set bridge Virtual LAN
Console> (enable) set bridge ipx
Usage: set bridge ipx snaptoether <8023|SNAP|EII|8023RAW>
set bridge ipx 8022toether <8023|SNAP|EII|8023RAW>
set bridge ipx 8023rawtofddi <8022|SNAP|FDDIRAW>
Console> (enable) set bridge ipx snaptoether 8023RAW
snaptoether translation set
Console> (enable)
set bridge vlanUse the set bridge vlan command to group ports into a bridge VLAN. This command is only available in privileged mode. The default setting is all ports (FDDI port 1 and Ethernet ports 3 through 10) in bridge VLAN 1. Following is a sample display:
Console> (enable) set bridge vlan
Usage: set bridge vlan <vlan> <ports>
(vlan = 1..1000,
an example of ports is 1,3-5,9)
Console> (enable) set bridge vlan 10 1,3,9
Bridge-Vlan Ports
----------- --------------------
10 1,3,9
Console> (enable)
set camUse the set cam command to add CAM table entries in the switch. CAM allows you to assign addresses to particular ports in the switch. Following is a sample display: Console> (enable) set cam Usage: set cam agingtime <vlan> <agingtime> set cam dynamic [fddi] <mac_addr> <destport> [vlan] set cam <static|permanent> [fddi] <mac_addr> <srcports> <destports> (agingtime = 0..1000000 seconds, 0 to disable agingtime, mac_addr should be of the form aa-bb-cc-dd-ee-ff) Console> (enable) set cam agingtime 1 200 Vlan 1 CAM aging time set to 200 seconds. Console> (enable) set cam dynamic 00-11-22-22-11-00 7 1 CAM entry added. Console> (enable) set cam static 00-11-22-33-44-55 3 6 1 CAM entry added. See also clear cam and show cam. set cdp disableUse the set cdp disable command to disable the Cisco MTU Discovery protocol.See the section "Maximum Transmission Unit (MTU) Discovery" in the chapter "Feature Configuration" for a detailed explanation. Following is a sample display:
Console> (enable) set cdp disable
Usage: set cdp disable all
set cdp disable <ports...>
(An example of ports is 1,3-5,10)
Console> (enable) set cdp disable all
CDP disabled for all ports.
See also show cdp. set cdp enableUse the set cdp enable command to set the Cisco MTU Discovery protocol variables. See the section "Maximum Transmission Unit (MTU) Discovery" in the chapter "Feature Configuration" for a detailed explanation. The default CDP variables are message interval every 30 seconds, enabled. Following is a sample display:
Console> (enable) set cdp enable
Usage: set cdp enable all
set cdp enable <ports...>
(An example of ports is 1,3-5,10)
Console> (enable) set cdp enable all
CDP enabled for all ports.
Console> (enable)
See also show cdp. set cdp helpUse the set cdp help command to show the following message in privileged mode. Following is a sample display follows: Console> (enable) set cdp help Set cdp commands: ---------------------------------------------------------------------- set cdp disable Disable CDP messages on ports set cdp enable Enable CDP messages on ports set cdp help Show this message set cdp interval Set CDP message interval Console> (enable) set cdp intervalUse the set cdp interval command to set the number of seconds between CDP messages. The interval can be specified by port. Following is a sample display:
Console> (enable) set cdp interval
Usage: set cdp interval all <interval>
set cdp interval <ports> <interval>
(interval = 5..900 seconds,
an example of ports is 1,3-5,10)
Console> (enable) set cdp interval 1 300
CDP message interval set to 300 seconds for ports 1.
Console> (enable)
set enablepassUse the set enablepass command to change the privileged level password on the user interface. Following is a sample display:
Console> (enable)
Note You can enter a zero-length password by pressing Return at the enter new password prompt. set fddi alarmUse the set fddi alarm command to set the LER-Alarm value. This value defines the link error rate (LER) at which a link connection exceeds a preset alarm threshold and is used in the link error rate threshold test. The default setting of 8 (10¯8) link errors per second is sufficient for most networks. Following is a sample display:
Console> (enable) set fddi alarm
Usage: set fddi alarm <port_num> <value>
(port_num = 1..2, value = 4..15)
Console> (enable) set fddi alarm 1 10
Port Ler-Alarm set.
Console> (enable)
set fddi camUse the set fddi cam command to set the hardware CAM for filtering or forwarding. The default is enabled. Following is a sample display: Console> (enable) set fddi cutoffUse the set fddi cutoff command to set the LER-Cutoff value. This value determines the link error rate (LER) at which a connection will be flagged as faulty. This value is used in the link error rate threshold test. The default setting of 7 (10¯ 7) is sufficient for most networks. Following is a sample display:
Console> (enable) set fddi alarm
Usage: set fddi alarm <port_num> <value>
(port_num = 1..2, value = 4..15)
Console> (enable) set fddi alarm 1 10
Port Ler-Alarm set.
Console> (enable) set fddi cutoff
Usage: set fddi cutoff <port_num> <value>
(port_num = 1..2, value = 4..15)
Console> (enable) set fddi cutoff 1 10
Port Ler-Cutoff set.
Console> (enable)
set fddi helpUse the set fddi help command to show the following message in privileged mode. Following is a sample display follows: Console> (enable) set fddi help Set fddi commands: ---------------------------------------------------------------------- set fddi alarm Set port ler-alarm set fddi cam Set FDDI CAM mode set fddi cutoff Set port ler-cutoff set fddi help Show this message set fddi tlmin Set port tl_min set fddi tnotify Set system SMT T-Notify set fddi treq Set MAC T-Request set fddi userdata Set system SMT User Data Console> (enable) set fddi tlminUse the set fddi tlmin command to change the TL_MIN timer value for an FDDI port. The TL_MIN parameter sets the minimum time to transmit a Physical Layer Protocol (PHY) line state before advancing to the next physical connection management (PCM) state. This setting affects the station and switch interoperability and might hinder the implementation of FDDI repeaters. By default, the TL_MIN parameter is set to 40 microseconds. Following is a sample display: Console> (enable) set fddi tlmin Usage: set fddi tlmin <port_num> <time> (time = 40..1340006 usec) Console> (enable) set fddi tlmin 1 40 Port 1 tl_min set to 40 usecs. CAT2> (enable) Console> (enable) set fddi tnotifyUse the set fddi tnotify command to change the TNotify timer value for an FDDI ring. The TNotify parameter sets the interval (in seconds) between neighbor notification frames. These frames are sent out to notify neighboring devices of FDDI module MAC addresses. The default setting (30 seconds) is usually sufficient. Following is a sample display: Console> (enable) set fddi tnotify Usage: set fddi tnotify <time> (time = 2..30 seconds) Console> (enable) set fddi tnotify 16 System SMT T-Notify set. Console> (enable) set fddi treqUse the set fddi treq command to change the TReq value for an FDDI ring.The TRequest parameter specifies the FDDI switch value for the Token Ring Timer (TRT) for negotiating the TRT with other stations. The TRT is used to control ring scheduling during normal operation and to detect and recover from serious ring error situations. When the TRT value expires, the station uses the TRequest value to negotiate with other stations for the lowest value. The default setting of 165,000 microseconds is sufficient for most networks. Following is a sample display: Console> (enable) set fddi treq Usage: set fddi treq <time> (time = 2502..16500 usec) Console> (enable) set fddi treq 165000 MAC T-Request set. Console> (enable) set fddi userdataUse the set fddi userdata command to configure the user data string in the SMT MIB. It is only available in privileged mode. The default value is WorkGroup Stack. The user data string is useful for identifying the FDDI module or Catalyst 1200 series switch when using a management tool to configure and maintain an internetwork or when accessing the FDDI module remotely. The user data string can be a term identifying the function of the network node or the users connected to the network node. Following is a sample display: Console> (enable) set fddi userdata Usage: set fddi userdata [userdata_string] Console> (enable) set fddi userdata Fred's Switch System SMT User Data set. Console> (enable) set filterUse the set filter command to selectively receive frames based on criteria other than source address, for example, frame contents, vendor code, or protocol type. Custom filtering operates after the frame is received (after a CAM reject/receive decision). It does not override the forwarding information in the CAM. See the section "Access Lists With Broadcast Suppression" in the chapter "Feature Configuration" for detailed configuration examples. Note The set filter command is used to filter packets received at the port. It also does not filter packets transmitted from the port. The filtering types are as follows:
The set filter command sets the custom port filter variables used to allow access list filtering. Following is a sample display:
Console> (enable)
The variables are as follows:
Following is a sample display: Console> (enable) See also clear filter and show filter. set helpUse the set help command to display all set commands and brief descriptions of their usage. Following is a sample display: Console> (enable) set help Commands: ---------------------------------------------------------------------- set alias Set alias for command set arp Set ARP table entry set bridge Set bridge, use 'set bridge help' for more info set cam Set CAM table entry set cdp Set cdp, use 'set cdp help' for more info set enablepass Set the privilege password set fddi Set FDDI, use 'set fddi help' for more info set filter Set custom filter, use 'set filter help' for more info set help Show this message set interface Set network interface configuration set ip Set IP, use 'set ip help' for more info set length Set number of lines in display, 0 to disable 'more' set mac Set MAC, use 'set mac help' for more info set multicast Set multicast, use 'set multicast help' for more info set password Set the console password set port Set port, use 'set port help' for more info set prompt Set prompt set snmp set SNMP, use 'set snmp help' for more info set span Set switch port analyzer set spantree Set spantree, use 'set spantree help' for more info set system Set system, use 'set system help' for more info set time Set time set trunk Set FDDI port to be trunk port Console> (enable) set interfaceUse the set interface command to configure network interfaces by assigning network addresses, subnet masks, broadcast addresses, and destination addresses for FDDI, Ethernet, and SLIP interfaces. You can also use the set interface command to bring the interface up or down. Following are the interface types:
Note After SLIP is enabled on the admin. port, an EIA/TIA-232 terminal cannot access the Catalyst Switch through this port.
Note Multiple route groups require different IP addresses. The interface defaults are:
Following is a sample display: Console> (enable) set interface Usage: set interface <if_name|if_number> <ip_address> <net_mask> [broadcast_address] set interface <if_name> <slip_address> <dest_address> set interface <if_name|if_number> <up|down> Console> (enable) set interface 4 192.200.0.44 255.255.255.0 192.200.0.255 Interface sc0 IP address, netmask and broadcast address set. Console> (enable) set interface sl0 192.200.10.45 192.200.10.103 Interface sl0 IP address and netmask set Console> (enable) set interface 5 up Interface sc0 administratively up. Console> (enable) Changing the interface port setting to down has the following effects:
See also show interface. set ip aliasUse the set ip alias command to add aliases for IP addresses. An IP alias is a name you can assign to represent an IP address. You can define up to 50 aliases. To set an IP alias, use set ip alias name ip_address, where name is the alias and ip_address is the IP address for which you are defining an alias. Following is a sample display: Console> (enable) See also clear ip and show ip. set ip forwardingUse the set ip forwarding command to enable or disable IP forwarding. The default is enabled. Following is a sample display: Console> (enable) set ip fragmentationUse the set ip fragmentation command to enable or disable IP fragmentation on the switch. Following is a sample display: Console> (enable) set ip helpUse the set ip help command to show the help information in privileged mode. Following is a sample display: Console> (enable) set ip help Commands: --------------------------------------------------------------------- set ip alias Set alias for IP Address set ip forwarding Set router IP forwarding enable/disable set ip fragmentation Set bridge IP fragmentation enable/disable set ip help Show this message set ip helper set IP helper address set ip redirect Set ICMP redirect message enable/disable set ip rip Set router RIP enable/disable set ip route Set router IP route table entry set ip unreachable Set ICMP unreachable message enable/disable set ip vlan Set IP Virtual LAN See also clear ip. set ip helperUse the set ip helper command to set the helper IP address for a particular VLAN. Following is a sample display:
Console> (enable) set ip helper
Usage: set ip helper <vlan> <helper_vlans>
(vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable) set ip helper 1 2
IP Helper VLANs set for VLAN 1
Console> (enable) set ip helper 1 8
IP Helper VLANs set for VLAN 1
Console> (enable)
The values for this command are as follows:
set ip redirectUse the set ip redirect command to enable or disable ICMP redirect messages for the entire Catalyst 1200 series switch. The default is ICMP redirect messages enabled. Following is a sample display: Console> (enable) set ip redirect Usage: set ip redirect <enable|disable> Console> (enable) set ip redirect enable ICMP redirect messages enabled. Console> (enable) set ip ripUse the set ip rip command to enable or disable the IP RIP protocol for the entire Catalyst 1200 series switch. The default is RIP enabled. Following is a sample display: Console> (enable) set ip rip Usage: set ip rip <enable|disable> Console> (enable) set ip rip enable Router RIP enabled. Console> (enable) set ip routeUse the set ip route command to add route table entries. The default metric value is 1. Following is a sample display:
Console> (enable) set ip route
Usage: set ip route <destination> <gateway> [metric]
(destination and gateway are ip alias or IP address in
dot notation: a.b.c.d)
Console> (enable) set ip route 0.0.0.0 192.122.173.42 1
Route added.
Console> (enable)
set ip unreachableUse the set ip unreachable command to enable or disable the ICMP unreachable message for the entire Catalyst 1200 series switch. The default is ICMP unreachable messages enabled. Following is a sample display: Console> (enable) set ip unreachable Usage: set ip unreachable <enable|disable> Console> (enable) set ip unreachable enable ICMP unreachable messages enabled Console> (enable) set ip vlanUse the set ip vlan command to group ports for IP routing protocols. All IP traffic is bridged within a VLAN and routed between VLANs. The VLAN ranges from 1 to 1000. The default is to have all ports in IP VLAN 1 for IP traffic. Following is a sample display: Console> (enable) set ip vlan Usage: set ip vlan <vlan> [ports] [<ip_address> <net_mask> [broadcast]] (vlan = 1..1000, an example of ports is 1,3-5,9) Console> (enable) set ip vlan 1 3,7 IP-Vlan Ports IP-Address Netmask Broadcast Helper-VLANs ---- ------------ --------------- --------------- --------------- ------------ 1 1,3-5,7 192.122.174.102 255.255.255.0 192.122.174.255 2 Console> (enable) set ip vlan 1 10 198.219.135.123 255.255.255.0 1,3-5,7,10: flags=863<UP,BROADCAST,RUNNING> inet 198.219.135.123 netmask 255.255.255.0 broadcast 198.219.135.255 IP-Vlan Ports IP-Address Netmask Broadcast Helper-VLANs ---- ------------ --------------- --------------- --------------- ------------ 1 1,3-5,7,10 198.219.135.123 255.255.255.0 198.219.135.255 2 Console> (enable) set lengthUse the set length command to set the maximum number of lines you want displayed on the terminal screen so that information does not scroll off the screen. A partial display ends with the following prompt: --More-- At the prompt, press Ctrl-C to terminate the display, press the space bar to display the next full screen, or press the Return key to display the next line. Setting the value to 0 disables this feature. The default value is 100. Following is a sample display: Console> (enable) set multicast agingtimeUse the set multicast agingtime command to set the IGMP aging time. The default IGMP aging is 180 seconds. Setting the value to 0 disables aging. Following is a sample display:
Console> (enable) set multicast agingtime
Usage: set multicast agingtime <agingtime>
(agingtime = 0..1000000 seconds, 0 to disable aging)
Console> (enable) set multicast agingtime 2200
IGMP aging time set to 2200 seconds.
Console>
set multicast disableUse the set multicast disable command to disable IGMP conditional filtering. The default is IGMP conditional filtering disabled. Following is a sample display: Console> (enable) set multicast disable Multicast IGMP conditional filtering disabled. Console> (enable) set multicast enableUse the set multicast enable command to enable IGMP conditional filtering. Following is a sample display: Console> (enable) set multicast enable Multicast IGMP conditional filtering enabled. Console> (enable) set multicast groupUse the set multicast group command to configure multicast groups. The default is no multicast groups configured. Following is a sample display:
Console> (enable) set multicast group
Usage: set multicast group <ip_address> <ports>
(An example of ports is 1,3-5,9,
ip_address is ip alias or dotted decimal, e.g. a.b.c.d)
Console> (enable) set multicast group 224.2.0.1 1,3,5,6
Multicast group 224.2.0.1 set.
Console> (enable)
set multicast helpUse the set multicast help command to show the following display in privileged mode: Console> (enable) set multicast help Commands: ----------------------------------------------------------------------- set multicast agingtime Set multicast IGMP agingtime set multicast disable Set multicast IGMP disable set multicast enable Set multicast IGMP enable set multicast group Set multicast group set multicast help Show this message set multicast router Set multicast router on port Console> (enable) See also clear multicast and show multicast. set multicast routerUse the set multicast route command to configure which ports have IP multicast routers. The default value for all ports is dynamic. Following is a sample display:
Console> (enable) set multicast router
Usage: set multicast router <port_num> <router|norouter|dynamic>
(Port num = 1..10)
Console> (enable) set multicast router 9 dynamic.
Multicast router information set.
Console> (enable)
set passwordUse the set password command to change the password on the admin. interface. The default is Return, no password configured. You must be in privileged mode to modify the password. A sample display follows:
Console> (enable)
Note The password you enter does not echo on the screen. set port disableUse the set port disable command to disable a port. The default is enabled. Following is a sample display of a console port session: Console> (enable) set port disable Usage: set port disable <port_num> Console> (enable) set port disable 10 Port 10 disabled. Console> (enable) Following is a sample display of a Telnet session: Console> (enable) set port disable 10 This command may disconnect your telnet session. Do you want to continue (y/n) [n]? y Port 10 disabled. Console> (enable) set port disable 2 This command may disconnect your telnet session. Do you want to continue (y/n) [n]? y <telnet session hangs> set port enableUse the set port enable command to enable or disable a port. The default is enabled. Following is a sample display: Console> (enable) set port enable Usage: set port enable <port_num> Console> (enable) set port enable 3 Port 3 enabled. Console> (enable) set port helpUse the set port help command to display the following: 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 name Set port name Console> (enable) set port nameUse the set port name command to configure a name for a port. The default configuration has no port name configured for any port. If the name string is not specified, the port name is cleared. Following is a sample display: Console> (enable) set port name Usage: set port name <port_num> [name_string] Console> (enable) set port name 1 Fred Grover Port 1 name set. Console> (enable) set promptUse the set prompt command to change the administration interface prompt. Following is a sample display: Console> (enable) set snmp communityUse the set snmp community command to set one of the four SNMP community strings. The default is a read-only community of "public," a read-write community of "private," and a read-write-all community of "secret." Following is a sample display:
Console> (enable) set snmp community
Usage: set snmp community <access_type> [community_string]
(access_type = read-only|read-write|read-write-all)
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)
set snmp helpUse the set snmp help command to display the following: Console> (enable) set snmp help Commands: ----------------------------------------------------------------------- set snmp community Set SNMP community string set snmp help Show this message set snmp rmon Set SNMP RMON enable/disable set snmp trap Set SNMP trap receiver address Console> (enable) See also clear snmp and show snmp. set snmp rmonUse the set snmp rmon command to enable or disable SNMP RMON support. The default is RMON enabled and RMON default_groups disabled. If the default_groups are enabled, the system starts collecting the statistics. Following is a sample display: Console> (enable) set snmp rmon Usage: set snmp rmon [default_groups] <enable|disable> Console> (enable) set snmp rmon enable SNMP RMON support enabled. Console> (enable) set snmp rmon disable SNMP RMON support disabled. Console> (enable) set snmp rmon default_groups enable This command will restart the system for RMON Default Groups re-configuration. Do you want to continue? (y/n) [n]? n Console> (enable) set snmp trapUse the set snmp trap command to enable, disable, or add an entry in the SNMP trap receiver table. Following is a sample display:
cat2-lnf> (enable) set snmp trap
Usage: set snmp trap <enable|disable> [all|chassis|bridge|auth]
set snmp trap <rcvr_address> <rcvr_community>
Console> (enable) set snmp trap enable auth
SNMP authentication traps enabled.
Console> (enable) set snmp trap 192.122.173.42 public
SNMP trap receiver added.
Console> (enable)
set spanUse the set span command to allow individual port monitoring using SPAN. The variables are as follows:
Following is a sample display: Console> (enable) See also show span. set spantree disableUse the set spantree disable command to disable the spanning tree algorithm for a bridge VLAN. The default configuration has all spanning tree disabled. If the VLAN parameter is not specified, the default is VLAN 1. Following is a sample display:
Console> (enable) set spantree disable help
Usage: set spantree disable [vlans]
(vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable) set spantree disable
VLAN 1 bridge spanning tree disabled.
Console> (enable)
set spantree enableUse the set spantree enable command to enable the spanning tree algorithm for a bridge VLAN. The default configuration has all spanning tree disabled. If the VLAN parameter is not specified, the default is VLAN 1. Following is a sample display:
Console> (enable) set spantree enable ?
Usage: set spantree enable [vlans]
(vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable) set spantree enable 1000
VLAN 1000 bridge spanning tree enabled.
Console> (enable)
set spantree fwddelayBefore a port is allowed to forward packets, it passes through three states: listening, learning, and forwarding. Use the set spantree fwddelay command to set the number of seconds that the bridge waits in each state before forwarding packets on a specific VLAN when a topology change has occurred. The default configuration has bridge forward delay set to 15 seconds for all VLANs. If the VLAN parameter is not specified, the default is VLAN 1. Following is a sample display:
Console> (enable) set spantree fwddelay
Usage: set spantree fwddelay <delay> [vlans]
(delay = 4..30 seconds, vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable) set spantree fwddelay 16 1000
VLAN 1000 bridge forward delay set to 16 seconds.
Console> (enable)
set spantree helloUse the set spantree hello command to set the number of seconds that the switch waits before sending hello bridge protocol data units (BPDUs) for a bridge VLAN. The default configuration has hello time set to 2 seconds. If the VLAN parameter is not specified, the default is VLAN 1. Following is a sample display:
Console> (enable) set spantree hello
Usage: set spantree hello <hellotime> [vlans]
(hellotime = 1..10 seconds, vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable) set spantree hello 2 1000
VLAN 1000 bridge hello time set to 2 seconds.
Console> (enable)
set spantree helpUse the set spantree help command to show the following display: Console> (enable) 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 time set spantree help Show this message set spantree maxage Set spantree max aging time set spantree portcost Set spantree port cost set spantree portpri Set spantree port priority set spantree priority Set spantree priority Console> (enable) set spantree maxageUse the set spantree maxage command to set the number of seconds that the bridge waits to receive a hello frame before it declares itself as root. The default configuration is 20 seconds. If the VLAN parameter is not specified, the default is VLAN 1. Following is a sample display:
Console> (enable) set spantree maxage
Usage: set spantree maxage <agingtime> [vlans]
(agingtime = 6..40 seconds, vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable) set spantree maxage 20 1000
VLAN 1000 bridge max aging time set to 20 seconds.
Console> (enable)
set spantree portcostUse the set spantree portcost command to set the bridge pathcost for a port. The default configuration is fddi port cost = 10, 100Mbps Ethernet port cost = 10, and 10BaseT Ethernet port cost = 100. Following is a sample display:
Console> (enable) set spantree portcost
Usage: set spantree portcost <ports> <cost>
(port = 1..10, cost = 0..65535
an example of ports is 1,3-5,10)
Console> (enable)
Console> (enable) set spantree portcost 1 10
Port 1 bridge pathcost set to 10.
Console> (enable)
set spantree portpriUse the set spantree portpri command to set the bridge priority for a port in Spanning Tree Algorithm. Setting the port priority on a trunk port affects all VLAN ports that are enabled to use the trunk port. The default configuration has all ports with bridge priority set to 128. Following is a sample display:
Console> (enable) set spantree portpri
Usage: set spantree portpri <ports> <value>
(port = 1..10, priority = 0..255
an example of ports is 1,3-5,10)
Console> (enable) set spantree portpri 1 128
Port 1 bridge port priority set to 128.
Console> (enable)
set spantree priorityUse the set spantree priority command to set the bridge priority for a bridge VLAN. The default configuration has priority set to 32,768. If the VLAN parameter is not specified, the default is VLAN 1. Following is a sample display:
Console> (enable) set spantree priority
Usage: set spantree priority <bridge_priority> [vlans]
(bridge_priority = 0..65535, vlan = 1..1000,
an example of vlans is 1,100-105,865)
Console> (enable) set spantree priority 4096
VLAN 1 bridge priority set to 4096.
Console> (enable)
set system baudUse the set system baud command to set the console port baud rate. The default value is 9,600 baud. Following is a sample display:
Console> (enable) set system baud
Usage: set system baud <rate>
(rate = 600|1200|2400|4800|9600|19200|38400)
Console> (enable) set system baud 19200
System console port baud rate set.
Console> (enable)
set system contactUse the set system contact command to set the system contact string. The default configuration has no system contact configured. If no contact_string is specified, the system contact is cleared. Following is a sample display: Console> (enable) set system contact help Usage: set system contact [contact_string] Console> (enable) set system contact Luis x5529 System contact set. Console> (enable) set system helpUse the set system help command to show the following information in privileged mode: 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. The default is no name configured. If no location_string is specified, the system location is cleared. Following is a sample display: Console> (enable) set system location help Usage: set system location [location_string] Console> (enable) set system location Closet 230 4/F System location set. Console> (enable) set system modemUse the set system modem command to enable or disable modem control lines on the console port. The default configuration has modem control lines disabled. Following is a sample display: Console> (enable) set system modem Usage: set system modem <enable|disable> Console> (enable) set system modem enable Modem control lines enabled on console port. Console> (enable) set system modem disable Modem control lines disabled on console port. Console> (enable) set system nameUse the set system name command to configure a name for the system. The default configuration has no system name configured. If no name_string is specified, the system name is cleared. Following is a sample display: Console> (enable) set system name help Usage: set system name [name_string] Console> (enable) set system name Support Group System name set. Console> (enable) set timeUser the set time command to change the time of day in the system clock. Following is a sample display: Console> (enable) See also show time. set trunkUse the set trunk command to configure an FDDI port to be at trunk link. By default, the FDDI port is not a trunk port. Subsequent calls to the set trunk command on a port that is already a trunk link adds, but does not replace, VLANs to the port. If the transit encapsulation mode is selected, all VLANs supported through 802.10 encapsulation are cleared and the trunk port is removed from any IP VLAN or bridge VLAN. The default is FDDI port in translational bridging mode, in other words, the transit encapsulation is disabled. Following is a sample display:
Console> (enable) set trunk
Usage: set trunk <vlans>
set trunk transitencapsulation
(An example of vlans is 1,100-105,865)
Console> (enable) set trunk 1-5,102
Trunk Port 1 created.
Port VLANs allowed
1 1
Console> (enable)
Console> (enable) set trunk 1000
Trunk Port 1 modified.
Port VLANs allowed
1 1-10,102,1000
Console> (enable) set trunk transitencapsulation
All VLANs supported via 802.10 encapsulation will be cleared.
The trunk port is removed from any IP Vlan/bridge Vlan.
Do you wish to continue [yes/no] [n]? y
Transit encapsulation mode enabled.
Console> (enable)
See also clear trunk and show trunk. show CommandsTable C-5 lists the show commands. Table C-5: show Commands
1 N = normal, P = privileged. 2 CDP = Cisco Discovery Protocol 3 mbuf = memory fuffer, malloc = memory allocation. show aliasUse the show alias command to display the shorthand versions of admin. interface commands. The first five aliases are predefined. Following is a sample display:
Console>
See also clear alias and set alias. show arpUse the show arp command to display the ARP table entries that have been defined using the set arp command. Following is a sample display: Console> (enable) show arp Aging time = 1200 sec default at 00:40:0b:a0:99:89 on port 1 192.27.2.108 at 00:a0:24:01:53:e4 on port 1 192.27.2.110 at 08:00:20:72:a9:ef on port 1 192.27.2.232 at 08:00:20:1a:72:bd on port 1 192.27.2.107 at 08:00:20:22:ce:84 on port 1 192.27.2.106 at 00:40:0b:0c:60:3f on port 1 192.27.2.100 at 08:00:20:72:4c:83 on port 1 10.0.0.3 at 00:40:0b:50:07:ff on port 1 192.27.2.167 at 00:40:0b:50:93:ff on port 1 192.27.2.103 at 00:00:00:00:02:31 on port 1 192.27.2.231 at 00:00:0c:ff:d8:1d on port 1 Console> (enable) See also clear arp and set arp. show bridgeUse the show bridge command to display bridge information that was set using the set bridge command. The show bridge optimization command displays bridge optimization values. Following is a sample display:
Console> (enable)
Following is a description of the display fields of the show bridge command:
show camUse the show cam all command to display the CAM table. Following is a sample display:
Console> (enable) show cam all 1
FDDI cam filtering enabled
VLAN 1: Aging time = 300 sec
VLAN 2: Aging time = 300 sec
VLAN Destination Source Destination Protocol
Num. MAC Address Port Port Type
---- ----------------- ------ --------------- ---------------
0 00:40:0b:a0:a6:f0 any ---> 1,3-5,7,10 ROUTE GROUP
0 00:40:0b:a0:a6:f1 any ---> 6,8,9 ROUTE GROUP
0 00:40:0b:a0:a6:f9
1 ---> 0 STATIC
3 ---> 0 STATIC
4 ---> 0 STATIC
5 ---> 0 STATIC
6 ---> 0 STATIC
7 ---> 0 STATIC
8 ---> 0 STATIC
9 ---> 0 STATIC
10 ---> 0 STATIC
0 01:00:0c:cc:cc:cc
1 ---> 0 CDP
3 ---> 0 CDP
4 ---> 0 CDP
5 ---> 0 CDP
6 ---> 0 CDP
7 ---> 0 CDP
8 ---> 0 CDP
9 ---> 0 CDP
10 ---> 0 CDP
1 01:80:c2:00:00:00
1 ---> 0 STATIC
3 ---> 0 STATIC
4 ---> 0 STATIC
5 ---> 0 STATIC
6 ---> 0 STATIC
7 ---> 0 STATIC
8 ---> 0 STATIC
9 ---> 0 STATIC
10 ---> 0 STATIC
Matching CAM entries = 5
Following are descriptions of the display fields of the show cam command:
Following is a sample display of the show cam mac_address command: Console> (enable) sh cam 00-11-22-22-11-00 7 1 VLAN Destination Source Destination Protocol Num. MAC Address Port Port Type ---- ----------------- ------ --------------- --------------- 1 00:11:22:22:11:00 any ---> 7 Matching CAM entries = 1 In the command show cam static [fddi] mac_addr srcport destports, FDDI indicates that the MAC address in the next parameter is in FDDI format instead of in canonical (Ethernet) format. The field Destination Port can be a list of one or more port numbers, separated by commas, spaces, or tabs. See also clear cam and set cam. show cdpUse the show cdp command to display CDP information. Following is a sample display:
Console> show cdp
Usage: show cdp neighbors [port_num] [detail]
show cdp port [port_num]
(port_num = 1..10)
console> show cdp neighbors Port Device-ID Port-ID Platform Capability ---- ----------------------- ----------------- --------------------- ----------- 3 000100808(Catalyst7) 8 WS-C1201 R S 8 000100808(Catalyst7) 3 WS-C1201 R S console> show cdp neighbors 3 detail Device-ID: 000100808(Catalyst7) Device Addresses: IP Address: 210.1.1.1 Holdtime: 171 sec Capabilities: ROUTER SWITCH Version: WS-C1201 Software, Version DmpSW: 3.142 NmpSW: 3.146 Copyright (c) 1994,1995 by Cisco Systems, Inc. DMP S/W compiled on Dec 13 1994 09:15:19 NMP S/W compiled on Dec 20 1994 17:48:26
System Bootstrap Version: 1.0
Hardware Version: 3.118 Model: WS-C1201 Serial #: 000100808 1 FDDI interface 8 10BaseT interfaces
Uptime is 0 day, 15 hours, 50 minutes Platform: WS-C1201 Port-ID (Port on Device): 8 Port (Our Port): 3 console> show cdp port Port CDP Status Message-Interval ---- ---------- ---------------- 1 disable 30 3 enable 30 4 disable 30 5 disable 30 6 disable 30 7 disable 30 8 enable 30 9 disable 30 10 disable 30 Console> show cdp port 3 Port CDP Status Message-Interval ---- ---------- ---------------- 3 enable 30 Console> See also set cdp disable. show filterUse the show filter command to display custom filtering information. Following is a sample display: Console> show helpUse the show help command to describe each show command. Following is a sample display in normal mode: Console> show help Commands: ----------------------------------------------------------------------- show alias Show aliases for commands show arp Show ARP table show bridge Show bridge information show cam Show CAM table show cdp Show Cisco Discovery Protocol information show fddi Show FDDI Information show filter Show custom filtering information show help Show this message show interface Show network interfaces show ip Show IP information show mac Show MAC information show multicast Show IP multicast information show netstat Show network statistics show port Show port information show snmp Show SNMP information show span Show switch port analyzer information show spantree Show spantree information show system Show system information show time Show time of day show trunk Show trunk port information show users Show users logged in show version Show version information Console> Following is a sample display in privileged mode: Console> (enable) show help Commands: ----------------------------------------------------------------------- show alias Show aliases for commands show arp Show ARP table show bridge Show bridge information show cam Show CAM table show cdp Show Cisco Discovery Protocol information show config Show system configuration show fddi Show FDDI Information show filter Show custom filtering information show help Show this message show interface Show network interfaces show ip Show IP information show log Show system error log show mac Show MAC information show macdbg Show MAC debug information show macreg Show MAC registers show macstatus Show history of MAC status register show mbuf Show mbuf and malloc stats show multicast Show IP multicast information show netstat Show network statistics show port Show port information show portreg Show port registers show snmp Show SNMP information show span Show switch port analyzer information show spantree Show spantree information show sprom Show Serial EEPROM show system Show system information show test Show results of diagnostic tests show time Show time of day show trunk Show trunk port information show users Show users logged in show version Show version information Console> (enable) See also clear help and set help. show interfaceUse the show interface command to display each network interface and the interface status. Following is a sample display: Console> (enable)bbb sl0: flags=10<DOWN,POINTOPOINT> inet 0.0.0.0 netmask 0.0.0.0 broadcast 0.0.0.0 sc0: flags=863<UP,BROADCAST,RUNNING> inet 192.122.174.223 netmask 255.255.255.0 broadcast 192.122.174.255 1,3-10: flags=863<UP,BROADCAST,RUNNING> inet 198.133.219.223 netmask 255.255.255.0 broadcast 198.133.219.255 lo0: flags=808<DOWN,LOOPBACK> inet 0.0.0.0 netmask 0.0.0.0 broadcast 0.0.0.0 Console> (enable)
See also set interface. show ipUse the show ip command to display the IP Information. Use the show ip alias command to show aliases of the IP addresses. Use the show ip route command to show route table entries and the total number of route table entries. Use the show ip vlan command to show IP routing information. Following is a sample display: Console> (enable) show ip Commands: --------------------------------------------------------------------- show ip alias Show aliases for IP Addresses show ip route Show IP route table show ip vlan Show IP Virtual LAN information Console> (enable) show ip alias elvis 192.122.174.11 mercury 192.122.174.234 neptune 198.211.203.44 venus 198.211.203.73 Console> (enable) show ip route Total Route table entries: 3
DESTINATION GATEWAY FLAG METRIC AGE INTERFACE ------------- -------------- ---- ------ --- -------- 0.0.0.0 198.219.135.40 UG 1 0 1,3,7,9 198.219.135.0 198.219.135.123 U 0 0 1,3,7,9 176.201.0.0 176.201.39.10 U 0 0 4-6,8,10 Console> (enable) show ip route 198.219.133.40 DESTINATION GATEWAY FLAGS METRIC AGE INTERFACE ----------- -------------- ----- ------ --- --------- 0.0.0.0 198.219.135.40 UG 1 0 1,3,7,9 Console> (enable) show ip vlan Forwarding Fragmentation Redirect RIP Unreachable ---------- ------------- -------- -------- ----------- enabled enabled enabled enabled enabled IP-Vlan Ports IP-Address Netmask Broadcast Helper-VLANs ---- ------------ --------------- --------------- --------------- ------------ 1 1,3-5,7,10 198.219.135.123 255.255.255.0 198.219.135.255 2 2 6,8,9 193.122.174.102 255.255.255.0 193.122.174.255 Console> (enable) See also clear ip and set ip help. show logUse the show log command to display the system error log. Following is a sample display:
Console> (enable)
See also clear log. show macUse the show mac command to display parameters for the MAC layer Network Management Protocol (NMP) software contents for each port switch. Following is a sample display: Console> show mac help Commands: -------------------------------------------------------------------------- show mac Show MAC information Console> show mac MAC SMT-Address Curr-Path TReq TNeg TMax TVX --- ----------------- --------- -------- -------- ------- ------- 1 00-40-0b-80-e0-78 primary 165000 10000 167772 2621 MAC Upstream-Nbr Downstream-Nbr Old-Upstream-Nbr Old-Downstream-Nbr --- ----------------- ----------------- ----------------- ------------------ 1 00-40-0b-40-00-68 00-40-0b-40-00-80 00-40-0b-40-10-63 00-40-0b-40-80-44 MAC Rcv-Smt Xmit-Smt Rcv-llc Xmit-llc Tvx-Exp-Ct RingOp-Ct --- ----------- --------- --------- ---------- ---------- --------- 1 274 14 180 465 5 5 MAC Rcv-Frms Xmit-Frms Rcv-Multi Xmit-Multi Rcv-Broad Xmit-Broad --- ---------- ---------- ---------- ---------- ---------- ---------- 1 1748680 20904 20473 20 14099 736 3 0 1380230 0 4319 0 12010 4 0 1380231 0 4319 0 12010 5 0 1380232 0 4319 0 12010 6 0 1380232 0 4319 0 12010 7 15784 1395152 0 4319 296 11714 8 0 1380236 0 4319 0 12010 9 2289 1379656 12 4307 2 12008 10 0 1380238 0 4319 0 12010 MAC Dely-Exced MTU-Exceed In-Discard Lrn-Discrd In-Lost Out-Lost --- ---------- ---------- ---------- ---------- --------- --------- 1 0 55 0 0 0 0 3 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 9 0 0 0 0 0 0 10 0 0 0 0 0 0 Last-Time-Cleared -------------------------- Wed Jun 02 1993, 18:28:46 Following are descriptions of the display fields of the show mac command:
show macdbgUse the show macdbg command to display the MAC debug hardware counter information. Following is a sample display:
Console> (enable)
Following are descriptions of the display fields of the show macdbg command:
show macregUse the show macreg command to display the MAC registers. Following is a sample display: Console> (enable) show macstatusUse the show macstatus command to display the FDDI MAC status register history. Following is a sample display:
Console> (enable)
Following are descriptions of the display fields of the show macstatus command:
show mbufUse the show mbuf command to display mbuf and malloc statistics. Following is a sample display:
Console> (enable) show mbuf
MBSTATS:
mbufs 1856 clusters 40
free mbufs 1816 clfree 38
MALLOC STATS (64 byte chunks):
chunks 19588 free chunks 15090 nulls 0
Frame Buffer STATS
IP free 40 FREEQ 0x12185bc
NoTxBufs 0 NoTxQ 0
frame# 1 usecount 0 func 1064bc8 owner 0 next 55555555
frame# 2 usecount 0 func 1064bc8 owner 0 next e000800
frame# 3 usecount 0 func 1064bc8 owner 0 next e001000
frame# 4 usecount 0 func 1064bc8 owner 0 next e001800
frame# 5 usecount 0 func 1064bc8 owner 0 next e002000
frame# 6 usecount 0 func 1064bc8 owner 0 next e002800
frame# 7 usecount 0 func 1064bc8 owner 0 next e003000
frame# 8 usecount 0 func 1064bc8 owner 0 next e003800
frame# 9 usecount 0 func 1064bc8 owner 0 next e004000
frame# 10 usecount 0 func 1064bc8 owner 0 next e004800
frame# 11 usecount 0 func 1064bc8 owner 0 next e005000
frame# 12 usecount 0 func 1064bc8 owner 0 next e005800
frame# 13 usecount 0 func 1064bc8 owner 0 next e006000
frame# 14 usecount 0 func 1064bc8 owner 0 next e006800
frame# 15 usecount 0 func 1064bc8 owner 0 next e007000
frame# 16 usecount 0 func 1064bc8 owner 0 next e007800
frame# 17 usecount 0 func 1064bc8 owner 0 next e008000
frame# 18 usecount 0 func 1064bc8 owner 0 next e008800
frame# 19 usecount 0 func 1064bc8 owner 0 next e009000
frame# 20 usecount 0 func 1064bc8 owner 0 next e009800
frame# 21 usecount 0 func 1064bc8 owner 0 next e00a000
frame# 22 usecount 0 func 1064bc8 owner 0 next e00a800
frame# 23 usecount 0 func 1064bc8 owner 0 next e00b000
frame# 24 usecount 0 func 1064bc8 owner 0 next e00b800
frame# 25 usecount 0 func 1064bc8 owner 0 next e00c000
frame# 26 usecount 0 func 1064bc8 owner 0 next e00c800
frame# 27 usecount 0 func 1064bc8 owner 0 next e00d000
frame# 28 usecount 0 func 1064bc8 owner 0 next e00d800
frame# 29 usecount 0 func 1064bc8 owner 0 next e00e000
frame# 30 usecount 0 func 1064bc8 owner 0 next e00e800
frame# 31 usecount 0 func 1064bc8 owner 0 next e00f000
frame# 32 usecount 0 func 1064bc8 owner 0 next e00f800
frame# 33 usecount 0 func 1064bc8 owner 0 next e010000
frame# 34 usecount 0 func 1064bc8 owner 0 next e010800
frame# 35 usecount 0 func 1064bc8 owner 0 next e011000
frame# 36 usecount 0 func 1064bc8 owner 0 next e011800
frame# 37 usecount 0 func 1064bc8 owner 0 next e012000
frame# 38 usecount 0 func 1064bc8 owner 0 next e012800
frame# 39 usecount 0 func 1064bc8 owner 81009cf8 next e013000
frame# 40 usecount 0 func 1064bc8 owner 81009cf8 next e013800
SPANTREE free 30 FREEQ 0xae014e80
MAX SMT free 4 FREEQ 0x121ae60
IPC QUEUE STATS
TXFIFO RD ab WR ab QUEUE 0x9002018
TXFREE RD ab WR ab QUEUE 0x9003020
RXFIFO RD e WR e QUEUE 0x9000808
RXFREE RD e WR e QUEUE 0x9001810
TXCNTL RD 1d5 WR 1d5 QUEUE 0x9005830
RXCNTL RD 1a6 WR 1a6 QUEUE 0x9003828
Console> (enable)
Following are descriptions of the display fields of the show mbuf command:
show multicastUse the show multicast command to display IP multicast information. Following is a sample display:
Console>
See also set multicast group. show netstatUse the show netstat command to display the TCP/IP protocol stack statistics and the state of the network connections that are active on the system. Following is a sample display: Console> show portUse the show port command to display port information. Following is a sample display: Console> (enable) show port Port Name Status Curr-Path Conn-State Type Neigh Media ---- -------------------- ---------- ---------- ---------- ---- ----- -------- 1A disabled isolated disabled A M fiber 2B disabled isolated disabled B U fiber Port Ler-Cond Ler-Est Ler-Alrm Ler-Cutoff Lem-Ct Lem-Rej-Ct tl-min ---- -------- ------- -------- ---------- ---------- ---------- ------- 1A false 10 10 10 0 0 40 2B false 9 8 7 0 0 40 Port Duplex ---- ------ 1A full 2B full Port Name Status Align-Err FCS-Err Xmit-Err Rcv-Err ---- -------------------- ---------- --------- ---------- ---------- ---------- 3 notconnect 0 0 0 0 4 notconnect 0 0 0 0 5 notconnect 0 0 0 0 6 notconnect 0 0 0 0 7 notconnect 0 0 0 0 8 notconnect 0 0 0 0 9 notconnect 0 0 0 0 10 notconnect 0 0 0 0 Port Single-Col Multi-Coll Late-Coll Excess-Col Carrier-Sense Giants ---- ---------- ---------- ---------- ---------- ---------- ---------- 3 0 0 0 0 0 0 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0 7 0 0 0 0 0 0 8 0 0 0 0 0 0 9 0 0 0 0 0 0 10 0 0 0 0 0 0 Port Duplex ---- ------ 3 half 4 half 5 half 6 half 7 half 8 half 9 half 10 half Last-Time-Cleared ---------------------------- Sun Oct 29 1995, 16:37:58 Console> (enable) The show port command screen has two sections: one for the CDDI/FDDI ports and one for the Ethernet ports. Following are descriptions of the display fields of the show port command:
See also set port help. show portregUse the show portreg command to display port register information. Following is a sample display: Console> (enable) show snmpUse the show snmp command to display SNMP and IP information. Following is a sample display in normal mode: Console> show snmp Traps Enabled: Port,Chassis,Bridge RMON: Enabled Community-Access Community-String ---------------- -------------------- read-only xx Trap-Rec-Address Trap-Rec-Community ---------------- ------------------ 192.120.20.123 public ----------- ------------------------ Console> Following is a sample display in privileged mode: cat2-lnf> (enable) show snmp Traps Enabled: Port,Chassis,Bridge RMON: Enabled Community-Access Community-String ---------------- -------------------- read-only xx read-write xx read-write-all secret Trap-Rec-Address Trap-Rec-Community ---------------- ------------------ 172.20.32.123 public Console> (enable) Following are the descriptions of the display fields of the show snmp command:
show spanUse the show span command to display port monitoring information. Following is a sample display:
Console>
See also set span. show spantreeUse the show spantree command to display spanning tree information for a VLAN. If the vlan parameter is not specified, the default is VLAN1. Following is a sample display:
Console> show spantree ?
Usage: show spantree [vlan]
(vlan = 1..1000)
Console> show spantree
VLAN 1
Spanning tree enabled
Designated Root 00:40:0b:a0:a6:f1
Designated Root Priority 32768
Designated Root Cost 0
Designated Root Port 0
Root Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec
Bridge ID 00:40:0b:a0:a6:f1
Bridge ID Priority 32768
Bridge ID Priority 32768
Bridge Max Age 20 sec Hello Time 2 sec Forward Delay 15 sec
Port 1 State disabled Path Cost 10 Port priority 128
Port 3 State not-connected Path Cost 100 Port priority 128
Port 4 State not-connected Path Cost 100 Port priority 128
Console>
Following are descriptions of the display fields of the show spantree command:
show systemUse the show system command to display system information. Following is a sample display:
Console> show sys
Name Model Serial-Num Hw Fw DmpSw NmpSw
-------------------- -------- ---------- ----- ----- ----- ------
WS-C1201 062003666 3.3 1.1 4.107 4.107
Ps-Type Ps-Stat Fan-Stat Minor-Alarm Major-Alarm Temp-Alarm Stat
------- ------- -------- ----------- ----------- ---------- -----
80w ok ok off off off ok
Uptime d,h:m:s Modem Baud MAC-Address-Range
-------------- ------- ----- -------------------------------------
3,19:31:34 disable 9600 00-40-0b-a0-a6-f0 - 00-40-0b-a0-a6-f9
SMT User-Data T-Notify CF-St ECM-St Bypass
--------------------------------- -------- -------- --------- -------
WorkGroup Stack 30 isolated out absent
System Contact System Location
------------------------ ------------------------
Console>
Following are descriptions of the display fields of the show system command:
Table C-6: Power Supply Test Results
show testUse the show test command to display the results of the diagnostics tests. Following is a sample display:
Console> (enable)
show timeUse the show time command to display the current time of day on in the system's clock. Following is a sample display:
Console>
See also set time. show trunkUse the show trunk command to display trunk link information. If the transitencapsulation mode is on, then this command indicates "None (transit encapsulation)" under the "VLANs allowed" heading. Following is a sample display: Console> show trunk Port VLANs allowed ---- ------------------------------------------------------- 1 1-2,13-14,16,18-19,21,23-24 Console> (enable) set trunk transitencapsulation All VLANs supported via 802.10 encapsulation will be cleared. The trunk port is removed from any IP Vlan/bridge Vlan. Do you wish to continue [yes/no] [n]? y Transit encapsulation mode set. Console> (enable)show trunk Port VLANs allowed ---- ------------------------------------------------------- 1 None(transit encapsulation) Console> See also clear trunk and set trunk show usersUse the show users command to display the admin. port status and list active Telnet sessions with the IP address or IP alias of the originating host. Following is a sample display:
Console>
show versionUse the show version command to display the Catalyst Switch hardware and software version numbers. Following is a sample display: Console> show version WS-C1201 Software, Version DmpSW: 4.107 NmpSW: 4.107 Copyright (c) 1994,1995 by Cisco Systems DMP S/W compiled on Oct 11 1995 22:20:25 NMP S/W compiled on Oct 12 1995 18:25:53 System Bootstrap Version: 1.1 Hardware Version: 3.3 Model: WS-C1201 Serial #: 062003666 1 FDDI interface 8 10BaseT interfaces 4096K bytes of DRAM memory. 1024K bytes of NMP FLASH memory. 32K bytes of non-volatile configuration memory. Uptime is 3 days, 19 hours, 35 minutes Console> slip CommandUse the slip command to attach or detach a SLIP interface, as follows: Console> (enable) test CommandTable C-7 lists the available test commands in privileged mode. Table C-7: test Commands
test helpUse the test help command to display the following information:
Console> (enable)
test onlineUse the test online command to run diagnostics tests on the system, as follows:
Console> (enable)
test snmpUse the test snmp command to send an SNMP trap message to the trap receivers. The following is a sample display: Console> (enable) test snmp Commands: ------------------------------------------------------------------------- test snmp help Show this message test snmp trap Send trap message to SNMP trap receivers Console> (enable) test snmp trap Usage: test snmp trap <trap_number> [specific_number] Console> (enable) test snmp trap 0 SNMP trap message sent. Console> (enable) upload CommandUse the upload command to upload the Flash memory image file from the catalyst to a network host to create a backup file. The file must be created in advance and saved in the tftpboot directory. Following is a sample display: Console> (enable) wait CommandUse the wait command to pause the console output for the number of seconds indicated. Following is a sample display: Console> wait ? Usage: wait <seconds> Console> wait 2 write CommandUse the write command to write the Catalyst 1200 series switch configuration either to an existing file in a network host tftpboot directory or to the terminal screen display. Use the ASCII configuration file uploaded by the write terminal command to configure the same switch or edit to configure another Catalyst Switch. (See the section "configure Command," earlier in this appendix.) The uploaded file is the same output as the file generated by the write terminal command, with the following exceptions:
The write terminal command functions the same as the copy command. Refer to the "copy Command" section for information about this command. Following is a sample display: Console> (enable) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|