|
|
This chapter is a command-by-command description of the Cisco CLI commands for the
FastHub 400 10/100 series hubs.
Use the cdp holdtime global configuration command to set the Cisco Discovery Protocol (CDP) hold time. Use the no cdp holdtime command to reset the hold time to its default value.
cdp holdtime holdtime
no cdp holdtime
holdtime | Number of seconds receiver keeps packet (10 to 255). |
180 seconds
Global configuration
This example shows how to set the CDP holdtime to 15 seconds.
hostname(config)# cdp holdtime 15
cdp timer
cdp run
show cdp
show cdp neighbors
Use the cdp run interface configuration command to globally enable Cisco Discovery Protocol (CDP) for a hub. Use the no cdp run command to disable CDP on a hub.
This command has no arguments or keywords.
CDP is enabled.
Global configuration
The following example shows how to disable CDP on a hub.
hostname(config)# no cdp run
cdp holdtime
cdp timer
show cdp
show cdp neighbors
Use the cdp timer global configuration command to specify the rate at which Cisco Discovery Protocol (CDP) packets are sent. Use the no cdp timer command to reset the CDP rate to its default value.
timer | Number between 5 and 900 (seconds). |
60 seconds
Global configuration
This example shows how to set the CDP packet rate to once every 5 seconds.
hostname(config)# cdp timer 5
cdp holdtime
cdp run
show cdp
show cdp neighbors
Use the clear counters privileged EXEC command to clear the interface counter for a selected port.
clear counters [type hub/module/port]
type | Interface type. The valid value is fastethernet. |
hub | Hub number within a stack. Valid range is 1 to 4. |
module | Module interface number. Valid range for this value is 1 if a switched media module is present, 0 if not present. |
port | Port number on hub. Valid range is |
This command has no default value.
Privileged EXEC
If both module and port are set to zero or are not specified, the command prompts you to confirm clearing all the counters for the specified hub.
This example shows how to clear counters for the Fast Ethernet hub 1, port 1.
hostname# clear counters fastethernet 1/0/1
This example shows how to clear all counters for the switched media module for hub 2.
hostname# clear counters fastethernet 2/1/1
Use the clear counters hub privileged EXEC command to clear the hub counter.
clear counters hub [hub_id]
hub_id | An integer between 1 and 4 to identify the hub in a stack. If the hub_id is not specified, the counters of the whole stack are cleared. |
This command has no default value.
Privileged EXEC
This example shows how to clear the hub statistics from hub 2.
hostname# clear counters hub 2
clear counters
clear counters segment
Use the clear counters segment command to clear a segment counter of the hub backplane. Other hubs connected to the backplane of the cleared device also clears the relative counter of the same segment.
clear counters segment {10M | 100M}
10M | A backplane segment of 10Mbps line speed. |
100M | A backplane segment of 100Mbps line speed. |
This command has no default value.
Privileged EXEC
This example shows how to clear the segment counters for ports in a stack operating at 100-Mbps.
hostname# clear counters segment 100M
clear counters
clear counters hub
Use the configure privileged EXEC command to enter the global configuration mode.
configure [terminal]
terminal | Configure terminal attached at console port. |
This command has no default value.
Privileged EXEC
This example shows how to enter global configuration mode.
hostname# configure hostname(config)#
Use the copy tftp privileged EXEC command to download an operation code file from the Trivial File Transport Protocol (TFTP) server.
copy tftp://[host/src_file] opcode [temporary | permanent]
host | IP address of the TFTP server. If host is omitted, system attemps to use the host information set by the command tftp server. |
src_file | Operational firmware filename. Filename can be up to 80 characters long. If src_file is omitted, system attempts to use the host information set by the command tftp filename. |
temporary | Download the operational firmware to RAM. |
permanent | Download the operational firmware to nonvolatile RAM. |
Permanent mode.
Privileged EXEC
If users do not specify host, src_file name, or download mode, the default host IP, src_file name, and download mode are the same as those specified in the tftp server, tftp filename, and upgrade mode commands.
When downloading an operation code file, the entire system (including other CLI sessions) is inactive for about 30 seconds after the file is retrieved.
This example shows how to download the new system operational code op.bin from host IP address 210.68.150.15 by using the mode specified by the upgrade mode command.
hostname# copy tftp://210.68.150.15/op.bin opcode
This example shows how to download the new system operational code op.bin from host IP address 210.68.150.15 by using the permanent mode.
hostname# copy tftp://210.68.150.15/op.bin opcode permanent
This example shows how to download the new system operational code op.bin from host IP address 210.68.150.15 by using the temporary mode (RAM).
hostname# copy tftp://210.68.150.15/op.bin opcode temporary
TFTP successfully downloaded configuration file
This example shows how to download the new system operational code op.bin from the host IP address specified by the upgrade mode command.
hostname# copy tftp:///op.bin opcode
This example shows how to download the new system operational code as specified by the tftp server (host_ip), tftp filename (filename), and upgrade mode commands.
hostname# copy tftp:/// opcode
copy xmodem
show running-config
show tftp
show version
tftp filename
tftp server
upgrade mode
Use the copy xmodem privileged EXEC command to download an operation code or firmware file by using the XMODEM protocol.
copy xmodem: [src_file] opcode [temporary | permanent]
src_file | Name of operational firmware file. |
temporary | Download the operational firmware to RAM. |
permanent | Download the operational firmware to nonvolatile RAM. |
Permanent mode.
Privileged EXEC
If users do not specify the src_file name or the download mode, the src_file name, and download mode are the same as those specified in the tftp filename and upgrade mode commands.
The downloaded file executes immediately. You cannot enter any new information or commands until the download is completed. After downloading operation code file, the entire system (including other CLI sessions) is inactive for about 30 seconds.
This example shows how to download new system operational code by using the upgrade mode set by the upgrade mode command. The file name is assigned by the tftp filename command.
hostname# copy xmodem: opcode
This example shows how to download new system operational code into NVRAM by using the file name assigned by the tftp filename command.
hostname# copy xmodem: opcode permanent
This example shows how to download new system operational code op.bin into RAM.
hostname# copy xmodem: op.bin opcode temporary
copy tftp
show version
show running-config
Use the databits line-configuration command to set the data bits per character for the console port.
databits {7 | 8}
7 or 8 | Number of data bits per character. |
8 data bits per character.
Line configuration
This example shows how to set the number of data bits per character for the console port to 7.
hostname(config)# line console
hostname(config-line)# databits 7
Use the debug memory read privileged EXEC command to display the memory addresses of the hub.
debug memory read address_begin length
address_begin | First memory address in display. |
length | Number of addresses in display. |
This command has no default value.
Privileged EXEC
This example shows how to display three memory addresses, starting with 0x10000.
hostname# debug memory read 0x10000 0x30 Address 00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F ------- ------------------------------------------------- 0x10000 00 10 23 22 32 22 22 7c - 12 33 22 33 44 2f 11 22 0x10010 02 20 23 25 32 22 22 7d - ff ff ff 33 4d 22 10 22 0x10020 04 30 29 22 32 22 22 7c - cc 3f 22 3e 44 22 11 d2
Use the debug memory write privileged EXEC command to write address data to the hub.
debug memory write address_begin length
address_begin | First memory address in display. |
length | Number of addresses in display. |
This command has no default value.
Privileged EXEC
This example shows how to write address 0x123456 to the hub memory for debugging.
hostname# debug memory write word 0x10000 0x123456 hostname# debug memory read byte 0x10000 0x30 Address 00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F ------- ------------------------------------------------- 0x10000 00 12 34 56 32 22 22 7c - 12 33 22 33 44 2f 11 22 0x10010 02 20 23 25 32 22 22 7d - ff ff ff 33 4d 22 10 22 0x10020 04 30 29 22 32 22 22 7c - cc 3f 22 3e 44 22 11 d2
Use the delete nvram privileged EXEC command to reset the hub configuration to factory defaults.
This command has no arguments or keywords.
Factory defaults
Privileged EXEC
This example shows how to reset the system configuration to factory defaults.
hostname(config)# delete nvram
This command resets the hub with factory defaults. All parameters will revert to their default factory settings. All static system and dynamic addresses will be removed. Reset system configuration to factory defaults, [Y]es or [N]o?
Press Y or N to proceed and any other character to abort.
Use the description interface configuration command to describe or name an interface. Use the no description command to remove a description from an interface.
description name-string
no description
name-string | A text description between 1 and 20 alphanumeric characters. |
This command has no default value.
Interface configuration
If you want to enter a description with spaces between characters, you must enclose the string in quotation marks (see "Paul's machine" example.)
This example shows how to give the name Hal to switched media module port of the second hub in the stack.
hostname(config)# hub 2 hostname(config-hub)# interface fastethernet 1/1
hostname(config-hub-if)# description Hal
This example shows how to give the name Paul's machine to Fast Ethernet port 8 of the bottom hub in a 4-hub stack.
hostname(config)# hub 4 hostname(config-hub)# interface fastethernet 0/8
hostname(config-hub-if)# description "Paul's machine"
interface
show interface hub
show interfaces
Use the duplex interface configuration command to set the connectivity mode for a switched media module.
duplex {auto | full | half}
auto | Autonegotiates duplex mode with the connected device. |
full | Connects in full-duplex mode only. |
half | Connects in half-duplex mode only. |
The default is auto.
Interface configuration
The switched media module first attempts to connect in full-duplex mode. If unsuccessful, the module operates in half-duplex mode. This process is repeated whenever there is a change in link status.
This command sets the switched media module port of hub 1 to operate in full-duplex mode.
hostname(config)# hub 1 hostname(config-hub)# interface fastethernet 1/1
hostname(config-hub-if)# duplex full
Use the disable privileged EXEC command to exit the privileged access mode and enter user EXEC mode.
disable
This command has no arguments or keywords.
Privileged EXEC
This example shows how to exit the privileged EXEC mode and change to user EXEC mode.
hostname# disable
hostname>
Use the enable privileged EXEC command to set the EXEC mode access level.
enable [access-level]
access-level | Either 1 (user EXEC level) or 15 (privileged EXEC level). |
The access-level default for initial login is 1. The default access level after login is 15.
Privileged EXEC
If a password is configured, you are prompted for the password:
Password:
You are allowed three attempts to provide the correct password. If you exceed the maximum number of attempts, you are automatically logged out.
This example shows you how to move from the initial login prompt to the privileged EXEC mode access where the password is cisco.
Cisco console system $ enable 15
password: <cisco>
hostname#
Use the enable password privileged EXEC command to set the password for an access level. Use the no enable password command to clear the password.
enable password [level level] password
no enable password [level level]
level | Level for which the password applies: 1 User EXEC privileges. |
password | A string of between 4 and 12 alphanumeric characters (case sensitive). |
No passwords are set. Privilege level defaults to level 15.
Global configuration
Use the level-1 or level-15 password to log into the CLI. The level-15 password can also be used with the enable command.
If you enter a password that is shorter than 4 characters or longer than 8 characters, the following message appears:
Password must be between 4 and 8 characters long.
Both of these examples show how to set the privileged EXEC password to willow.
hostname(config)# enable password willow hostname(config)# enable password level 15 willow
This example shows how to set the user EXEC password to minnow.
hostname(config)# enable password level 1 minnow
Use the end configuration command to exit any configuration mode and enter privileged EXEC mode.
end
This command has no arguments or keywords.
This command has no default value.
All configuration modes
This example shows how to exit the global configuration mode and enter privileged EXEC mode.
hostname(config)# end hostname#
Use the exit configuration command to exit the system or current configuration mode.
exit
This command has no arguments or keywords.
This command has no default value.
All configuration modes.
If the current mode is Privileged or user EXEC, this command exits the system and terminates the console or Telnet session. If the current mode is global configuration, this command sets the mode to Privileged EXEC. If the current mode is any other configuration mode, this command sets the mode to global configuration.
This example shows how to exit from global configuration mode and enter privileged EXEC mode:
hostname(config)# exit hostname#
This example shows how to exit from interface configuration mode and enter global configuration mode:
hostname(config-hub-if)# exit hostname(config)#
Use the help user EXEC command to display an overview of the CLI help system or to get help for specific command syntax, arguments, and keywords.
This command has no arguments or keywords.
This command has no default value.
All modes
This example shows how to display the summary of command-line entries.
hostname> help Help may be requested at any point in a command by entering a question mark `?'. If nothing matches, the help list will be empty and you must backup until entering a `?' shows the available options. Two styles of help are provided: 1. Full help is available when you are ready to enter a command argument (e.g. `show ?') and describes each possible argument. 2. Partial help is provided when an abbreviated argument is entered and you want to know what arguments match the input. (e.g. `show pr?')
This example shows how to display all the commands available from the configuration mode:
hostname(config)# ? Configure commands: cdp Global CDP configuration subcommands enable Modify enable password parameters end Exit from configure mode exit Exit from configure mode help Description of the interactive help system hostname Set system's network name hub Select a hub to configure ip Global IP configuration subcommands line Configure a terminal line no Negate a command or set its defaults snmp-server Modify SNMP parameters tftp Configure TFTP upgrade Configure firmware upgrade
This example shows how to display arguments for the command clear counters.
hostname# clear counters ? fastethernet FastEthernet IEEE 802.3 hub Clear hub's counters segment Clear segment's counters
None
Use the hostname global configuration command to set the system name. Use the no hostname command to clear the name.
hostname name
no hostname
name | System name between 1 and 255 alphanumeric characters. |
This command has no default value.
Global configuration
This example shows how to set the system name to the string Zorro.
(config)# hostname Zorro
Zorro(config)#
None
Use the hub global configuration command to enter hub configuration mode
hub hub_no
hub_no | A number from 1 to 4. |
This command has no default value.
Global configuration
This example shows how to select hub configuration mode for the top hub in a stack.
hostname(config)# hub 1
isolate hub
line console
show interface hub
Use the interface hub configuration command to enter interface configuration mode for a designated port.
interface type module/port
type | Interface type. The valid value is fastethernet. |
module | Module interface number. Valid range for this value is 1 if a switched media module is present, 0 if not present. |
port | Port number on hub. Valid range is: |
This command has no default value.
Hub configuration
This example shows how to enter interface configuration mode on Fast Ethernet port 5 of a stand alone hub.
hostname(config)# hub 1 hostname(config-hub)# interface fastethernet 0/5 hostname(config-hub-if)#
This example shows how to enable configuration on the switched media module port for hub 2.
hostname(config)# hub 2 hostname(config-hub)# interface fastethernet 1/1 hostname(config-hub-if)#
clear counters
description
show interface hub
show interfaces
shutdown
port-speed
Use the ip address global configuration command to configure hub IP address and subnet mask. Use the no ip address command to clear the IP address and subnet mask values.
ip address ipaddress mask
no ip address
ipaddress | IP address in dotted decimal notation. |
mask | Subnet mask in dotted decimal notation. |
This command has no default value.
Global configuration
If the IP address you enter is not in the same subnet as the default gateway you enter with the command ip default-gateway, this command substitutes a default value of 0.0.0.0.
This example shows how to set the hub IP address to 172.20.128.126 and the subnet mask to 255.255.255.0.
hostname(config)# ip address 172.20.128.126 255.255.255.0
ip state
ip default-gateway
ping
show ip
Use the ip default-gateway global configuration command to configure the default gateway. Use the no ip default-gateway command to delete a configured default gateway and set the gateway address to the default value (0.0.0.0).
ip default-gateway ip-address
no ip default-gateway
ip-address | Gateway IP address. |
This command has no default value.
Global configuration
The default gateway IP address must be in the same subnet as the IP address entered for the command ip address, or the system shows the following error message:
The setting default-gateway IP address must be in the same subnet as the IP address.
This example shows how to set the default gateway address to 172.20.128.126.
hostname(config)# ip default-gateway 172.20.128.126
Use the ip http port global configuration command to select a Transmmission Control Protocol (TCP) port on which the Hypertext Transfer Protocol (HTTP) server accepts connections. Use the no ip http port command to select the default TCP port.
ip http port port-number
no ip http port
port-number | TCP port number between 0 and 65535. Note Port 23 is reserved as the Telnet port. |
TCP port 80.
Global configuration
This example shows how to set the server to listen on TCP port 8080 for HTTP connections. Using this (nondefault) setting, you must instruct your browser to connect to port 8080 rather than 80.
hostname(config)# ip http port 8080
Use the ip http server global configuration command to enable Hypertext Transfer Protocol (HTTP) server functions. Use the no ip http server command to disable HTTP server functions.
ip http server
ip default-gateway
no ip http server
This command has no arguments or keywords.
HTTP server functions are enabled.
Global configuration
This example shows how to disable HTTP server functions.
hostname(config)# no ip http server
Use the ip state global configuration command to select the method used for discovering the hub IP address.
ip state {user | bootp}
user | User supplies IP address in response to a system prompt. |
bootp | BootProtocol provides the IP address. |
Global configuration mode
Global configuration
This example shows how to select BootP as the method of finding the system IP address.
hostname(config)# ip state bootp
This example shows how to select user as the method of finding the system IP address.
hostname(config)# ip state user
ip address
ip default-gateway
ping
Use the isolate hub hub configuration command to isolate the specified hub from the other hubs in the stack. Use the no_isolate hub command to restore the hub to its place in the stack.
This command has no arguments or keywords.
This command has no default value.
Hub configuration
This command shows how to isolate hub 3 from the stack.
hostname(config)# hub 3 hostname(config-hub)# isolate
Use the line console global configuration command to change to line-configuration mode.
This command has no arguments or keywords.
This command has no default value.
Global configuration
This example shows how to change the command mode from global configuration to line configuration.
hostname(config)# line console
hostname(config-line)#
databits
parity
password-thresh
silent-time
speed
stopbits
time-out
Use the parity line-configuration command to set the parity of the port. Use the no parity command to disable parity for the port.
parity {none | odd | even | mark | space}
no parity
none | No parity. |
odd | Odd parity. |
even | Even parity. |
mark | Mark parity. |
space | Space parity. |
No parity.
Line configuration
The following example shows how to set the console port parity to odd:
hostname(config-line)# parity odd
databits
port-speed
speed
stopbits
terminal
Use the password-thresh line configuration command to set the password intrusion threshold, which limits the number of failed logon attempts allowed.
password-thresh threshold
threshold | A value between zero and 65500 password attempts. |
The default value is three attempts.
Line configuration
When the logon attempt threshold is reached, the hub interface becomes silent for a user-defined amount of time before allowing the next logon attempt. See silent-time command to set this time interval.
This example shows how to set the password attempt threshold to 5.
hostname# line console hostname(line-config)# password_thresh 5
Use the ping user EXEC command to test the connectivity between the hub and a connected host. The ping command sends an ICMP echo message (ping) to the specified IP address.
ping {ip-address}
ip-address | Target IP address. |
This command has no default value.
User EXEC
The following example shows how to ping the host at IP address 172.20.128.10.
hostname> ping 172.20.128.10 Type escape sequence to abort. Sending 5, 100-byte ICMP Echos to 172.20.128.10, timeout is 2 seconds: !!!!! Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/6/ ms
ip address
ip default-gateway
show ip
Use the port-speed hub-interface-configuration command to select the way in which a selected port adjusts its port speed to that of its neighbor.
port-speed {auto | 100M | 10M}
auto | Auto-negotiation mode. |
100M | 100-Mbps mode only. |
10M | 10-Mbps mode only. |
The default setting is auto.
Interface configuration
Use auto mode when you want the port to automatically adjust to more than one connecting device. This mode first attempts to connect at 100-Mbps. If that attempt fails, the port operates at 10-Mbps. This process repeats at each change in link status.
This example shows how to set port 4 of hub 1 to operate exclusively at 100-Mbps.
hostname(config)# hub 1 hostname(config-hub)# interface fastethernet 0/4 hostname(config-hub-if)# port-speed 100M
Use the reload privileged EXEC command to reset the hub. This command prompts the user to confirm the reset. This command retains configured system parameters and static addresses and deletes dynamic addresses.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
The following example shows how to reset the hub.
hostname# reload This command resets the hub. All configured system parameters and static addresses will be retained. All dynamic addresses will be removed. Reset system, [Y]es or [N]o?
Press Y or N to proceed or any other character to abort.
Use the show cdp user EXEC command to display Cisco Discovery Protocol (CDP) status and configuration information for all hubs in a stack.
This command has no arguments or keywords.
This command has no default value.
User EXEC
The following example shows how to display the CDP configuration for all hubs.
hostname> show cdp Global CDP information: Sending CDP packets every 60 seconds Sending a holdtime value of 180
cdp holdtime
cdp timer
cdp run
show cdp neighbors
Use the show cdp neighbors user EXEC command to display Cisco Discovery Protocol (CDP) information about other devices directly connected to a hub (neighbors).
show cdp neighbors [type module/port] [detail]
type | Interface type. Valid value is fastethernet. |
module | Module interface number (not for use with this hub). Valid range for this value is 0. |
port | Port number between 1 and 8. |
detail | Optional command to show detail information for the port. |
This command has no default value.
User EXEC
This example shows how to use CDP to display all discovered hub neighbors.
hostname> show cdp neighbors
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
S - Switch, P - Repeater, H - Host, I - IGMP
DeviceID IP Addr Capability Platform Remote Port
Internal-Rou 210.68.150.254 R Cisco 2500 Ethernet1
This example shows how to display detail information about port 6 neighbors using CDP.
hostname> show cdp neighbors detail Device ID: Internal-Router Entry Address: 210.68.150.254 Platform: Cisco 2500 Capabilities: Router Remote Interface: Ethernet 1
cdp holdtime
cdp run
cdp timer
show cdp
Use the show history user EXEC command to display the EXEC commands used that session. Configuration commands are not included.
This command has no arguments or keywords.
This command has no default value.
User EXEC
Configuration commands are not included in the command list.
This example shows how to list the nonconfiguration EXEC commands used during a session.
hostname> show history enable config end disable show history
Use the show interface hub Privileged EXEC command to display statistics and status for a specified hub.
show interface hub [hub_no]
hub_no | Hub number. Valid range is 1 to 4, with 1 being the hub at the top of the stack. If no hub number is specified, statistics and status for all hubs are displayed. |
This command has no default value.
Privileged EXEC
This example shows how to display statistics and status information for hub 1.
hostname> show interface hub 1 Hub id: 1 Hub type: FastHub 400M series 10/100 hub Hub H/W Version: 1 Serial Number: ACT0248002Q Agent Status: Master Agent POST Version: V1.03 Agent System Version: V1.05 Hub 1 is attached to back plane Statistics 10 Mb/s Segment 100 Mb/s Segment ------------------- --------------- ---------------- Readable Frames 74191 3824175 Readable Bytes 59353442 3059353442 CRC Errors 145 3089 Alignment Errors 3 9 Frames Too Long 0 0 Short Events 890 7890 Runts 90 1345 Collisions 789 3482 Late Events 9 82 Very Long Events 0 0 Data Rate Mismatches 0 0 Auto Partitions 0 2 Total Errors 2964 31198
hub
isolate hub
clear counters hub
Use the show interfaces privileged EXEC command to display statistics and status for all or specified hub interfaces.
show interfaces [type hub/module/port]
type | Interface type. The valid value is fastethernet. |
hub | Hub number within a stack. Valid range is 1 to 4. |
module | Module interface number. Valid range for this value is 1 if a switched media module is present, 0 if not present. |
port | Port number on hub. Valid range is: |
If you do not specify a type or a hub/module/port, statistics and status for all interfaces appear.
Privileged EXEC
The output to this command varies depending on the network for which an interface has been configured.
This example shows how to display all current Fast Ethernet settings for the top hub in a stack.
hostname# show interfaces fastethernet 1 Hub ID: 1 Hub Type: 8 port/Managed Hub H/W Version: 01 Agent Status: Master Agent POST Version: 1.07 System Version: 1.04 10 Mbps Segment: Bytes: 342256 Frame: 324 Collision: 100Mbps Segment Byte: 722439 Frame: 712 Collision:
This example shows how to display statistics and status information for the Fast Ethernet port 1 of the top hub in the stack.
hostname# show interfaces fastethernet 1/0/1 FastEthernet 1/0/1 is link-up Hardware is built-in 100Base-Tx Description: port-1 Speed admin: Auto Negotiation Speed status: 100M. Duplex admin: half Duplex status: half Counters --------------------------------------------------------- Bytes Received 4 Bytes Sentes 272 Frames Received 980 Frames Sents 64137 Total Bytes Received 0 Total Frames Received 0 CRC Error 0 Oversize Frames 0 Fragments 0 Frame Too Long Events 0 Collision 0 Late Collision 0 64 Byte Frames 0 65-127 Bytes Frames 0 128-255 Byte Frames 0 256-511 Bytes Frames 0 512-1023 Byte Frames 0 1024-1522 Bytes Frames 0 MAC Rx Error 0 Dropped Frames 0 FastEthernet 1/0/1 is link-up Hardware is built-in 100Base-Tx Description: port-1 Port Admin: Enabled Port Partition: not Auto Partitioned Port Operation: Operational Speed admin: Auto Negotiation Speed status: 100M. Last Source MAC Address: 00-00-E8-C0-1E-21 Counters --------------------------------------------------------- Bytes Received 4 Frames Received 980 CRC Errors 0 Alignment Errors 0 Frames Too Long 0 Short Events 0 Port Runts 0 Collisions 0 Late Events 0 Data Rate Mismatches 0 Auto Partitions 0 Total Errors 0
This command displays statistics and status information on the Fast Ethernet hub 1, extension module 1, port 1.
hostname# show interfaces fastethernet 1/1/1 FastEthernet 1/1/1 is link-up Hardware is built-in 100Base-Tx Description: Tx-1 Port State: Enabled Speed admin: Auto Negotiation Speed status: 100M. Duplex admin: Auto Negotiation Duplex status: half Counters --------------------------------------------------------- Bytes Received 4 Frames Received 980 Broadcast Pkt Rcvd 980 Multicast Pkt Rcvd 64137 CRC Errors 0 Collision 0 Under Size Frames 0 Over Size Frames 0 Fragment 0 Jabber 0 64 Byte Frames 0 65-127 Bytes Frames 0 128-255 Bytes Frames 0 256-511 Bytes Frames 0 512-1023 Bytes Frames 0 1024-1522 Bytes Frames 0 Forward Packets 0 Filter Packets 0
interface
duplex
description
port-speed
show interface hub
Use the show ip privileged EXEC command to display global IP configuration information, including the hub IP address, subnet mask, Hypertext Transfer Protocol (HTTP) server and port, and default gateway.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
This example shows how to display global IP configuration information.
hostname# show ip IP State: user IP Address : 172.20.128.164 Subnet Mask : 255.255.255.0 Default Gateway : 172.20.128.1 HTTP server: Enabled HTTP port: 80
ip address
ip default-gateway
ip state
Use the show line privileged EXEC command to display line-configuration information for the console port, including baud rate, data bits, stop bits, and parity setting.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
This example shows how to display line-configuration information for the console port:
hostname# show line Baud rate 9600 baud Data bits 8 bit(s) Stop bits 1 bit(s) Parity setting None Password Threshold 5 times Silent Time 180 second(s) Time-out 60 second(s)
databits
parity
password-thresh
port-speed
silent-time
speed
stopbits
time-out
Use the show running-config privileged EXEC command to display the list of configuration commands that modify the system's default configuration.
show running-config
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
hostname# show running-config Building configuration... Current configuration: ! version 2.2 ! hostname 1538M ! ! end
Use the show snmp privileged EXEC command to display Simple Network Management Protocol (SNMP) configuration information.
This command has no additional arguments or keywords.
This command has no default value.
Privileged EXEC
This example shows how to display SNMP configuration information:
hostname# show snmp Read community string : public Write community string : private Contact : John Smith Location : Building M Trap manager Community string --------------------------------------- 172.20.128.165 public 172.20.128.166 private 172.20.128.167 public 172.20.128.168 private Set Hosts ------------------ 172.20.128.170 172.20.128.171 172.20.128.172 172.20.128.173 SNMP Trap Status --------------------------------- Authentication Trap : Enabled Link up/down Traps : Enabled
snmp-server community
snmp-server contact
snmp-server enable-trap
snmp-server host
snmp-server set-host
Use the show snmp contact user EXEC command to display the Simple Network Management Protocol (SNMP) contact.
This command has no default value.
Privileged EXEC
This example shows how to display the SNMP contact:
hostname# show snmp contact
John Smith
Use the show snmp hostname user EXEC command to display the name of the Simple Network Management Protocol (SNMP) host server as set by the command hostname.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
To set the name of a host, use the hostname command.
This example shows how to display the name of the SNMP host server:
hostname# show snmp hostname MegaHostServer
show snmp
show snmp contact
show snmp location
show snmp set-hosts
show snmp traps
Use the show snmp location Privileged EXEC command to display the Simple Network Management Protocol (SNMP) server location string.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
This example shows how to display the SNMP server location:
hostname# show snmp location Building 14A
show snmp contact
snmp-server location
Use the show snmp set-hosts privileged EXEC command to display the read and write settings and IP address for the Simple Network Management Protocol (SNMP) set hosts.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
This example shows how to display SNMP set host information:
hostname# show snmp set-hosts Read community string: public Write community string: private Set hosts configured: 172.20.128.126
Use the show snmp traps Privileged EXEC command to display the Simple Network Management Protocol (SNMP) trap status.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
This example shows how to display trap status for the stack.
hostname# show snmp traps Authentication trap: Enabled Linkup/link down trap: Enabled Host Community String ---------------------------------------------- 172.20.128.126 172.20.127.123 private
snmp-server host
snmp-server enable-trap
Use the show terminal user EXEC command to display the terminal settings for the console port.
This command has no arguments or keywords.
This command has no default value.
User EXEC
This example shows how to display the terminal settings for the console port.
hostname# show terminal RS-232 configuration: 38400 baud, 8 data bits, 1 stop bits, None parity
databits
parity
speed
databits
stopbits
terminal
Use the show tftp privileged EXEC command to display the IP address of the default TFTP server and provide the file name of any firmware upgrade files and their status.
This command has no arguments or keywords.
This command has no default value.
Privileged EXEC
This example shows how to display the IP address of the default TFTP server and name and status of firmware update files:
hostname# show tftp TFTP Server: 203.10.234.23 TFTP Firmware Upgrade File: op.bin TFTP Upgrade Mode: permanent Upgrade Status: No upgrade currently in progress.
copy tftp
tftp filename
tftp server
upgrade mode
Use the show version user EXEC command to display basic hardware and firmware version information.
This command has no arguments or keywords.
This command has no default value.
User EXEC
This example shows how to display the basic hub hardware and firmware:
> show version Fasthub 400 series Enterprise Edition Software Version V2.03 Copyright (c) Cisco Systems, Inc. 1993-19998 ROM: System Bootstrap, Version 2.03 Hhost uptime is 1day(s) 06hour(s) 46minute(s) 49second(s) MPC860EN processor with 4096K/1024K bytes of memory. Hardware board revision is 1 Upgrade Status: No upgrade currently in progress Base Ethernet Address: 00-10-29-EA-19-40 Serial Number: ACT0249002X
None
Use the shutdown interface configuration command to disable an interface. Use the no shutdown command to restart a disabled interface.
This command has no arguments or keywords.
This command has no default value.
Interface configuration
To disable an interface, you must first select that interface from the global configuration mode using the interface command.
This example shows how to disable Fast Ethernet port 7 for hub 2:
hostname(config)# hub 2 hostname(config-hub)# interface fastethernet 0/7 hostname(config-hub-if)# shutdown
Use the silent-time line configuration command to set the amount of time the management console is inaccessible after the number of unsuccessful logon attempts exceeds the threshold set by the password-thresh command.
silent-time time
no silent-time
time | A value in seconds between 0 and 65500. 0 seconds means no silent-time. |
The default value is no silent-time.
Line configuration
If the password threshold was not set with the password-thresh command, silent-time begins after the default value three attempts to logon.
This example shows how to set the silent-time value for the console port to 60 seconds.
hostname(config)# line console
hostname(line-config)# silent-time 60
Use the snmp-server community global configuration command to configure read-only or read-write Simple Network Management Protocol (SNMP) community strings. Use the no snmp-server community command to change the community string to its default value.
snmp-server community string [ro | rw]
no snmp-server community string
string | Community string of 1 to 32 alphanumeric characters. No blank character spaces are allowed. |
ro | Configures read-only access. |
rw | Configures read-write access. |
Read-only (ro)
The default value of the read-only community string is public, and the default value of the read-write community string is private.
Global configuration
This example shows how to set the read-write community string to newstring:
hostname(config)# snmp-server community newstring rw
snmp-server host
snmp-server set-host
snmp-server enable-trap
Use the snmp-server contact global configuration command to enter the name of a Simple Network Management Protocol (SNMP) contact person. Use the no snmp-server contact command to delete the existing SNMP contact name.
snmp-server contact contact-string
no snmp-server contact
contact-string | Character string of 1 to 255 alphanumeric characters. |
This command has no default value.
Global configuration
This example shows how to set the SNMP contact name to system_admin:
hostname(config)# snmp-server contact system_admin
show snmp contact
show snmp location
Use the snmp-server enable-trap global configuration command to enable one or all available Simple Network Management Protocol (SNMP) trap operations. Use the no snmp-server enable-trap command to disable one or all traps.
snmp-server enable-trap {all | authentication | link-up-down}
no snmp-server enable-trap {all | authentication | link-up-down}
all | All traps. |
authentication | Authentication failure trap. |
link-up-down | Link-up and link-down traps. |
Authentication failure and link-up and link-down traps are enabled.
Global configuration
This example shows how to disable the generation of link-up and link-down traps:
hostname(config)# no snmp-server enable-trap link-up-down
show snmp traps
snmp-server community
snmp-server host
snmp-server set-host
Use the snmp-server host global configuration command to add a Simple Network Management Protocol (SNMP) trap host and its corresponding community string to the list of hosts that are allowed to perform trap operations on the hub. Use the no snmp-server host command to delete an existing trap host.
snmp-server host host_ip community-string
no snmp-server host host_ip
host_ip | IP address of trap host. |
community-string | Community string value between 1 and 32 alphanumeric characters. |
This command has no default value.
Global configuration
You can keep up to four trap hosts in your trap host list. If you need to add another trap host and four trap hosts have already been entered, you must remove one from the list using the no form of this command.
This example shows how to specify 172.20.128.126 as the recipient of SNMP traps and trap-string as the community string:
hostname(config)# snmp-server host 172.20.128.126 trap-string
snmp-server community
snmp-server enable-trap
snmp-server set-host
Use the snmp-server location global configuration command to specify the physical location of a Simple Network Management Protocol (SNMP) server. Use the no snmp-server location command to delete the existing SNMP server location.
snmp-server location location-string
no snmp-server location
location-string | String between 1 and 255 alphanumeric characters (no spaces). |
This command has no default value.
Global configuration
This example shows how to specify the SNMP location string as sysadmin-office:
hostname(config)# snmp-server location sysadmin-office
show snmp location
snmp-server contact
Use the snmp-server set-host global configuration command to add a Simple Network Management Protocol (SNMP) set host to the list of hosts that are allowed to perform set operations on the hub. Use the no snmp-server set-host command to delete an existing set host.
snmp-server set-host host_ip
no snmp-server set-host host_ip
host_ip | IP address of set host. |
This command has no default value.
Global configuration
You can keep up to four set hosts in your set host list. If you need to add another set host and four have already been entered, you must remove one from the list using the no form of this command.
This example shows how to specify 172.20.128.126 as the recipient of SNMP set operations.
hostname(config)# snmp-server set-host 172.20.128.126
snmp-server community
snmp-server enable-trap
snmp-server host
Use the speed line configuration command to set the console port baud rate.
speed {2400 | 9600 | 19200 | 38400 | 57600}
The default speed is 9600.
Line configuration
This example shows how to set the console port baud rate to 19200.
hostname(config)# line console hostname(config-line)# speed 19200
databits
parity
stopbits
terminal
Use the stopbits line configuration command to set the number of stop bits for the console port.
stopbits {1 | 2}
1 | 2 | 1 or 2 stop bits. |
1 stop bit.
Line configuration
This example shows how to set the number of stop bits for the console port to 2.
hostname(config)# line console hostname(config-line)# stopbits 2
Use the terminal user EXEC command to set the attributes of the console port.
terminal [speed {2400 | 9600 | 19200 | 38400 | 56000}] [{7 | 8}] [stopbits {1 | 2}]
[parity {even | mark | none | odd | space}]
speed | Transmit and receive speeds: 2400, 9600, 19200, 38400, or 56000. |
databits | Number of data bits per character: 7 or 8. |
stopbits | Asynchronous line stop bits: 1 or 2. |
parity | Terminal parity: even, mark, none, odd, or space. |
The default settings for the port are 9600 baud, 8 data bits, 1 stop bit, and no parity.
User EXEC
This example shows how to set the baud rate for the console port to 19200.
> terminal speed 19200
This example shows how to set the baud rate to 19200, the data bits to 7, and the stop bits to 1:
> terminal speed 19200 databits 7 stopbits 1
Use the tftp filename global configuration command to specify a file name for the firmware information downloading from the TFTP server. Use the no tftp filename command to clear the existing file name.
tftp filename filename
no tftp filename
filename | Filename between 1 and 80 alphanumeric characters. |
This command has no default value.
Global configuration
This example shows how to specify the filename as 1538.bin. The location of this file is c:\bin\.
hostname(config)# tftp filename c:\bin\1538.bin
copy tftp
show tftp
tftp server
upgrade mode
Use the tftp server global configuration command to specify the IP address of the TFTP server. Use the no tftp server command to clear the IP address of the TFTP server.
tftp server host_ip
no tftp server
host_ip | IP address of TFTP server. |
This command has no default value.
Global configuration
This example shows how to specify the IP address of the TFTP server as 192.168.1.20:
hostname(config)# tftp server 192.168.1.20
copy tftp
show tftp
tftp filename
upgrade mode
Use the time-out line configuration command to specify how long the management console remains logged in but inactive before the console times out and requires a new login. Use the no time-out command to set the timeout value to its default value.
time-out time
no time-out
time | A value of 0, or a time in seconds from 30 to 65500. |
The default value is 0 seconds.
Line configuration
It is a good idea to set a non-zero timeout for security reasons.
This example shows how to set the timeout value to 90 seconds.
hostname (config)# line console hostname(line-config)# time-out 90
Use the upgrade mode global configuration command to set the download mode when downloading upgrade files from the TFTP server.
upgrade mode {permanent | temporary}
permanent | Download the operational firmware to nonvolatile RAM. |
temporary | Download the operational firmware to RAM. |
Permanent
Global configuration
This example shows how to select the temporary TFTP download mode.
hostname (config)# tftp upgrade temporary
copy tftp
show tftp
tftp filename
tftp server
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue Feb 23 16:34:07 PST 1999
Copyright 1989-1999©Cisco Systems Inc.