Reproduction of these materials in any manner whatsoever without the written permission of Dell Inc. is strictly forbidden. Trademarks used in this text: Dell, the DELL logo, and PowerConnect are trademarks of Dell Inc. Microsoft, Windows, and Windows Server are either trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Using the CLI This chapter describes how to start using the CLI and describes the command editing features to assist in using the CLI. CLI Command Modes Introduction To assist in configuring the device, the Command Line Interface (CLI) is divided into different command modes.
When starting a session, the initial mode is the User EXEC mode. Only a limited subset of commands are available in the User EXEC mode. This level is reserved for tasks that do not change the configuration. To enter the next level, the Privileged EXEC mode, a password is required. The Privileged EXEC mode gives access to commands that are restricted on User EXEC mode and provides access to the device Configuration mode.
The default host name is Console unless it was changed using the hostname command in the Global Configuration mode. Privileged EXEC Mode Privileged access is password protected to prevent unauthorized use because, many of the privileged commands set operating system parameters. The password is not displayed on the screen and is case sensitive.
To enter the Global Configuration mode, at the Privileged EXEC mode prompt enter the command configure and press <Enter>. The Global Configuration mode prompt is displayed. The Global Configuration mode prompt consists of the device host name followed by (config) and #. Console(config)# To return from the Global Configuration mode to the Privileged EXEC mode, the user can use one of the following commands:...
Pack 2 or later is installed. With Windows 2000 Service Pack 2, the arrow keys function properly in HyperTerminal’s VT100 emulation. Go to www.microsoft.com for information on Windows 2000 service packs. For more information, see Dell™ PowerConnect™ 3500 Series User's Guide. 2 Enter the following commands to begin the configuration procedure: Console>...
3 Configure the device and enter the necessary commands to complete the required tasks. 4 When finished, exit the session with the exit command. When a different user is required to log onto the system, use the login Privileged EXEC mode command.
When copying and pasting commands from a configuration file, make sure that the following conditions exist: • A device Configuration mode has been accessed. • The commands contain no encrypted data, like encrypted passwords or keys. Encrypted data cannot be copied and pasted into the device.
Command Completion An appropriate error message displays if the entered command is incomplete or invalid; or has missing or invalid parameters. This assists in entering the correct command. Keyboard Shortcuts The CLI has a range of keyboard shortcuts to assist in editing the CLI commands. The following table describes the CLI shortcuts.
Command Groups Introduction The Command Language Interface (CLI) is a network management application operated through an ASCII terminal without the use of a Graphical User Interface (GUI) driven software application. By directly entering commands, you achieve greater configuration flexibility. The CLI is a basic command-line interpreter similar to the UNIX C shell.
Page 34
Ethernet Configuration Configures all port configuration options for, example ports, storm control, and auto-negotiation. GVRP Commands Configures and displays GVRP configuration and information. IGMP Snooping Commands Configures IGMP snooping and displays IGMP configuration and IGMP information. IP Addressing Commands Configures and manages IP addresses on the device. IPv6 Addressing Commands Configures and manages IPv6 addresses on the device.
AAA Commands Command Group Description Access Mode aaa authentication login Defines login authentication. Global Configuration aaa authentication enable Defines authentication method lists for accessing higher Global privilege levels. Configuration login authentication Specifies the login authentication method list for a Line remote telnet or console.
deny (MAC) Denies traffic if the conditions defined in the deny MAC Access-List statement match Configuration service-acl Sets the default ace action to permit or deny. Interface Configuration show access-lists Applies an ACL to the input interface. Privileged EXEC show interfaces access- Displays ACLs defined on the device.
port security routed Adds MAC-layer secure addresses to a routed port. Interface secure-address Configuration show bridge address-table Displays all entries in the bridge-forwarding Privileged EXEC database. show bridge address-table Displays statically created entries in the bridge- Privileged EXEC static forwarding database. show bridge address-table Displays the number of addresses present in the Privileged EXEC...
sntp broadcast client Enables the Simple Network Time Protocol Global Configuration enable (SNTP) Broadcast clients. sntp anycast client enable Enables Anycast clients. Global Configuration sntp client enable Enables the Simple Network Time Protocol Global Configuration (SNTP) Broadcast and Anycast client on an interface.
show running-config Displays the contents of the currently running Privileged EXEC configuration file. show startup-config Displays the startup configuration file contents. Privileged EXEC show bootvar Displays the active system image file that the device Privileged EXEC loads at startup. DHCP Snooping Commands Command Group Description Access Mode...
Ethernet Configuration Commands Command Group Description Access Mode interface ethernet Enters the interface configuration mode to Global Configuration configure an Ethernet type interface. interface range ethernet Enters the interface configuration mode to Global Configuration configure multiple Ethernet type interfaces. shutdown Disables interfaces.
IP Addressing Commands Command Group Description Access Mode ip address Sets an IP address. Interface Configuration ip address dhcp Acquires an IP address on an interface from the Interface DHCP server. Configuration ip default-gateway Defines a default gateway (router). Global Configuration show ip interface Displays the usability status of interfaces configured...
IPv6 Addressing Commands Command Group Description Access Mode ipv6 enable Enables IPv6 processing on an interface. Interface Configuration ipv6 address autoconfig Enables automatic configuration of IPv6 addresses Interface Configuration using stateless autoconfiguration on an interface. ipv6 icmp error-interval Configures the rate limit interval and bucket size Global Configuration parameters for IPv6 ICMP error messages.
LACP Commands Command Group Description Access Mode lacp system-priority Configures the system LACP priority. Global Configuration lacp port-priority Configures the priority value for physical ports. Interface Configuration lacp timeout Assigns an administrative LACP timeout. Interface Configuration show lacp ethernet Displays LACP information for Ethernet ports. Privileged EXEC show lacp port-channel Displays LACP information for a port-channel.
Line Commands Command Group Description Access Mode line Identifies a specific line for configuration and enters Global Configuration the Line Configuration command mode. speed Sets the line baud rate. Line Configuration autobaud Sets the line for automatic baud rate detection. Line Configuration exec-timeout Configures the interval that the system waits until...
lldp med network- Attaches a LLDP MED network policy to a port. Interface configuration policy (interface) (Ethernet) lldp med location Interface configuration (Ethernet) clear lldp rx Restarts the LLDP RX state machine and clears the Privileged EXEC neighbors table. show lldp Displays the LLDP configuration.
management access-class Defines which management access-list is used. Global Configuration show management Displays management access-lists. Privileged EXEC access-list show management Displays the active management access-list. Privileged EXEC access-class PHY Diagnostics Commands Command Group Description Access Mode test copper-port tdr Diagnoses with TDR (Time Domain Reflectometry) Privileged EXEC technology the quality and characteristics of a copper cable attached to a port.
Port Channel Commands Command Grou p Description Access Mode interface port-channel Enters the interface configuration mode of a specific Global port-channel. Configuration interface range port- Enters the interface configuration mode to Global channel configure multiple port-channels. Configuration channel-group Associates a port with a port-channel. Interface Configuration show interfaces port-...
qos map dscp-queue Modifies the DSCP to CoS map. Global Configuration qos trust (Global) Configures the system to basic mode and the "trust" Global state. Configuration qos trust (Interface) Enables each port trust state. Interface Configuration qos cos Configures the default port CoS value. Interface Configuration show qos map...
RMON Commands Command Group Description Mode show rmon statistics Displays RMON Ethernet Statistics. User EXEC rmon collection history Enables a Remote Monitoring (RMON) MIB history Interface statistics group on an interface. Configuration show rmon collection Displays the requested history group configuration. User EXEC history show rmon history...
snmp-server filter Creates and modifies filter entries. Global Configuration snmp-server host Specifies an SNMP notification recipient. Global Configuration snmp-server v3-host Specifies an SNMP v3 notification recipient. Global Configuration snmp-server trap Enables the device to send Simple Network Global authentication Management Protocol traps when authentication Configuration failed.
Page 52
spanning-tree port- Configures port priority. Interface Configuration priority spanning-tree portfast Enables PortFast mode. Interface Configuration spanning-tree link-type Overrides the default link-type setting. Interface Configuration spanning-tree pathcost Sets the default path cost method. Global Configuration method spanning-tree bpdu Defines bridge protocol data unit (BPDU) handling Global Configuration when Spanning Tree is disabled on an interface.
SSH Commands Command Group Description Access Mode ip ssh port Specifies the port to be used by the SSH server. Global Configuration ip ssh server Enables the device to be configured from a SSH Global server. Configuration crypto key generate dsa Generates DSA key pairs.
logging buffered size Changes the number of syslog messages stored in Global the internal buffer. Configuration clear logging Clears messages from the internal logging buffer. Privileged EXEC logging file Limits syslog messages sent to the logging file based Global on severity. Configuration clear logging file Clears messages from the logging file.
show sessions Lists the open Telnet sessions. User EXEC show system Displays system information. User EXEC show version Displays the system version information. User EXEC asset-tag Specifies the device asset-tag. Global Configuration show system id Displays the service ID information. User EXEC show cpu utilization Displays information about the CPU utilization of...
passwords history hold- Configures the number of days a password is Global time relevant for tracking its password history. Configuration passwords lockout Sets the number of failed login attempts before a Global user account is locked. Configuration aaa login-history file Enables writing to the login history file.
User Interface Commands Command Group Description Access Mode enable Enters the privileged EXEC mode. User EXEC disable Returns to User EXEC mode. Privileged EXEC login Changes a login username. Priv/User EXEC configure Enables the global configuration mode. Privileged EXEC exit (Configuration) Exits any configuration mode to the next highest mode in the CLI mode hierarchy.
Page 58
switchport trunk native Defines the port as a member of the specified VLAN, Interface vlan and the VLAN ID is the "port default VLAN ID Configuration (PVID)". switchport general Adds or removes VLANs from a general port. Interface allowed vlan Configuration switchport general pvid Configures the PVID when the interface is in general...
show crypto certificate Displays the SSH certificates of the device. Privileged EXEC mycertificate show ip http Displays the HTTP server configuration. Privileged EXEC show ip https Displays the HTTPS server configuration. Privileged EXEC 802.1x Commands Command Description Access Mode aaa authentication Specifies one or more authentication, authorization, Global Configuration dot1x...
Page 61
show dot1x users Displays active 802.1x authenticated users. Privileged EXEC show dot1x statistics Displays 802.1x statistics for the specified interface. Privileged EXEC dot1x auth-not-req Enables unauthorized users access to that VLAN. Interface (VLAN) Configuration dot1x multiple-hosts Allows multiple hosts (clients) on an 802.1x- Interface Configuration authorized port that has the dot1x port-control Interface Configuration mode command set to auto.
Command Modes GC (Global Configuration) Mode Command Group Description aaa authentication dot1x Specifies one or more authentication, authorization, and accounting (AAA) methods for use on interfaces running IEEE 802.1x. aaa authentication enable Defines authentication method lists for accessing higher privilege levels.
Page 64
enable password Sets a local password to control access to normal and privilege levels. Ends the current configuration session and returns to the previous command mode. file-system logging Enables logging file system events. gvrp enable (Global) Enables GVRP globally. hostname Specifies or modifies the device host name.
Page 65
ip http authentication Specifies authentication methods for HTTP server users. ip http exec-timeout Enables the device to be configured from a secured browser. ip http port Specifies the TCP port for use by a web browser to configure the device. ip http server Enables the device to be configured from a browser.
Page 66
password-aging Sets the expiration time for passwords in the local database. passwords history Sets the number of required password changes before a password in the local database can be reused. passwords history hold-time Sets the number of days a password is relevant for tracking its password history.
Page 67
snmp-server contact Sets up a system contact. snmp-server enable traps Enables the device to send SNMP traps or SNMP notifications. snmp-server engineID local Specifies an SNMP EngineID on the local device. snmp-server filter Creates and modifies filter entries. snmp-server group Configures a new SNMP group or a table that maps SNMP users to SNMP views.
spanning-tree bpdu Defines BPDU handling when Spanning Tree is disabled on an interface. spanning-tree forward-time Configures the Spanning Tree bridge forward time. spanning-tree hello-time Configures the Spanning Tree bridge Hello Time. spanning-tree max-age Configures the Spanning Tree bridge maximum age. spanning-tree mode Configures the Spanning Tree protocol.
Page 69
description Adds a description to an interface. dot1x guest-vlan Defines a guest VLAN. dot1x guest-vlan enable Enables unauthorized users on the interface to access the guest VLAN. dot1x mac-authentication Enables authentication based on the station’s MAC address. dot1x max-req Sets the maximum number of times that the device sends an EAP - request/identity frame to the client, before restarting the authentication process.
Page 70
ip internal-usage-vlan Reserves a VLAN as the internal usage VLAN of an interface. ipv6 default-gateway Defines an IPv6 default gateway. ipv6 mld join-group Configures Multicast Listener Discovery (MLD) reporting for a specified group. ipv6 mld version Changes the Multicast Listener Discovery Protocol (MLD) version. lacp port-priority Configures the priority value for physical ports.
Page 71
rmon collection history Enables a Remote Monitoring (RMON) MIB history statistics group on an interface. service-acl Sets the default ace action to permit or deny. show ports monitor Transmits tagged ingress mirrored packets. shutdown Disables interfaces. sntp client enable (Interface) Enables the Simple Network Time Protocol (SNTP) client on an interface.
switchport trunk allowed vlan Adds or removes VLANs from a port in general mode. switchport trunk native vlan Defines the port as a member of the specified VLAN, and the VLAN ID is the "port default VLAN ID (PVID)". traffic-shape Sets the shaper on an egress port.
instance (mst) Maps VLANs to the MST instance. name (mst) Defines the configuration name. revision (mst) Defines the configuration revision number. show (mst) Displays the current or pending MST region configuration. ML (MAC Access-List) Mode Command Group Description permit (MAC) Denies traffic if the conditions defined in the permit statement match.
Page 74
disable Returns to User EXEC mode. dot1x re-authentication Manually initiates a re-authentication of all 802.1x-enabled ports or the specified 802.1x-enabled port. exit Closes an active terminal session by logging off the device. ip dhcp snooping binding Configures the update frequency of the DHCP snooping binding file. login Changes a login username.
Page 75
show dot1x advanced Displays 802.1x enhanced features for the device or for the specified interface. show dot1x statistics Displays 802.1x statistics for the specified interface. show dot1x users Displays 802.1x users for the device. show history Lists the commands entered in the current session. show hosts Displays the default domain name, a list of name server hosts, the static and the cached list of host names and addresses.
show snmp filters Displays the configuration of SNMP filters. show snmp groups Displays the configuration of SNMP groups. show snmp users Displays the configuration of SNMP users. show snmp views Displays the configuration of SNMP views. show sntp configuration Shows the configuration of the Simple Network Time Protocol (SNTP). show sntp status Shows the status of the Simple Network Time Protocol (SNTP).
Page 77
ping Sends ICMP echo request packets to another node on the network. resume Switches to another open Telnet session. show clock Displays the time and date from the system clock. show copper-ports cable-length Displays the estimated copper cable length attached to a port. show copper-ports tdr Displays the last TDR (Time Domain Reflectometry) tests on specified ports.
show rmon log Displays the RMON logging table. show rmon statistics Displays RMON Ethernet Statistics. show sessions Lists the open Telnet sessions. show stack Displays information about stack status. show system Displays system information. show system id Displays the service id information. show users Displays information about the active users.
ip igmp snooping mrouter-time- Configures the mrouter-time-out. ip igmp snooping querier address Defines the source IP address that the IGMP Snooping querier uses. ip igmp snooping querier enable Enables Internet Group Management Protocol (IGMP) querier on a specific VLAN. ip internal-usage-vlan Reserves a VLAN as the internal usage VLAN of an interface.
AAA Commands aaa authentication login The aaa authentication login Global Configuration mode command defines login authentication. Use the no form of this command to return to the default configuration. Syntax • aaa authentication login {default | list-name} method1 [method2...] • no aaa authentication login {default | list-name} •...
User Guidelines • The default and optional list names created with the aaa authentication login command are used with the login authentication command. • Create a list by entering the aaa authentication login list-name method command for a particular protocol, where list-name is any character string used to name this list. The method argument identifies the list of methods that the authentication algorithm tries, in the given sequence.
radius Uses the list of all RADIUS servers for authentication. Uses username $enabx$., where x is the privilege level. tacacs Uses the list of all TACACS+ servers for authentication. Uses username "$enabx$." where x is the privilege level. Default Configuration If the default list is not set, only the enable password is checked.
Syntax • login authentication {default | list-name} • no login authentication • default — Uses the default list created with the aaa authentication login command. • list-name — Uses the indicated list created with the aaa authentication login command. Default Configuration Uses the default set with the command aaa authentication login.
User Guidelines There are no user guidelines for this command. Example The following example specifies the default authentication method when accessing a higher privilege level from a console. Console(config)# line console Console(config-line)# enable authentication default ip http authentication The ip http authentication Global Configuration mode command specifies authentication methods for HTTP server users.
Example The following example configures the HTTP authentication. Console(config)# ip http authentication radius local ip https authentication The ip https authentication Global Configuration mode command specifies authentication methods for HTTPS server users. Use the no form of this command to return to the default configuration. Syntax •...
show authentication methods The show authentication methods Privileged EXEC mode command displays information about the authentication methods. Syntax • show authentication methods Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the authentication configuration.
Line Login Method List Enable Method List -------------- ----------------- ------------------ Console Default Default Telnet Default Default Default Default http : Local https : Local dot1x console# password The password Line Configuration mode command specifies a password on a line. Use the no form of this command to remove the password.
enable password The enable password Global Configuration mode command sets a local password to control access to user and privilege levels. Use the no form of this command to remove the password requirement. Syntax • enable password [level level] password [encrypted] no enable password [level level] •...
Page 90
Default Configuration No user is defined. Command Mode Global Configuration mode User Guidelines User account can be created without a password. Example The following example configures user bob with password lee and user level 15 to the system. Console(config)# username bob password lee level 15 AAA Commands...
IPv4 ACLs are defined by a unique name. An IPv4 ACL and MAC ACL cannot share the same name. Example The following example shows how to define an IPv4 access list called dell-access-1 and to place the device in IPv4 access list configuration mode. Console(config)# ip access-list dell-access-1...
source-port — Specifies the UDP/TCP source port. (Range: 1 - 65535) • • source-port-wildcard —Specifies wildcard bits to be applied to the source port by placing 1s in bit positions to be ignored. • flags list-of-flags — Specifies the list of TCP flags. If a flag is set, it is prefixed by "+". If a flag is not set, it is prefixed by "-".
Default Configuration No IPv4 access list is defined. Command Mode IP-Access List Configuration mode. User Guidelines • Use the ip access-list Global Configuration mode command to enable the IP-Access List Configuration mode. • Before an Access Control Element (ACE) is added to an ACL, all packets are permitted. After an ACE is added, an implied deny-any-any condition exists at the end of the list and those packets that do not match the defined conditions are denied.
Example The following example shows how to create a MAC ACL. Console(config)# mac access-list macl-1 Console(config-mac-al)# permit (MAC) The permit MAC-Access List Configuration mode command sets permit conditions for a MAC access list. Syntax permit {any | { source source-wildcard} any | {destination destination-wildcard}} [vlan vlan-id] [cos •...
Example The following example shows how to create a MAC ACL with permit rules. Console(config)# mac access-list macl-acl1 Console(config-mac-al)# permit 06:a6 00:00:00:00:00:00 any vlan 6 deny (MAC) The deny MAC-Access List Configuration mode command denies traffic if the conditions defined in the deny statement match.
Example The following example shows how to create a MAC ACL with rules. Console(config)# mac access-list macl-1 Console (config-mac-acl)# deny 66:66:66:66:66:66 Console(config-mac-acl)# exit Console(config)# service-acl The service-acl Interface (VLAN) Configuration mode command applies an ACL to the input interface. Use the no form of this command to detach an ACL from an input interface. Syntax •...
show access-lists The show access-lists Privileged EXEC mode command displays access control lists (ACLs) defined on the device. Syntax • show access-lists [name] name — Name of the ACL. • Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
Page 100
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Examples The following example displays an ACLs applied on the device interfaces: console# show access-lists MAC access list macA permit console# show interfaces access-lists Interface Input ACL -------------- ---------------...
Address Table Commands bridge address The bridge address Interface Configuration (VLAN) mode command adds a MAC-layer station source address to the bridge table. Use the no form of this command to delete the MAC address. Syntax • bridge address mac-address {ethernet interface | port-channel port-channel-number} [permanent | delete-on-reset | delete-on-timeout | secure] •...
Example The following example adds a permanent static MAC-layer station source address 3aa2.64b3.a245 on port 1/e16 to the bridge table. Console(config)# interface vlan 2 Console(config-if)# bridge address 3aa2.64b3.a245 ethernet 1/e16 permanent bridge multicast filtering The bridge multicast filtering Global Configuration mode command enables filtering Multicast addresses.
Page 103
Syntax • bridge multicast address {mac-multicast-address | ip-multicast-address} • bridge multicast address {mac-multicast-address | ip-multicast-address} [add | remove] {ethernet interface-list | port-channel port-channel-number-list} • no bridge multicast address {mac-multicast-address | ip-multicast-address} • add — Adds ports to the group. If no option is specified, this is the default option. •...
bridge multicast forbidden address The bridge multicast forbidden address Interface Configuration (VLAN) mode command forbids adding a specific Multicast address to specific ports. Use the no form of this command to return to the default configuration. Syntax • bridge multicast forbidden address {mac-multicast-address | ip-multicast-address} {add | remove} {ethernet interface-list | port-channel port-channel-number-list} •...
bridge multicast unregistered The bridge multicast unregistered Interface Configuration mode command configures the forwarding state of unregistered multicast addresses. Use the no form of this command to return to default. Syntax • bridge multicast unregistered {forwarding | filtering} • no bridge multicast unregistered •...
Syntax • bridge multicast forward-all {add | remove} {ethernet interface-list | port-channel port-channel- number-list} • no bridge multicast forward-all • add — Force forwarding all Multicast packets. • remove — Do not force forwarding all Multicast packets. • interface-list — Separate non-consecutive Ethernet ports with a comma and no spaces; a hyphen is used to designate a range of ports.
Default Configuration The default setting is 300 seconds. Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command. Example The following example sets the bridge aging time to 250. Console(config)# bridge aging-time 250 clear bridge The clear bridge Privileged EXEC mode command removes any learned entries from the forwarding database.
port security The port security Interface Configuration mode command locks the port, thereby, blocking unknown traffic and preventing the port from learning new addresses. Use the no form of this command to return to the default configuration. Syntax • port security [forward | discard | discard-shutdown] [trap seconds] •...
port security mode The port security mode Interface Configuration mode command configures the port security mode. Use the no form of this command to return to the default configuration. Syntax • port security mode {lock | max-addresses} • no port security mode •...
Default Configuration The default setting is 1 address. Command Mode Interface Configuration (Ethernet, port-channel) mode. User Guidelines This command is only relevant in dynamic learning modes. Example The following example sets the maximum number of addresses that are learned on port 1/e7 before it is locked to 20.
User Guidelines • The command enables adding secure MAC addresses to a routed port in port security mode. • The command is available when the port is a routed port and in port security mode. The address is deleted if the port exits the security mode or is not a routed port. Example The following example adds the MAC-layer address 66:66:66:66:66:66 to port 1/e1.
Example The following example displays all classes of entries in the bridge-forwarding database. Console# show bridge address-table Aging time is 300 sec Vlan mac address Port Type --------- -------------- ---- ------- 00:60:70:4C:73:FF 5/e8 dynamic 00:60:70:8C:73:FF 5/e8 dynamic 00:10:0D:48:37:FF 5/e9 static show bridge address-table static The show bridge address-table static Privileged EXEC mode command displays statically created entries in the bridge-forwarding database.
Example The following example displays all static entries in the bridge-forwarding database. Console# show bridge address-table static Aging time is 300 sec vlan mac address port type ---- ----------------- ---- ----------------- 00:60:70:4C:73:FF 1/e8 Permanent 00:60:70:8C:73:FF 1/e8 delete-on-timeout 00:10:0D:48:37:FF 1/e9 delete-on-reset show bridge address-table count The show bridge address-table count Privileged EXEC mode command displays the number of addresses present in the Forwarding Database.
Example The following example displays the number of addresses present in all VLANs. Console# show bridge address-table count Capacity: 8192 Free: 8083 Used: 109 Secure addresses: 2 Static addresses: 1 Dynamic addresses: 97 Internal addresses: 9 show bridge multicast address-table The show bridge multicast address-table Privileged EXEC mode command displays Multicast MAC address or IP Address Table information.
Page 116
Example The following example displays Multicast MAC address and IP Address Table information. Console# show bridge multicast address-table Vlan MAC Address Type Ports ---- -------------- ------- ---------- 01:00:5e:02:02:03 static 1/e1, 2/e2 01:00:5e:02:02:08 static 1/e1-e8 00:00:5e:02:02:08 dynamic 1/e9-e11 Forbidden ports for Multicast addresses: Vlan MAC Address Ports...
show bridge multicast filtering The show bridge multicast filtering Privileged EXEC mode command displays the Multicast filtering configuration. Syntax • show bridge multicast filtering vlan-id vlan_id — A valid VLAN ID value. • Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
show bridge multicast address-table static The show bridge multicast address-table static Privileged EXEC mode command displays the statically configured multicast addresses. Syntax • show bridge multicast address-table static [vlan vlan-id] [address mac-multicast-address | ip-multicast- address] [source ip-address] • vlan-id — Indicates the VLAN ID. This has to be a valid VLAN ID value. •...
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the Multicast configuration for VLAN 1. Console# show bridge multicast filtering 1 Filtering: Enabled VLAN: 1 Port Forward-Unregistered Forward-All Static Status Static Status...
Page 121
User Guidelines There are no user guidelines for this command. Example The following example displays all classes of entries in the port-lock status. Console # show ports security Port Status Learning Action Maximum Trap Frequenc ----- ------- ------- ------- -------- -------- 1/e1 Disabled...
1/e18 Disabled Lock 1/e19 Disabled Lock 1/e20 Disabled Lock 1/e21 Disabled Lock 1/e22 Disabled Lock Frequency: Minimum time in seconds between consecutive traps Counter: Number of actions since last trap show ports security addresses The show ports security addresses Privileged EXEC mode command displays the current dynamic addresses in locked ports.
Page 123
Example The following example displays dynamic addresses in currently locked ports. Console# show ports security addresses Port Status Learning Current Maximum ---- -------- -------- ------- ------- 1/e1 Disabled Lock 1/e2 Disabled Lock 1/e3 Enabled Max-addresses 1/e4 Port is a member in port-channel ch1 1/e5 Disabled Lock...
Clock clock set The clock set Privileged EXEC mode command manually sets the system clock. Syntax • clock set hh:mm:ss day month year • clock set hh:mm:ss month day year hh:mm:ss — Current time in hours (military format), minutes, and seconds (hh: 0 - 23, mm: 0 •...
clock source The clock source Global Configuration mode command configures an external time source for the system clock. Use no form of this command to disable external time source. Syntax • clock source {sntp} • no clock source • sntp — SNTP servers Default Configuration No external clock source.
User Guidelines • The system internally keeps time in UTC, so this command is used only for display purposes and when the time is manually set. Examples The following example sets the timezone to 6 hours difference from UTC. Console(config) clock timezone -6 zone CST clock summer-time The clock summer-time Global Configuration mode command configures the system to automatically...
Default Configuration Summer time is disabled. offset — Default is 60 minutes. acronym — If unspecified default to the timezone acronym. If the timezone has not been defined, the default is UTC. Command Mode Global Configuration mode. User Guidelines • In both the date and recurring forms of the command, the first part of the command specifies when summer time begins, and the second part specifies when it ends.
Syntax • sntp authentication-key number md5 value • no sntp authentication-key number • number — Key number (Range: 1 - 4294967295) • value — Key value (Range: up to 8 characters) Default Configuration No authentication key is defined. Command Mode Global Configuration mode.
Examples The following example defines the authentication key for SNTP and allows authentication. Console(config)# sntp authentication-key 8 md5 ClkKey Console(config)# sntp trusted-key 8 Console(config)# sntp authenticate sntp trusted-key The sntp trusted-key Global Configuration mode command authenticates the identity of a system to which Simple Network Time Protocol (SNTP) will synchronize.
sntp client poll timer The sntp client poll timer Global Configuration mode command sets the polling time for the Simple Network Time Protocol (SNTP) client. Use the no form of this command to return to default configuration. Syntax • sntp client poll timer seconds •...
User Guidelines • Use the sntp client enable Interface Configuration mode command to enable the SNTP client on a specific interface. Examples The following example enables the SNTP Broadcast clients. Console(config)# sntp broadcast client enable sntp anycast client enable The sntp anycast client enable Global Configuration mode command enables SNTP Anycast client. Use the no form of this command to disable the SNTP Anycast client.
User Guidelines • Use the sntp broadcast client enable Global Configuration mode command to enable Broadcast clients globally. • Use the sntp anycast client enable Global Configuration mode command to enable Anycast clients globally. Examples The following example enables the SNTP client on Ethernet port 1/e3. Console(config)# interface ethernet 1/e3 Console(config-if)# sntp client enable sntp unicast client enable...
sntp unicast client poll The sntp unicast client poll Global Configuration mode command enables polling for the Simple Network Time Protocol (SNTP) predefined Unicast servers. Use the no form of this command to disable the polling for SNTP client. Syntax •...
Page 136
Syntax • sntp server {ip4-address | ip6-address | hostname}[poll] [key keyid] • no sntp server {ip4-address | ip6-address | hostname} • ip4-address — IPv4 server address. • ipv6-address — IPv6 server address. When the IPv6 address is a Link Local address (IPv6Z address), the outgoing interface name must be specified.
Examples The following example configures the device to accept SNTP traffic from the server on 192.1.1.1. Console(config)# sntp server 192.1.1.1 show clock The show clock User EXEC mode command displays the time and date from the system clock. Syntax • show clock [detail] •...
Example The following example displays the time and date from the system clock. Console> show clock 15:29:03 PDT(UTC-7) Jun 17 2002 Time source is SNTP Console> show clock detail 15:29:03 PDT(UTC-7) Jun 17 2002 Time source is SNTP Time zone: Acronym is PST Offset is UTC-8 Summertime:...
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Examples The following example displays the current SNTP configuration of the device. Console# show sntp configuration Polling interval: 7200 seconds MD5 Authentication keys: 8, 9 Authentication is required for synchronization.
Page 140
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Examples The following example shows the status of the SNTP . Console# show sntp status Clock is synchronized, stratum 4, reference is 176.1.1.8, unicast Reference time is AFE2525E.70597B34 (00:10:22.438 PDT Jul 5 1993) Unicast servers: Server...
Configuration and Image Files copy The copy Privileged EXEC mode command copies any file from a source to a destination. Syntax • copy source-url destination-url [snmp] • source-url — The location URL or reserved keyword of the source file to be copied. •...
Page 142
backup-config Represents the backup configuration file. unit://member/ Backup configuration file on one of the units. backup-config logging Copy from a syslog file. Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines • The location of a file system dictates the format of the source or destination URL. •...
Page 143
Use the copy source-url running-config command to load a ’configuration file’ from a network server to the device ’running configuration’. The configuration is added to the ’running configuration’ as if the commands were typed in the command-line interface (CLI). The resulting configuration file is a combination of the previous ’running configuration’...
delete The delete Privileged EXEC mode command deletes a file from a flash memory device. Syntax • delete url • url — The location URL or reserved keyword of the file to be deleted. (Range: 1 - 160 characters) The following table displays keywords and URL prefixes: Keyword Source or Destination flash:...
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Examples The following example deletes the startup-config file. Console# delete startup-config The dir Privileged EXEC mode command displays a list of files on a flash file system. Syntax •...
Example The following example displays the contents of file configuration.bak. Console# more configuration.bak interface range ethernet 1/e(1-4) duplex half exit interface range ethernet 2/g(1-4) switchport mode general exit vlan database vlan 2 exit interface range ethernet 2/g(1-4) switchport general allowed vlan add 2 exit interface range ethernet 1/e(1-4) no negotiation...
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines • *.sys and *.prv files cannot be renamed. Examples The following example renames the configuration backup file. Console# rename configuration.bak m-config.bak boot system The boot system Privileged EXEC mode command specifies the system image that the device loads at startup.
show running-config The show running-config Privileged EXEC mode command displays the contents of the currently running configuration file. Syntax • show running-config Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines • This command displays the factory default settings at the end of the running configuration file contents.
Default settings: Service tag: service tag 0 SW version 1.0.0.1 (date Aug 9 2007 time 10:06:42) Fast Ethernet Ports ------------------------------- no shutdown speed 100 duplex full negotiation flow-control off mdix auto no back-pressure Gigabit Ethernet Ports ---------------------------- no shutdown speed 1000 duplex full negotiation flow-control off...
Page 151
Syntax • show startup-config Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Examples The following example displays the contents of the running configuration file. Console# show startup-config software version 1.1 hostname device interface ethernet 1/e1...
show bootvar The show bootvar Privileged EXEC mode command displays the active system image file that is loaded by the device at startup. Syntax • show bootvar [unit unit] unit — Specifies the unit number. • Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
DHCP Snooping ip dhcp snooping The ip dhcp snooping Global Configuration mode command globally enables DHCP snooping. Use the no form of this command to return to the default settings. Syntax • ip dhcp snooping • no ip dhcp snooping Default Configuration The default configuration is disabled.
Syntax • ip dhcp snooping vlan vlan-id • no ip dhcp snooping vlan vlan-id • vlan-id — Specifies the VLAN ID. Default Configuration The default configuration is disabled. Command Mode Global Configuration mode. User Guidelines • You must first globally enable DHCP snooping before enabling DHCP snooping on a VLAN. Example The following example enables DHCP snooping on VLAN 1000: console(config)# ip dhcp snooping vlan 1000...
Example The following example configures Ethernet port 1/e15 as trusted for DHCP snooping purposes. console(config)# interface ethernet 1/e15 console(config-if)# ip dhcp snooping trust ip dhcp snooping information option allowed-untrusted The ip dhcp snooping information option allowed-untrusted Global Configuration mode command configures a switch to accept DHCP packets with option-82 information from an untrusted port.
Syntax • ip dhcp snooping verify • no ip dhcp snooping verify Default Configuration The default configuration is that the switch verifies the source MAC address in a DHCP packet that is received on untrusted ports matches the client hardware address in the packet. Command Mode Global Configuration mode.
Example The following example configures the DHCP snooping binding file. console(config)#ip dhcp snooping database ip dhcp snooping database update-freq The ip dhcp snooping database update-freq Global Configuration mode command configures the update frequency of the DHCP snooping binding file. Use the no form of this command to return to default.
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example clears the DHCP binding database: Console# clear ip dhcp snooping database show ip dhcp snooping The show ip dhcp snooping User EXEC mode command displays the DHCP snooping configuration.
Example The following example displays the DHCP snooping configuration. console> show ip dhcp snooping DHCP snooping is Enabled DHCP snooping is configured on following VLANs: 2 DHCP snooping database is Disabled Verification of hwaddr field is Enabled DHCP snooping file update frequency is configured to: 1200 seconds Interface Trusted...
Page 161
User Guidelines There are no user guidelines for this command. Example The following example displays the DHCP snooping configuration. Console# show ip dhcp snooping binding Total number of binding: 2 Lease Type VLAN Interface Adreess Address (sec) --------- -------- --------- --------- --------- --------...
Ethernet Configuration Commands interface ethernet The interface ethernet Global Configuration mode command enters the interface configuration mode to configure an Ethernet type interface. Syntax • interface ethernet interface • interface — Valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration. Command Mode Global Configuration mode.
Default Configuration This command has no default configuration. Command Mode Global Configuration mode. User Guidelines • Commands under the interface range context are executed independently on each active interface in the range. If the command returns an error on one of the active interfaces, it does not stop executing commands on other active interfaces.
Examples The following example disables Ethernet port 1/e5 operations. Console(config)# interface ethernet 1/e5 Console(config-if)# shutdown The following example restarts the disabled Ethernet port. Console(config)# interface ethernet 1/e5 Console(config-if)# no shutdown description The description Interface Configuration (Ethernet, port-channel) mode command adds a description to an interface.
speed The speed Interface Configuration (Ethernet, port-channel) mode command configures the speed of a given Ethernet interface when not using auto-negotiation. Use the no form of this command to restore the default configuration. Syntax • speed {10 | 100 | 1000} •...
Default Configuration The interface is set to full duplex. Command Mode Interface Configuration (Ethernet) mode. User Guidelines • When configuring a particular duplex mode on the port operating at 10/100 Mbps, disable the auto- negotiation on that port. • Half duplex mode can be set only for ports operating at 10 Mbps or 100 Mbps. Example The following example configures the duplex operation of Ethernet port 1/e5 to full duplex operation.
flowcontrol The flowcontrol Interface Configuration (Ethernet, port-channel) mode command configures flow control on a given interface. Use the no form of this command to disable flow control. Syntax • flowcontrol {auto | on | off} • no flowcontrol • auto — Indicates auto-negotiation •...
Default Configuration The default setting is on. Command Mode Interface Configuration (Ethernet) mode. User Guidelines • Auto: All possibilities to connect a PC with cross or normal cables are supported and are automatically detected. • On: It is possible to connect to a PC only with a normal cable and to connect to another device only with a cross cable.
Example The following example enables back pressure on port 1/e5. Console(config)# interface ethernet 1/e5 Console(config-if)# back-pressure clear counters The clear counters User EXEC mode command clears statistics on an interface. Syntax • clear counters [ethernet interface | port-channel port-channel-number] • interface —...
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines • This command is used to activate interfaces that were configured to be active, but were shutdown by the system for some reason (for example port security. Example The following example reactivates interface 1/e5.
1/e8 100M- Full Enabled Off Disabled Auto Copper 1/e9 100M- Full Enabled Off Disabled Auto Copper 1/e10 100M- Full Enabled Off Disabled Auto Copper 1/e11 100M- Full Enabled Off Disabled Auto Copper 1/e12 100M- Full Enabled Off Disabled Auto Copper 1/e13 100M- Full...
Page 175
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the status of all configured interface. Console# show interfaces status Port Type Duplex Speed Flow Link Back Mdix Ctrl State Pressure Mode ----...
show interfaces description The show interfaces description Privileged EXEC mode command displays the description for all configured interfaces. Syntax • show interfaces description [ethernet interface | port-channel port-channel-number] interface — Valid Ethernet port. (Full syntax: unit/port) • • port-channel-number — A valid port-channel number. Default Configuration This command has no default configuration.
show interfaces counters The show interfaces counters User EXEC mode command displays traffic seen by the physical interface. Syntax • show interfaces counters [ethernet interface | port-channel port-channel-number] • interface — A valid Ethernet port. (Full syntax: unit/port) • port-channel-number — A valid port-channel number. Default Configuration This command has no default configuration.
Page 178
InOctets InUcastPkts InMcastPkts InBcastPkts -------- ---------- ----------- ----------- 27889 OutOctets OutUcastPkts OutMcastPkts OutBcastPkts --------- ------------ ------------ ------------ 23739 The following example displays counters for Ethernet port 1/e1. Console# show interfaces counters ethernet 1/e1 Port InOctets InUcastPkts InMcastPkts InBcastPkts ------ ----------- -------------- ----------- -----------...
The following table describes the fields shown in the display. Field Description InOctets Counted received octets. InUcastPkts Counted received Unicast packets. InMcastPkts Counted received Multicast packets. InBcastPkts Counted received Broadcast packets. OutOctets Counted transmitted octets. OutUcastPkts Counted transmitted Unicast packets. OutMcastPkts Counted transmitted Multicast packets.
Command Modes Interface Configuration (Ethernet) mode. User Guidelines • To control Multicasts storms, use the port storm-control broadcast enable and port storm-control broadcast rate commands. Example The following example enables counting Broadcast and Multicast packets on Ethernet port 2/e3. Console(config)# interface ethernet 2/e3 Console(config-if)# port storm-control include-multicast port storm-control broadcast enable The port storm-control broadcast enable Interface Configuration (Ethernet) mode command enables...
Example The following example enables storm control on Ethernet port 1/e5. Console(config)# interface ethernet 1/e5 Console(config-if)# port storm-control broadcast enable port storm-control broadcast rate The port storm-control broadcast rate Interface Configuration (Ethernet) mode command configures the maximum Broadcast rate. Use the no form of this command to return to the default configuration. Syntax port storm-control broadcast rate rate •...
show ports storm-control The show ports storm-control Privileged EXEC mode command displays the storm control configuration. Syntax • show ports storm-control [interface] interface — A valid Ethernet port. (Full syntax: unit/port) • Default Configuration This command has no default configuration. Command Modes Privileged EXEC mode.
GVRP Commands gvrp enable (Global) GARP VLAN Registration Protocol (GVRP) is an industry-standard protocol designed to propagate VLAN information from device to device. With GVRP , a single device is manually configured with all desired VLANs for the network, and all other devices on the network learn these VLANs dynamically.
Syntax • gvrp enable • no gvrp enable Default Configuration GVRP is disabled on all interfaces. Command Mode Interface Configuration (Ethernet, port-channel) mode. User Guidelines • An access port does not dynamically join a VLAN because it is always a member in only one VLAN. •...
Command Mode Interface configuration (Ethernet, port-channel) mode. User Guidelines • The following relationship must be maintained between the timers: – Leave time must be greater than or equal to three times the join time. – Leave-all time must be greater than the leave time. •...
Example The following example disables dynamic VLAN creation on Ethernet port 1/e6. console(config)# interface ethernet 1/e6 console(config-if)# gvrp vlan-creation-forbid gvrp registration-forbid The gvrp registration-forbid Interface Configuration (Ethernet, port-channel) mode command deregisters all dynamic VLANs on a port and prevents VLAN creation or registration on the port. Use the no form of this command to allow dynamic registration of VLANs on a port.
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example clears all GVRP statistical information on Ethernet port 1/e6. console# clear gvrp statistics ethernet 1/e6 show gvrp configuration The show gvrp configuration User EXEC mode command displays GVRP configuration information, including timer values, whether GVRP and dynamic VLAN creation is enabled, and which ports are...
Example The following example displays GVRP configuration information: Console> show gvrp configuration GVRP Feature is currently enabled on the device. Timers (milliseconds) Port(s) Status Registration Dynamic VLAN Join Leave Leave All Creation ------ ------- ------------ ----------- ---- ----- --------- 2/e1 Enabled Normal Enabled...
Example The following example shows GVRP statistical information. Console> show gvrp statistics GVRP Statistics: Legend: Join Empty Received rJIn: Join In Received rEmp : Empty Received rLIn: Leave In Received Leave Empty Received rLA : Leave All Received Join Empty Sent sJIn: Join In Sent sEmp :...
Page 190
Example The following example displays GVRP statistical information. Console> show gvrp error-statistics GVRP Error Statistics: Legend: INVPROT : Invalid Protocol INVALEN : Invalid Attribute Length INVATYP : Invalid Attribute INVEVENT: Invalid Event Type INVAVAL : Invalid Attribute Value Port INVPROT INVATYP INVAVAL INVALEN INVEVENT GVRP Commands...
IGMP Snooping Commands ip igmp snooping (Global) The ip igmp snooping Global Configuration mode command enables Internet Group Management Protocol (IGMP) snooping. Use the no form of this command to disable IGMP snooping. Syntax • ip igmp snooping • no ip igmp snooping Default Configuration IGMP snooping is disabled.
Default Configuration IGMP snooping is disabled. Command Mode Interface Configuration (VLAN) mode. User Guidelines • IGMP snooping can only be enabled on static VLANs. It must not be enabled on Private VLANs or their community VLANs. Example The following example enables IGMP snooping on VLAN 2. Console(config)# interface vlan 2 Console(config-if)# ip igmp snooping ip igmp snooping mrouter...
Example The following example enables automatic learning of Multicast router ports on VLAN 2. Console(config) # interface vlan 2 Console(config-if)# ip igmp snooping mrouter learn-pim-dvmrp ip igmp snooping host-time-out The ip igmp snooping host-time-out Interface Configuration (VLAN) mode command configures the host-time-out.
Syntax • ip igmp snooping mrouter-time-out time-out • no ip igmp snooping mrouter-time-out • time-out — Multicast router timeout in seconds (Range: 1 - 2147483647) Default Configuration The default value is 300 seconds. Command Mode Interface Configuration (VLAN) mode. User Guidelines There are no user guidelines for this command.
Command Mode Interface Configuration (VLAN) mode. User Guidelines • The leave timeout should be set greater than the maximum time that a host is allowed to respond to an IGMP query. • Use immediate leave only where there is just one host connected to a port. Example The following example configures the host leave-time-out to 60 seconds.
• Following are the IGMP Snooping Querier parameters as function of the IGMP Snooping parameters: • QueryMaxResponseTime: host-time-out/15. • QueryInterval: host-time-out/ 3. Example The following example enables IGMP querier on VLAN 2. console# config console(config)# interface vlan 2 VLAN 2 does not exist. All settings will be applied to VLAN 2 when it is created.
Example The following example enables IGMP querier on a specific VLAN. console(config)# interface vlan 2 VLAN 2 does not exist. All settings will be applied to VLAN 2 when it is created. console(config-if-ghost-vlan)# ip igmp snooping querier enable console(config-if-ghost-vlan)# ip igmp snooping querier address % missing mandatory parameter console(config-if-ghost-vlan)# ip igmp snooping querier address 1.1.1.1...
Example The following example displays Multicast router interfaces in VLAN 1000. Console> show ip igmp snooping mrouter interface 1000 VLAN Ports ---- ----- 1000 1/e1 Detected multicast routers that are forbidden statically: VLAN Ports ---- ----- 1000 1/e19 show ip igmp snooping interface The show ip igmp snooping interface User EXEC mode command displays IGMP snooping configuration.
Example The example displays IGMP snooping information. Console # show ip igmp snooping interface 1000 IGMP Snooping is globally enabled IGMP Snooping admin: Enabled Hosts and routers IGMP version: 2 IGMP snooping oper mode: Enabled IGMP snooping querier admin: Enabled IGMP snooping querier oper: Enabled IGMP snooping querier address admin: IGMP snooping querier address oper: 172.16.1.1...
Page 200
Command Mode User EXEC mode. User Guidelines • To see the full Multicast Address Table (including static addresses) use the show bridge multicast address-table Privileged EXEC command. Example The following example shows IGMP snooping information on Multicast groups. Console> show ip igmp snooping groups Vlan IP Address Querier...
IP Addressing Commands ip address The ip address Interface Configuration (Ethernet, VLAN, port-channel) mode command sets an IP address. Use the no form of this command to remove an IP address. Syntax ip address ip-address {mask | prefix-length} no ip address [ip-address] •...
ip address dhcp The ip address dhcp Interface Configuration (Ethernet, VLAN, port-channel) mode command acquires an IP address for an Ethernet interface from the Dynamic Host Configuration Protocol (DHCP) server. Use the no form of this command to deconfigure an acquired IP address. Syntax •...
ip default-gateway The ip default-gateway Global Configuration mode command defines a default gateway (router). Use the no form of this command to return to the default configuration. Syntax • ip default-gateway ip-address • no ip default-gateway • ip-address — Valid IP address of the default gateway. Default Configuration No default gateway is defined.
Command Mode User EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example the displays the configured IP interfaces and their types. Console# show ip interface Gateway IP Address Type Activity status ------------------ ------ --------------- 10.7.1.1 Static...
Command Mode Global Configuration mode. User Guidelines • The software uses ARP cache entries to translate 32-bit IP addresses into 48-bit hardware addresses. Because most hosts support dynamic resolution, static ARP cache entries do not generally have to be specified. Example The following example adds IP address 198.133.219.232 and MAC address 00:00:0c:40:0f:bc to the ARP table.
clear arp-cache The clear arp-cache Privileged EXEC mode command deletes all dynamic entries from the ARP cache. Syntax • clear arp-cache Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example deletes all dynamic entries from the ARP cache.
User Guidelines There are no user guidelines for this command. Example The following example displays entries in the ARP table. Console# show arp ARP timeout: 80000 Seconds Interface IP address HW address Status --------- ---------- ----------------- ------- 1/e1 10.7.1.102 00:10:B5:04:DB:4B Dynamic 2/e2 10.7.1.135...
Static entries are read first, followed by DHCP entries and DNS-protocol entries. Examples The following example defines default domain name dell.com. Console(config)# ip domain-name dell.com ip name-server The ip name-server Global Configuration mode command defines the available name servers. Use the no form of this command to remove a name server.
Global Configuration mode. User Guidelines • Up to 64 host name-to address mapping entries are permitted in the host cache. Examples The following example defines a static host name-to-address mapping in the host cache. Console(config)# ip host accounting.dell.com 176.10.23.1 IP Addressing Commands...
clear host The clear host Privileged EXEC mode command deletes entries from the host name-to-address cache. Syntax • clear host {name | *} • name — Specifies the host entry to be removed. (Range: 1 - 158 characters • * — Removes all entries. Default Configuration This command has no default configuration.
User Guidelines • This command deletes the host name-to-address mapping temporarily until the next renewal of the IP address. Examples The following example deletes all entries from the host name-to-address mapping. Console# clear host dhcp * show hosts The show hosts Privileged EXEC mode command displays the default domain name; a list of name server hosts;...
Page 212
Examples The following example displays host information. Console# show hosts Host name: Device Default domain is gm.com, sales.gm.com, usa.sales.gm.com(DHCP) Name/address lookup is enabled Name servers (Preference order): 176.16.1.18 176.16.1.19 Configured host name-to-address mapping: Host Addresses ---- --------- accounting.gm.com 176.16.8.8 176.16.8.9 (DHCP) Cache: TTL(Hours) Host...
IPv6 Addressing ipv6 enable The ipv6 enable Interface Configuration mode command enables IPv6 processing on an interface. Use the no form of this command to disable IPv6 processing on an interface. Syntax • ipv6 enable [no-autoconfig] • no ipv6 enable –...
ipv6 address autoconfig The ipv6 address autoconfig Interface Configuration mode command enables automatic configuration of IPv6 addresses using stateless autoconfiguration on an interface. Addresses are configured depending on the prefixes received in Router Advertisement messages. , Use the no form of this command to disable address autoconfiguration on the interface.
Syntax • ipv6 icmp error-interval milliseconds [bucketsize] • no ipv6 icmp error-interval • milliseconds — The time interval between tokens being placed in the bucket, each token represents a single ICMP error message. (Range: 0 - 2147483647) • bucketsize — The maximum number of tokens stored in the bucket. (Range: 1 - 200) Default Configuration The default interval is 100ms and the default bucketsize is 10 tokens.
Example The following example displays the IPv6 ICMP error interval setting.. Console> show ipv6 icmp error-interval Rate limit interval: 100 ms Bucket size: 10 tokens ipv6 address The ipv6 address Interface Configuration mode command configures an IPv6 address for an interface. use the no form of this command to remove the address from the interface.
Example The following example configures an IPv6 address FE80::260:3EFF:FE11:6770 for interface g1. Console# Console (config)# interface g1 Console (config-if)# ipv6 address FE80::260:3EFF:FE11:6770 ipv6 address link-local The ipv6 address link-local Interface Configuration mode command configures an IPv6 link-local address for an interface. Use the no form of this command to return to the default link local address on the interface.
Example The following example assigns FE80::260:3EFF:FE11:6770 as the link-local address. Console# Console (config)# interface g1 Console (config-if)# ipv6 address FE80::260:3EFF:FE11:6770 link- local ipv6 unreachables The ipv6 unreachables Interface Configuration mode command enables the generation of Internet Control Message Protocol for IPv6 (ICMPv6) unreachable messages for any packets arriving on a specified interface.
ipv6 default-gateway The ipv6 default-gateway Global Configuration mode command defines an IPv6 default gateway. Use the no form of this command to remove the default gateway. Syntax • ipv6 default-gateway ipv6-address • no ipv6 default-gateway • ipv6-address — IPv6 address of the next hop that can be used to reach that network. When the IPv6 address is a Link Local address (IPv6Z address), the outgoing interface name must be specified.
ipv6 mld join-group The ipv6 mld join-group interface configuration command configures Multicast Listener Discovery (MLD) reporting for a specified group. To cancel reporting and leave the group, use the no form of this command. Syntax • ipv6 mld join-group group-address •...
Command Mode Interface configuration (Ethernet, VLAN, Port-channel). User Guidelines • There are no user guidelines for this command. Example The following example defines an IPv6 default gateway. Console(config-if)# ipv6 mld version 1 show ipv6 interface The show ipv6 interface Privileged EXEC mode command displays the usability status of interfaces configured for IPv6.
Page 222
Examples The following examples displays the usability status of interfaces configured for IPv6. Console# show ipv6 interface Interface IP addresses Type ---------- ----------------- ----- 1/e1 7001::5668/64 [ANY] manual 1/e2 6001::1234/64 manual 1/e3 fe80::22/64 manual 1/e4 ff02::1 linklayer 1/e5 ff02::78 manual 1/e6 ff02::1:ff00:22 manual...
Page 223
Default Gateway Type Interface State IP address ------------------- ------- -------- ------- fe80::77 Static VLAN 1 unreachable fe80::200:cff:fe4a:dfa8 Dynamic VLAN 1 stale Console# show ipv6 interface vlan 15 IPv6 is disabled Console# show ipv6 interface vlan 1 Number of ND DAD attempts: 1 MTU size: 1500 Stateless Address Autoconfiguration state: enabled ICMP unreachable message state: enabled...
show IPv6 route The show ipv6 route Privileged EXEC mode command displays the current state of the IPv6 routing table. Syntax • show ipv6 route Default Configuration This command has no default setting. Command Mode Privileged EXEC mode. User Guidelines •...
ipv6 nd dad attempts The ipv6 nd dad attempts Interface Configuration mode command configures the number of consecutive neighbor solicitation messages that are sent on an interface while duplicate address detection is performed on the unicast IPv6 addresses of the interface. Use the no form of this command to return the number of messages to the default value.
• If the link-local address for an interface changes, duplicate address detection is performed on the new link-local address and all of the other IPv6 address associated with the interface are regenerated (duplicate address detection is performed only on the new link-local address). •...
Example The following example configures a static entry in the IPv6 neighbor discovery cache. Console (config)# ipv6 neighbor ff02::78 00:02:85:0E:1C:00 ethernet 1/e16 vlan 1 port-channel 1 ipv6 set mtu The ipv6 mtu Privileged EXEC mode command sets the Maximum Transmission Unit (MTU) size of IPv6 packets sent on an interface.
LACP Commands lacp system-priority The lacp system-priority Global Configuration mode command configures the system priority. Use the no form of this command to return to the default configuration. Syntax • lacp system-priority value • no lacp system-priority • value — Specifies system priority value. (Range: 1 - 65535) Default Configuration The default system priority is 1.
Default Configuration The default port priority is 1. Command Mode Interface Configuration (Ethernet) mode. User Guidelines There are no user guidelines for this command. Example The following example defines the priority of Ethernet port 1/e6 as 247. Console(config)# interface ethernet 1/e6 Console(config-if)# lacp port-priority 247 lacp timeout The lacp timeout Interface Configuration (Ethernet) mode command assigns an administrative LACP...
Example The following example assigns a long administrative LACP timeout to Ethernet port 1/e6 . Console(config)# interface ethernet 1/e6 Console(config-if)# lacp timeout long show lacp ethernet The show lacp ethernet Privileged EXEC mode command displays LACP information for Ethernet ports. Syntax •...
Page 234
port Oper key: port Oper number: port Admin priority: port Oper priority: port Admin timeout: LONG port Oper timeout: LONG LACP Activity: ACTIVE Aggregation: AGGREGATABLE synchronization: FALSE collecting: FALSE distributing: FALSE expired: FALSE Partner system priority: system mac addr: 00:00:00:00:00:00 port Admin key: port Oper key: port Oper number:...
Page 235
Port 1/e1 LACP Statistics: LACP PDUs sent: LACP PDUs received: Port 1/e1 LACP Protocol State: LACP State Machines: Receive FSM: Port Disabled State Mux FSM: Detached State Periodic Tx FSM: No Periodic State Control Variables: BEGIN: FALSE LACP_Enabled: TRUE Ready_N: FALSE Selected: UNSELECTED...
show lacp port-channel The show lacp port-channel Privileged EXEC mode command displays LACP information for a port- channel. Syntax • show lacp port-channel [port_channel_number] port_channel_number — Valid port-channel number. • Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
Line Commands line The line Global Configuration mode command identifies a specific line for configuration and enters the Line Configuration command mode. Syntax • line {console | telnet | ssh} • console — Console terminal line. • telnet — Virtual terminal for remote console access (Telnet). •...
speed The speed Line Configuration mode command sets the line baud rate. Syntax • speed bps • bps — Baud rate in bits per second (bps). Possible values are 2400, 4800, 9600, 19200, 38400, 57600 and 115200. Default Configuration The default speed is 9600 bps. Command Mode Line Configuration (console) mode.
User Guidelines • This command is available only on the line console. • To start communication using Autobaud, press <Enter> twice. This configuration applies only to the current session. Examples The following example enables autobaud. Console(config)# line console Console(config-line)# autobaud exec-timeout The exec-timeout Line Configuration mode command sets the interval that the system waits until user input is detected.
history The history Line Configuration mode command enables the command history function. Use the no form of this command to disable the command history function. Syntax • history • no history Default Configuration The command history function is enabled. Command Mode Line Configuration mode.
Command Mode Line Configuration mode. User Guidelines This command configures the command history buffer size for a particular line. To configure the command history buffer size for the current terminal session, use the terminal history size User EXEC mode command. Example The following example changes the command history buffer size to 100 entries for a particular line.
terminal history size The terminal history size User EXEC command configures the command history buffer size for the current terminal session. Use the no form of this command to reset the command history buffer size to the default setting. Syntax •...
Page 243
Default Configuration If the line is not specified, the default value is console. Command Mode User EXEC mode. User Guidelines There are no user guidelines for this command. Examples The following example displays the line configuration. Console> show line Console configuration: Interactive timeout: Disabled History: 10 Baudrate: 9600...
Management ACL management access-list The management access-list Global Configuration mode command configures a management access list and enters the Management Access-list Configuration command mode. Use the no form of this command to delete an access list. Syntax • management access-list name •...
Page 246
Examples The following example creates a management access list called mlist, configures management Ethernet interfaces 1/e1 and 2/e9 and makes the new access list the active list. Console(config)# management access-list mlist Console(config-macl)# permit ethernet 1/e1 Console(config-macl)# permit ethernet 2/e9 Console(config-macl)# exit Console(config)# management access-class mlist The following example creates a management access list called mlist, configures all interfaces to be management interfaces except Ethernet interfaces 1/e1 and 2/e9 and makes the new access list the active...
management access-class The management access-class Global Configuration mode command restricts management connections by defining the active management access list. Use the no form of this command to disable this restriction. Syntax • management access-class {console-only | name} • no management access-class •...
User Guidelines There are no user guidelines for this command. Example The following example displays the mlist management access list. Console# show management access-list mlist mlist ----- permit ethernet 1/e1 permit ethernet 2/e2 ! (Note: all other access implicitly denied) show management access-class The show management access-class Privileged EXEC mode command displays the active management access list.
LLDP Commands lldp enable (global) The lldp enable Global Configuration mode command in enables Link Layer Discovery Protocol (LLDP). Use the no form of this command to disable LLDP . Syntax • lldp enable • no lldp enable Default Configuration The command is enabled.
Default Configuration Default — 30 seconds. User Guidelines There are no user guidelines for this command. Examples The following example specifies how often the software sends Link Layer Discovery Protocol (LLDP) updates. Console (config) # lldp timer lldp hold-multiplier The lldp hold-multiplier Global Configuration mode command specifies the amount of time the receiving device holds a Link Layer Discovery Protocol (LLDP) packet before discarding it.
Examples The following example specifies how often the software sends Link Layer Discovery Protocol (LLDP) updates. Console (config) # lldp hold-multiplier 6 lldp reinit-delay The lldp reinit-delay Global Configuration mode command specifies the minimum time an LLDP port waits before reinitializing LLDP transmission. Use the no form of this command to revert to the default setting.
lldp tx-delay The lldp tx-delay Global Configuration mode command specifies the delay between successive LLDP frame transmissions initiated by value/status changes in the LLDP local systems MIB. Use the no form of this command to revert to the default setting. Syntax •...
Default Configuration No optional TLV is transmitted. Command Modes Interface configuration (Ethernet) User Guidelines • There are no user guidelines for this command. Example The following example specifies which optional TLV (2)s from the basic set should be transmitted. Console(config)# interface ethernet g1 Console(config-if)# lldp optional-tlv sys-name lldp management-address The lldp management-address Interface Configuration mode command specifies the management...
Example The following example specifies management address that would be advertised from an interface. Console(config)# interface ethernet g1 Console(config-if)# lldp management-address 192.168.0.1 lldp med enable The lldp med enable Interface Configuration mode command enables Link Layer Discovery Protocol (LLDP) Media Endpoint Discovery (MED) on an interface. Use the no form of this command to disable LLDP MED on an interface.
lldp med network-policy (global) The lldp med network-policy Global Configuration mode command defines LLDP MED network policy. Use the no form of this command to remove LLDP MED network policy. Syntax • lldp med network-policy number application [vlan id] [vlan-type {tagged | untagged}] [up priority] [dscp value] •...
lldp med network-policy (interface) The lldp med network-policy Interface Configuration (Ethernet) mode command attaches a LLDP MED network policy to a port. Use the no form of this command to remove an LLDP MED network policy from a port. Syntax •...
lldp med location ecs-elin data • • no lldp med location ecs-elin • coordinate — The location is specified as coordinates • civic-address — The location is specified as civic address • ecs-elin — The location is specified as ECS ELIN •...
Command Modes Privileged EXEC mode. User Guidelines • There are no user guidelines for this command. Example The following example restarts the LLDP RX state machine and clearing the neighbors table. console(config)# exit console# clear lldp rx console# show lldp configuration To display the Link Layer Discovery Protocol (LLDP) configuration, use the show lldp configuration command in privileged EXEC mode.
Example The following example displays the Link Layer Discovery Protocol (LLDP) configuration. console# show lldp configuration Timer: 30 Seconds Hold multiplier: 4 Reinit delay: 2 Seconds Tx delay: 2 Seconds Port State Optional TLVs Address 1/e1 RX, TX PD, SN, SD, SC 172.16.1.1 1/e2 PD, SN...
Example The following example displays the Link Layer Discovery Protocol (LLDP) Media Endpoint Discovery (MED) configuration. console# show lldp med configuration Network policy 1 ------------------- Application type: Voice VLAN ID: 2 tagged Layer 2 priority: 0 DSCP: 0 Port Capabilities Network Policy Location ----------...
Page 264
User Guidelines • There are no user guidelines for this command. Example The following example displays the Link Layer Discovery Protocol (LLDP) information that is advertised from a specific port. console# show lldp local ethernet 1/e1 Device ID: 0060.704C.73FF Port ID: 1 Capabilities: Bridge System Name: ts-7800-1 System description:...
show lldp neighbors Syntax show lldp neighbors [ethernet interface] • • Interface — Ethernet port Command Modes Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays information about neighboring devices discovered using Link Layer Discovery Protocol (LLDP).
Login Banner banner exec The banner exec Global Configuration mode command specifies and enables a message to be displayed when an EXEC process is created (The user has successfully logged in). Use the no form of this command to delete the existing EXEC banner. Syntax •...
Page 268
• To customize the banner, use tokens in the form $(token) in the message text. The following table displays the tokens. Token Information displayed in the banner $(hostname) Displays the host name for the device. $(domain) Displays the domain name for the device. $(bold) Indicates that the next text is a bold text.
banner login The banner login Global Configuration mode command specifies and enables a message to be displayed before the username and password login prompts. Use the no form of this command to delete the existing Login banner. Syntax • banner login d message d •...
Page 270
• To customize the banner, use tokens in the form $(token) in the message text. The following table displays the tokens. Token Information displayed in the banner $(hostname) Displays the host name for the device. $(domain) Displays the domain name for the device. $(bold) Indicates that the next text is a bold text.
banner motd The banner motd Global Configuration mode command specifies and enables a message-of-the-day banner. Use the no form of this command to delete the existing MOTD banner. Syntax • banner motd d message d • no banner motd • d —...
Page 272
• To customize the banner, use tokens in the form $(token) in the message text. The following table displays the tokens. Token Information displayed in the banner $(hostname) Displays the host name for the device. $(domain) Displays the domain name for the device. $(bold) Indicates that the next text is a bold text.
exec-banner The exec-banner Line Configuration mode command enables the display of exec banners. Use the no form of this command to disable the display of exec banners. Syntax • exec-banner • no exec-banner Default Configuration Enabled Command Mode Line Configuration mode User Guidelines There are no user guidelines for this command.
User Guidelines There are no user guidelines for this command. Example The following example enables the display of login banners. Console# Console (config)# line console Console(config-line)# login-banner motd-banner The motd-banner Line Configuration mode command enables the display of message-of-the-day banners. Use the no form of this command to disable the display of motd banners. Syntax •...
show banner The show banner Privileged EXEC mode command displays the banners configuration. Syntax • show banner motd • show banner login • show banner exec Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command.
PHY Diagnostics Commands test copper-port tdr The test copper-port tdr Privileged EXEC mode command uses Time Domain Reflectometry (TDR) technology to diagnose the quality and characteristics of a copper cable attached to a port. Syntax • test copper-port tdr interface •...
show copper-ports tdr The show copper-ports tdr User EXEC mode command displays information on the last Time Domain Reflectometry (TDR) test performed on copper ports. • show copper-ports tdr [interface] • interface — A valid Ethernet port. (Full syntax: unit/port) Default Configuration This command has no default configuration.
Page 279
Default Configuration This command has no default configuration. Command Mode User EXEC mode. User Guidelines The port must be active and working in 100M or 1000M mode. Example The following example displays the estimated copper cable length attached to all ports. Console>...
Power over Ethernet Commands power inline The port inline Interface Configuration (Ethernet) mode command configures the administrative mode of inline power on an interface. Syntax • power inline {auto | never} • auto — Enables the device discovery protocol and, if found, supplies power to the device. •...
Syntax • power inline powered-device pd-type • no power inline powered-device • pd-type — Specifies the type of powered device attached to the interface. (Range: 1 - 24 characters) Default Configuration This command has no default configuration. Command Mode Interface Configuration (Ethernet) mode. User Guidelines There are no user guidelines for this command.
Command Mode Interface Configuration (Ethernet) mode. User Guidelines • An unlimited number of ports can be configured as critical, high or low. • As power becomes unavailable, critical and high ports continue to receive power at the expense of low ports. Example The following example configures the device connected to Ethernet interface 1/e1 as a high-priority powered device.
power inline traps enable The power inline traps enable Global Configuration mode command enables inline power traps. Use the no form of this command to disable inline power traps. Syntax • power inline traps enable • no power inline traps Default Configuration Inline power traps are disabled.
Page 285
Example The following example displays information about inline power. Console# show power inline Unit Power Nominal Consumed Usage Traps Power Power Threshold ------ --------- --------- ------------ ---------- -------- 1 Watts 0 Watts (0%) 95 Disable 370 Watts 0 Watts (0%) 95 Disable 1 Watts 0 Watts (0%) 95...
Page 286
2/e6 Auto Searching class0 2/e7 Auto Searching class0 2/e8 Auto Searching class0 2/e9 Auto Searching class0 2/e10 Auto Searching class0 2/e11 Auto Searching class0 2/e12 Auto Searching class0 2/e13 Auto Searching class0 2/e14 Auto Searching class0 2/e15 Auto Searching class0 2/e16 Auto Searching...
Page 287
2/e33 Auto Searching class0 2/e34 Auto Searching class0 2/e35 Auto Searching class0 2/e36 Auto Searching class0 2/e37 Auto Searching class0 2/e38 Auto Searching class0 2/e39 Auto Searching class0 2/e40 Auto Searching class0 2/e41 Auto Searching class0 2/e42 Auto Searching class0 2/e43 Auto Searching...
Page 288
4/e12 Auto class0 4/e13 Auto class0 4/e14 Auto class0 4/e15 Auto class0 4/e16 Auto class0 4/e17 Auto class0 4/e18 Auto class0 4/e19 Auto class0 4/e20 Auto class0 4/e21 Auto class0 4/e22 Auto class0 4/e23 Auto class0 4/e24 Auto class0 6/e1 Auto class0 6/e2...
Page 289
6/e15 Auto class0 6/e16 Auto class0 6/e17 Auto class0 6/e18 Auto class0 The following table describes the significant fields shown in the example: Field Description Power The operational status of the inline power sourcing equipment. Nominal Power The nominal power of the inline power sourcing equipment in Watts. Consumed Power Measured usage power in Watts.
Port Channel Commands interface port-channel The interface port-channel Global Configuration mode command enters the interface configuration mode to configure a specific port-channel. Syntax • interface port-channel port-channel-number • port-channel-number — A valid port-channel number. Default Configuration This command has no default configuration. Command Mode Global Configuration mode.
Syntax • interface range port-channel {port-channel-range | all} • port-channel-range — List of valid port-channels to add. Separate non-consecutive port-channels with a comma and no spaces. A hyphen designates a range of port-channels. • all — All valid port-channels. Default Configuration This command has no default configuration.
User Guidelines There are no user guidelines for this command. Example The following example forces port 1/e1 to join port-channel 1 without an LACP operation. Console(config)# interface ethernet 1/e1 Console(config-if)# channel-group 1 mode on show interfaces port-channel The show interfaces port-channel Privileged EXEC mode command displays port-channel information. Syntax •...
Port Monitor Commands port monitor The port monitor Interface Configuration Ethernet mode command starts a port monitoring session. Use the no form of this command to stop a port monitoring session. Syntax • port monitor src-interface [rx | tx] • no port monitor src-interface •...
• The following restrictions apply to ports configured to be destination ports: • The port cannot be already configured as a source port. • The port cannot be a member in a port-channel. • An IP interface is not configured on the port. •...
Page 297
Command Mode User EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example shows how the port monitoring status is displayed. console# config console(config)# int ether 1/e2 console(config-if)# port monitor 1/e3 console(config-if)# port monitor 1/e4 console(config-if)# port monitor 1/e5 console(config-if)# port monitor 1/e6 console(config-if)# port monitor 1/e7...
QoS Commands The qos Global Configuration mode command enables quality of service (QoS) on the device. Use the no form of this command to disable QoS on the device. Syntax • qos [basic ] • no qos • basic — QoS basic mode. Default Configuration QoS is disabled on the device.
Command Mode User EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays QoS attributes when QoS is disabled on the device. console# show qos Qos: basic Basic trust: vpt console# priority-queue out num-of-queues The priority-queue out num-of-queues Global Configuration mode command configures the number of expedite queues.
Example The following example configures the number of expedite queues as 0. Console(config)# priority-queue out num-of-queues 0 traffic-shape The traffic-shape Interface Configuration (Ethernet, Port-Channel) mode command sets the shaper on an egress port. Use the no form of this command to disable the shaper. Syntax •...
Default Configuration The default configuration is disabled. Command Mode Interface Configuration (Ethernet) mode. User Guidelines The command can be enabled on a specific port only if port storm-control broadcast enable interface configuration command is not enabled on that port. Example The following example limits the rate of the incoming traffic on Ethernet port 1/e15 to 1000kpbs.
Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command. Example The following example maps CoS 7 to queue 2. Console(config)# wrr-queue cos-map 2 7 show qos interface The show qos interface User EXEC mode command displays interface QoS information. Syntax •...
Page 304
Examples The following example displays QoS information about Ethernet port 1/e11. console# show qos interface Ethernet e1 Default CoS: 0: Trust mode: enable Ethernet e2 Default CoS: 0: Trust mode: enable console# show qos interface queuing Ethernet e1 wrr bandwidth weights and EF priority: weights Priority Cos-queue map:...
Ethernet e2 wrr bandwidth weights and EF priority: weights Priority Cos-queue map: qos map dscp-queue The qos map dscp-queue Global Configuration mode command modifies the DSCP to queue map. Use the no form of this command to return to the default map. Syntax •...
Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command. Example The following example maps DSCP values 33, 40 and 41 to queue 1. Console(config)# qos map dscp-queue 33 40 41 to 1 qos trust (Global) The qos trust Global Configuration mode command configures the system to the basic mode and trust state.
Example The following example configures the system to the DSCP trust state. Console(config)# qos trust dscp qos trust (Interface) The qos trust Interface Configuration (Ethernet, Port-channel) mode command enables a port to be in the trust state while the system is in the basic QoS mode. Use the no form of this command to disable the trust state on a port.
Default Configuration Default CoS value of a port is 0. Command Mode Interface Configuration (Ethernet, Port-channel) mode. User Guidelines • If the port is trusted, the default CoS value of the port is used to assign a CoS value to all untagged packets entering the port.
RADIUS Commands radius-server host The radius-server host Global Configuration mode command specifies a RADIUS server host. Use the no form of this command to delete the specified RADIUS host. Syntax • radius-server host {ip-address | hostname} [auth-port auth-port-number] [timeout timeout] [retransmit retries] [deadtime deadtime] [key key-string] [source source] [priority priority] [usage type] •...
Default Configuration No RADIUS server host is specified. The port number for authentication requests is 1812. The usage type is all. Command Mode Global Configuration mode. User Guidelines • To specify multiple hosts, multiple radius-server host commands can be used. •...
Example The following example defines the authentication and encryption key for all RADIUS communications between the device and the RADIUS daemon. Console(config)# radius-server key dell-server radius-server retransmit The radius-server retransmit Global Configuration mode command specifies the number of times the software searches the list of RADIUS server hosts.
radius-server source-ip The radius-server source-ip Global Configuration mode command specifies the source IP address used for communication with RADIUS servers. Use the no form of this command to return to the default configuration. Syntax • radius-server source-ip source • no radius-source-ip source •...
Default Configuration The default IP address is the outgoing IP interface. Command Mode Global Configuration mode. User Guidelines • There are no user guidelines for this command. Example The following example configures the source IPv6 address used for communication with RADIUS servers.
radius-server deadtime The radius-server deadtime Global Configuration mode command improves RADIUS response time when servers are unavailable. The command is used to cause the unavailable servers to be skipped. Use the no form of this command to return to the default configuration. Syntax •...
Page 317
User Guidelines There are no user guidelines for this command. Examples The following example displays RADIUS server settings. Console# show radius-servers IP address Port TimeOut Retransmit DeadTime Source Priority Usage Auth --------- ---- ------- ---------- ------ -------- -------- ----- 172.16.1.1 1645 Global Global Global...
RMON Commands show rmon statistics The show rmon statistics User EXEC mode command displays RMON Ethernet statistics. Syntax • show rmon statistics {ethernet interface number | port-channel port-channel-number} • interface number — Valid Ethernet port. • port-channel-number — Valid port-channel number. Default Configuration This command has no default configuration.
Page 320
Fragments: 0 Jabbers: 0 64 Octets: 0 65 to 127 Octets: 0 128 to 255 Octets: 0 256 to 511 Octets: 0 512 to 1023 Octets: 0 1024 to max Octets: 0 The following table describes significant fields shown above: Field Description Octets...
128 to 255 Octets The total number of packets (including bad packets) received that are between 128 and 255 octets in length inclusive (excluding framing bits but including FCS octets). 256 to 511 Octets The total number of packets (including bad packets) received that are between 256 and 511 octets in length inclusive (excluding framing bits but including FCS octets).
Example The following example enables a Remote Monitoring (RMON) MIB history statistics group on Ethernet port 1/e1 with index number 1 and a polling interval period of 2400 seconds. Console(config)# interface ethernet 1/e1 Console(config-if)# rmon collection history 1 interval 2400 show rmon collection history The show rmon collection history User EXEC mode command displays the requested RMON history group statistics.
The following table describes significant fields shown above: Field Description Index An index that uniquely identifies the entry. Interface The sampled Ethernet interface Interval The interval in seconds between samples. Requested Samples The requested number of samples to be saved. Granted Samples The granted number of samples to be saved.
Page 324
Examples The following examples displays RMON Ethernet history statistics for index 1. Console> show rmon history 1 throughput Sample Set: 1 Owner: CLI Interface: 1/e1 Interval: 1800 Requested samples: 50 Granted samples: 50 Maximum table size: 500 Time Octets Packets Broadcast Multicast Util...
Page 325
Console> show rmon history 1 other Sample Set: 1 Owner: Me Interface: 1/e1 Interval: 1800 Requested samples: 50 Granted samples: 50 Maximum table size: 500 Time Dropped Collisions -------------------- -------- ---------- Jan 18 2002 21:57:00 Jan 18 2002 21:57:30 The following table describes significant fields shown above: Field Description Time...
Fragments The total number of packets received during this sampling interval that were less than 64 octets in length (excluding framing bits but including FCS octets) had either a bad Frame Check Sequence (FCS) with an integral number of octets (FCS Error), or a bad FCS with a non-integral number of octets (AlignmentError).
show rmon alarm-table The show rmon alarm-table User EXEC mode command displays the alarms table. Syntax • show rmon alarm-table Default Configuration This command has no default configuration. Command Mode User EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the alarms table.
show rmon alarm The show rmon alarm User EXEC mode command displays alarm configuration. Syntax • show rmon alarm number • number — Specifies the alarm index. (Range: 1 - 65535) Default Configuration This command has no default configuration. Command Mode User EXEC mode.
The following table describes the significant fields shown in the display: Field Description Alarm Alarm index. Monitored variable OID. Last Sample Value The statistic value during the last sampling period. For example, if the sample type is delta, this value is the difference between the samples at the beginning and end of the period.
Syntax • rmon event index type [community text] [description text] [owner name] • no rmon event index • index — Specifies the event index. (Range: 1 - 65535) • type — Specifies the type of notification generated by the device about this event. Possible values: none, log, trap, log-trap.
Page 332
Command Mode User EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the RMON event table. Console> show rmon events Index Description Type Community Owner Last time sent ----- ----------- -------- --------- ------- -------------- ------ Errors...
show rmon log The show rmon log User EXEC mode command displays the RMON log table. Syntax • show rmon log [event] • event — Specifies the event index. (Range: 0 - 65535) Default Configuration This command has no default configuration. Command Mode User EXEC mode.
The following table describes the significant fields shown in the display: Field Description Event An index that uniquely identifies the event. Description A comment describing this event. Time The time this entry was created. rmon table-size The rmon table-size Global Configuration mode command configures the maximum size of RMON tables.
SNMP Commands snmp-server community The snmp-server community Global Configuration mode command configures the community access string to permit access to the SNMP protocol. Use the no form of this command to remove the specified community string. Syntax • snmp-server community community [ro | rw | su] [ipv4-address | ipv6-address] [view view-name] •...
User Guidelines • The view-name parameter cannot be specified for su, which has access to the whole MIB. • The view-name parameter can be used to restrict the access rights of a community string. When it is specified: – An internal security name is generated. –...
Page 337
Syntax • snmp-server view view-name oid-tree {included | excluded} • no snmp-server view view-name [oid-tree] • view-name — Specifies the label for the view record that is being created or updated. The name is used to reference the record. (Range: 1 - 30 characters) •...
• Following is a list of unsupported counters in the Iftable MIB: – ifInDiscards – ifOutErrors – ifOutQLen – ifHCInOctets – ifHCInUcastPkts – ifHCInMulticastPkts – ifHCInBroadcastPkts – ifHCOutOctets – ifHCOutUcastPkts – ifHCOutMulticastPkts – ifHCOutBroadcastPkts • The following counters are also not supported –...
Examples The following example attaches a group called user-group to SNMPv3 and assigns to the group the privacy security level and read access rights to a view called user-view. Console(config)# snmp-server group user-group v3 priv read user-view snmp-server user The snmp-server user Global Configuration mode command configures a new SNMP Version 3 user. Use the no form of this command to remove a user.
Default Configuration No group entry exists. Command Mode Global Configuration mode. User Guidelines • If auth-md5 or auth-sha is specified, both authentication and privacy are enabled for the user. • When a show running-config Privileged EXEC mode command is entered, a line for this user will not be displayed.
Page 342
Default Configuration The engine ID is not configured. If SNMPv3 is enabled using this command, and the default is specified, the default engine ID is defined per standard as: • First 4 octets — first bit = 1, the rest is IANA Enterprise number = 674. •...
Examples The following example enables SNMPv3 on the device and sets the local engine ID of the device to the default value. Console(config) # snmp-server engineID local default snmp-server enable traps The snmp-server enable traps Global Configuration mode command enables the device to send SNMP traps.
Syntax • snmp-server filter filter-name oid-tree {included | excluded} • no snmp-server filter filter-name [oid-tree] • filter-name — Specifies the label for the filter record that is being updated or created. The name is used to reference the record. (Range: 1 - 30 characters) •...
• If a trap and inform are defined on the same target, and an inform was sent, the trap is not sent. • The IPv6Z address format: <ipv6-link-local-address>%<interface-name> – interface-name — vlan<integer> | ch<integer> | isatap<integer> | <physical-port-name> | 0 –...
Page 347
port — Specifies the UDP port of the host to use. If unspecified, the default UDP port number is • 162. (Range: 1 - 65535) • filtername — Specifies a string that defines the filter for this host. If unspecified, nothing is filtered.
snmp-server trap authentication The snmp-server trap authentication Global Configuration mode command enables the device to send SNMP traps when authentication fails. Use the no form of this command to disable SNMP failed authentication traps. Syntax • snmp-server trap authentication • no snmp-server trap authentication Default Configuration SNMP failed authentication traps are enabled.
User Guidelines Do not include spaces in the text string or place text that includes spaces inside quotation marks. Example The following example configures the system contact point called Dell_Technical_Support. console(config)# snmp-server contact Dell_Technical_Support snmp-server location The snmp-server location Global Configuration mode command configures the system location string. To remove the location string.
This • command is case-sensitive. Examples The following example configures the scalar MIB sysName with the value dell. Console(config)# snmp-server set sysName sysname dell show snmp The show snmp Privileged EXEC mode command displays the SNMP status. Syntax •...
Page 351
Example The following example displays the SNMP communications status. Console# show snmp Community- Community- View name String Access address ---------- ---------- --------- ------- public read only user-view private read write Default 172.16.1.1 private DefaultSuper 172.17.1.1 Community-string Group name IP address ---------------- ---------- ----------...
The following table describes significant fields shown above. Field Description Community-string Community access string to permit access to the SNMP protocol. Community-access Type of access - read-only, read-write, super access IP Address Management station IP Address. Trap-Rec-Address Targeted Recipient Trap-Rec-Community Statistics sent with the notification operation.
show snmp views The show snmp views Privileged EXEC mode command displays the configuration of views. Syntax • show snmp views [viewname] • viewname — Specifies the name of the view. (Range: 1 - 30) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
Page 354
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the configuration of views. Console# show snmp groups Name Security Views Model Level Read Write...
show snmp filters The show snmp filters Privileged EXEC mode command displays the configuration of filters. Syntax • show snmp filters [filtername] • filtername — Specifies the name of the filter. (Range: 1 - 30) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
show snmp users The show snmp users Privileged EXEC mode command displays the configuration of users. Syntax • show snmp users [username] • username — Specifies the name of the user. (Range: 1 - 30) Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
Spanning-Tree Commands spanning-tree The spanning-tree Global Configuration mode command enables spanning-tree functionality. Use the no form of this command to disable spanning-tree functionality. Syntax • spanning-tree • no spanning-tree Default Configuration Spanning-tree is enabled. Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command.
Syntax • spanning-tree mode {stp | rstp| mstp} • no spanning-tree mode • stp — STP is the Spanning Tree operative mode. • rstp — RSTP is the Spanning Tree operative mode. • mstp — MSTP is enabled. Default Configuration STP is enabled.
Command Mode Global Configuration mode. User Guidelines When configuring the forwarding time, the following relationship should be kept: – 2*(Forward-Time - 1) >= Max-Age Example The following example configures the Spanning Tree bridge forwarding time to 25 seconds. Console(config)# spanning-tree forward-time 25 spanning-tree hello-time The spanning-tree hello-time Global Configuration mode command configures the Spanning Tree bridge hello time, which is how often the device Broadcasts Spanning Tree BPDUs to other devices.
spanning-tree max-age The spanning-tree max-age Global Configuration mode command configures the Spanning Tree bridge maximum age. Use the no form of this command to return to the default configuration. Syntax • spanning-tree max-age seconds • no spanning-tree max-age • seconds — Time in seconds. (Range: 6 - 40) Default Configuration The default maximum age for IEEE Spanning Tree Protocol (STP) is 20 seconds.
Command Mode Global Configuration mode. User Guidelines The bridge with the lowest priority is elected as the root bridge. Example The following example configures Spanning Tree priority to 12288. Console(config)# spanning-tree priority 12288 spanning-tree disable The spanning-tree disable Interface Configuration mode command disables Spanning Tree on a specific port.
Syntax • spanning-tree cost cost • no spanning-tree cost • cost — Path cost of the port (Range: 1 - 200,000,000) Default Configuration Default path cost is determined by port speed and path cost method (long or short) as shown below: Interface Long Short...
Command Mode Interface Configuration (Ethernet, port-channel) mode. User Guidelines There are no user guidelines for this command. Example The following example configures the spanning priority on Ethernet port 1/e15 to 96. Console(config)# interface ethernet 1/e15 Console(config-if)# spanning-tree port-priority 96 spanning-tree portfast The spanning-tree portfast Interface Configuration mode command enables PortFast mode.
spanning-tree link-type The spanning-tree link-type Interface Configuration mode command overrides the default link-type setting determined by the duplex mode of the port and enables Rapid Spanning Tree Protocol (RSTP) transitions to the forwarding state. Use the no form of this command to return to the default configuration.
Default Configuration Short path cost method. Command Mode Global Configuration mode. User Guidelines • This command applies to all Spanning Tree instances on the device. • The cost is set using the spanning-tree cost command. Example The following example sets the default path cost method to long. Console(config)# spanning-tree pathcost method long spanning-tree bpdu The spanning-tree bpdu Global Configuration mode command defines BPDU handling when the...
Example The following example defines BPDU packet flooding when the spanning-tree is disabled on an interface Console(config)# spanning-tree bpdu flooding clear spanning-tree detected-protocols The clear spanning-tree detected-protocols Privileged EXEC mode command enables the user to set the switches back to RSTP mode without rebooting the device. Syntax •...
Syntax • spanning-tree mst instance-id priority priority • no spanning-tree mst instance-id priority • instance-id — ID of the spanning -tree instance. (Range: 0 - 15) • priority — Device priority for the specified spanning-tree instance. (Range: 0 - 61440 in multiples of 4096) Default Configuration The default bridge priority for IEEE Spanning Tree Protocol (STP) is 32768.
User Guidelines There are no user guidelines for this command. Example The following example configures the maximum number of hops that a packet travels in an MST region before it is discarded to 10. Console (config) # spanning-tree mst max-hops 10 spanning-tree mst port-priority The spanning-tree mst port-priority Interface Configuration mode command configures port priority for the specified MST instance.
spanning-tree mst cost The spanning-tree mst cost Interface Configuration mode command configures the path cost for multiple Spanning Tree (MST) calculations. If a loop occurs, the Spanning Tree considers path cost when selecting an interface to put in the forwarding state. Use the no form of this command to return to the default configuration.
Syntax spanning-tree mst configuration Default Configuration This command has no default configuration. Command Mode Global Configuration mode. User Guidelines All devices in an MST region must have the same VLAN mapping, configuration revision number and name. Example The following example configures an MST region. Console(config)# spanning-tree mst configuration Console(config-mst) # instance 1 add vlan 10-20 Console(config-mst) # name region1...
User Guidelines All VLANs that are not explicitly mapped to an MST instance are mapped to the common and internal Spanning Tree (CIST) instance (instance 0) and cannot be unmapped from the CIST. For two or more devices to be in the same MST region, they must have the same VLAN mapping, the same configuration revision number, and the same name.
revision (mst) The revision MST configuration command defines the MST region revision number. Use the no form of this command to return to the default configuration. Syntax • revision value • no revision • value — Configuration revision number. (Range: 0 - 65535) Default Configuration The default configuration revision number is 0.
Command Mode MST Configuration mode. User Guidelines The pending MST region configuration takes effect only after exiting the MST configuration mode. Example The following example displays a pending MST region configuration. Console(config-mst)# show pending Pending MST configuration Name: Region1 Revision: 1 Instance Vlans Mapped State...
Example The following example exits the MST configuration mode and saves changes. Console(config)# spanning-tree mst configuration Console(config-mst)# exit abort (mst) The abort MST Configuration mode command exits the MST configuration mode without applying the configuration changes. Syntax • abort Default Configuration This command has no default configuration.
show spanning-tree The show spanning-tree Privileged EXEC mode command displays spanning-tree configuration. Syntax • show spanning-tree [ethernet interface -number| port-channel port-channel-number] [instance instance-id] • show spanning-tree [detail] [active | blockedports] [instance instance-id] • show spanning-tree mst-configuration • interface -number — A valid Ethernet port. •...
Page 376
Path Cost 20000 Root Port 1 (1/e1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge Priority 36864 Address 00:02:4b:29:7a:00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Interfaces Name State Prio.Nbr Cost Role PortFast Type...
Page 378
1/e2 Enabled 128.2 20000 1/e3 Disabled 128.3 20000 1/e4 Enabled 128.4 20000 1/e5 Enabled 128.5 20000 Console# show spanning-tree active Spanning tree enabled mode RSTP Default port cost method: long Root ID Priority 32768 Address 00:01:42:97:e0:00 Path Cost 20000 Root Port 1 (1/e1) Hello Time 2 sec Max Age 20 sec...
Page 379
Console# show spanning-tree blockedports Spanning tree enabled mode RSTP Default port cost method: long Root ID Priority 32768 Address 00:01:42:97:e0:00 Path Cost 20000 Root Port 1 (1/1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge Priority 36864 Address...
Page 380
Root ID Priority 32768 Address 00:01:42:97:e0:00 Path Cost 20000 Root Port 1 (1/e1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Bridge Priority 36864 Address 00:02:4b:29:7a:00 Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Number of topology changes 2 last change occurred 2d18h ago Times: hold 1, topology change 35, notification 2...
Page 381
Designated port id: 128.2 Designated path cost: 20000 Number of transitions to forwarding state: 1 BPDU: sent 2, received 170638 Port 3 (1/e3) disabled State: N/A Role: N/A Port id: 128.3 Port cost: 20000 Type: N/A (configured: auto) Port Fast: N/A (configured:no) Designated bridge Priority: N/A Address: N/A Designated port id: N/A...
Page 382
Number of transitions to forwarding state: N/A BPDU: sent N/A, received N/A Console# show spanning-tree ethernet 1/e1 Port 1 (1/e1) enabled State: Forwarding Role: Root Port id: 128.1 Port cost: 20000 Type: P2p (configured: auto) RSTP Port Fast: No (configured:no) Designated bridge Priority: 32768 Address: 00:01:42:97:e0:00 Designated port id: 128.25...
Page 383
CST Root ID Priority 32768 Address 00:01:42:97:e0:00 Path Cost 20000 Root Port 1 (1/e1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec IST Master ID Priority 32768 Address 00:02:4b:29:7a:0 This switch is the IST master. Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Max hops...
Page 384
Bridge ID Priority 32768 Address 00:02:4b:29:7a:0 Interfaces Name State Prio.Nbr Cost Role PortFast Type ---- ------- -------- ----- ---- -------- ---------- 1/e1 Enabled 128.1 20000 Boun P2p Bound (RSTP) 1/e2 Enabled 128.2 20000 Boun Shared Bound (STP) 1/e3 Enabled 128.3 20000 Altn 1/e4...
Page 385
Max hops Number of topology changes 2 last change occurred 2d18h ago Times: hold 1, topology change 35, notification 2 hello 2, max age 20, forward delay 15 Port 1 (1/e1) enabled State: Forwarding Role: Root Port id: 128.1 Port cost: 20000 Type: P2p (configured: auto) Boundary RSTP Port Fast: No (configured:no) Designated bridge Priority: 32768...
Page 386
Number of transitions to forwarding state: 1 BPDU: sent 2, received 170638 Port 4 (1/e4) enabled State: Forwarding Role: Designated Port id: 128.4 Port cost: 20000 Type: Shared (configured: auto) Internal Port Fast: No (configured:no) Designated bridge Priority: 32768 Address: 00:02:4b:29:7a:00 Designated port id: 128.2 Designated path cost: 20000 Number of transitions to forwarding state: 1...
Page 387
Designated bridge Priority: 32768 Address: 00:02:4b:29:7a:00 Designated port id: 128.1 Designated path cost: 20000 Number of transitions to forwarding state: 1 BPDU: sent 2, received 120638 Port 2 (1/e2) enabled State: Forwarding Role: Designated Port id: 128.2 Port cost: 20000 Type: Shared (configured: auto) Boundary STP Port Fast: No (configured:no) Designated bridge Priority: 32768...
Page 388
Number of transitions to forwarding state: 1 BPDU: sent 2, received 170638 Console# show spanning-tree Spanning tree enabled mode MSTP Default port cost method: long ###### MST 0 Vlans Mapped: 1-9, 21-4094 CST Root ID Priority 32768 Address 00:01:42:97:e0:00 Path Cost 20000 Root Port 1 (1/e1) Hello Time 2 sec Max Age 20 sec...
Spanning tree enabled mode MSTP Default port cost method: long ###### MST 0 Vlans Mapped: 1-9, 21-4094 CST Root ID Priority 32768 Address 00:01:42:97:e0:00 This switch is root for CST and IST master. Root Port 1 (1/e1) Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec Max hops...
Page 390
User Guidelines Root guard can be enabled when the switch works in STP , RSTP and MSTP . When root guard is enabled, if spanning-tree calculations cause a port to be selected as the root port, the port transitions to the alternate state. Example The following example enable root guard on port e8.
SSH Commands ip ssh port The ip ssh port Global Configuration mode command specifies the port to be used by the SSH server. Use the no form of this command to return to the default configuration. Syntax • ip ssh port port-number •...
Default Configuration Device configuration from a SSH server is enabled. Command Mode Global Configuration mode. User Guidelines • If encryption keys are not generated, the SSH server is in standby until the keys are generated. To generate SSH server keys, use the crypto key generate dsa, and crypto key generate rsa Global Configuration mode commands.
Default Configuration Public Key authentication for incoming SSH sessions is disabled. Command Mode Global Configuration mode. User Guidelines AAA authentication is independent Example The following example enables public key authentication for incoming SSH sessions. Console(config)# ip ssh pubkey-auth crypto key pubkey-chain ssh The crypto key pubkey-chain ssh Global Configuration mode command enters the SSH Public Key- chain Configuration mode.
Example The following example enters the SSH Public Key-chain Configuration mode and manually configures the RSA key pair for SSH public key-chain bob. Console(config)# crypto key pubkey-chain ssh Console(config-pubkey-chain)# user-key bob Console(config-pubkey-key)# key-string rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCvTnRwPWl Al4kpqIw9GBRonZQZxjHKcqKL6rMlQ+ ZNXfZSkvHG+QusIZ/76ILmFT34v7u7ChFAE+ Vu4GRfpSwoQUvV35LqJJk67IOU/zfwOl1g kTwml75QR9gHujS6KwGN2QWXgh3ub8gDjTSq muSn/Wd05iDX2IExQWu08licglk02LYciz +Z4TrEU/9FJxwPiVQOjc+KBXuR0juNg5nFYsY 0ZCk0N/W9a/tnkm1shRE7Di71+w3fNiOA 6w9o44t6+AINEICBCCA4YcF6zMzaT1wefWwX6f+...
Default Configuration No SSH public keys exist. Command Mode SSH Public Key-string Configuration mode. User Guidelines Follow this command with the key-string SSH Public Key-String Configuration mode command to specify the key. Example The following example enables manually configuring an SSH public key for SSH public key-chain bob. Console(config)# crypto key pubkey-chain ssh Console(config-pubkey-chain)# user-key bob rsa Console(config-pubkey-key)# key-string row...
Page 397
User Guidelines • Use the key-string SSH Public Key-string Configuration mode command to specify which SSH public key is to be interactively configured next. To complete the command, you must enter a row with no characters. • Use the key-string row SSH Public Key-string Configuration mode command to specify the SSH public key row by row.
show ip ssh The show ip ssh Privileged EXEC mode command displays the SSH server configuration. Syntax • show ip ssh Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the SSH server configuration.
show crypto key mypubkey The show crypto key mypubkey Privileged EXEC mode command displays the SSH public keys on the device. Syntax • show crypto key mypubkey [rsa | dsa] • rsa — Indicates the RSA key. • dsa — Indicates the DSA key. Default Configuration This command has no default configuration.
Syslog Commands logging on The logging on Global Configuration mode command controls error message logging. This command sends debug or error messages to a logging process, which logs messages to designated locations asynchronously to the process that generated the messages. Use the no form of this command to disable the logging process.
Page 402
Syntax • logging {ip4-address | ip6-address |hostname} [port port] [severity level] [facility facility] [description text] • no logging {ip4-address | ip6-address | hostname} • ip4-address — Host IPv4 address to be used as a syslog server. • ip6-address — Host IPv6 address to be used as a syslog server. When the IPv6 address is a Link Local address (IPv6Z address), the outgoing interface name must be specified.
Example The following example limits logged messages sent to the syslog server with IP address 10.1.1.1 to severity level critical. Console(config)# logging 10.1.1.1 severity critical logging console The logging console Global Configuration mode command limits messages logged to the console based on severity.
logging buffered The logging buffered Global Configuration mode command limits syslog messages displayed from an internal buffer based on severity. Use the no form of this command to cancel using the buffer. Syntax • logging buffered level • no logging buffered •...
Command Mode Global Configuration mode. User Guidelines This command takes effect only after Reset. Example The following example changes the number of syslog messages stored in the internal buffer to 300. Console(config)# logging buffered size 300 clear logging The clear logging Privileged EXEC mode command clears messages from the internal logging buffer. Syntax •...
logging file The logging file Global Configuration mode command limits syslog messages sent to the logging file based on severity. Use the no form of this command to cancel using the buffer.. Syntax • logging file level • no logging file •...
Example The following example clears messages from the logging file. Console# clear logging file Clear Logging File [yes/no]? aaa logging The aaa logging Global Configuration mode command enables logging AAA login events in the syslog. Use the no form of this command to disable logging AAA login events. Syntax •...
Example The following example enables logging messages related to deny actions of management ACLs. Console(config)# management logging deny show logging The show logging Privileged EXEC mode command displays the state of logging and the syslog messages stored in the internal buffer. Syntax •...
Page 410
Application filtering control Application Event Status Login Enabled File system Copy Enabled File system Delete-Rename Enabled Management ACL Deny Enabled Buffer log: 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/0, changed state to up 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/1, changed state to up 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/2,...
show logging file The show logging file Privileged EXEC mode command displays the state of logging and the syslog messages stored in the logging file. Syntax • show logging file Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.
File system Copy Enabled File system Delete-Rename Enabled Management ACL Deny Enabled File log: 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed state to up 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/0, changed state to up 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/1, changed state to up 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/2, changed state to up 11-Aug-2002 15:41:43: %LINK-3-UPDOWN: Interface Ethernet1/3,...
Page 413
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the settings of the syslog servers. Console# show syslog-servers Device Configuration IP address Port Severity Facility...
System Management ping The ping User EXEC mode command sends ICMP echo request packets to another node on the network. Syntax • ping ip-address | hostname [size packet_size] [count packet_count] [timeout time_out] • ping ipv6 {ipv6-address | hostname} [size packet_size] [count packet_count] [timeout time_out]ip-address —...
Page 416
User Guidelines Press Esc to stop pinging. Following are sample results of the ping command: • Destination (host/network) unreachable — The gateway for this destination indicates an unreachable destination. • Destination does not respond — If the host does not respond, a “no answer from host” appears in ten seconds.
Console> ping yahoo.com Pinging yahoo.com (66.218.71.198) with 64 bytes of data: 64 bytes from 10.1.1.1: icmp_seq=0. time=11 ms 64 bytes from 10.1.1.1: icmp_seq=1. time=8 ms 64 bytes from 10.1.1.1: icmp_seq=2. time=8 ms 64 bytes from 10.1.1.1: icmp_seq=3. time=7 ms ----10.1.1.1 PING Statistics---- 4 packets transmitted, 4 packets received, 0% packet loss round-trip (ms) min/avg/max = 7/8/11 traceroute...
Page 418
ip-address — One of the device’s interface addresses to use as a source address for the probes. The • device normally selects what it feels is the best source address to use. • tos — The Type-Of-Service byte in the IP Header of the packet. (Range: 0 - 255) Default Configuration •...
Page 419
Examples The following example discovers the routes that packets will actually take when traveling to their destination. Console> traceroute umaxp1.physics.lsa.umich.edu Type Esc to abort. Tracing the route to umaxp1.physics.lsa.umich.edu (141.211.101.64) 1 i2-gateway.stanford.edu (192.68.191.83) 0 msec 0 msec 0 msec 2 STAN.POS.calren2.NET (171.64.1.213) 0 msec 0 msec 0 msec 3 SUNV--STAN.POS.calren2.net (198.32.249.73) 1 msec 1 msec 1 msec 4 Abilene--QSV.POS.calren2.net (198.32.249.162) 1 msec 1 msec...
The following table describes characters that may appear in the traceroute command output. Field Description The probe timed out. Unknown packet type. Administratively unreachable. Usually, this output indicates that an access list is blocking traffic. Fragmentation is required and DF is set. Host unreachable.
Page 421
Special Telnet Sequences Telnet Sequence Purpose Ctrl-shift-6-b Break Ctrl-shift-6-c Interrupt Process (IP) Ctrl-shift-6-h Erase Character (EC) Ctrl-shift-6-o Abort Output (AO) Ctrl-shift-6-t Are You There? (AYT) Ctrl-shift-6-u Erase Line (EL) At any time during an active Telnet session, Telnet commands can be listed by pressing the Ctrl-shift- 6-? keys at the system prompt.
Page 422
Ports Table Keyword Description Port Number Border Gateway Protocol chargen Character generator Remote commands daytime Daytime discard Discard domain Domain Name Service echo Echo exec Exec finger Finger File Transfer Protocol ftp-data FTP data connections gopher Gopher hostname NIC hostname server ident Ident Protocol Internet Relay Chat...
uucp Unix-to-Unix Copy Program whois Nickname World Wide Web • This command lists concurrent telnet connections to remote hosts that were opened by the current telnet session to the local device. It does not list telnet connections to remote hosts that were opened by other telnet sessions.
Syntax • reload Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example reloads the operating system. Console# reload This command will reset the whole system and disconnect your current session.
Example The following example specifies the device host name. Console(config)# hostname Dell Dell(config)# service cpu-utilization The service cpu-utilization global configuration mode command allows the software to measure CPU utilization. Use the no form of this command to disable measuring. Syntax •...
Default Configuration Disables forcing the selection of a stack master. Command Mode Global Configuration mode. User Guidelines • The following algorithm is used to select a unit as the master: – If only one master-enabled unit is in the stack (1 or 2), it becomes the master. –...
Example The following example reloads Unit 2 of the stack. Console(config)# stack reload unit 2 show stack The show stack User EXEC mode command displays information about the status of a stack. Syntax • show stack [unit unit] • unit — Specifies the number of the unit. (Range: 1 - 6) Default Configuration This command has no default configuration.
Topology is Ring Unit Unit Id After Reset ---- --------------- console# show users The show users User EXEC mode command displays information about the active users. Syntax • show users Default Configuration This command has no default configuration. Command Mode User EXEC mode.
Example The following example displays information about the active users. Console> show users Username Protocol Location ---------- ----------- ------------ Serial John 172.16.0.1 Robert HTTP 172.16.0.8 Betty Telnet 172.16.1.7 show sessions The show sessions User EXEC mode command lists open Telnet sessions. Syntax •...
User EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the system information. Console> show system Unit Type ---- --------- PowerConnect 3524 PowerConnect 3524 PowerConnect 3524 PowerConnect 3524 PowerConnect 3524 System Management...
PowerConnect 3524 PowerConnect 3524 PowerConnect 3524 Unit Main Power Supply Redundant Power Supply show version The show version User EXEC mode command displays system version information. Syntax • show version [unit unit] • unit — Specifies the number of the unit. (Range: 1 - 6) Default Configuration This command has no default configuration.
Example The following example displays system version information (only for demonstration purposes). Console> show version SW version 1.0.0.0 (date 23-Jul-2004 time 17:34:19) Boot version 1.0.0.0 (date 11-Jan-2004 time 11:48:21) HW version 1.0.0 Unit SW version Boot version HW version ---- ---------- ------------ ----------...
Example The following example specifies the asset tag of the master unit as "1qwepot". Console(config)# asset-tag 1qwepot show system id The show system id User EXEC mode command displays system ID information. Syntax • show system id [unit unit] • unit —...
show cpu utilization The show cpu utilization Privileged EXEC mode command displays display information about CPU utilization. Syntax • show cpu utilization Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines Use the service cpu-utilization Global Configuration mode command to enable measuring CPU utilization.
TACACS+ Commands tacacs-server host The tacacs-server host Global Configuration mode command specifies a TACACS+ host. Use the no form of this command to delete the specified name or address. Syntax • tacacs-server host {ip-address | hostname} [single-connection] [port port-number] [timeout timeout] [key key-string] [source source] [priority priority] •...
TACACS+ daemon. (Range: 0 - 128 characters) Default Configuration Empty string. Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command. Examples The following example sets the authentication encryption key. Console(config)# tacacs-server key dell-s TACACS+ Commands...
tacacs-server timeout The tacacs-server timeout Global Configuration mode command sets the interval during which the device waits for a TACACS+ server to reply. Use the no form of this command to return to the default configuration. Syntax • tacacs-server timeout timeout •...
Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command. Examples The following example specifies the source IP address. Console(config)# tacacs-server source-ip 172.16.8.1 show tacacs The show tacacs Privileged EXEC mode command displays configuration and statistical information about a TACACS+ server.
Page 439
Examples The following example displays configuration and statistical information about a TACACS+ server. Console# show tacacs Device Configuration -------------------- IP address Status Port Single TimeOut Source Priority Connection ---------- -------- ---- --------- ------- ------ -------- 172.16.1.1 Connected 49 Global Global Global values ------------- TimeOut: 3...
TIC Commands passwords min-length The passwords min-length Global Configuration mode command sets the minimum length required for passwords in the local database. Use the no form of this command to remove the minimum password length requirement. Syntax • passwords min-length length •...
password-aging The password-aging Line Configuration mode command configures the aging time of line passwords. Use the no form of this command to disable password expiration time. Syntax • password-aging days • no password-aging • days — The number of days before a password change is forced. (Range: 1 - 365) Default Configuration Password aging is disabled.
Syntax • passwords aging username name days • no passwords aging username name • passwords aging enable-password level days • no passwords aging enable-password level • name — The name of the user. (Range: 1 - 20 characteres) • level — The level for which the password applies. (Range: 1 - 15) •...
Default Configuration No required number of password changes before reusing a password. Command Mode Global Configuration mode. User Guidelines • Relevant to local user passwords, line passwords, and enable passwords. • Password history is not checked during the configuration download. •...
User Guidelines Relevant to local user passwords, line passwords, and enable passwords. For tracking purposes, passwords are not deleted from the history database after becoming ’irrelevant’. A period of time that the password cannot be changed (according to the history table) must be configured. By increasing a password ’s relevance for tracking purposes by a number of days, it may cause the irrelevant password to be relevant again.
aaa login-history file The aaa login-history file Global Configuration mode command enables writing to the login history file. Use the no form of this command to disable writing to the file. Syntax • aaa login-history file • no aaa login-history file Default Configuration Writing to the login history file is enabled.
Example The following example reactivates a suspended user with username bob. Console# set username bob active set line active The set line active Privileged EXEC mode command reactivates a locked line. Syntax • set line {console | telnet | ssh} active •...
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example reactivates a locked level 15 enable password. Console# set enable-password 15 active show passwords configuration The show passwords configuration Privileged EXEC mode command displays information about password management.
Page 449
Enable Passwords Level Aging Expiry date Lockout ----- ----- ----------- ------- Jan 18 2005 Jan 18 2005 Line Passwords Level Aging Expiry date Lockout ----- ----- ----------- ------- Console Telnet Jan 18 2005 LOCKOUT Jan 21 2005 The following table describes significant fields shown above. Field Description Minimal length...
show users login-history The show users login-history Privileged EXEC mode command displays information about the login history of users. Syntax • show users login-history [username name] name — Name of the user. (Range: 1 - 20 characters) • Default Configuration This command has no default configuration.
show users accounts The show users accounts Privileged EXEC mode command displays information about the local user database. Syntax • show users accounts Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the local users configured with access to the system.
Tunnel interface tunnel The interface tunnel Global Configuration mode command enters tunnel interface configuration mode. Syntax • interface tunnel number • number — Tunnel index. (Range: 1) Default Configuration This command has no default configuration. Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command.
Syntax • tunnel mode ipv6ip {isatap} • no tunnel mode ipv6ip • isatap — Automatic IPv6 over IPv4 ISATAP tunnel is enabled. Default Configuration Disabled. Command Mode Interface Tunnel Configuration mode. User Guidelines The system can be enabled to an ISATAP tunnel. When enabled, an automatic tunnel interface is created on each interface that is assigned with IPv4 address NOTE: On a specific interface (that is port/ VLAN), both native IPV6 and transition mechanisms can coexist.
Command Mode Interface Tunnel Configuration mode. User Guidelines • The ipv6 tunnel routers-dns command determines the string that the host uses for automatic tunnel router lookup in IPv4 DNS procedure. By default, the string ‘ISATAP’ is used for the corresponding automatic tunnel types.
Command Mode Interface Tunnel Configuration mode. User Guidelines The configured source IPv4 address is used for forming the tunnel interface identifier. The interface identifier is set to the 8 least significant bytes of the SIP field of the encapsulated IPv6 tunneled packets. Example The following example sets the local (source) tunnel interface IPv4 address.
tunnel isatap solicitation-interval The tunnel isatap solicitation-interval Global Configuration mode command configures the interval between ISATAP router solicitations messages (when there is no active ISATAP router). Use the no form of this command to return to default. Syntax • tunnel isatap solicitation-interval seconds •...
tunnel isatap robustness The tunnel isatap robustness Global Configuration mode command configures the number of DNS Query/Router Solicitation refresh messages that the device sends. Use the no form of this command to return to default. Syntax • tunnel isatap robustness number •...
Page 459
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays information on the ISATAP tunnel. Console> show ipv6 tunnel Router DNS name: ISATAP Router IPv4 address: 172.16.1.1 DNS Query interval: 10 seconds Min DNS Query interval: 0 seconds Router Solicitation interval: 10 seconds Min Router Solicitation interval: 0 seconds...
User Interface enable The enable User EXEC mode command enters the Privileged EXEC mode. Syntax • enable [privilege-level] • privilege-level — Privilege level to enter the system. (Range: 1 - 15) Default Configuration The default privilege level is 15. Command Mode User EXEC mode.
Default Configuration The default privilege level is 1. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example returns to Users EXEC mode. Console# disable Console> login The login User EXEC mode command changes a login username. Syntax •...
configure The configure Privileged EXEC mode command enters the Global Configuration mode. Syntax • configure Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example enters Global Configuration mode. Console# configure Console(config)# exit (Configuration)
Example The following example changes the configuration mode from Interface Configuration mode to Privileged EXEC mode. Console(config-if)# exit Console(config)# exit Console# exit The exit Privileged/User EXEC mode command closes an active terminal session by logging off the device. Syntax • exit Default Configuration This command has no default configuration.
Command Mode All configuration modes. User Guidelines There are no user guidelines for this command. Example The following example changes from Global Configuration mode to Privileged EXEC mode Console(config)# end Console# help The help command displays a brief description of the help system. Syntax •...
Example The following example describes the help system Console# help Help may be requested at any point in a command by entering a question mark '?'. If nothing matches the currently entered incomplete command, the help list is empty. This indicates that for a query at this point, there is no command matching the current input.
Example This example dumps all output immediately after entering a show command. Console> terminal datadump show history The show history User EXEC mode command lists the commands entered in the current session. Syntax • show history Default Configuration This command has no default configuration. Command Mode User EXEC mode.
show privilege The show privilege Privileged/User EXEC mode command displays the current privilege level. Syntax • show privilege Default Configuration This command has no default configuration. Command Mode Privileged and User EXEC modes. User Guidelines There are no user guidelines for this command. Example The following example displays the current privilege level for the Privileged EXEC mode.
VLAN Commands vlan database The vlan database Global Configuration mode command enters the VLAN Configuration mode. Syntax • vlan database Default Configuration This command has no default configuration. Command Mode Global Configuration mode. User Guidelines There are no user guidelines for this command. Example The following example enters the VLAN database mode.
Default Configuration This command has no default configuration. Command Mode VLAN Configuration mode. User Guidelines There are no user guidelines for this command. Example The following example VLAN number 1972 is created. Console(config)# vlan database Console(config-vlan)# vlan 1972 interface vlan The interface vlan Global Configuration mode command enters the Interface Configuration (VLAN) mode.
interface range vlan The interface range vlan Global Configuration mode command enables simultaneously configuring multiple VLANs. Syntax • interface range vlan {vlan-range | all} vlan-range — Specifies a list of VLAN IDs to be added. Separate non-consecutive VLAN IDs with •...
Default Configuration No name is defined. Command Mode Interface Configuration (VLAN) mode. Cannot be configured for a range of interfaces (range context). User Guidelines There are no user guidelines for this command. Example The following example gives VLAN number 19 the name Marketing. Console(config)# interface vlan 19 Console(config-if)# name Marketing switchport access vlan...
Example The following example configures a VLAN ID of 23 to the untagged layer 2 VLAN Ethernet port 1/e16. Console(config)# interface ethernet 1/e16 Console(config-if)# switchport access vlan 23 switchport trunk allowed vlan The switchport trunk allowed vlan Interface Configuration mode command adds or removes VLANs to or from a trunk port.
Syntax • switchport trunk native vlan vlan-id • no switchport trunk native vlan • vlan-id — Specifies the ID of the native VLAN. Default Configuration VID=1. Command Mode Interface Configuration (Ethernet, port-channel) mode. User Guidelines The command adds the port as a member in the VLAN. If the port is already a member in the VLAN (not as a native), it should be first removed from the VLAN.
Default Configuration If the port is added to a VLAN without specifying tagged or untagged, the default setting is tagged. Command Mode Interface Configuration (Ethernet, port-channel) mode. User Guidelines This command enables changing the egress rule (e.g., from tagged to untagged) without first removing the VLAN from the list.
Example The following example configures the PVID for Ethernet port 1/e16, when the interface is in general mode. Console(config)# interface ethernet 1/e16 Console(config-if)# switchport general pvid 234 switchport general ingress-filtering disable The switchport general ingress-filtering disable Interface Configuration mode command disables port ingress filtering.
Default Configuration All frame types are accepted at ingress. Command Mode Interface Configuration (Ethernet, port-channel) mode. User Guidelines There are no user guidelines for this command. Example The following example configures Ethernet port 1/e16 to discard untagged frames at ingress. Console(config)# interface ethernet 1/e16 Console(config-if)# switchport general acceptable-frame-type tagged-only...
Example The following example forbids adding VLAN IDs 234 to 256 to Ethernet port 1/e16. Console(config)# interface ethernet 1/e16 Console(config-if)# switchport forbidden vlan add 234-256 switchport mode The switchport mode Interface Configuration mode command configures the VLAN membership mode of a port. Use the no form of this command to reset the mode to the appropriate default for the device. Syntax switchport mode { access | trunk | general | customer } •...
switchport customer vlan Use the switchport customer vlan interface configuration command set the port’s VLAN when the interface is in customer mode. Use the no form of this command to revert to default. Syntax • switchport customer vlan vlan-id • no switchport customer vlan vlan-id —...
Command Mode Interface Configuration (Ethernet, port-channel) mode. User Guidelines Use this command to override the FDB decision, and forward the packet to the uplink. Please note that the packet is still subject to all filtering decisions. The following example overrides the FDB decision, and sends all the Unicast, Multicast and Broadcast traffic to specified ethernet port.
Example The following example maps protocol ip-arp to the group named "213". Console (config)# vlan database Console (config-vlan)# map protocol ip-arp protocols-group 213 switchport general map protocols-group vlan The switchport general map protocols-group vlan Interface Configuration mode command sets a protocol-based classification rule.
ip internal-usage-vlan The ip internal-usage-vlan Interface Configuration mode command reserves a VLAN as the internal usage VLAN of an interface. Use the no form of this command to return to the default configuration. Syntax • ip internal-usage-vlan vlan-id • no ip internal-usage-vlan •...
mac-to-vlan The mac-to-vlan VLAN Configuration mode command adds MAC addresses to the MAC-to-VLAN database. Use the no form of this command to remove MAC addresses from the database. NOTE: The command mac-to-vlan is deprecated in versions where DVA is supported. Syntax mac-to-vlan mac-address vlan-id •...
show vlan mac-to-vlan The show vlan mac-to-vlan Privileged EXEC mode command displays the MAC-to-VLAN database. NOTE: The command mac-to-vlan is deprecated in versions where DVA is supported. Syntax • show vlan mac-to-vlan [mac-address] • mac-address — Specifies the MAC address to be viewed. Default Configuration This command has no default configuration.
Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays all VLAN information. Console# show vlan VLAN Name Ports Type Authorization ---- ------- -------- ----...
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays protocols-groups information. Console# show vlan protocols-groups Encapsulation Protocol Group Id ------------- -------- -------- ethernet 08 00 ethernet 08 06 ethernet 81 37 ethernet 81 38...
Example The following example displays VLANs used internally by the device. Console# show vlan internal usage VLAN Usage IP address Reserved ---- --------- ---------- -------- 1007 Eth 1/e21 Active 1008 Eth 1/e22 Inactive 1009 Eth 1/e23 Active show interfaces switchport The show interfaces switchport Privileged EXEC mode command displays the switchport configuration.
Page 488
Example The following example displays the switchport configuration for Ethernet port 1/e1. Console# show interface switchport ethernet 1/e1 Port 1/e1: VLAN Membership mode: General Operating parameters: PVID: 1 (default) Ingress Filtering: Enabled Acceptable Frame Type: All GVRP status: Enabled Protected: Enabled, Uplink is 1/e9. Port is member in: Vlan Name...
Page 489
Port is statically configured to: Vlan Name Egress rule ---- ------- ----------- default untagged VLAN011 tagged IPv6 VLAN untagged VLAN0072 untagged Forbidden VLANS: VLAN Name ---- ---- Console# show interface switchport ethernet 1/e2 Port 1/e2: VLAN Membership mode: General Operating parameters: PVID: 4095 (discard vlan) Ingress Filtering: Enabled Acceptable Frame Type: All...
Page 490
Port is statically configured to: Vlan Name Egress rule ---- ------------ ----------- VLAN0072 untagged IP Telephony tagged Forbidden VLANS: VLAN Name ---- ---- Port 2/e19 VLAN Membership mode: Private-VLAN Community Primary VLAN: 2921 Community VLAN: 2922 Console# show interfaces switchport ethernet 2/e19 Port 2/e19: VLAN Membership mode: Private-VLAN Community Operating parameters:...
Page 491
Port is member in: Vlan Name Egress rule Type ---- ------------ ----------- ------ 2921 Primary A untagged Static 2922 Community A1 untagged Static Static configuration: PVID: 2922 Ingress Filtering: Enabled Acceptable Frame Type: Untagged GVRP status: Disabled VLAN Commands...
Voice VLAN voice vlan id The voice vlan id Global Configuration mode command enables the voice VLAN, and configures the voice VALN id. To disable the voice VALN, enter the no form of this command. Syntax • voice vlan id vlan-id •...
Page 494
• mac-address-prefix — Specify the MAC address prefix to be entered to the list. • description text — An optional text that describes the OUI. Default Configuration Description 00:E0:BB 3COM 00:03:6B Cisco 00:E0:75 Veritel 00:D0:1E Pingtel 00:01:E3 Simens 00:60:B9 NEC/Philips 00:0F:E2 Huawei-3COM Command Mode...
MAC Address - Prefix Description ---------------------- ----------------------- 00:01:e3 Siemens_AG_phone________ 00:03:6b Cisco_phone_____________ 00:09:6e Avaya___________________ 00:0f:e2 H3C_Aolynk______________ 00:60:b9 Philips_and_NEC_AG_phone 00:d0:1e Pingtel_phone___________ 00:e0:75 Polycom/Veritel_phone___ console# voice vlan cos The voice vlan cos Global Configuration mode command sets the voice VLAN Class Of Service. Use the no form of this command to return to default.
voice vlan aging-timeout The voice vlan aging-timeout Global Configuration mode command sets the voice VLAN aging timeout. Use the no form of this command to return to default. Syntax • voice vlan aging-timeout minutes • no voice vlan aging-timeout • minutes —...
User Guidelines The port is added to the voice VLAN if a packet with a telephony MAC address source MAC address (defined by the voice vlan oui-table global configuration command) is trapped on the port. NOTE: The VLAN ID of the packet can be the voice VLAN ID or any other VLAN. The port joins the voice VLAN as a tagged port.
Web Server ip http server The ip http server Global Configuration mode command enables configuring the device from a browser. Use the no form of this command to disable this function. Syntax • ip http server • no ip http server Default Configuration HTTP server is enabled.
Default Configuration The default port number is 80. Command Mode Global Configuration mode. User Guidelines Specifying 0 as the port number effectively disables HTTP access to the device. Example The following example configures the http port number to 100. Console(config)# ip http port 100 ip http exec-timeout The ip http exec-timeout global configuration command sets the interval the system waits for user input before automatically logging off.
Example The following example the interval the system waits for user input before automatically logging off to 3 minutes 30 seconds. Console (config)# ip http exec-timeout 3 30 ip https server The ip https server Global Configuration mode command enables configuring the device from a secured browser.
Default Configuration The default port number is 443. Command Mode Global Configuration mode. User Guidelines Specifying 0 as the port number effectively disables HTTPS access to the device. Example The following example configures the https port number to 100. Console(config)# ip https port 100 ip https exec-timeout The ip https exec-timeout Global Configuration command sets the interval the system waits for user input before automatically logging off.
Example The following example the interval the system waits for user input before automatically logging off to 3 minutes 30 seconds. Console (config)# ip https exec-timeout 3 30 crypto certificate generate The crypto certificate generate Global Configuration mode command generates a self-signed HTTPS certificate.
Command Mode Global Configuration mode. User Guidelines • The command is not saved in the device configuration; however, the certificate and keys generated by this command are saved in the private configuration (which is never displayed to the user or backed up to another device).
Page 507
Command Mode Privileged EXEC mode. User Guidelines • Use this command to export a certificate request to a Certification Authority. The certificate request is generated in Base64-encoded X.509 format. • Before generating a certificate request you must first generate a self-signed certificate using the ip https exec-timeout Global Configuration mode command.
crypto certificate import The crypto certificate import Global Configuration mode command imports a certificate signed by the Certification Authority for HTTPS. Syntax • crypto certificate number import number — Specifies the certificate number. (Range: 1 - 2) • Default Configuration This command has no default configuration.
Examples The following example imports a certificate signed by Certification Authority for HTTPS. Console(config)# crypto certificate 1 import -----BEGIN CERTIFICATE----- dHmUgUm9vdCBDZXJ0aWZpZXIwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAp4HS nnH/xQSGA2ffkRBwU2XIxb7n8VPsTm1xyJ1t11a1GaqchfMqqe0kmfhcoHSWr yf1FpD0MWOTgDAwIDAQABo4IBojCCAZ4wEwYJKwYBBAGCNxQCBAYeBABDAEEw CwR0PBAQDAgFGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFAf4MT9BRD47 ZvKBAEL9Ggp+6MIIBNgYDVR0fBIIBLTCCASkwgdKggc+ggcyGgclsZGFwOi8v L0VByb3h5JTIwU29mdHdhcmUlMjBSb290JTIwQ2VydGlmaWVyLENOPXNlcnZl -----END CERTIFICATE----- Certificate imported successfully. Issued to: router.gm.com Issued by: www.verisign.com Valid from: Jan 1 02:44:50 2003 GMT Valid to: Dec 31 02:44:50 2004 GMT Subject: CN= router.gm.com, 0= General Motors, C= US Finger print: DC789788 DC88A988 127897BC BB789788...
Default Configuration Certificate number 1. Command Mode Global Configuration mode. User Guidelines The ip https exec-timeout command should be used to generate HTTPS certificates. Example The following example configures the active certificate for HTTPS. Console(config)# ip https certificate 1 show crypto certificate mycertificate The show crypto certificate mycertificate Privileged EXEC mode command displays the SSH certificates of the device.
Example The following example displays the certificate. Console# show crypto certificate mycertificate 1 -----BEGIN CERTIFICATE----- dHmUgUm9vdCBDZXJ0aWZpZXIwXDANBgkqhkiG9w0BAQEFAANLADBIAkEAp4HS nnH/xQSGA2ffkRBwU2XIxb7n8VPsTm1xyJ1t11a1GaqchfMqqe0kmfhcoHSWr yf1FpD0MWOTgDAwIDAQABo4IBojCCAZ4wEwYJKwYBBAGCNxQCBAYeBABDAEEw CwR0PBAQDAgFGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFAf4MT9BRD47 ZvKBAEL9Ggp+6MIIBNgYDVR0fBIIBLTCCASkwgdKggc+ggcyGgclsZGFwOi8v L0VByb3h5JTIwU29mdHdhcmUlMjBSb290JTIwQ2VydGlmaWVyLENOPXNlcnZl -----END CERTIFICATE----- Issued by: www.verisign.com Valid from: Jan 1 02:44:50 2003 GMT Valid to: Dec 31 02:44:50 2004 GMT Subject: CN= router.gm.com, 0= General Motors, C= US Finger print: DC789788 DC88A988 127897BC BB789788 show ip http...
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Example The following example displays the HTTP server configuration. Console# show ip http HTTP server enabled. Port: 80 show ip https The show ip https Privileged EXEC mode command displays the HTTPS server configuration. Syntax •...
Page 513
Example The following example displays the HTTP server configuration. Console# show ip https HTTPS server enabled. Port: 443 Certificate 1 is active Issued by: www.verisign.com Valid from: Jan 1 02:44:50 2004 GMT Valid to: Dec 31 02:44:50 2005 GMT Subject: CN= router.gm.com, 0= General Motors, C= US Finger print: DC789788 DC88A988 127897BC BB789788 Certificate 2 is inactive Valid From: Jan 1 02:44:50 2004 GMT...
802.1x Commands aaa authentication dot1x The aaa authentication dot1x Global Configuration mode command specifies one or more authentication, authorization, and accounting (AAA) methods for use on interfaces running IEEE 802.1X. Use the no form of this command to return to the default configuration. Syntax •...
Examples The following example uses the aaa authentication dot1x default command with no authentication. Console(config)# aaa authentication dot1x default none dot1x system-auth-control The dot1x system-auth-control Global Configuration mode command enables 802.1x globally. Use the no form of this command to return to the default configuration. Syntax •...
Syntax • dot1x port-control {auto | force-authorized | force-unauthorized} • no dot1x port-control • auto — Enables 802.1X authentication on the interface and causes the port to transition to the authorized or unauthorized state based on the 802.1X authentication exchange between the port and the client.
Default Configuration Periodic re-authentication is disabled. Command Mode Interface Configuration (Ethernet) mode. User Guidelines There are no user guidelines for this command. Examples The following example enables periodic re-authentication of the client. Console(config)# interface ethernet 1/e16 Console(config-if)# dot1x re-authentication dot1x timeout re-authperiod The dot1x timeout re-authperiod Interface Configuration mode command sets the number of seconds between re-authentication attempts.
Examples The following example sets the number of seconds between re-authentication attempts, to 300. Console(config)# interface ethernet 1/e16 Console(config-if)# dot1x timeout re-authperiod 300 dot1x re-authenticate The dot1x re-authenticate Privileged EXEC mode command manually initiates a re-authentication of all 802.1X-enabled ports or the specified 802.1X-enabled port. Syntax dot1x re-authenticate [ethernet interface] •...
seconds — Specifies the time in seconds that the device remains in the quiet state following a • failed authentication exchange with the client. (Range: 0 - 65535 seconds) Default Configuration Quiet period is 60 seconds. Command Mode Interface Configuration (Ethernet) mode. User Guidelines •...
Command Mode Interface Configuration (Ethernet) mode. User Guidelines The default value of this command should be changed only to adjust for unusual circumstances, such as unreliable links or specific behavioral problems with certain clients. and authentication servers Examples The following command sets the number of seconds that the device waits for a response to an EAP- request/identity frame, to 3600 seconds.
Examples The following example sets the number of times that the device sends an EAP-request/identity frame to 6 . Console(config)# interface ethernet 1/e16 Console(config-if)# dot1x max-req 6 dot1x timeout supp-timeout The dot1x timeout supp-timeout Interface Configuration mode command sets the time for the retransmission of an Extensible Authentication Protocol (EAP)-request frame to the client.
Syntax • dot1x timeout server-timeout seconds • no dot1x timeout server-timeout • seconds — Time in seconds that the device waits for a response from the authentication server. (Range: 1 - 65535 seconds) Default Configuration The timeout period is 30 seconds. Command Mode Interface configuration (Ethernet) mode.
Default no by default Command Modes Interface configuration (Ethernet) Usage Guidelines The command causes 802.1x switch to send Extensible Authentication Protocol (EAP)-request/identity frame from the authenticator (switch) each tx-period automatically. It is recommended to activate this command only in case there is at least one device with not full 802.1x functionality connected to port (for example Windows EX with Service Pack 2).
Page 525
Example The following example displays the status of 802.1X-enabled Ethernet ports. Console# show dot1x 802.1x is enabled Port Admin Mode Oper Mode Reauth Reauth Username Control Period ---- ---------- --------- ------- ------ -------- 1/e1 Auto Authorized 3600 1/e2 Auto Authorized 3600 John 1/e3...
Page 526
Authentication Method: Remote Termination Cause: Supplicant logoff Authenticator State Machine State: HELD Backend State Machine State: IDLE Authentication success: 9 Authentication fails: 1 The following table describes significant fields shown above: Field Description Port The port number. Admin mode The port admin mode. Possible values: Force-auth, Force-unauth, Auto. Oper mode The port oper mode.
MAC address The supplicant MAC address. Authentication Method The authentication method used to establish the session. Termination Cause The reason for the session termination. State The current value of the Authenticator PAE state machine and of the Backend state machine. Authentication success The number of times the state machine received a Success message from the Authentication Server.
Example The following example displays 802.1X users. Console# show dot1x users Port Username Session Time Auth Method MAC Address ----- -------- ------------ ----------- -------------- 1/e1 1d:03:08.58 Remote 0008:3b79:8787 1/e2 John 08:19:17 None 0008:3b89:3127 Console# show dot1x users username Bob Username: Bob Port Username Session Time...
Page 529
Command Mode Privileged EXEC mode. User Guidelines There are no user guidelines for this command. Examples The following example displays 802.1X statistics for the specified interface. Console# show dot1x statistics ethernet 1/e1 EapolFramesRx: 11 EapolFramesTx: 12 EapolStartFramesRx: 12 EapolLogoffFramesRx: 1 EapolRespIdFramesRx: 3 EapolRespFramesRx: 6 EapolReqIdFramesTx: 3...
The following table describes the significant fields shown in the display: Field Description EapolFramesRx The number of valid EAPOL frames of any type that have been received by this Authenticator. EapolFramesTx The number of EAPOL frames of any type that have been transmitted by this Authenticator.
Default Configuration Access is enabled. Command Mode Interface Configuration (VLAN) mode. User Guidelines • An access port cannot be a member in an unauthenticated VLAN. • The native VLAN of a trunk port cannot be an unauthenticated VLAN. • For a general port, the PVID can be an unauthenticated VLAN (although only tagged packets are accepted in the unauthorized state.) Examples The following example enables access to the VLAN to unauthorized devices.
Examples The following command enables multiple hosts (clients) on an 802.1X-authorized port. Console(config-if)# dot1x multiple-hosts dot1x single-host-violation The dot1x single-host-violation Interface Configuration mode command configures the action to be taken, when a station whose MAC address is not the supplicant MAC address, attempts to access the interface.
dot1x guest-vlan The dot1x guest-vlan Interface Configuration mode command defines a guest VLAN. Use the no form of this command to return to the default configuration. Syntax • dot1x guest-vlan • no dot1x guest-vlan Default Configuration No VLAN is defined as a guest VLAN. Command Mode Interface Configuration (VLAN) mode.
dot1x guest-vlan enable The dot1x vlans guest-vlan enable Interface Configuration mode command enables unauthorized users on the interface access to the Guest VLAN. Use the no form of this command to disable access Syntax • dot1x guest-vlan enable • no dot1x guest-vlan enable Default Configuration Disabled.
Default Configuration Disabled. Command Mode Interface configuration (Ethernet) mode User Guidelines • Guest VLAN must be enabled, when MAC authentication is enabled. • Static MAC addresses cannot be aurhorized. Do not change authenticated MAC address to static address. • It is not recommended to delete authenticated MAC addresses. •...
Example The following command enables sending traps when a MAC address was failed in authentication of the 802.1X MAC authentication access control. console config-if(Config)# dot1x traps mac-authentication failure dot1x radius-attributes vlan The dot1x radius-attributes vlan Interface Configuration mode command enables user-based VLAN assignment.
show dot1x advanced The show dot1x advanced Privileged EXEC mode command displays 802.1X advanced features for the device or specified interface. Syntax • show dot1x advanced [ethernet interface] interface — Valid Ethernet port. (Full syntax: unit/port) • Default Configuration This command has no default configuration. Command Mode Privileged EXEC mode.