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

Table of Contents

Command Descriptions

Command Descriptions

This chapter describes the command line interface (CLI) commands for the Cisco 1548M Micro Switch 10/100.

cdp enable

Use the cdp enable interface configuration command to enable Cisco Discovery Protocol (CDP) on a particular port. Use the no cdp enable command to disable CDP on a port.

cdp enable
no cdp enable

Syntax Description

This command has no arguments or keywords.

Default

CDP is enabled on all interfaces.

Command Mode

Interface configuration

Example

The following example shows how to disable CDP on Fast Ethernet port 0/2.

hostname(config)# interface fastethernet 0/2
hostname(config-if)# no cdp enable
Related Commands

cdp holdtime
cdp run
cdp timer
show cdp interface
show cdp neighbors

cdp holdtime

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

Syntax Description

holdtime

Number of seconds receiver keeps packet (10 to 255).

Default

180 seconds

Command Mode

Global configuration

Example

This example shows how to set the CDP holdtime to 15 seconds.

hostname(config)# cdp holdtime 15
Related Commands

cdp enable
cdp timer
cdp run
show cdp interface
show cdp neighbors

cdp run

Use the cdp run interface configuration command to globally enable Cisco Discovery Protocol (CDP) for a switch. Use the no cdp run command to disable CDP on the switch.

cdp run
no cdp run

Syntax Description

This command has no arguments or keywords.

Default

CDP is globally enabled.

Command Mode

Global configuration

Usage Guidelines

If you globally disable CDP for all the ports on a switch using the cdp run command, enabling CDP using the per-port command cdp enable will have no effect. If you use the cdp run command to globally enable CDP, you can still disable CDP on a port-by-port basis using cdp enable.

Example

The following example shows how to disable CDP on a switch.

hostname(config)# no cdp run
Related Commands

cdp enable
cdp holdtime
cdp timer
show cdp interface
show cdp neighbors

cdp timer

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.

cdp timer timer
no cdp timer

Syntax Description

timer

Number between 5 and 900 seconds.

Default

60 seconds

Command Mode

Global configuration

Example

This example shows how to set the CDP packet rate to once every 5 seconds.

hostname(config)# cdp timer 5
Related Commands

cdp enable
cdp holdtime
cdp run
show cdp interface
show cdp neighbors

clear counters

Use the clear counters privileged EXEC command to clear the interface counter for a selected port.

clear counters [type module/port]

Syntax Description

type

Interface type. The valid value is fastethernet.

module

Module interface number. Valid value for the switch is 0.

port

Port number. Valid range is 1 to 8.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

If you do not specify type module/port, this command prompts you to confirm clearing the counters for all interfaces.

Example

This example shows how to clear counters for the Fast Ethernet port 1.

hostname# clear counters fastethernet 0/1
Related Commands

show interfaces

clear mac-address-table

Use the clear mac-address-table privileged EXEC command to remove a specified address (or set of addresses) from the MAC address table.

clear mac-address-table [dynamic] [address mac-address] [interface type module/port]

Syntax

dynamic

Optional. The only valid address type for the Micro Switch.

mac-address

MAC address number.

type

Interface type. Valid value for type is fastethernet.

module

Module number. Not for use with the Micro Switch. Valid value for module is 0.

port

Port number. Valid range is 1 to 8.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

If clear mac-address-table is invoked with no options, all dynamic addresses are removed.

Example

This command clears all addresses in the MAC forwarding table.

hostname# clear mac-address-table dynamic
 

This command clears the static address 0040.C80A.2F07 on port 1.

hostname# clear mac-address-table address 0040.C80A.2F07 interface fa 0/1
Related Commands

show mac-address-table

configure

Use the configure privileged EXEC command to enter global configuration mode.

configure [terminal]

Syntax Description

terminal

Configure terminal attached at console port.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to enter global configuration mode.

hostname# configure
hostname(config)#
Related Commands

enable
interface
line console

copy tftp

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]

Syntax Description

host

IP address of the TFTP server.

src_file

Operation code filename. Filename can be up to 80 characters long.

opcode

Upgrade operational firmware.

temporary

Download the operation code using the temporary mode, that is, store the downloaded code in RAM.

permanent

Download the operation code using the permanent mode, that is, store the downloaded code in NVRAM.

Default

Permanent mode.

If users do not specify host, src_file name or upgrade mode, the default host IP, src_file name, and upgrade mode is the same as those specified in the tftp server host, tftp filename  filename, and upgrade mode mode commands.

Command Mode

Privileged EXEC

Usage Guidelines

When downloading an operation code file, the entire system (including other CLI sessions) is inactive for about 30 seconds after the file is retrieved.

Examples

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
 

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 firmware 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
Related Commands

copy xmodem
show running-config
show tftp
show version
tftp filename
tftp server
upgrade mode

copy xmodem

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]

Syntax Description

src_file

Name of operation code or firmware file.

opcode

Upgrade operational firmware.

temporary

Download the operation code using the temporary mode, that is, store the downloaded code into RAM.

permanent

Download the operation code using the permanent mode, that is, store the downloaded code into nonvolatile RAM.

Default

Permanent mode.

If users do not specify src_file name, the default src_file name is the name specified in the tftp filename  filename command. If opcode is omitted, system attempts to use the host information set by the command upgrade mode mode.

Command Mode

Privileged EXEC

Usage Guidelines

If users do not specify the src_file name or the download mode, the src_file name, and download mode is the same as that 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.

Example

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
Related Commands

copy tftp
show running-config
show version

databits

Use the databits line-configuration command to set the data bits per character for the console port. Use the no databits command to set the number of data bits to its default value.

databits {7 | 8}
no databits

Syntax Description

7 or 8

Number of data bits per character.

Default

8 data bits per character.

Command Mode

Line configuration

Example

This example shows how to set the number of data bits per character to 7.

hostname(config)# line console
hostname(config-line)# databits 7
Related Commands

parity
speed (line configuration)
stopbits
terminal

debug memory read

Use the debug memory read privileged EXEC command to display the system memory addresses.

debug memory read {byte | hword | word} address_begin length

Syntax Description

byte

Display address by byte unit.

hword

Display address by 4-byte half-word unit.

word

Display address by 8-byte word unit.

address_begin

First memory address in display.

length

Number of addresses in display.

Default

This command has no default value.

Command Mode

Privileged EXEC

Examples

This example shows how to display three memory addresses by byte, starting with 0x10000.

hostname# debug memory read byte 0x10000 0x30
 
Address   00 01 02 03 04 05 06 07 - 08 09 0A 0B 0C 0D 0E 0F
---------  -------------------------------------------------
0x0010000  00 10 23 22 32 22 22 7c - 12 33 22 33 44 2f 11 22
0x0010010  02 20 23 25 32 22 22 7d - ff ff ff 33 4d 22 10 22
0x0010020  04 30 29 22 32 22 22 7c - cc 3f 22 3e 44 22 11 d2
 

This example shows how to display three memory addresses by word, starting with 0x10000.

hostname# debug memory read word 0x10000 0x30
 
 Address   00       04       - 08       0C
---------  -------------------------------------------------
0x0010000  00102322 3222227c - 12332233 442f1122
0x0010010  02202325 3222227d - ffffff33 4d221022
0x0010020  04302922 3222227c - cc3f223e 442211d2
Related Commands

debug memory write

debug memory write

Use the debug memory write privileged EXEC command to to write address data to the switch.

debug memory write {byte | hword | word} address_begin length

Syntax Description

byte

Display address by byte unit.

hword

Display address by 4-byte half-word unit.

word

Display address by 8-byte word unit.

address_begin

First memory address in display.

length

Number of addresses in display.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to write address 0x123456 to the switch memory for debugging.


Note The debug memory read command is used here to display the results of the debug memory write command.
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
Related Commands

debug memory read

delete nvram

Use the delete nvram privileged EXEC command to reset the switch configuration to factory defaults.

delete nvram

Default

Factory defaults.

Command Mode

Privileged EXEC

Usage Guidelines

Note Resetting the system to defaults also resets/restarts the switch.
Example

This example shows how to reset system configuration to factory defaults.

hostname(config)# delete nvram
Reset system configuration to factory defaults [Y]es or [N]o?

Press Y or N to proceed, any other key to abort.

Related Commands

reload

description

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

Syntax Description

name-string

A text description between 1 and 80 alphanumeric characters.

Default

This command has no default value.

Command Mode

Interface configuration

Usage Guidelines

If you want to enter a description with spaces between characters, you must enclose the string in quotation marks (see "Paul's machine" example.)

Example

This example shows how to give the name Hal to Fast Ethernet port 1.

hostname(config)# interface fastethernet 0/1
hostname(config-if)# description Hal

This example shows how to give the name Paul's machine to Fast Ethernet port 8.

hostname(config)# interface fastethernet 0/8
hostname(config-if)# description "Paul's machine"
Related Commands

interface
show interfaces

disable

Use the disable privileged EXEC command to exit the privileged access mode and enter user EXEC mode.

disable

Syntax Description

This command has no arguments or keywords.

Command Mode

Privileged EXEC

Example

This example shows how to exit the privileged EXEC mode and change to user EXEC mode.

hostname# disable
hostname>
Related Command

enable
end
exit

duplex

Use the duplex interface configuration command to enable duplex mode for a selected port interface.

duplex {auto | full | half}

Syntax Description

auto

Auto-negotiation of duplex mode.

full

Full-duplex mode only.

half

Half-duplex mode only.

Defaults

Auto

Command Mode

Interface configuration

Usage Guidelines

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.

Example

This example shows how to set Fast Ethernet switch port 1 to full-duplex mode.

hostname(config)# interface fastethernet 0/2
hostname(config-if)# duplex full
Related Commands

interface
speed (interface configuration)

enable

Use the enable privileged EXEC command to set the EXEC mode access level.

enable [access-level]

Syntax Description

access-level

Either 1 (user EXEC level) or 15 (privileged EXEC level).

Default

The access-level default for initial login is 1. The default access level after login is 15.

Command Mode

Privileged EXEC

Usage Guidelines

If a password is configured, you are prompted for the password:

Password:
 

You have three attempts to provide the correct password. If you exceed the maximum number of attempts, you are automatically logged out.

Example

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#
Related Command

configure
disable
interface
line console

enable password

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]

Syntax Description

level

Level for which the password applies:

1 User EXEC privileges.
15 Privileged EXEC privileges.

password

A string of between 4 and 8 alphanumeric characters (not case sensitive).

Default

No passwords are set. Privilege level defaults to level 15.

Command Mode

Global configuration

Usage Guidelines

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.

Examples

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
Related Command

enable

end

Use the end configuration command to exit any configuration mode and enter privileged EXEC mode.

end

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

All configuration modes.

Example

This example shows how to exit the global configuration mode and enter privileged EXEC mode.

hostname(config)# end
hostname#
Related Commands

exit

exit

Use the exit configuration command to exit the system or current configuration mode.

exit

Syntax Description

This command has no arguments or keywords.

Command Mode

All configuration modes.

Usage Guidelines

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 commands sets the mode to privileged EXEC. If the current mode is any other configuration mode, this command sets the mode to global configuration.

Example

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-if)# exit
hostname(config)#
Related Commands

disable
end

help

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.

help

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Example

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 line configuration mode.

hostname(config-line)# ?
 
Line configuration commands:
databits         Set Number of data bits per character
end              Exit from line configuration mode, to Privileged mode
exit             Exit from line configuration mode, to Global mode
help             Description of the interactive help system
no               Negate a command or set its defaults
parity           Set terminal parity
password-thresh  Configure the maximum password threshold
silent-time      Configure the silent time on login intrusion
speed            Set transmit and receive speeds
stopbits         Set asynch line stop bits
time-out         Configure the line idle time-out period
 

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
Related Commands

None

hostname

Use the hostname global configuration command to set the system name. Use the no hostname command to clear the name.

hostname name
no hostname

Syntax Description

name

System name between 1 and 255 alphanumeric characters.

Default

There is no default for this command.

Command Mode

Global configuration

Example

This example shows how to set the system name to the string Zorro.

(config)# hostname Zorro
Zorro(config)#
Related Commands

None

interface

Use the interface global configuration command to enter interface configuration mode for a designated port.

interface type module/port

Syntax Description

type

Interface type. The valid value is fastethernet.

module

Module interface number. Valid value for module is 0.

port

Port number from 1 to 8.

Default

This command has no default interface.

Command Mode

Global configuration

Example

This example shows how to enter interface configuration mode for Fast Ethernet port 5.

hostname(config)# interface fastethernet 0/5
hostname(config-if)#
Related Commands

configure
disable
enable
line console
show interfaces

ip address

Use the ip address global configuration command to configure switch 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

Syntax Description

ipaddress

IP address in dotted decimal notation.

mask

Subnet mask in dotted decimal notation.

Default

IP address and subnet mask are not configured.

Command Mode

Global configuration

Usage Guidelines

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.

Example

This example shows how to set the switch IP address to 210.68.150.15 and the subnet mask to 255.255.255.0.

hostname(config)# ip address 210.68.150.15 255.255.255.0
Related Commands

ip state
ip default-gateway
show ip

ip default-gateway

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 ipaddress
no ip default-gateway

Syntax Description

ip-address

Gateway IP address in dotted decimal notation.

Default

Gateway address is not configured.

Command Mode

Global configuration

Usage Guidelines

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.
Example

This example shows how to set the default gateway address to 210.68.150.15.

hostname(config)# ip default-gateway 210.68.150.15
Related Commands

ip address
ip state
show ip

ip http port

Use the ip http port global configuration command to select a Transmission 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

Syntax Description

port-number

TCP port number between 0 and 65535.

Note Port 23 is reserved as the Telnet port.
Default

TCP port 80.

Command Mode

Global configuration

Example

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
Related Commands

ip http server

ip http server

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
no ip http server

Syntax Description

This command has no arguments or keywords.

Default

HTTP server functions are enabled.

Command Mode

Global configuration

Example

This example shows how to disable HTTP server functions.

hostname(config)# no ip http server
Related Command

ip http port

ip state

Use the ip state global configuration command to select the method for discovering the hub's IP address source.

ip state {user | bootp}

Syntax Description

user

User supplies IP address in response to a system prompt.

bootp

BootP Protocol provides the IP address.

Default

User configuration mode

Command Mode

Global configuration

Example

This example shows how to select BootP to find the system IP address.

hostname(config)# ip state bootp
 

This example shows how to select user to find the system IP address.

hostname(config)# ip state user
Related Commands

ip address
ip default-gateway

line console

Use the line console global configuration command to change to line-configuration mode for the console port.

line console

Syntax Description

This command has no additional arguments or keywords.

Command Mode

Global configuration

Example

This example shows how to change the command mode from global configuration to line configuration.

hostname(config)# line console
hostname(config-line)#
Related Commands

enable
configure
interface

monitor-port

Use the monitor-port global configuration command to enable port monitoring features. Use the no monitor-port command to clear the monitor port and disable monitoring.

monitor-port
no
  monitor-port

Syntax Description

This command has no arguments or keywords.

Default

Monitor port is disabled.

Command Mode

Global configuration

Usage Guidelines

Frames are monitored only if the capture-list is not empty and a monitor port is assigned.

Example

This example shows how to enable port monitoring.

hostname(config)# monitor-port
Related Commands

monitor-port port
monitor-port monitored
show port monitor

monitor-port monitored

Use the monitor-port monitored global configuration command to designate the port that is monitored by the monitor-port port command. Use the no monitor-port monitored command to set the monitor port to the default value.

monitor-port monitored port
no  monitor-port monitored [port]

Syntax Description

port

A port number between 1 and 8. If a port is not specified in the no monitor-port monitored command, all ports are deleted.

Default

No ports are monitored.

Command Mode

Global configuration

Examples

This example shows how to designate port 5 as the port to be monitored.

hostname(config)# monitor-port monitored 5
Related Commands

monitor-port
monitor-port port
show port monitor

monitor-port port

Use the monitor-port port global configuration command to specify which port acts as the monitor port. Use the no monitor-port port command to clear the monitor port and disable port monitoring.

monitor-port port port_no
no monitor-port port

Syntax Description

port_no

Port number between 1 and 8.

Default

The default is no monitor port.

Command Mode

Global configuration

Example

This example shows how to specify port 8 as the monitor port for the switch.

hostname(config)# monitor-port port 8
 

This example shows how to clear the monitor port and disable port monitoring.

hostname(config)# no monitor-port port
Related Commands

monitor-port
monitor-port monitored
show port monitor

parity

Use the parity line-configuration command to set the parity of the console port. Use the no parity command to disable parity for the port.

parity {none | odd | even | mark | space}
no parity

Syntax Description

none

No parity.

odd

Odd parity.

even

Even parity.

mark

Mark parity.

space

Space parity.

Default

The default is no parity.

Command Mode

Line configuration

Example

The following example shows how to set the Ethernet port parity to odd.

hostname(config)# line console
hostname(config-line)# parity odd
Related Commands

databits
speed (line configuration)
stopbits
terminal

password-thresh

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

Syntax Description

threshold

A value between zero and 65500 password attempts. A value of 0 equals no password checking.

Default

The default value is three attempts.

Command Mode

Line configuration

Usage Guidelines

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. A password-thresh value of 0 equals no password checking.

Example

This example shows how to set the password attempt threshold to 5.

hostname(line-config)# password_thresh 5
Related Commands

silent-time
time-out

ping

Use the ping user EXEC command to test the connectivity between the switch and a connected host. The ping command sends an ICMP echo message (ping) to the specified IP address.

ping {ip-address}

Syntax Description

ip-address

Target IP address in dotted-decimal notation.

Default

This command has no default value.

Command Mode

User EXEC

Example

The following example shows how to ping the host at IP address 210.68.150.254.

hostname> ping 210.68.150.254
 
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 210.68.150.254, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/6/ ms
Related Commands

ip address
ip default-gateway
show ip

reload

Use the reload privileged EXEC command to reset the switch. This command prompts the user to confirm the reset. This command retains configured system parameters and static addresses and deletes dynamic addresses.

reload

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

After you enter this command, the system displays the following message:

Reset system, [Y]es or [N]o?
 

Press Y to proceed or N to abort.

Example

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?
Related Command

delete nvram
copy tftp
copy xmodem

show cdp

Use the show cdp privileged EXEC command to display Cisco Discovery Protocol (CDP) status and configuration information for the switch.

show cdp

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

The following example shows how to display the CDP configuration for a switch.

hostname> show cdp
 
Global CDP information:
Sending CDP packets every 60 seconds
Sending a holdtime value of 180 seconds
Related Commands

show cdp interface
show cdp neighbors

show cdp interface

Use the show cdp interface privileged EXEC command to display CDP status and configuration.

show cdp interface [type module/port]

Syntax Description

type

Interface type. The valid value for type is fastethernet.

module

The module interface number. The valid value for module is 0.

port

A port number between 1 and 8.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

If the type and module/port of the interface are not specified, CDP configuration on all interfaces is displayed.

Example

The following example shows how to display CDP status information for port 1.

hostname# show cdp interface fa 0/1
 
Cdp enabled
Related Commands

show cdp
show cdp neighbors

show cdp neighbors

Use the show cdp neighbors privileged EXEC command to display Cisco Discovery Protocol (CDP) information about other devices directly connected to a switch (neighbors).

show cdp neighbors [type module/port] [detail]

Syntax Description

type

Interface type. Valid value is fastethernet.

module

Module interface number. The valid value for module is 0.

port

Port number between 1 and 8.

detail

Optional command to show detail information for the port.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

The following example shows how to display all discovered switch neighbors using CDP.

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         Local Port Capability Platform      Remote Port
Internal-Rou 210.68.150.254  Fa0/6      R          Cisco 2500    Ethernet1
 

This example shows how to display detail information about port 6 neighbors using CDP.

hostname# show cdp neighbors fastethernet 0/6 detail
 
Device ID: Internal-Router
Entry Address: 210.68.150.254
Platform: Cisco 2500
Capabilities: Router
Remote Interface: Ethernet 1
Local Interface: FastEthernet 0/6
Related Commands

cdp enable
cdp holdtime
cdp run
cdp timer
show cdp interface

show history

Use the show history user EXEC command to display the EXEC commands used that session.

show history

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Usage Guidelines

Configuration commands are not included in the command list.

Example

This example shows how to list the nonconfiguration EXEC commands used during a session.

hostname# show history
 
enable
config
end
disable
show history
Related Commands

None

show interfaces

Use the show interfaces privileged EXEC command to display statistics and status for all or specified switch interfaces.

show interfaces [type module/port]

Syntax Description

type

Interface type. The valid value is fastethernet.

module

Module number. Valid range module is 0.

port

Port number. Valid range is 1 to 8.

Default

If you do not specify a type or a module/port, statistics and status for all interfaces appear.

Command Mode

Privileged EXEC

Usage Guidelines

The output to this command varies depending on the network for which an interface has been configured.

Examples

The following example shows how to display statistics and status for Ethernet port 1.

hostname# show interfaces fastethernet 0/1
 
FastEthernet 0/1  is Enabled
Hardware is Fast Ethernet
Address is 0000.ffff.0104
MTU 1500 bytes, BW 100000 Kbits
802.1d STP State:  FORWARDING, Forward Transitions: 1
Port monitoring: Disabled,
Description: port-1
Speed settings: Auto-negotiation
Auto-negotiation Status: 100M
Duplex settings: Auto-negotiation
Auto-negotiation Status: Half
 
Counters
--------------------------------------------------------------------------
Bytes Received               5251647  Bytes Sent                     19753
Frames Received                34411  Frames Sent                      249
Total Bytes                  5271400  Total Frames                   34660
Broadcast Frames Received      30106  Multicast Frames Received       3242
CRC Error                          0  Oversize Frames                    0
Fragments                          0  Frame Too Long Events              0
Collision                          0  Late Collision                     0
64 Byte Frames                  6021  65-127 Byte Frames             18209
128-255 Byte Frames             7722  256-511 Byte Frames             2643
512-1023 Byte Frames              65  1024-1518 Byte Frames              0
MAC Rx Error                       0  Dropped Frames                     0
Related Commands

interface
duplex
description
speed (line configuration)

show ip

Use the show ip privileged EXEC command to display global IP configuration information, including the switch IP address, subnet mask, and default gateway.

show ip

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display global IP configuration information.

hostname# show ip
 
IP state: user
IP Address : 10.1.10.115
Subnet Mask : 255.255.255.0
Default Gateway : 10.1.10.254
HTTP server: enabled
HTTP port: 80
Related Commands

ip address
ip default-gateway
ip state

show line

Use the show line privileged EXEC command to display line-configuration information including baud rate, data bits, stop bits, parity setting, password threshold, silent time and time-out setting.

show line

Syntax Description

This command has no additional arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display line-configuration information.

hostname# show line
 
Baud rate9600 baud
Data bits8 bit(s)
Stop bits1 bit(s)
Parity settingNone
Password Threshold5 times
Silent Time180 second(s)
Time-out60 second(s)
Related Commands

databits
parity
password-thresh
silent-time
speed (line configuration)
stopbits
time-out

show mac-address-table

Use the show mac-address-table privileged EXEC command to display addresses in the MAC address table. If show mac-address-table is invoked with no options, all information in the address table is displayed.

show mac-address-table [dynamic] [address mac-address] [interface type module/port]

Syntax Description

dynamic

Optional. The only valid address type for the Micro Switch.

mac-address

MAC address number.

type

Interface type. Valid value for type is fastethernet.

module

Module number. Not for use with the Micro Switch. Valid value for module is 0.

port

Port number. Valid range is 1 to 8.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display all the restricted addresses configured in the system.

hostname# show mac-address-table dynamic
 
Number of dynamic addressees:	10
 
Dest Address	Dest Interface
-----------------------------------
0000.0c5c.e176	FastEthernet 0/7 
0000.2425.2ad2	FastEthernet 0/7
0053.4500.0106	FastEthernet 0/7
0053.4500.0900	FastEthernet 0/2
0053.4500.0902	FastEthernet 0/2
0060.5cf4.0076	FastEthernet 0/7
0060.5cf4.0077	FastEthernet 0/7
0060.5cf4.0079	FastEthernet 0/3
0060.70cb.f301	FastEthernet 0/7
0060.8337.a7d1	FastEthernet 0/7
 

This example shows how to display the restricted addresses configured in the system for port 7.

hostname# show mac-address-table dynamic interface fa0/7
 
Dest Address	Dest Interface
-----------------------------------
0000.0c5c.e176	FastEthernet 0/7
0000.2425.2ad2	FastEthernet 0/7
0053.4500.0106	FastEthernet 0/7
0060.5cf4.0076	FastEthernet 0/7
0060.5cf4.0077	FastEthernet 0/7
0060.70cb.f301	FastEthernet 0/7
0060.8337.a7d1	FastEthernet 0/7
Related Commands

clear mac-address-table

show port monitor

Use the show port monitor privileged EXEC command to display the current status of the monitor port setting and if enabled, the monitor port and the ports being monitored.

show port monitor

Syntax

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

These examples show two typical displays of the monitor port settings.

hostname# show port monitor
 
Port Monitoring State : Enabled
Monitor Port : 8
Port being monitored : 5
 
hostname# show port monitor
 
Port Monitoring State : Disabled
Related Commands

monitor-port
monitor-port monitored
monitor-port port

show running-config

Use the show running-config privileged EXEC command to display the list of configuration commands that modify the system default configuration.

show running-config

Syntax

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the configuration commands that modify the system configuration.

hostname# show running-config
 
Building configuration...
Current configuration:
!
version 2.2
!
hostname jason-t1
!
!
!
interface fa0/1
cdp
!
!
line con
 stopbits 1
!
end 
Related Commands

show history

show snmp

Use the show snmp privileged EXEC command to display Simple Network Management Protocol (SNMP) configuration information such as community string, trap manager, set host, and trap status.

show snmp

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display SNMP information for the switch.

hostname# show snmp
 
Read community string: public
Write community string: private
Contact: John Doe
Location: Building 12
 
Trap managerCommunity string
-------------------------------
172.20.128.165public
172.20.128.166private
172.20.128.167public
172.20.128.168private
 
Set hosts
---------------
172.20.128.170
172.20.128.171
172.20.128.172
172.20.128.173
Related Commands

snmp-server community
snmp-server contact
snmp-server enable-trap
snmp-server host
snmp-server location
snmp-server set-host

show snmp contact

Use the snmp-server contact user EXEC command to display the contact name for the person responsible for Simple Network Management Protocol (SNMP) monitoring as set by the command snmp-server contact.

show snmp contact

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the SNMP contact.

hostname# show snmp contact
John Smith
Related Commands

snmp-server contact
snmp-server location

show snmp hostname

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.

show snmp hostname

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

Use the hostname command to provide the name of the SNMP host server.

Example

This example shows how to display the name of the SNMP host server:

hostname# show snmp hostname
 
MegaHostServer
Related Commands

hostname
show snmp contact
snmp-server host
snmp-server set-host

show snmp location

Use the show snmp location privileged EXEC command to display the location string for the Simple Network Management Protocol (SNMP) server as set by the command snmp-server location.

show snmp location

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the SNMP server location:

hostname# show snmp location
 
Building 1234-A-6
Related Commands

show snmp contact
snmp-server location

show snmp set-hosts

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 as set by the command snmp-server set-host.

show snmp set-hosts

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

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
Related Commands

snmp-server set-host

show snmp traps

Use the show snmp traps privileged EXEC command to display all Simple Network Management Protocol (SNMP) trap information for the switch as set by the command snmp-server enable-trap.

show snmp traps

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display all SNMP trap information.

hostname# show snmp traps
 
Authentication trap: Enabled
Link up/link down trap: Enabled
 
Host                        Community String
--------------------------------------------
172.20.128.126
172.20.127.123              private
Related Commands

snmp-server enable-trap

show spantree

Use the show spantree privileged EXEC command to display the path cost and port priority of the Spanning-Tree Protocol port.

show spantree [interface type module/port]

Syntax Description

type

Interface type. Valid value for type is fastethernet.

module

Module number. Valid value for module is 0.

port

Port number. Valid range is 1 to 8.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the path cost and port priority for the Fast Ethernet Spanning-Tree Protocol port 3.

hostname# show spantree interface fastethernet 0/3
 
Path-cost: 200
Port Priority: 25
Related Commands

spantree (port) priority
spantree cost

show spantree vlan

Use the show spantree vlan privileged EXEC command to display Spanning-Tree Protocol configuration status for the switch.

show spantree vlan


Note The initial release of the firmware supports STP for VLAN 1 only.
Syntax Description

vlan

A VLAN number from 1 to 4. Valid value for vlan is 1.

Default

The default display is for VLAN 1.

Command Mode

Privileged EXEC

Example

This example shows how to display the Spanning-Tree Protocol configuration status for VLAN 1.

hostname# show spantree 1
 
Number of Spanning Trees running : 1
VLAN spanning trees enabled : 1
 
VLAN1 is EXECuting the IEEE compatible Spanning-Tree Protocol
  Bridge Identifier has priority 32768, address 00e0.1e69.2300
  Configured hello time 2, max age 20, forward delay 15
  Current root has priority 32768, address 0053.4500.0000
  Root port is 4 (fa0/4), cost of root path is 130
  Topology change flag not set, detected flag not set
  Times:  hold 1, topology change 35, notification 2
          hello 2, max age 20, forward delay 15
  Timers: hello 0, topology change 0, notification 0
 
Port 1 (fa0/1) of VLAN1 is down
   Port path cost 10, Port priority 128
   Designated root has priority 32768, address 0053.4500.0000
   Designated bridge has priority 32768, address 00e0.1e69.2300
   Designated port is 1, path cost 130
   Timers: message age 0, forward delay 14, hold 0
   BPDU: sent 1, received 0  
 
Port 4 (fa0/4) of VLAN1 is FORWARDING
   Port path cost 10, Port priority 128
   Designated root has priority 32768, address 0053.4500.0000
   Designated bridge has priority 32768, address 00c0.1d80.55ee
   Designated port is 3, path cost 120
   Timers: message age 4, forward delay 0, hold 0
   BPDU: sent 10, received 31574  
 
Port 6 (fa0/6) of VLAN1 is FORWARDING
   Port path cost 10, Port priority 128
   Designated root has priority 32768, address 0053.4500.0000
   Designated bridge has priority 32768, address 00e0.1e69.2300
   Designated port is 6, path cost 130
   Timers: message age 0, forward delay 0, hold 0
   BPDU: sent 31584, received 3
Related Commands

show spantree
spantree

show terminal

Use the show terminal user EXEC command to displays line configuration information including baud rate, data bits, stop bits, and parity setting.

show terminal

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Example

This example shows how to display line configuration information for the switch.

hostname# show terminal
 
RS-232 CONFIGURATION:
38400 baud, 8 data bits, 2 stop bits, None parity
Related Commands

databits
parity
speed (line configuration)
stopbits
terminal

show tftp

Use the show tftp privileged EXEC command to display firmware configurations, including the default TFTP server IP address, the filename for firmware upgrades, the download mode, and the upgrade status.

show tftp

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the firmware configurations for the switch.

hostname# show tftp
 
TFTP Server: 203.10.234.23
TFTP Firmware Upgrade File: op.bin
Upgrade Mode: permanent Upgrade Status: No upgrade currently in progress.
Related Commands

copy tftp
tftp filename
tftp server
upgrade mode

show version

Use the show version user EXEC command to display basic hardware and firmware version information.

show version

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

User EXEC

Example

This example shows how to display the basic switch hardware and firmware:

hostname> show version
 
Cisco 1548M Micro Switch 10/100 Software, V0.22.3(6)
Copyright (c) Cisco Systems, Inc. 1993-1999
ROM: System Bootstrap, V1.9.0(2)
Host uptime 0 days 0 hrs 36 mins 4 secs
MPC801 processor with 4096K bytes of memory.
Serial number: ACT98420119
Hardware board version is 3
Upgrade status: No upgrade currently in progress.
8K bytes of non-volatile configuration memory.
8 Fast Ethernet/IEEE 802.3 interface(s)
Base ethernet MAC Address: 0000.ffff.00ff
Related Commands

None

show vlan

Use the show vlan privileged EXEC command to display the settings of one or more virtual LAN configuration parameters. Up to four VLANs can be specified in the optional argument vlan-list.

show vlan vlan-list


Note The initial release of the firmware supports STP for VLAN 1 only.
Syntax Description

vlan-list

VLAN identification number from 1 to 4.

Default

This command has no default value.

Command Mode

Privileged EXEC

Usage Guidelines

If vlan-list is not specified, the system displays all VLAN configuration parameters.

Example

This example shows how to display the settings of all VLAN configuration parameters:

hostname# show vlan
 
VLAN     Ports
---- ---------------
1      1-3, 5
2      4, 8
3      7
4      6
Related Commands

show vlan-membership
vlan-membership

show vlan-membership

The show vlan-membership privileged EXEC command displays the VLAN assignment and membership type for all switch ports.

show vlan-membership

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Privileged EXEC

Example

This example shows how to display the VLAN assignment and membership type for all switch ports.

hostname# show vlan-membership
 
Port#   VLAN#
-------------
  1       1
  2       1
  3       4
  4       3
  5       2
  6       1
  7       1
  8       3
Related Commands

show vlan
vlan-membership

shutdown

Use the shutdown interface configuration command to disable an interface. Use the no shutdown command to restart a disabled interface.

shutdown
no shutdown

Syntax Description

This command has no arguments or keywords.

Default

This command has no default value.

Command Mode

Interface configuration

Usage Guidelines

To disable an interface, you must first select that interface from the global configuration mode by using the interface command.

Example

This example shows how to disable Fast Ethernet port 7:

hostname(config)# interface fastethernet 0/7
hostname(config-if)# shutdown
 
Related Command

configure
interface

silent-time

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. Use the no silent-time command to automatically set the silent time value to 0.

silent-time time
no silent-time

Syntax Description

time

A value in seconds between zero and 65500. A value of zero means that silent time is off.

Default

The default value is no silent time.

Command Mode

Line configuration

Usage Guidelines

If the password threshold was not set with the password-thresh command, silent-time begins after the default value three attempts to logon.

Example

This example shows how to set the console port silent-time value to 60 seconds.

hostname(config)# line console
hostname(line-config)# silent-time 60
Related Commands

password-thresh
time-out

snmp-server community

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 delete the existing community string.

snmp-server community string [ro | rw]
no snmp-server community string

Syntax Description

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.

Default

Read-only (ro).

The default value of the read-only community string is public. The default value of the read-write community string is private.

Command Mode

Global configuration

Example

This example shows how to set the read-write community string to newstring.

hostname(config)# snmp-server community newstring rw
Related Commands

snmp-server host
snmp-server set-host
snmp-server enable-trap

snmp-server contact

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

Syntax Description

contact-string

Character string of 1 to 255 alphanumeric characters.

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to set the SNMP contact name to system_admin:

hostname(config)# snmp-server contact system_admin
Related Commands

show snmp contact

snmp-server enable-trap

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 contact 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}

Syntax Description

all

All traps.

authentication

Authentication failure trap.

link-up-down

Link-up and link-down traps.

Default

Authentication failure and link-up and link-down traps are enabled.

Command Mode

Global configuration

Example

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
Related Commands

snmp-server community
snmp-server host
snmp-server set-host

snmp-server 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 switch. 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

Syntax Description

host_ip

IP address of trap host in dotted-decimal notation.

community-string

Community string value between 1 and 32 alphanumeric characters.

Default

No trap hosts are configured.

Command Mode

Global configuration

Usage Guidelines

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.

Example

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
Related Commands

snmp-server community
snmp-server enable-trap
snmp-server set-host

snmp-server location

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

Syntax Description

location-string

String between 1 and 255 alphanumeric characters.

Default

No SNMP location is specified.

Command Mode

Global configuration

Example

This example shows how to specify the SNMP location string as sysadmin-office:

hostname(config)# snmp-server location sysadmin-office
Related Commands

show snmp location

snmp-server set-host

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 switch. 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

Syntax Description

host_ip

IP address of set host in dotted-decimal notation.

Default

No set hosts are configured.

Command Mode

Global configuration

Usage Guidelines

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.

Example

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
Related Commands

snmp-server community
snmp-server enable-trap
snmp-server host

spantree

Use the spantree global configuration command to enable the Spanning-Tree Protocol (STP) for a given virtual LAN (VLAN) list. Use the no spantree command to disable STP on specified VLANS.

spantree vlan-list
no spantree vlan-list


Note The initial release of the firmware supports STP for VLAN 1 only.
Syntax Description

vlan-list

Up to four numbers, each from 1 to 4.

Default

Spanning tree is enabled for VLAN 1.

Command Mode

Global configuration

Usage Guidelines

Up to four VLAN groups can be specified. If you specify more than one VLAN group, separate group numbers with spaces.

Example

This example shows how to disable STP on VLAN 4 and VLAN 2:

hostname(config)# no spantree 4 2
Related Commands

show spantree vlan

spantree cost

Use the spantree cost interface configuration command to change the spanning-tree path cost for an interface. Use the no spantree cost command to select the default port path cost value.

spantree cost cost-value
no spantree cost

Syntax Description

cost-value

Valid range is 1 to 65535.

Default

19 for 100-Mbps ports, 100 for 10-Mbps ports.

Command Mode

Interface configuration

Example

This example shows how to change the spanning-tree path cost for Ethernet port 1 to the value 10:

hostname(config)# interface fastethernet 0/1
hostname(config-if)# spantree cost 10
Related Commands

interface
show spantree

spantree forwarding-time

Use the spantree forwarding-time global configuration command to specify the Spanning-Tree Protocol (STP) forward-delay interval for a given virtual LAN (VLAN).

spantree vlan-id forwarding-time [seconds]


Note The initial release of the firmware supports STP for VLAN 1 only.
Syntax Description

vlan-id

A VLAN ID number from 1 to 4.

seconds

Forward delay in seconds. Valid range is 4 to 30.

Default

15 seconds

Command Mode

Global configuration

Usage Guidelines

Note Forwarding-time is the interval during which a port moves from the listening to the learning state and then from the learning to the forwarding state. A port moving from the blocking to the forwarding state actually goes through two states.

Cisco recommends that the value you specify for forwarding delay reflects the following relationship:




Example

This example shows how to assign a forward-delay interval of 20 seconds to VLAN 1:

hostname(config)# spantree 1 forwarding-time 20
Related Commands

spantree hello-time
spantree max-age
spantree (vlan-id) priority

spantree hello-time

Use the spantree hello-time global configuration command to specify the Spanning-Tree Protocol (STP) hello time for a given virtual LAN (VLAN).

spantree vlan-id hello-time seconds


Note The initial release of the firmware supports STP for VLAN 1 only.
Syntax Description

vlan-id

A VLAN identification number from 1 to 4.

seconds

Hello-time in seconds. Valid range is 1 to 10.

Default

2 seconds

Command Mode

Global configuration

Usage Guidelines

Note Hello-time is the interval between successive Bridge Protocol Data Unit (BPDU) transmissions by a root bridge for the VLAN.

Cisco recommends that the value you specify for hello-time reflects the following relationship:




Example

This example shows how to specify a hello-time of 5 seconds for bridge template 1:

hostname(config)# spantree 1 hello-time 5
Related Commands

spantree forwarding-time
spantree max-age
spantree (vlan-id) priority

spantree max-age

Use the spantree max-age global configuration command to specify the Spanning-Tree Protocol (STP) maximum age for a specified virtual LAN (VLAN). Use the no spantree vlan max-age command to set the maximum age argument to its default value.

spantree vlan-id max-age seconds
no spantree vlan max-age


Note The initial release of the firmware supports STP for VLAN 1 only.
Syntax Description

vlan-id

Number from 1 to 4.

seconds

Maximum age in seconds. Valid range is 6 to 40.

Default

20 seconds

Command Mode

Global configuration

Usage Guidelines

The maximum age is the age of the Bridge Protocol Data Unit (BPDU) message since the generation of the BPDU by a root bridge for the VLAN. This value is useful for discarding old or obsolete information.

Cisco recommends that the value you specify reflects the following relationship:




Example

This example shows how to specify a maximum age of 30 seconds for VLAN 1:

hostname(config)# spantree 1 max-age 30
Related Commands

spantree forwarding-time
spantree hello-time
spantree (vlan-id) priority

spantree portfast

Use the spantree portfast interface configuration command to enable Port Fast mode. Use the no spantree portfast to disable Port Fast mode.

spantree portfast
no spantree portfast

Syntax Description

This command has no arguments or keywords.

Default

Disabled

Command Mode

Interface configuration

Usage Guidelines

When a port moves from blocking to forwarding state, the Port-Fast mode omits the intermediate listening and learning states, providing instant network access.

Example

This example shows how to enable Port Fast mode for Fast Ethernet interface 3.

hostname(config)# interface fa 0/3 
hostname(config-if)# spantree portfast
Related Commands

show spantree

spantree (port) priority

Use the spantree (port) priority interface configuration command to change the spanning-tree port priority of an interface.

spantree (port) priority priority-value

Syntax Description

priority-value

A priority value between 0 and 255.

Default

128

Command Mode

Interface configuration

Example

This example shows how to change the spanning-tree port priority for Fast Ethernet port 1 to the value 100:

hostname(config)# interface fastethernet 0/1
hostname(config-if)# spantree priority 100
Related Commands

spantree (vlan-id) priority
show spantree

spantree (vlan-idpriority

Use the spantree (vlan-id) priority global configuration command to specify the Spanning-Tree Protocol (STP) bridge priority for a specified virtual LAN (VLAN).

spantree vlan-id priority value


Note The initial release of the firmware supports STP for VLAN 1 only.
Syntax Description

vlan-id

Number from 1 to 4.

value

Bridge priority. Valid range is 0 to 65535.

Default

The default bridge priority is 32768.

Command Mode

Global configuration

Example

This example shows how to specify a bridge priority value of 30 for bridge template 1:

hostname(config)# spantree 1 priority 30
Related Commands

spantree forwarding-time
spantree hello-time
spantree max-age

speed (line configuration)

Use the speed (line configuration) command to set the baud rate for a management terminal connected to a Micro Switch console port.

speed {2400 | 9600 | 19200 | 38400 | 57600}

Syntax Description

2400 | 9600 | 19200 | 38400 | 57600

Baud rate.

Default

9600

Command Mode

Line configuration

Example

This example shows how to set the console port baud rate to 19200.

hostname(config)# line console
hostname(line-config)# speed 19200
Related Commands

databits
parity
stopbits
terminal

speed (interface configuration)

Use the speed (interface configuration) command to select the way in which a selected port adjusts its port speed to that of its neighbor.

speed {auto | 100M | 10M}

Syntax Description

auto

Auto-negotiation mode.

100M

100 Mbps mode only.

10M

10 Mbps mode only.

Default

Auto

Command Mode

Interface configuration

Usage Guidelines

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.

Example

This example shows how to set port 4 to operate exclusively at 100 Mbps.

hostname(config)# interface fastethernet 0/4
hostname(config-if)# speed 100M
Related Commands

configure
duplex

stopbits

Use the stopbits Line configuration command to set the number of stop bits for the console port.

stopbits {1 | 2}
no stopbits

Syntax Description

1 | 2

RS-232 port stop bits.

Default

1 stop bit

Command Mode

Line configuration

Example

This example shows how to set the number of console port stop bits to 2:

hostname(config)# line console
hostname(config-line)# stopbits 2
Related Commands

databits
parity
speed (interface configuration)
terminal

terminal

Use the terminal user EXEC command to set the attributes of the Micro Switch console port without entering privileged EXEC mode.

terminal [speed {2400 | 9600 | 19200 | 38400 | 57600}] [databits {7 | 8}] [stopbits {1 | 2}]
[parity {none | odd | even}]

Syntax Description

speed

Transmit and receive speeds: 2400, 9600, 19200, 38400, or 57600.

databits

Number of data bits per character: 7 or 8.

stopbits

Asynchronous line stop bits: 1 or 2.

parity

Terminal parity: none, odd, even.

Default

9600 baud, 8 data bits, 1 stop bit, and no parity.

Command Mode

User EXEC

Examples

This example shows how to set the console port baud rate to 19200:

hostname> 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:

hostname> terminal speed 19200 databits 7 stopbits 1
Related Commands

databits
parity
speed (line configuration)
stopbits

tftp filename

Use the tftp filename global configuration command to designate the TFTP server download file name. Use the no tftp filename command to clear the file name.

tftp filename filename
no tftp filename

Syntax Description

filename

Designated TFTP download file name.

Default

This command has no default value.

Command Mode

Global configuration

Example

This example shows how to designate the TFTP download file name as jerry.bin.

hostname(config)# tftp filename jerry.bin
Related Commands

tftp server
show tftp

tftp server

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

Syntax Description

host_ip

IP address of TFTP server.

Default

0.0.0.0

Command Mode

Global configuration

Example

This example shows how to specify the IP address of the TFTP server as 210.68.150.15.

hostname(config)# tftp server 210.68.150.15

Related Commands

copy tftp
show tftp
tftp filename
upgrade mode

time-out

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 0 (no timeout).

time-out time
no time-out

Syntax Description

time

A time in seconds between 30 to 65500.

Default

The default value is no time-out.

Command Mode

Line configuration

Usage Guidelines

It is a good idea to set this value for security reasons.

Example

This example shows how to set the console port timeout value to 90 seconds.

hostname(config)# line console
hostname(line-config)# time-out 90
Related Commands

password-thresh
silent-time

vlan-membership

Use the vlan-membership interface configuration command to assign a port to a specified virtual LAN (VLAN). Use the no vlan-membership command to remove a port from a VLAN.

vlan-membership {vlan_no | all}
no vlan-membership {vlan_no | all}

Syntax Description

vlan_no

VLAN identifier value between 1 and 4.

all

Port belongs to all configured VLANs.

Default

All ports belong to VLAN 1.

Command Mode

Interface configuration

Example

This example shows how to set Fast Ethernet port 5 to VLAN 2.

hostname(config)# interface fastethernet 0/5
hostname(config-if)# vlan-membership 2

This example shows how to remove Fast Ethernet port 1 from all VLANs.

hostname(config)# interface fastethernet 0/1
hostname(config-if)# no vlan-membership all
Related Commands

show vlan
show vlan-membership

upgrade mode

Use the upgrade mode global configuration command to designate the destination of firmware upgrade files from the Trivial File Transfer Protocol (TFTP) server.

upgrade mode {permanent | temporary}

Syntax Description

permanent

Copy upgrade file to nonvolatile RAM (NVRAM).

temporary

Copy upgrade file to RAM.

Default

Permanent mode

Command Mode

Global configuration

Examples

This example shows how to designate the TFTP upgrade mode to RAM.

hostname(config)# upgrade mode temporary
Related Commands

copy tftp
show tftp
tftp server
tftp filename


hometocprevnextglossaryfeedbacksearchhelp
Posted: Fri Mar 19 17:06:05 PST 1999
Copyright 1989-1999©Cisco Systems Inc.