DQS-5000-32S - NAS D-LINK - Free user manual and instructions
Find the device manual for free DQS-5000-32S D-LINK in PDF.
User questions about DQS-5000-32S D-LINK
0 question about this device. Answer the ones you know or ask your own.
Ask a new question about this device
Download the instructions for your NAS in PDF format for free! Find your manual DQS-5000-32S - D-LINK and take your electronic device back in hand. On this page are published all the documents necessary for the use of your device. DQS-5000-32S by D-LINK.
USER MANUAL DQS-5000-32S D-LINK
natural_image
Line drawing of a multi-tiered server rack unit (no text or symbols)CLI Reference Guide
Product Model: 5000 Series
Layer 2/3 Managed 10G/25G/40G/100G Data Center
Switches
Release 1.00
Table of Contents
About This Guide....1
Objective and Audience....1
Acronyms and Abbreviations....1
Guide Conventions....5
- About D-LINK OS Software....7
About D-LINK OS Software....7
Product Concept ....7
- Using the Command-Line ....8
Command Syntax 8
Command Conventions....8
Common Parameter Values....9
Slot/Port Naming Convention....9
Using the No Form of a Command....10
Executing Show Commands....11
CLI Output Filtering....11
- D-LINK OS Modules....12
Command Modes....12
Command Completion and Abbreviation .... 15
CLI Error Messages....16
CLI Line-Editing Conventions....16
Using CLI Help 17
Accessing the CLI....18
- Management Commands....19
Network Interface Commands....19
IPv6 Management Commands....26
Console Port Access Commands 41
Telnet Commands....44
Secure Shell Commands....48
Management Security Commands....51
Access Commands....52
AAA Commands ....54
User Account and Password Commands 67
SNMP Commands 83
RADIUS Commands....105
TACACS+ Commands....122
Configuration Scripting Commands....127
Pre-login Banner, System Prompt, and Host Name Commands....130
Front Panel TAP Interfaces....133
5. Utility Commands....136
Application Commands....137
CLI Output Filtering Commands....140
System Information and Statistics Commands....142
Logging Commands....183
Email Alerting and Mail Server Commands 195
System Utility and Clear Commands....205
IP Address Conflict Commands 216
Serviceability Packet Tracing Commands 218
sFlow Commands....272
Switch Database Management Template Commands....282
SFP Transceiver Commands....284
Remote Monitoring Commands 287
Spanning Tree Protocol Commands....309
VLAN Commands....340
Switch Ports 352
Double VLAN Commands 357
Provisioning (IEEE 802.1p) Commands 360
Protected Ports Commands 361
Port-Based Network Access Control Commands 363
802.1X Supplicant Commands 377
Task-based Authorization 379
Asymmetric Flow Control Commands 387
Storm-Control Commands 388
Link Dependency Commands....397
MVR Commands 403
Port-Channel/LAG (802.3ad) Commands....411
VPC Commands....431
Port Mirroring 448
Static MAC Filtering....455
DHCP L2 Relay Agent Commands 460
DHCP Client Commands....466
DHCP Snooping Configuration Commands 468
Dynamic ARP Inspection Commands....481
IGMP Snooping Configuration Commands 489
IGMP Snooping Querier Commands....499
MLD Snooping Commands....503
MLD Snooping Querier Commands .... 513
Port Security Commands....517
LLDP (802.1AB) Commands....525
LLDP-MED Commands 539
Denial of Service Commands 547
MAC Database Commands ....557
ISDP Commands....561
Unidirectional Link Detection Commands 568
Interface Error Disable and Auto Recovery ....573
- Data Center Commands ....576
Data Center Bridging Exchange Protocol Commands....576
Quantized Congestion Notification Commands....581
FIP Snooping Commands 591
Priority-Based Flow Control Commands....596
OpenFlow Commands....600
NVGRE/VXLAN Commands 612
- IPv4 Routing Commands 630
Address Resolution Protocol Commands....630
IP Routing Commands....638
IP Event Dampening Commands....672
Routing Policy Commands 674
Router Discovery Protocol Commands 697
Virtual Router Commands....702
Virtual LAN Routing Commands....706
Virtual Router Redundancy Protocol Commands....709
DHCP and BOOTP Relay Commands 720
IP Helper Commands....723
Open Shortest Path First Commands....730
General OSPF Commands 730
OSPF Interface Commands....756
OSPF Graceful Restart Commands....763
OSPFv2 Stub Router Commands....765
OSPF Show Commands 767
ICMP Throttling Commands....794
Bidirectional Forwarding Detection Commands....796
8. IPv6 Routing Commands 804
Loopback Interface Commands 804
Tunnel Interface Commands....805
IPv6 Routing Commands 808
OSPFv3 Commands 851
Global OSPFv3 Commands....851
OSPFv3 Interface Commands....872
OSPFV3 Graceful Restart Commands....878
OSPFv3 Stub Router Commands 880
OSPFv3 Show Commands 882
DHCPv6 Commands 901
DHCPv6 Snooping Configuration Commands 916
9. IP Multicast Commands 931
Multicast Commands 931
DVMRP Commands 944
PIM Commands....951
Internet Group Message Protocol Commands 970
IGMP Proxy Commands 980
10. IPv6 Multicast Commands....987
IPv6 Multicast Forwarder....987
IPv6 PIM Commands....992
IPv6 MLD Commands....1007
IPv6 MLD-Proxy Commands....1016
11. Border Gateway Protocol Commands....1023
BGP Commands....1023
Routing Policy Commands 1139
12. Quality of Service Commands.... 1145
Class of Service Commands....1145
Differentiated Services Commands 1155
DiffServ Class Commands....1156
DiffServ Policy Commands....1169
DiffServ Service Commands....1179
DiffServ Show Commands....1180
MAC Access Control List Commands 1187
IP Access Control List Commands 1196
IPv6 Access Control List Commands 1209
Management Access Control and Administration List....1217
Time Range Commands for Time-Based ACLs 1221
- D-LINK OS Log Messages 1226
Core 1226
Utilities 1227
Management....1231
Switching....1233
QoS....1239
Routing/IPv6 Routing....1240
Multicast 1243
Technologies 1248
O/S Support....1250
- Switch Management....1252
D-Link OS First Instance 1252
Upgrade D-Link OS 1253
Install Other OS or D-Link OS 1254
SNTP Configuration for x86 D-Link OS 1256
NTP Configuration for x86 D-Link OS 1256
About This Guide
Objective and Audience
The Command Line Interface (CLI) used to view and configure D-LINK OS software is explained in this guide. The CLI can be accessed through the use of a direct connection to the serial port or by using telnet or SSH via a remote network connection.
The intended audience for this guide includes system administrators who use D-LINK OS software to configure and operate the systems they administer. The guide provides a comprehensive explanation of the configuration options for the D-LINK OS software.
It is assumed that readers of this guide will have an understanding of the D-LINK OS software base and will have read the appropriate specifications for the relevant networking device platform. It is further assumed that readers will have basic knowledge of Ethernet and networking concepts.
Acronyms and Abbreviations
The acronyms and abbreviations used in this guide are, in most cases, defined at their first use.
| Acronym Expansion | |
| ACE access control entry | |
| ACL access control list | |
| AP access point | |
| API application programming interface | |
| APPL application | |
| ASIC | application-specific integrated circuit |
| ATM Asynchronous Transfer Mode | |
| BGP Border Gateway Protocol | |
| C2W WAN C2Wire | |
| CAMP | Cooperative Asymmetric Multiprocessing |
| CAPI card application program interface | |
| CMOS | Complementary Metal Oxide Semiconductor |
| CPP Control Plane Policing | |
| CPU central processing unit | |
| CRC cyclic redundancy check | |
| CSG Content Services Gateway | |
| CWAN Constellation WAN | |
| CWPA Constellation WAN port adapter | |
| CWSLC | Constellation WAN SiByte Line Card1 |
| CWTLC | Constellation WAN Toaster Line Card1 |
| DBUS | data bus |
| DCM | Digital Clock Managers |
| DDR | dial-on-demand routing |
| DF designated forwarder | |
| DFC Distributed Forwarding Card | |
| DHCP Dynamic Host Configuration Protocol | |
| DIAG diagnostic | |
| DIP | Dual In-Line Package |
| dLFI | Distributed Link Fragmentation and Interleaving |
| dLFloATM | Distributed Link Fragmentation and Interleaving over ATM |
| dLFloFR | Distributed Link Fragmentation and Interleaving over Frame Relay |
| DMA direct memory access | |
| DOT1X IEEE 802.1X | |
| EAP | Extensible Authentication Protocol |
| EARL Enhanced Address Recognition Logic | |
| ECC error checking and correction | |
| EFC Extended Flow Control | |
| EM Event Manager | |
| EMD Error Message Decoder | |
| ENVM | environmental monitoring |
| EOBC | Ethernet out-of-band channel |
| EoMPLS | Ethernet over Multiprotocol Label Switching |
| EOU Extensible Authentication | Protocol over UDP |
| EPLD Erasable Programmable | Logic Device |
| ESF | Express Services Forwarding |
| FIB | Forwarding Information Base |
| FIFO | first-in, first-out |
| FM | Feature Manager |
| FPD field-programmable device | |
| FPGA | field-programmable gate array |
| GEMAC | Gigabit Ethernet Media Access Control |
| GEWAN | Gigabit Ethernet WAN |
| GSR Gigabit Switch Router | |
| HA | high availability |
| HSRP | Hot Standby Router Protocol |
| I/O input/output | |
| ICDM | Inter-CPU Data Mover |
| IDB interface description block | |
| IDPROM | identification programmable read-only memory |
| IGMP | Internet Group Management Protocol |
| IOS Internet Operating System | |
| IP Internet Protocol | |
| IPC InterProcessor Communication | |
| IPNAT | IP Network Address Translation |
| KPA keepalive | |
| L2 Layer 2 | |
| L3 Layer 3 | |
| L3MM Layer 3 Mobility Manager | |
| LAN local-area network | |
| LI Lawful Intercept | |
| LTL Local Target Logic | |
| MAC Media Access Control | |
| MCAST Multicast | |
| MD5 message digest 5 | |
| MET Multicast Expansion Table | |
| MFIB | Multicast Forwarding Information Base |
| MIB | Management Information Base |
| MII | media-independent interface |
| MLD message loading device | |
| MLS | Multilayer Switching |
| MLSM | multi-layer switching for multicast |
| MMI Modem Management Interface | |
| MMLS | Multicast Multilayer Switching |
| MN | mobile node |
| MPPE | Microsoft Point-to-Point Encryption |
| MRIB | Multicast Routing Information Base |
| MSFC | Multilayer Switch Feature Card |
| MTU | maximum transmission unit |
| NAT Network Address Translation | |
| OAL Optimized ACL Logging | |
| OIF output interface | |
| OIR | online insertion and removal |
| OSM Optical Services Module | |
| PBI Programmable Binary Image | |
| PCI Peripheral Component Interconnect | |
| PFC Policy Feature Card | |
| PFINIT platform initialization | |
| PFREDUN platform redundancy | |
| PIM Protocol Independent Multicast | |
| PIMSN Protocol Independent Multicast Snooping | |
| PISA Programmable Intelligent Services Accelerator | |
| PLIM Physical Layer Interface Module | |
| PM port manager | |
| PoS Packet over SONET | |
| POSLC Packet over SONET Line Card1 | |
| PVLAN private VLAN | |
| PXF Parallel Express Forwarding | |
| QDR | Quad Data Rate |
| QinQ IEEE 802.1Q in 802.1Q | |
| QM quality of service management | |
| QoS quality of service | |
| RACL | router access control list |
| RADIUS | Remote Authentication Dial-In User Service |
| RF | redundancy feature |
| ROM read-only memory | |
| ROMMON | read-only memory monitor |
| RP | route processor |
| RPC | Remote Procedure Call |
| RPF Reverse Path Forwarding | |
| RPR | route processor redundancy |
| RTC | Real-Time Clock |
| SCP | Switch-Module Configuration Protocol |
| SIP SPA Interface Processor | |
| SMbus | system management bus |
| SMSC | short message service center |
| SP | switch processor |
| SPA Shared Port Adapter | |
| SPAN Switched Port Analyzer | |
| SRP Spatial Reuse Protocol | |
| SSA Super Santa Ana ASIC | |
| SSO Stateful Switchover | |
| SSP State Synchronization Protocol Manager | |
| SSRAM synchronous static RAM | |
| STAPL Standard Test and Programming Language | |
| SVI switched virtual interface | |
| SW software | |
| TBI Ten Bit Interface | |
| TCAM ternary content addressable memory | |
| TCP Transmission Control Protocol | |
| TFIB | Tag Forwarding Information Base |
| ToS type of service | |
| UDP User Datagram Protocol | |
| URLF URL Filtering | |
| VACL VLAN access control list | |
| VC | virtual circuit |
| VCD virtual circuit descriptor | |
| VLAN Virtual LAN | |
| VLOU Virtual Logic Operation Unit | |
| VPLS | Virtual Private LAN Service |
| VPN Virtual Private Network | |
| VPNSM Virtual Private Network Services Module | |
| VRF VPN routing and forwarding | |
| VSA vendor-specific attribute | |
| VTMS | Versatile Traffic Management and Shaping |
| VTP | VLAN Trunking Protocol |
| VTT | voltage termination |
| WAN | wide-area network |
| WCCP | Web Cache Communication Protocol |
Guide Conventions
This guide makes use of the following conventions:
| Convention Description | |
| Bold | Indicates user inputs and actions: for example, type exit, click OK, press Alt+C |
| Monospace | Indicates code: for example, #include |
| Indicates command-line commands and command outputs: for example, (Routing)# show sysinfo | |
| Monospace italic | Indicates command variables: for example, interface vlan vLan-id |
| {} | Indicates mutually exclusive command line parameters: for example, network protocol {none I bootp I dhcp} |
| [] | Indicates optional command-line parameters: for example, write memory [confirm] |
1. About D-LINK OS Software
About D-LINK OS Software
The two primary purposes of the D-Link OS are as follows:
- To support the attached hardware in switching frames according to the Layer 2, 3, or 4 information contained in the frames.
• To provide network administrators with a complete device management portfolio.
Product Concept
The evolution of fast Ethernet and Gigabit Ethernet switching from high-end backbone applications to desktop switching applications is ongoing. At the same time, the cost of this technology continues to fall, even as its performance and feature sets continue to be enhanced. Relatedly, there is an increasing demand for devices that can switch Layers 2, 3, and 4, and D-LINK OS software offers a highly adaptable solution for these constantly increasing demands.
For each networking device on which the D-LINK OS software base runs, the exact functionality provided by the device will vary according to the platform used and the requirements of the D-LINK OS software.
The D-LINK OS software comes equipped with a comprehensive set of management functions that can be used to manage both the D-LINK OS software itself and the network. More specifically, the D-LINK OS software can be managed via either of the following methods:
• Command-Line Interface (CLI)
• Simple Network Management Protocol (SNMP)
Both of these D-LINK OS management options allow the user to control, configure, and otherwise manage the software locally or using in-band or out-of-band mechanisms. The management is standards-based, with a private MIB and specific configuration parameters allowing for control of functions not completely specified in the MIBs.
2. Using the Command-Line
The command-line interface (CLI) constitutes a text-based means by which to monitor and manage the system. The CLI can be accessed by the use of a direct serial connection or through the used of a remote logical connection via telnet or SSH.
Command Syntax
A command consists of one or more words. A given command may or may not be followed by one or more parameters, as parameters may be required or optional depending on the command being used.
For example, the commands network and clear vlan do not require parameters, whereas other commands, such as network parms, require that a value is included after the command. Such parameter values must be typed in a specific order, with any optional parameters following any required parameters. The following example illustrates the command syntax for the network parms command:
network parms ipaddr netmask [gateway]
- The term network parms is the name of the command itself.
- The terms ipaddr and netmask are parameters and are examples of required values that must be entered after the command itself are entered.
- The term [gateway] is an optional parameter, meaning that it is not required that a value be entered in place of the parameter.
Each command is listed by the command name in the CLI Command Reference, which also provides a brief description of each command.
The command keywords and the associated required and optional parameters are shown under Format.
The command mode used must be in to access the command is indicated under Mode.
The default value for a configurable setting on the device, if any, is indicated by Default.
Furthermore, the information that a given command shows is described by the show command.
Command Conventions
For a given command, the parameters used may include mandatory values, optional values, or keyword choices. Such parameters follow a prescribed order. Table 1 explains the conventions used in this guide to distinguish between value types.
Table 1: Parameter Conventions
| Symbol Example Description | ||
| [] Brackets | [value] | Denotes an optional parameter. |
| Italic font in a parameter | value or [value] | Denotes a variable value. You must substitute the italicized text and brackets with an appropriate value, such as a name or number. |
| {} Braces | {choice1 | choice2} | Indicates a parameter selection option. |
| | Vertical bars | choice1 | choice2 | Separates mutually exclusive choices. |
| [{}] Braces within brackets | [{choice1 | choice2}] | Denotes a choice within an optional |
Symbol Example Description
element.
Common Parameter Values
The values for parameters might be names (strings) or numbers. Enclose the name value in double quotes in order to use spaces as part of a name parameter. For example, using the expression "System Name with Spaces" requires the system to accept the spaces, while the use of empty strings ("") is not valid for user-defined strings. Table 2 explains common parameter values and value formatting.
Table 2: Parameter Descriptions
| Parameter Description | |
| ipaddr | This parameter constitutes a valid IP address. The IP address can be entered in the following formats:a (32 bits)a.b (8.24 bits)a.b.c (8.8.16 bits)a.b.c.d (8.8.8.8)Besides these formats, the CLI also accepts decimal, hexadecimal, and octal formats in the following input formats (where n consists of any valid hexadecimal, octal, or decimal number):0xn (CLI assumes hexadecimal format.)0x (CLI assumes octal format with leading zeros.)n (CLI assumes decimal format.) |
| Interface or slot/port | Used to indicate a valid slot and port number separated by a forward slash. For example, 0/1 denotes slot number 0 and port number 1. |
| Logical Interface | Indicates a logical slot and port number. This applies in the case of a port-channel (LAG). The logical slot/port can be used to configure the port-channel. |
| Character strings | Double quotation marks are used to identify character strings, e.g., “System Name with Spaces”. An empty string (“”) will not be considered valid. |
Slot/Port Naming Convention
In referencing physical entities such as cards and ports, the D-LINK OS software uses a slot/port naming convention. This convention is also used by the software to identify certain logical entities, such as Port-Channel interfaces.
There are two uses for the slot number. With respect to physical ports, it indicates the card containing the ports. With respect to logical and CPU ports, it also indicates the type of interface or port.
Table 3: Types of Slot Numbers
| Slot Type | Description |
| Physical slot numbers | Physical slot numbers start with zero, and are assinged up to the maximum number of physical slots. |
| Logical slot numbers | Logical slots numbers are given immediately after physical slot numbers and identify port-channel (LAG) or router interfaces. The values for logical slot numbers are dependent upon the type of logical interface and can differ from platform to platform. |
| CPU slot numbers | The CPU slot numbers are given immediately after the logical slot numbers. |
For a given slot, the port refers to the specific physical port or logical interface being managed on the slot.
Table 4: Types of Ports
| Port Type Description | |
| Physical Ports | Starting from zero, the physical ports for each slot are numbered in sequence. |
| Logical Interfaces | Port-channel or Link Aggregation Group (LAG) interfaces consist of logical interfaces that are used for bridging functions only.VLAN routing interfaces consist of logical interfaces that are used for routing functions only.Loopback interfaces consist of logical interfaces that are constantly up.Tunnel interfaces consist of logical point-to-point links in which encapsulated packets are carried. |
| CPU ports | CPU ports consist of ports that are handled by the driver and are physical entities that are located in physical slots. |
Note: In the CLI itself, the slot/port format is not used for loopback interfaces. Use the loopback ID instead to specify a loopback interface.
Using the No Form of a Command
The no keyword is used to form the negative form of an existing command and is not a new or distinct command itself. A no form exists for almost every configuration command. in general, the no form of a command is used to reverse the action of the command or to reset a given value back to its default. For example, the no shutdown configuration command is used to reverse the shutdown of an interface. Alternatively, a given command can be used without the no keyword to reenable a previously disabled feature or to enable a feature that is disabled by default. The no form is only available for the configuration commands.
Executing Show Commands
Any mode (Global Config, VLAN Config, etc.) can be used to issue all show commands. These commands are used to obtain information about the system and its feature-specific configuration, status, and statistics.
CLI Output Filtering
In many cases, CLI show commands will cause a considerable amount of content to be displayed to the user. Such large amounts of content can be confusing and cumbersome to parse through to locate the desired information. However, by using the CLI Output Filtering feature, the user can, when executing CLI show display commands, optionally specify arguments in order to filter the CLI output so that only the desired information is displayed. The displayed information will thus be simplified, making it easier for the user to find the desired information.
The primary functions of the CLI Output Filtering feature are as follows:
- Pagination Control
For all show CLI commands, supports the enabling/disabling of paginated output. When disabled, the requested output is displayed in its entirety. When enabled, the requested output is displayed in a page-by-page manner such that the display does not scroll beyond the end of the screen until the user presses a key to continue. The options -- More-- or (q)uit are displayed at the end of each page.
If pagination is enabled, pressing the return key will advance the display by a single line, pressing q or Q will cause the pagination to stop, and pressing any other key will advance the display by a whole page. No other configuring of these keys is possible.
Note: Although pagination is already supported by some D-LINK OS show commands, its implementation is unique per command rather than being generic to all commands.
- Output Filtering
- "Grep"-like control used to modify the displayed output to show only the user-desired content.
- Filter the displayed output to include only those lines containing a specified string match.
- Filter the displayed output to omit only those lines containing a specified string match.
- Filter the displayed output to include only those lines including and following a specified string match.
- Filter the displayed output to include only a specified section of the content (e.g., "interface 0/1") using a configurable end-of-section delimiter.
- String matching should be case insensitive.
- When enable, pagination also applies to filtered output.
Example
The following provides some examples of the extensions made to the CLI show.
show running-show config ?
<cr> Press enter to execute the command.
| Output filter options.
<scriptname> Script file name for writing active configuration.
all Show all the running configuration on the switch.
interface Display the running config for specified interface on
the switch.
3. D-LINK OS Modules
The D-LINK OS software is composed of flexible modules that can be utilized in a variety of combinations in order to support advanced Layer 2/3/4 products. The installed modules determine the commands and command modes available on your switch. Additionally, please note that the output fields for some show commands might change depending upon the modules included in the D-LINK OS software.
The following modules are included in the D-LINK OS software suite:
- Switching (Layer 2)
- Data Center
- Routing (Layer 3)
• IPv6 Routing (Layer 3) - Multicast
• BGP-4
• Quality of Service
• Management (CLI and SNMP)
Command Modes
Commands are grouped by the CLI into modes according to the command function, with specific D-LINK OS software commands being supported by each of the command modes. As such, the commands for a given mode are not available until the user switches to that particular mode, with the exception of the commands for the User EXEC mode. The User EXEC mode commands can also be executed in the Privileged EXEC mode.
To help the user identify the current mode, the command prompt changes for each different command mode. The command modes and the prompts for each mode are shown in Table 5.
Note: The installed software modules determine which command modes are available on your switch. For example, if a switch does not support the BGPV4 module, then the BGPv4 Router Command Mode will not be available.
Table 5: CLI Command Modes
| Command Mode | Prompt Mode Description | |
| User EXEC | Switch> | Allows a limited set of commands used to view basic system information. |
| Privileged EXEC | Switch# | Allows the user to issue any EXEC command, to enter the VLAN mode, or to enter the Global Configuration mode. |
| Global Config | Switch (Config)# | Groups general setup commands and permits modifications to be made to the running configuration. |
| VLAN Config | Switch (Vlan)# | Groups all the VLAN commands. |
| Interface Config | Switch (Interface slot/port)# | Used to manage the operation of an interface by providing access to the router interface configuration commands. |
| Switch (Interface vlan vlan-id)# | This mode can be used to set up a physical port for a specific logical connection operation. | |
| Switch (Interface lag vlan-id)# | ||
| Switch (Interface Loopback id)#Switch (Interface tunnel id)#Switch (Interface slot/port (starrange - slot/port (endrange))# | This mode can also be used to manage the operation of a range of interfaces. For example, for the range of interfaces from ports 0/2 to 0/4, the prompt is displayed as follows:(Routing) (Interface 0/2-0/4)# | |
| Line Console | Switch (config-line)# | Includes commands that can be used to configure outbound telnet settings and console login/enable authentication, as well as to configure console interface settings. |
| Line SSH | Switch (config-ssh)# | Includes commands that can be used to configure SSH login/enable authentication. |
| Line Telnet | Switch (config-telnet)# | Includes commands that can be used to configure telnet login/enable authentication. |
| AAA IAS User Config | Switch (config-IAS-User)# | Includes commands that can be used to configure a password for a user in the IAS database. |
| Mail Server | Switch (Mail-Server)# | Includes commands that can be used to configure the e-mail server. |
| Class Map Config | Switch (config-class-map)# | Includes the commands for QoS class map configuration for IPv4. |
| Router OSPF Config | Switch (config-router)# | Includes the commands for OSPF configuration. |
| BGP Router Config | Switch (config-router)# | Includes the commands for BGP4 configuration. |
| IPv6 Address Family | Switch (config-router-af)# | Includes the commands for IPv6 address family configuration. |
| Radius Dynamic Authorization Config | Switch (config-radius-da)# | Includes the commands for Radius Dynamic Authorization. |
| MAC Access-list Config | Switch (Config-mac-access-list)# | Includes the commands for creating a MAC Access-List and allows the user to enter the mode containing the MAC Access-List configuration commands. |
| |Pv6 Access-list Config | Switch (config-ipv6-acl)# | Includes the commands for creating an IPv6 Access-List and allows the user to enter the mode containing the IPv6 Access-List configuration commands. |
| Management Access-list Config | Switch (config-macal)# | Includes the commands for creating a Management Access-List and allows the user to enter the mode containing the Management Access-List configuration commands. |
| TACACS+ Config | Switch (Tacacs)# | Includes the commands for configuring the properties of the TACACS+ servers. |
| ARP Access-List Config Mode | Switch (Config-arp-access-list)# | Includes the commands used to add ARPACL rules in an ARP Access List. |
| Usergroup Configuration Mode | Switch (config-usergroup) | Includes the user group commands. |
| Taskgroup Configuration Mode | Switch (config-taskgroup) | Includes the task group commands. |
Table 6 shows the input or inputs used to enter each mode. Alternatively, input the term exit to exit a given mode and return to the previous mode. However, press Ctrl+z to exit the Privileged EXEC mode.
Note: Entering Ctrl+z when in the Privileged EXEC mode will result in exiting to the User EXEC mode. Enter Logout if you wish to exit the User EXEC mode.
Table 6: CLI Mode Access and Exit
| Command Mode Access Method | |
| User EXEC The first level of access. | |
| Privileged EXEC | Enter enable while in the User EXEC mode. |
| Global Config | Enter configure while in the Privileged EXEC mode. |
| VLAN Config | Enter vlan database while in the Privileged EXEC mode. |
| Interface Config | Enter one of the following terms while the Global Config mode:Interface slot/portInterface vlan vlan-idInterface lag lag-numberInterface loopback idInterface tunnel idInterface slot/port (startrange)-slot/port(endrange) |
| Line Console | Enter line console while in the Global Config mode. |
| Line SSH | Enter line ssh while in the Global Config mode. |
| Line Telnet | Enter line telnet while in the Global Config mode. |
| AAA IAS User Config | Enter while in the Global Config mode. |
| Mail Server Config | Enter mail-server address while in the Global Config mode. |
| Policy-Map Config | Enter policy-mapdirection>while in the Global Config mode. |
| Policy-Class-Map Config | Enterclasswhile in the Policy Map mode.Note:A given classname should be created using theclass-map command. |
| Class-Map Config | Enterclass-map match-allwhile in the Global Config mode, and then use either the optional keyword ipv4 or ipv6 to specify the Layer 3 protocol for this class. |
| Router OSPF Config | Enterrouter ospf while in the Global Config mode. |
| BGP Router Config | Enterrouter bgp asnumber while in the Global Config mode. |
| Route Map Config | Enterroute-map map-tag while in the Global Config mode. |
| IPv6 Address Family Config | Enteraddress-family ipv6 while in the BGP Router Config mode,. |
| Peer Template Config | Entertemplate peer name while in the BGP Router Config mode to create a BGP peer template and to enter the Peer Template Configuration mode. |
| Peer Template Address Family Config | Enteraddress-family {ipv4 | ipv6) while in the Peer Template Config mode. |
| MAC Access-list Config | Entermac access-list extended name while in the Global Config mode. |
| IPv6 Access-list Config | Enteripv6 access-list name while in the Global Config mode. |
| Management Access-list Config | Entermanagement access-list name while in the Global Config mode. |
| TACACS+ Config | Entertacacs-server host ip-addr, where ip-addr is the IP address of the TACACS+ server on your network, while in the Global Config mode. |
| ARP Access-List Config | Entetherarp access-list command while in the Global Config mode. |
| User-Group Configuration Mode | Entertheusergroupcommand while in the Global Config mode. |
| Task-Group Configuration Mode | Enterthetaskgroupcommand while in the Global Config mode. |
Command Completion and Abbreviation
When the user types enough letters of a command to uniquely identify the command keyword, the command completion feature finishes spelling the command for the user. Once the user has entered enough letters, simply pressing the SPACEBAR or TAB key will complete the word.
Command abbreviation lets the user execute a command when the user has entered enough letters to uniquely identify the command. The user must, however, enter all of the required parameters and keywords before entering the command.
CLI Error Messages
If a command is entered by the user and the system cannot execute it, an error message will appear. Table 7 provides a list of the most common CLI error messages.
Table 7: CLI Error Messages
| Message Text Description | |
| % Invalid input detected at ‘^’ marker. | Indicates that an incorrect or unavailable command was entered. The carat (^) indicates the location of the invalid text. This message will also appear if any of the values or parameters is not recognized. |
| Command not found / Incomplete command. Use ? to list commands | Indicates that the required keywords or values were not entered. |
| Ambiguous command | Indicates that not enough letters were entered to uniquely identify the command. |
CLI Line-Editing Conventions
Table 8 provides a list of the key combinations that can be used to edit commands or raise the speed of command entry. This list can be accessed from the CLI by entering help while in the User or Privileged EXEC modes.
Table 8: CLI Editing Conventions
| Key Sequence Description | |
| DEL or Backspace | Deletes previous character. |
| Ctrl-A | Moves cursor to beginning of line. |
| Ctrl-E | Moves cursor to end of line. |
| Ctrl-F | Moves cursor forward one character. |
| Ctrl-B | Moves cursor backward one character. |
| Ctrl-D | Deletes current character. |
| Ctrl-U, X | Deletes text back to beginning of line. |
| Ctrl-K | Deletes text to end of line. |
| Ctrl-W Deletes previous word. | |
| Ctrl-T | Transposes previous character. |
| Ctrl-P | Takes user to previous line in history buffer. |
| Ctrl-R | Rewrites or pastes the current line. |
| Ctrl-N | Takes user to next line in history buffer. |
| Ctrl-Y | Prints last deleted character. |
| Ctrl-Q Enables serial flow. | |
| Ctrl-S Disables serial flow. | |
Key Sequence Description
| Ctrl-Z | Returns user to root command prompt. |
| Tab, | Yields command-line completion. |
| Exit Returns user to next lower command prompt. | |
| ? Opens list of available commands, keywords, or parameters. | |
Using CLI Help
To display the commands available in the current mode, enter a question mark (?) at the command prompt.
(Routing)>?
enable Enter into user privilege mode.
help Display help for various special keys.
logout Exit this session. Any unsaved changes are lost.
ping Send ICMP echo packets to a specified IP address.
quit Exit this session. Any unsaved changes are lost.
show Display Switch Options and Settings.
telnet Telnet to a remote host.
To display available command keywords or parameters, enter a question mark (?) after each word you enter.
(Routing) #network ?
mgmt_vlan Configure the Management VLAN ID of the switch.
parms Configure Network Parameters of the router.
protocol Select DHCP, BootP, or None as the network config protocol.
In the event that the help output displays a parameter in angled brackets, you must replace the parameter with an appropriate value.
(Routing) #network parms ?
<ipaddr> Enter the IP address.
In the event that there are no other command keywords or parameters, or in the event that any additional parameters are optional, the following message will appear in the output:
<cr> Press Enter to execute the command.
A question mark (?) may also be entered after the user types one or more characters of a word should the user wish to see a list of the available commands or parameters that begin with the letter(s)s, as shown in the following example:
(Routing) #show m? Mac-addr-table mac-address-t monitor
Accessing the CLI
The CLI can be accessed through a direct console connection or through a telnet or SSH connection from a remote management host.
For the initial connection, a direct connection to the console port must be used. The system cannot be accessed remotely until it has been assigned an IP address, subnet mask, and default gateway. The network configuration information can be set manually, or the user can configure the system to allow these settings to be made from a BOOTP or DHCP server on the network. Please see "Network Interface Commands" for more information.
4. Management Commands
This section provides descriptions of the following management commands for the D-LINK OS CLI:
• "Network Interface Commands"
- "IPv6 Management Commands"
- "Console Port Access Commands"
- "Secure Shell Commands"
- "Management Security Commands"
- "Access Commands"
- "AAA Commands"
- "User Account and Password Commands"
- "Access Commands"
- "SNMP Commands"
• "RADIUS Commands"
• "TACACS+ Commands"
- "Configuration Scripting Commands"
- "Pre-login Banner, System Prompt, and Host Name Commands"
- "Front Panel TAP Interfaces"
Note: The commands described in this section are all included in one of three functional groups:
- Show commands, which are commands that display switch settings, statistics, and other information.
- Configuration commands, which are commands that can be used to configure the features and options of the switch. Please note that, for every configuration command, there is a corresponding show command that shows the configuration setting.
- Clear commands, which are commands clear some or all of the user-applied settings, returning the configurations to factory defaults.
Network Interface Commands
The commands used to configure a logical interface for management access are described in this section. Please see "network mgmt_vlan" for information on how to configure the management VLAN.
4-1 enable (Privileged EXEC access)
This command provides the user with access to the Privileged EXEC mode. From the Privileged EXEC mode, the network interface can be configured.
enable
Parameters
None
Default
The default is None.
Command Mode
User EXEC
4-2 do (Privileged EXEC) commands
This command causes Privileged EXEC mode commands to be executed from any of the configuration modes.
do Priv Exec Mode Command
Parameters
None
Default
The default is None.
Command Mode
- Global Config
- Interface Config
- VLAN Config
- Router Config
Example
The following provides an example of the do command that is used to execute the Privileged EXEC command script list while in the Global Config Mode.
(Routing) #configure
(Routing) (config)#do script list
Configuration Script Name Size (Bytes)
backup-config 2105
running-config 4483
startup-config 445
3 configuration script(s) found.
2041 Kbytes free.
Routing(config)#
4-3 serviceport ip
This command sets the IP address, the netmask and the gateway of the network management port. You can specify the none option to clear the IPv4 address and mask and the default gateway (i.e., reset each of these values to .0.0.0.0).
serviceport ip { ipaddr netmask [gateway] | none}
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
4-4 serviceport protocol
This command specifies the network management port configuration protocol. If you modify this value, the change is effective immediately. If you use the bootp parameter, the switch periodically sends requests to a BootP server until a response is received. If you use the DHCP parameter, the switch periodically sends requests to a DHCP server until a response is received. If you use the none parameter, you must configure the network information for the switch manually.
serviceport protocol {none | bootp | dhcp}
Parameters
None
Default
The default is DHCP.
Command Mode
Privileged EXEC
4-5 serviceport protocol dhcp
This command enables the DHCPv4 client on a Service port and sends DHCP client messages with the client identifier option (DHCP Option 61).
serviceport protocol dhcp [client-id]
Parameters
None
Default
The default is DHCP.
Command Mode
Privileged EXEC
Usage Guideline
There is no support for the no form of the command serviceport protocol dhcp client-id. To remove the client-id option from the DHCP client messages, issue the command serviceport protocol dhcp without the client-id option. The command serviceport protocol none can be used to disable the DHCP client and client-id option on the interface.
Example
The following shows an example command.
(Routing) # serviceport protocol dhcp client-id
4-6 network parms
This command is used to set the IP address, subnet mask, and gateway of the device. It is required that the IP address and the gateway be located on the same subnet. The none option can be specified in order to clear the IPv4 address and mask, as well as the default gateway (i.e., each of the values will be reset to the default value on the switch).
network parms {ipaddr netmask [gateway] I none)}
Parameters
| ipaddr | Enter the summary address designated for a range of addresses here. |
| netmask | Enter the IP subnet mask used for the summary route here. |
| gateway | (Optional) Enter the gateway address used for the summary route here. |
Default
The default is None.
Command Mode
Privileged EXEC
4-7 network protocol
This command is used to specify the network configuration protocol to be utilized. If the user modifies this value, the change becomes effective immediately. If the bootp parameter is used, the switch sends requests to a BOOTP server on a periodic basis until a response is received. If the DHCP parameter is used, the switch sends requests to a DHCP server on a periodic basis until a response is received. If the none parameter is used, the network information for the switch must be configured manually.
network protocol {none | bootp | dhcp}
Parameters
| none | No specified network information is set. |
| bootp | Specifies the static BOOTP server for packet requests. |
| dhcp | Specifies the DHCP server for packet requests. |
Default
The default is DHCP.
Command Mode
Privileged EXEC
4-8 network protocol dhcp
This command is used to enable the DHCPv4 client on a Network port and, if used with the client identifier option (DHCP Option 61), sends DHCP client messages.
network protocol dhcp [client-id]
Parameters
| client-id | (Optional) Specifies a DHCP client identifier in hexadecimal notation |
Default
The default is None.
Command Mode
Global Config
Usage Guideline
The no form of the command network protocol dhcp client-id is not supported. Therefore, issue the command network protocol dhcp without the client-id option in order to remove the client-id option from the DHCP client messages. In addition, the user may use the command network protocol none to disable the DHCP client and client-id option on the interface.
Example
The following provides an example of the command.
(Routing) # network protocol dhcp client-id
4-9 show network
This command is used to show the configuration settings associated with the network interface of the switch. Please note that the network interface is the logical interface that is used to provide the switch with in-band connectivity via any of the switch's front panel ports. Also note that the configuration of the front panel ports through which traffic is switched or routed is not affected by the configuration parameters associated with the switch's network interface. Regardless of whether or not any member ports are up, the network interface is always considered to be up; as such, the show network command will always display the Interface Status as up.
show network
Parameters
None
Default
The default is None.
Command Mode
Global Config
Example
The following provides an example of a CLI display output for the network port.
(Switching)#show network
Interface Status..... Up
IP Address..... 10.250.3.1
Subnet Mask..... 255.255.255.0
Default Gateway..... 10.259.3.3
IPv6 Administrative Mode..... Enabled
Burned In MAC Address..... 00:05:64:2F:0D:E5
MAC Address Type..... Burned In
Configured IPv4 Protocol..... None
Configured IPv6 Protocol..... None
IPv6 AutoConfig Mode..... Disabled
Management VLAN ID..... 1
Display Parameters
| Interface Status | Indicates the network interface status; it is always considered to be “up”. |
| IP Address | Indicates the IP address (default: 10.90.90.90/8) for the given interface. |
| Subnet Mask | Indicates the IP subnet/mask for the given interface. |
| Default Gateway | Indicates the default gateway for the given IP interface. |
| IPv6 Administrative Mode | Indicates whether the IPv6 Administrative Mode is enabled or disabled. |
| IPv6 Address/Length | Indicates the IPv6 address and length. |
| IPv6 Default Router | Indicates the IPv6 default router address. |
| Burned In MAC Address | Indicates the burned in MAC address utilized for in-band connectivity. |
| Configured IPv4 Protocol | Indicates the designated IPv4 network protocol (bootp | DHCP | none). |
| Configured IPv6 Protocol | Indicates the IPv6 network protocol being utilized. The options for this parameter are DHCP | none. |
| IPv6 Autoconfig Mode | Indicates whether the IPv6 Stateless address autoconfiguration is enabled or disabled. |
| Management VLAN ID | The management VLAN ID associated with the management IP address. So user can access the switch via this IP address of this VLAN. |
4-10 show serviceport
This command is used to display the service port configuration information.
show serviceport
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following provides an example of the CLI display output for the service port.
(Switching) #show serviceport
Interface Status..... Up
IP Address..... 10.230.3.51
Subnet Mask..... 255.255.255.0
Default Gateway..... 10.230.3.1
IPv6 Administrative Mode..... Enabled
Configured IPv4 Protocol..... DHCP
Configured IPv6 Protocol..... DHCP
IPv6 Autoconfig Mode..... Disabled
Burned In MAC Address..... 00:10:18:82:06:4D
DHCP Client Identifier..... 0D-LINKOS-0010.1882.160C
Display Parameters
| Interface Status | Indicates the network interface status; it is always considered to be “up”. |
| IP Address | Indicates the IP address for the given interface. The default IP address is 192.168.0.1/24. |
| Subnet Mask | Indicates the IP subnet/mask for the given interface. |
| Default Gateway | Indicates the default gateway for the given IP interface. |
| IPv6 Administrative Mode | Indicates whether the IPv6 Administrative Mode is enabled or disabled. |
| Configured IPv4 Protocol | Indicates the IPv4 network protocol being utilized. The options for this parameter are bootp | DHCP | none. |
| Configured IPv6 Protocol | Indicates The IPv6 network protocol being utilized. The options for this parameter are DHCP | none. |
| IPv6 Autoconfig Mode | Indicates whether IPv6 Stateless address autoconfiguration is enabled or disabled. |
| Burned In MAC Address | Indicates the burned in MAC address utilized for in-band connectivity. |
| DHCP Client Identifier | Only in the event that DHCP is enabled with the client-id option on the network port, the client identifier will be displayed in the output of the command. For more information, please see “network protocol dhcp”. |
IPv6 Management Commands
IPv6 management commands are used to manage a device via an IPv6 address in a switch or via IPv4 routing (i.e., independent from the IPv6 Routing package). For Routing/IPv6 builds of D-LINK OS dual IPv4/IPv6, operation over the service port is enabled. D-LINK OS has the following capabilities:
- The IPv6 addresses and gateways for the service/network ports can be statically assigned.
• An IPv6 link-local address can be pinged over the service/network port. - Using IPv6 Management commands, SNMP traps and queries can be sent by the user via the service/network port.
- A device can be managed by the user via the network port (as well as via a Routing Interface or the Service port).
4-11 serviceport ipv6 enable
This command is used to enable IPv6 operation on the service port if it has been disabled. However, please note that IPv6 operation is, by default, enabled on the service port.
The no command can be used to disable IPv6 operation on the service port.
serviceport ipv6 enable
no serviceport ipv6 enable
Parameters
None
Default
The default is Enabled.
Command Mode
Privileged EXEC
4-12 network ipv6 enable
This command is used to enable IPv6 operation on the network port if it has been disabled. However, please note that IPv6 operation is, by default, enabled on the network port.
The no command can be used to disable IPv6 operation on the network port.
network ipv6 enable
no network ipv6 enable
Parameters
None
Default
The default is Enabled.
Command Mode
Privileged EXEC
4-13 serviceport ipv6 address
When working with the service port, the options of this command can be used to configure the IPv6 global address manually, to enable/disable stateless global address autoconfiguration, and to enable/disable DHCPv6 client protocol information on the port.
The no command can be used to remove any configured IPv6 prefixes on the service port interface. When used with the address option, the command removes the manually configured IPv6 global address on the network port interface. The command can also be used with the autoconfig option in order to disable the stateless global address autoconfiguration on the service port. Finally, the command can also be used with the DHCP option to in order disable the DHCPv6 client protocol on the service port.
Note: It is possible to configure multiple IPv6 prefixes on the service port.
serviceport ipv6 address { prefix/prefix-length [eui64] | autoconfig | dhcp }
no serviceport ipv6 address { prefix/prefix-length [eui64] | autoconfig | dhcp }
Parameters
| prefix/prefix-length | Indicates the IPv6 prefix length value. |
| autoconfig | Used to configure the stateless global address autoconfiguration capability. |
| dhcp | Used to configure the DHCPv6 client protocol. |
Default
The default is None.
Command Mode
Privileged EXEC
4-14 serviceport ipv6 gateway
This command is used to configure the IPv6 gateway (i.e. default router) information for the service port.
The no command is used to remove IPv6 gateways on the service port interface.
Note: For the service port, only a single IPv6 gateway address can be configured. It is possible for there to be a combination of explicitly configured IPv6 prefixes and gateways and IPv6 prefixes and gateways that are set through auto-address configuration via a connected IP router on their service port interface.
serviceport ipv6 gateway gateway-address
no serviceport ipv6 gateway
Parameters
| gateway-address | Indicates the gateway address in the IPv6 global or link-local address format. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
4-15 serviceport ipv6 neighbor
This command is used for the manual addition of IPv6 neighbors to the IPv6 neighbor table for the service port. The entry is automatically converted to a static entry if an IPv6 neighbor already exists in the neighbor table. Also, the neighbor discovery process does not result in static entries being modified. Such entries are, however, treated in the same manner for IPv6 forwarding. Furthermore, when the corresponding interface is operationally active, static IPv6 neighbor entries are applied to both the kernel stack and to the hardware.
The no command is used for the removal of IPv6 neighbors from the IPv6 neighbor table for the service port.
serviceport ipv6 neighbor ipv6-address macaddr
no serviceport ipv6 neighbor ipv6-address macaddr
Parameters
| ipv6-address | Indicates the IPv6 address of the neighbor or interface. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
4-16 network ipv6 neighbor
This command is used for the manual addition of IPv6 neighbors to the IPv6 neighbor table for this network port. The entry is automatically converted to a static entry if an IPv6 neighbor already exists in the neighbor table. Also, the neighbor discovery process does not result in static entries being modified. Such entries are, however, treated in the same manner for IPv6 forwarding. Furthermore, when the corresponding interface is operationally active, static IPv6 neighbor entries are applied to both the kernel stack and to the hardware.
The no command is used for the removal of IPv6 neighbors from the neighbor table.
network ipv6 neighbor ipv6-address macaddr
no network ipv6 neighbor ipv6-address macaddr
Parameters
| ipv6-address | Indicates the IPv6 address of the neighbor or interface. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
4-17 network ipv6 address
When working with the network port, the options of this command can be used to configure the IPv6 global address manually, to enable/disable stateless global address autoconfiguration, and to enable/disable DHCPv6 client protocol information on the port. It is possible to configure multiple IPv6 addresses on the network port.
The no command can be used to remove any configured IPv6 prefixes. When used with the address option, the command removes the manually configured IPv6 global address on the network port interface. The command can also be used with the autoconfig option in order to disable the stateless global address autoconfiguration on the network port. Finally, the command can also be used with the DHCP option in order to disable the DHCPv6 client protocol on the network port.
network ipv6 address {prefix/prefix-length [eui64] | autoconfig | dhcp} no network ipv6 address {prefix/prefix-length [eui64] | autoconfig | dhcp}
Parameters
| Prefix/prefix-length | Indicates the IPv6 prefix length value. |
| autoconfig | Used to configure the stateless global address autoconfiguration capability. |
| dhcp | Used to configure the DHCPv6 client protocol. |
Default
The default is None.
Command Mode
Privileged EXEC
4-18 network ipv6 gateway
This command is used to configure the IPv6 gateway (i.e. default routers) information for the network port. The no command is used to remove IPv6 gateways on the network port interface.
network ipv6 gateway gateway-address no network ipv6 gateway
Parameters
| gateway-address | Gateway global or link-local address in IPv6 format. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
4-19 show network ipv6 neighbors
This command is used to show information regarding the IPv6 neighbor entries cached on the network port. The information is updated in order to display the type of the entry.
show network ipv6 neighbors
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following provides an example of the command
(Routing) #show network ipv6 neighbors
Neighbor Age
IPv6 Address Type MAC Address isRtr State (Secs)
FE80::5E26:AFF:FEBD:852C Dynamic 5c:26:0a:bd:85:2c True Stale 3
Display Parameters
| IPv6 Address | Indicates the IPv6 address of the neighbor. |
| Type | Indicates the type of neighbor entry. If the entry is manually configured, the type is Static; if the entry is dynamically resolved, the type is Dynamic. |
| MAC Address | Indicates MAC Address of the neighbor. |
| isRtr | Indicates whether or not the neighbor is a router. If TRUE, the neighbor is a router; if FALSE, the neighbor is not a router. |
| Neighbor State | Indicates the state of the neighbor cache entry. The possible values are as follows: Incomplete, Reachable, Stale, Delay, Probe, and Unknown. |
| Age | Indicates the time (in seconds) that has elapsed since the most recent entry was added to the cache. |
4-20 show serviceport ipv6 neighbors
This command is used to show information regarding the IPv6 neighbor entries cached on the service port. The information is updated in order to display the type of the entry.
show serviceport ipv6 neighbors
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following provides an example of the command
(Routing) #show serviceport ipv6 neighbors
Neighbor Age
IPv6 Address Type MAC Address isRtr State (Secs)
FE80::5E26:AFF:FEBD:852C Dynamic 00:09:e7:00:00:50 True Stale 3
Display Parameters
| IPv6 Address | Indicates the IPv6 address of the neighbor. |
| Type | Indicates the type of neighbor entry. If the entry is manually configured, the type is Static; if the entry is dynamically resolved, the type is Dynamic. |
| MAC Address | Indicates the MAC Address of the neighbor. |
| isRtr | Indicates whether or not the neighbor is a router. If TRUE, the neighbor is a router; if FALSE, the neighbor it is not a router. |
| Neighbor State | Indicates the state of the neighbor cache entry. The possible values are as follows: Incomplete, Reachable, Stale, Delay, Probe, and Unknown. |
| Age | Indicates the time (in seconds) that has elapsed since the most recent entry was added to the cache. |
4-21 show network ipv6 dhcp statistics
This command is used to show the statistics for the DHCPv6 client running on the network management interface.
show network ipv6 dhcp statistics
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following provides an example of the CLI display output for the command
(Switching)#show network ipv6 dhcp statistics
DHCPv6 Client Statistics
----
DHCPv6 Advertisement Packets Received..... 0
DHCPv6 Reply Packets Received..... 0
Received DHCPv6 Advertisement Packets Discard... 0
Received DHCPv6 Reply Packets Discarded..... 0
DHCPv6 Malformed Packets Received..... 0
Total DHCPv6 Packets Received..... 0
DHCPv6 Solicit Packets Transmitted..... 0
DHCPv6 Request Packets Transmitted..... 0
DHCPv6 Renew Packets Transmitted..... 0
DHCPv6 Rebind Packets Transmitted..... 0
DHCPv6 Release Packets Transmitted..... 0
Total DHCPv6 Packets Transmitted..... 0
Display Parameters
| DHCPv6 Advertisement Packets Received | Indicates the number of DHCPv6 Advertisement packets that have been received on the network interface. |
| DHCPv6 Reply Packets Received | Indicates the number of DHCPv6 Reply packets that have been received on the network interface. |
| Received DHCPv6 Advertisement Packets Discarded | Indicates the number of DHCPv6 Advertisement packets that have been discarded on the network interface. |
| Received DHCPv6 Reply Packets Discarded | Indicates the number of DHCPv6 Reply packets that have been discarded on the network interface. |
| DHCPv6 Malformed Packets Received | Indicates the number of malformed DHCPv6 packets that have been received on the network interface. |
| Total DHCPv6 Packets Received | Indicates the total number of DHCPv6 packets that have been received on the network interface. |
| DHCPv6 Solicit Packets Transmitted | Indicates the number of DHCPv6 Solicit packets that have been transmitted on the network interface. |
| DHCPv6 Request Packets Transmitted | Indicates the number of DHCPv6 Request packets that have been transmitted on the network interface. |
| DHCPv6 Renew Packets Transmitted | Indicates the number of DHCPv6 Renew packets that have been transmitted on the network interface. |
| DHCPv6 Rebind Packets Transmitted | Indicates the number of DHCPv6 Rebind packets that have been transmitted on the network interface. |
| DHCPv6 Release Packets Transmitted | Indicates the number of DHCPv6 Release packets that have been transmitted on the network interface. |
| Total DHCPv6 Packets Transmitted | Indicates the total number of DHCPv6 packets that have been transmitted on the network interface. |
4-22 show serviceport ipv6 dhcp statistics
This command is used to show the statistics for the DHCPv6 client running on the network management interface.
show serviceport ipv6 dhcp statistics
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following provides an example of the CLI display output for the command.
(Switching)#show serviceport ipv6 dhcp statistics
DHCPv6 Client Statistics
DHCPv6 Advertisement Packets Received.... 0
DHCPv6 Reply Packets Received.... 0
Received DHCPv6 Advertisement Packets Discarded.. 0
Received DHCPv6 Reply Packets Discarded.... 0
DHCPv6 Malformed Packets Received.... 0
Total DHCPv6 Packets Received.... 0
DHCPv6 Solicit Packets Transmitted.... 0
DHCPv6 Request Packets Transmitted.... 0
DHCPv6 Renew Packets Transmitted.... 0
| DHCPv6 Rebind Packets Transmitted....0 |
| DHCPv6 Release Packets Transmitted....0 |
| Total DHCPv6 Packets Transmitted....0 |
Display Parameters
| DHCPv6 Advertisement Packets Received | Indicates the number of DHCPv6 Advertisement packets that have been received on the service port interface. |
| DHCPv6 Reply Packets Received | Indicates the number of DHCPv6 Reply packets that have been received on the service port interface. |
| Received DHCPv6 Advertisement Packets Discarded | Indicates the number of DHCPv6 Advertisement packets that have been discarded on the service port interface. |
| Received DHCPv6 Reply Packets Discarded | Indicates the number of DHCPv6 Reply packets that have been discarded on the service port interface. |
| DHCPv6 Malformed Packets Received | Indicates the number of malformed DHCPv6 packets that have been received on the service port interface. |
| Total DHCPv6 Packets Received | Indicates the total number of DHCPv6 packets that have been received on the service port interface. |
| DHCPv6 Solicit Packets Transmitted | Indicates the number of DHCPv6 Solicit packets that have been transmitted on the service port interface. |
| DHCPv6 Request Packets Transmitted | Indicates the number of DHCPv6 Request packets that have been transmitted on the service port interface. |
| DHCPv6 Renew Packets Transmitted | Indicates the number of DHCPv6 Renew packets that have been transmitted on the service port interface. |
| DHCPv6 Rebind Packets Transmitted | Indicates the number of DHCPv6 Rebind packets that have been transmitted on the service port interface. |
| DHCPv6 Release Packets Transmitted | Indicates the number of DHCPv6 Release packets that have been transmitted on the service port interface. |
| Total DHCPv6 Packets Transmitted | Indicates the total number of DHCPv6 packets that have been transmitted on the service port interface. |
4-23 clear network ipv6 dhcp statistics
This command is used to clear the DHCPv6 statistics on the network management interface.
clear network ipv6 dhcp statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
4-24 clear serviceport ipv6 dhcp statistics
This command is used to clear the DHCPv6 client statistics on the service port interface.
clear serviceport ipv6 dhcp statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
4-25 ping ipv6
This command is used to determine if another computer is present on the network. When initiated from the CLI interface, the ping command provides a synchronous response. In order to use the command, the user must configure the switch for network (in-band) connection. In addition, the source and target devices are required to have the ping utility enabled and running on top of TCP/IP. Then, as long as there is a physical path between the switch and the workstation, the switch can be pinged from any IP workstation to which the switch has been connected through the default VLAN (VLAN 1). The terminal interface transmits a total of three pings to the target station. By using the global IPv6 address of an interface, the ipv6-address/hostname parameter can be utilized to ping that interface, while the optional size keyword can be used to specify the size of the ping packet. Furthermore, the outgoing-interface option can be used to specify the outgoing interface for a multicast IPv4/IPv6 ping.
When using an IPv6 global address ipv6-global-address/hostname, the user can utilize the ping or trace route facilities over the service/network ports. The assignment of any IPv6 global addresses or gateways to these interfaces will cause the installation of IPv6 routes within the IP stack, such that the ping or trace route request will then be properly routed out of the service/network port. When referencing an IPv6 link-local address, the user is also required to specify the service or network port interface by utilizing the serviceport or network parameter.
ping ipv6 {ipv6-global-address | hostname | {interface {slot/port | vlan vlan-id | serviceport | loopback | tunnel | network} link-local-address} [size datagram-size] [outgoing-interface {slot/port | vlan 1-4093 | serviceport I network}]}
Parameters
None
Default
• The default count is 1.
- The default interval 3 seconds.
• The default size is 0 bytes.
Command Mode
- Privileged EXEC
- User EXEC
4-26 ping ipv6 interface
This command is used to determine if another computer is present on the network. In order to use the command, the user must configure switch for network (in-band) connection. In addition, the source and target devices are required to have the ping utility enabled and running on top of TCP/IP. Then, as long as there is a physical path between the switch and the workstation, the switch can be pinged from any IP workstation to which the switch has been connected through the default VLAN (VLAN 1). The terminal interface transmits a total of three pings to the target station. By using the link-local address or global IPv6 address of an interface, the interface keyword can be used to ping that interface, while a loopback, network port, serviceport, tunnel, or physical interface can be used as the source. In addition, the optional size keyword can be used to specify the size of the ping packet. The ipv6-address is used to indicate the link local IPv6 address of the device that the user wants to query, and the outgoing-interface option can be used to specify the outgoing interface for a multicast IP/IPv6 ping.
ping ipv6 interface {slot/port | loopback loopback-id | network | serviceport | tunnel tunnel-id} {vlan 1-4093}
Parameters
| slot/port | Specifies a valid slot or port. |
| loopback loopback-id | Specifies the loopback ID to ping. |
| network | Specifies the link local address with network port as the next hop interface. |
| serviceport | Specify a link local address with Service port as the next hop interface. |
| tunnel tunnel-id | Select the tunnel ID interface to designate to initiate the ping function. |
| vlan | (Optional) Select the VLAN interface (1 – 4093). |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
4-27 traceroute
The traceroute command is used to identify the routes that are actually taken by packets as they travel to their destinations through the network on a hop-by-hop basis. When initiated from the CLI interface, the traceroute command continues to provide a synchronous response.
Either the source IP address or the virtual router of the traceroute probes may be specified. It should be noted that the way in which traceroute works is by sending packets that are expected not to reach their final destination but, rather, to trigger ICMP error messages that will be sent back to the source address from each stop along the forward path toward the destination. The user can, by specifying the source address, determine at what point along the forward path a route back to the source address is lacking. It should be noted, however, that this is only useful in the event that the route from the source to the destination and from the destination to the source is symmetric. One common usage, for example, is the sending of a traceroute from an edge router to some target located higher up in the network by use of a source address at a host subnet on the edge router. Doing this allows the user to test whether the location within the network is reachable from the host attached to the edge router. Alternatively, a user could send a traceroute in which an address on a loopback interface serves as the source in order to test reachability from within the network back to the loopback interface address.
In the CLI, the source can be specified as an IPv4 address, a virtual router, or a routing interface. In the event that a routing interface is specified as the source, the traceroute is sent via the primary IPv4 address on the source interface. With SNMP, it is required that the source be specified as an address.
An incoming packet, such as a traceroute response, that arrives on a routing interface will not be accepted by D-LINK OS if the packet's destination address is located on one of the out-of-band management interfaces (that is, the service port or network port). Similarly, a packet that arrives on a management interface will not be accepted by D-LINK OS if that packet's destination is an address located on a routing interface. As such, it would be pointless to send a traceroute on a management interface while utilizing a routing interface address as the source, or to transmit a traceroute on a routing interface while utilizing a management interface as the source. In other words, if a traceroute is being sent on a routing interface, that routing interface or another routing interface must serve as the source. Similarly, if a traceroute is being sent on a management interface, the source must be located on that management interface. Because of this, a management interface or management interface address cannot be specified as the source by a user. Rather, when a traceroute is being sent on a management interface, a source address should not be specified by the user; instead, the system should be allowed to select the source address from the outgoing interface.
traceroute [vrf vrf-name] {ip-address | [ipv6] {ipv6-address | hostname}} [initTtl initTtl] [maxTtl maxTtl] [maxFail maxFail] [interval interval] [count count] [port port] [size size] [source {ip-address | ipv6-address | unit/slot/port}]
Parameters
By utilizing the options described below, the user can specify the initial and maximum time-to-live (TTL) in probe packets, as well as the size of each probe, the maximum number of failures before termination, and the number of probes sent for each TTL.
| vrf vrf-name | (Optional) This parameter indicates the name of the VRF instance from which to initiate the traceroute. Tracerouting can only be accomplished for hosts reachable from within the VRF instance. In the event that a source parameter is specified in concert with a vrf parameter, that parameter must be a member of the VRF. Relatedly, it is not possible to use the ipv6 parameter in conjunction with the vrf parameter. |
| lp-address | The value for the ipaddress should be a valid IP address. |
| ipv6-address | The value for the ipv6-address should be a valid IPv6 address. |
| hostname | The value for the hostname value should be a valid hostname. |
| ipv6 | (Optional) The use of the optional ipv6 keyword before the ipv6-address or hostname is possible. If the ipv6 keyword is used before the hostname, the system will try to resolve to an IPv6 address. |
| initTtl initTtl | (Optional) The initTtl term is used to specify the initial time-to-live (TTL), which is the maximum number of router hops allowed between the local and remote system. The allowable values range from 0 to 255. |
| maxTtl maxTtl | (Optional) The maxTtl term is used to specify the maximum TTL. The allowable values range from 1 to 255. |
| maxFail maxFail | (Optional) The maxFail term is used to terminate the traceroute after failing to receive a response for the specified number of consecutive probes. The allowable values range from 0 to 255. |
| interval interval | (Optional) The optional interval parameter can be used to specify the time between probes, in seconds. In the event that a response is not received within the interval indicated, then the traceroute will consider that probe a failure (printing *) and send the next probe. If the traceroute does receive a response to a probe within the indicated interval, then it will immediately send the next probe. The allowable values range from 1 to 60 seconds. |
| count count | The optional count parameter can be used to specify the number of probes to be sent for each TTL value. The allowable values range from 1 to 10 probes. |
| port port | The optional port parameter can be used to specify the destination UDP port of the probe, which should consist of an unused port on the remote destination system. The allowable values range from 1 to 65535. |
| size size | The optional size parameter can be used to specify the size, in bytes, for the payload of the Echo Requests sent. The allowable values range from 0 to 39906 bytes. |
| source {ip-address | ipv6-address | unit/slot/port} | The optional source parameter can be used to specify the source IP address or the interface for the traceroute. |
Default
- count: 3 probes
- interval: 3 seconds
- size: 0 bytes
- port: 33434
- maxTtl: 30 hops
- maxFail: 5 probes
- initTtl: 1 hop
Command Mode
Privileged EXEC
Example
Some examples of the CLI command are shown below.
traceroute Success:
(Routing)# traceroute 10.240.10.115 initTtl 1 maxTtl 4 maxFail 0 interval 1 count 3 port 33434 size 43
Traceroute to 10.240.10.115, 4 hops max 43 byte packets:
1 10.240.4.1 708 msec 41 msec 11 msec
2 10.240.10.115 0 msec 0 msec 0 msec
Hop Count = 1 Last TTL = 2 Test attempt = 6 Test Success = 6
traceroute ipv6 Success:
(Routing)# traceroute 2001::2 initTtl 1 maxTtl 4 maxFail 0 interval 1 count 3 port 33434 size 43
Traceroute to 2001::2 hops max 43 byte packets:
1 2001::2 708 msec 41 msec 11 msec
The above command can also be execute with the optional ipv6 parameter as follows:
(Routing)# traceroute ipv6 2001::2 initTtl 1 maxTtl 4 maxFail 0 interval 1 count 3 port 33434 size 43
traceroute Failure:
(Routing)# traceroute 10.40.1.1 initTtl 1 maxFail 0 interval 1 count 3 port 33434 size 43
Traceroute to 10.40.1.1, 30 hops max 43 byte packets:
1 10.240.4.1 19 msec 18 msec 9 msec
2 10.240.1.252 0 msec 0 msec 1 msec
3 172.31.0.9 277 msec 276 msec 277 msec
4 10.254.1.1 289 msec 327 msec 282 msec
5 10.254.21.2 287 msec 293 msec 296 msec
6 192.168.76.2 290 msec 291 msec 289 msec
7 0.0.0.0 0 msec *
Hop Count = 6 Last TTL = 7 Test attempt = 19 Test Success = 18
traceroute ipv6 Failure:
(Routing)# traceroute 2001::2 initTtl 1 maxFail 0 interval 1 count 3 port 33434 size 43
Traceroute to 2001::2 hops max 43 byte packets:
1 3001::1 708 msec 41 msec 11 msec
2 4001::2 250 msec 200 msec 193 msec
3 5001::3 289 msec 313 msec 278 msec
4 6001::4 651 msec 41 msec 270 msec
5 0 0 msec *
Hop Count = 4 Last TTL = 5 Test attempt = 1 Test Success = 0
4-28 traceroute ipv6
This command is used to identify the routes that are actually taken by packets as they travel to their destinations through the network on a hop-by-hop basis. It is required that the ipv6-address parameter be a valid IPv6 address. The optional port parameter is used to indicate the UDP port that is used as the destination of the packets that are sent as part of the traceroute. This port should consist of an unused port on the destination system. The allowable values for the port parameter range from 0 (zero) to 65535. The default value is 33434.
traceroute ipv6 {ipv6-address | hostname [port]}
Parameters
| ipv6-address | Select the IPv6 address to trace. |
| hostname | Select the hostname to trace. |
| port | (Optional) Select the UDP destination port in probe packets. |
Default
The default is None.
Command Mode
Privileged EXEC
Console Port Access Commands
In this section, the commands used to configure the console port are described. The user can use a serial cable in order to connect a management host to the console port of the switch directly.
4-29 configure
This command is used to give the user access to the Global Config mode. From the Global Config mode, the user is then able to configure various system settings, including user accounts. From this mode, the user can also enter other command modes, including the Line Config mode.
configure
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
4-30 line
This command is used to give the user access to the Line Console mode, which in turn allows the user to configure the console port and various Telnet settings, as well as the console login/enable authentication.
line {console | telnet | ssh}
Parameters
| console | Indicates the console terminal line. |
| telnet | Indicates the virtual terminal used for remote console access (Telnet). |
| ssh | Indicates the virtual terminal used for secure remote console access (SSH). |
Default
The default is None.
Command Mode
Global Config
Example
The following provides an example of the CLI command.
(Routing) (config) #line telnet
(Routing) (config-telnet) #
4-31 session timeout
This command is used to specify the maximum connect time (in minutes) allowed without console activity. If a value of 0 is entered, that indicates that a console is allowed to remain connected indefinitely, even without activity. The allowable range of values is 0 to 160.
The no command to is used set the maximum connect time (in minutes) allowed without console activity.
session timeout 0-160
no session timeout
Parameters
None
Default
The default is 5.
Command Mode
Line Config
4-32 show serial
This command is used to call up a display of the serial communication settings for the switch.
show serial
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show serial
Serial Port Login Timeout (minutes).... 5
Baud Rate (bps).... 115200
Character Size (bits).... 8
Flow Control.... Disable
Stop Bits.... 1
Parity.... none
Display Parameters
| Serial Port Login Timeout (minutes) | Indicates the amount of time (in minutes) for which a serial port connection may remain inactive before the switch will close the connection. Entering a value of 0 caused the timeout to be disabled. |
| Baud Rate (bps) | Indicates the default baud rate at which a serial port will attempt to make a connection. |
| Character Size (bits) | Indicates the number of bits in a character, which is always 8. |
| Flow Control | Indicates whether the Hardware Flow Control is enabled or disabled. (Note that the Hardware Flow Control is always disabled.) |
| Stop Bits | Indicates the number of Stop bits per character, which is always 1. |
| Parity | Indicates the parity method used on the Serial Port. (Note that the Parity Method value is always None.) |
Telnet Commands
In this section, the commands used to configure and view Telnet settings are described. The user can use Telnet in order to manage the device from a remote management host.
4-33 ip telnet server enable
This command is used to enable Telnet connections to the system and in order to enable the Telnet Server Admin Mode. This command is also used to open the Telnet listening port.
The no command is used to disable Telnet access to the system and in order to disable the Telnet Server Admin Mode. This command is also used to close the Telnet listening port and to disconnect all open Telnet sessions.
ip telnet server enable
no ip telnet server enable
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
4-34 ip telnet port
The command is used to change the telnet listening port. The no command is used to change the listening port to default port 23.
ip telnet port <1 - 65535>
Parameters
Listening port <1 - 65535>
Default
The default is 23.
Command Mode
Privileged EXEC
4-35 telnet
This command is used to establish a new outbound Telnet connection to a remote host. It is required that the host value be a valid IP address or host name. The allowable values for the port parameter are valid decimal integers ranging from 0 to 65535, with the default value being 23. In the event that the [debug] command is used, the Telnet options that are currently enabled are displayed. The outbound Telnet operational mode is set by the optional line parameter as linemode, where, by default, the operational mode is character mode. The localecho option is used to enable local echo.
telnet ip-address/hostname port [debug] [line] [localecho]
Parameters
| ip-address | Select the IPv4/IPv6 address of the remote host. |
| hostname | Select the hostname of the remote host. |
| port | Select the port parameter (default: 23). |
Default
The default is None.
Command Mode
Privileged EXEC
4-36 telnetcon maxsessions
This command is used to specify the maximum number of simultaneous outbound Telnet sessions. No outbound Telnet session can be established if the value is set to 0.
This command is used to regulate new outbound Telnet connections. In the event that it is enabled, it is possible to establish, new outbound Telnet sessions until the system reaches the maximum number of allowable simultaneous outbound Telnet sessions. Until an established session is ended or an abnormal network error ends the session, it remains active.
The no command is used to set the default value as the maximum number of simultaneous outbound Telnet sessions.
telnetcon maxsessions <0 - 5>
no telnetcon maxsessions
Parameters
None
Default
The default is 5.
Command Mode
Privileged EXEC
4-37 telnetcon timeout
This command is used to set the Telnet session timeout value. The unit of time for the timeout value is minutes.
The no command is used to set default value as the Telnet session timeout value. The unit of time for the timeout value is minutes.
telnetcon timeout 1-160
no telnetcon timeout
Parameters
None
Default
The default is 5.
Command Mode
Privileged EXEC
4-38 show telnet
This command is used to display the current outbound Telnet settings. These settings apply, in other words, to Telnet connections that are initiated from the switch to a remote system.
show telnet
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
Outbound Telnet Login
Indicates the amount of time (in minutes) for which an outbound Telnet
| Timeout | session may remain inactive before being logged off. |
| Maximum Number of Outbound Telnet Sessions | Indicates the allowed number of simultaneous outbound Telnet connections. |
| Allow New Outbound Telnet Sessions | Indicates whether or not outbound Telnet sessions are allowed. |
4-39 show telnetcon
This command is used to display the current inbound Telnet settings. These settings apply, in other words, to Telnet connections initiated from a remote system to the switch.
show telnetcon
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| Remote Connection Login Timeout (minutes) | Indicates the amount of time (in minutes) for which a remote connection session may remain inactive before being logged off. The value may be specified as any number from 1 to160. The factory default value is 5. |
| Maximum Number of Remote Connection Sessions | Indicates the allowed number of simultaneous remote connection sessions allowed. The factory default value is 5. |
| Allow New Telnet Sessions | When this field is set to no, new Telnet sessions will not be allowed. The factory default value is yes. |
| Telnet Sessions Currently Active | Lists the currently active Telnet sessions. |
| Telnet Server Admin Mode | Indicates whether or not the Telnet Admin mode is enabled or disabled. |
| Telnet Server Port | Indicates the configured TCP port number used by the Telnet server for listening (default: 23). |
Secure Shell Commands
The commands the user can use to configure the Secure Shell (SSH) access to the switch are described in this section. The SSH can be used to access the switch from a remote management host.
Note: A maximum of 5 SSH sessions are allowed by the system.
4-40 ip ssh server enable or ip ssh
This command is used to enable SSH access to the system. (The command is the shortened form of the ip ssh server enable command.)
ip ssh server enable or ip ssh
no ip ssh server enable
Parameters
None
Default
The default is Enabled.
Command Mode
Privileged EXEC
4-41 ip ssh port
This command is used to configure the TCP port number upon which requests are listened for by the SSH server. Port numbers from 1-65535 are valid.
The no command is used to restore the SSH server listen port to its factory default value.
ip ssh port 1-65535
no ip ssh port
Parameters
None
Default
22
Command Mode
Privileged EXEC
4-42 ip ssh protocol
Use of this command allows the user to set or remove protocol levels (or versions) for the SSH. It is possible to set either SSH1 (1) or SSH2 (2) or both SSH 1 and SSH 2 (1 and 2).
ip ssh protocol [1] [2]
Parameters
None
Default
1 and 2
Command Mode
Privileged EXEC
4-43 ip ssh server enable
This command is used to enable the IP secure shell server. No new SSH connections will be allowed, but the existing SSH connections will continue to work until timed-out or logged-out.
The no command is used to disable the IP secure shell server.
ip ssh server enable
no ip ssh server enable
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
4-44 sshcon maxsessions
This command is used to specify the maximum number of SSH connection sessions that are allowed to be established. No ssh connection can be established if the value is set to 0. The range is 0 to 5.
The no command is used to set the default value as the maximum number of SSH connection sessions.
sshcon maxsession 0-5
no sshcon maxsession
Parameters
None
Default
5
Command Mode
Privileged EXEC
4-45 sshcon timeout
This command is used to set the value (in minutes) for the SSH connection session timeout value. If a session has not been idle for the entirety of the value set, it remains active. The time set must consist of a decimal value from 1 to 160.
The no command is used to set the default value as the value (in minutes) for the the SSH connection session timeout value.
A change of the timeout value for any active sessions does not go into effect until the session is re-accessed. Also, the new timeout duration will be activated by any keystroke.
sshcon timeout 1-160
no sshcon timeout
Parameters
None
Default
5
Command Mode
Privileged EXEC
4-46 show ip ssh
This command is used to display the ssh settings.
show ip ssh
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| Administrative Mode | Indicates whether the administrative mode of SSH is enabled or disabled. |
| SSH Port | Indicates the SSH port. |
| Protocol Level | Indicates the protocol level, which may have the values of version 1, version 2, or both version 1 and version 2. |
| SSH Sessions Currently Active | Indicates the current number of active SSH sessions. |
| Max SSH Sessions Allowed | Indicates the maximum number of SSH sessions allowed. |
| SSH Timeout | Indicates (in minutes) the SSH timeout value. |
| Keys Present | Indicates the presence or absence of the SSH RSA and DSA key files on the device. |
| Key Generation in Progress | Indicates whether the generation of RSA or DSA key files is currently in progress. |
Management Security Commands
The commands used to generate keys and certificates are described in this section. Such generation can be performed in addition to loading them as before.
4-47 crypto key generate rsa
This command is used to generate an RSA key pair for the SSH. Any existing generated or downloaded RSA key files will be overwritten by the new key files.
The no command is used to delete the RSA key files from the device.
crypto key generate rsa
no crypto key generate rsa
Parameters
None
Default
The default is None.
Command Mode
Global Config
4-48 crypto key generate dsa
This command is used to generate a DSA key pair for the SSH. Any existing generated or downloaded DSA key files will be overwritten by the new key files.
The no command is used to delete the DSA key files from the device.
crypto key generate dsa
no crypto key generate dsa
Parameters
None
Default
The default is None.
Command Mode
Global Config
Access Commands
The commands in this section are used to close remote connections or in order to view information about connections to the system.
4-49 disconnect
The disconnect command is used to close Telnet or SSH sessions. The all term is used to close all active sessions, or the session-id term is used to specify the session ID to close. Use the show loginsession command to view the possible values for session-id.
disconnect {session_id | all}
Parameters
| session_id | Select the session ID (0-65535) to close. |
| all | Select all the remote sessions to close. |
Default
The default is None.
Command Mode
Privileged EXEC
4-50 linuxsh
The linuxsh command can be used to access the Linux shell. The exit command can be used to exit the Linux shell and go back to the D-LINK OS CLI. By default, a given shell session will timeout after five minutes with no activity. This timeout value can be changed, however, by using the command "telnetcon timeout" in the Line Console mode.
linuxsh [ip-port]
Parameters
| ip-port | (Optional) Indicates the number of the IP port upon which the telnet daemon listens for connections. This ip-port number must be an integer from 1 to 65535 (default 2324). |
Default
2324
Command Mode
Privileged EXEC
4-51 show loginsession
This command is used to display the current Telnet, SSH, and serial port connections to the switch Truncated user names will be displayed as a result of using this command.
show loginsession
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| ID | Indicates the login session ID. |
| User Name | Indicates the name of the user logged on to the system. |
| Connection From | Indicates the IP address of the remote client machine or EIA 232 for the serial port connection. |
| Idle Time | Indicates the amount of time the current session has been idle.c |
| Session Time | Indicates the total amount of time the current session has been connected. |
| Session Type | Indicates the type of session, i.e., telnet serial or SSH session. |
4-52 show loginsession long
This command is used to display the full user names of those users currently logged in to the switch.
show loginsession long
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following provides an example of the command.
(Routing)#show login session long
User Name
----
Admin
test1111test1111test1111test1111test1111test1111test1111
AAA Commands
In this section, the commands used to add, manage, and delete system users are described. There are two default users set for the D-LINK OS software: admin and guest. System settings can be viewed and configured by the admin user, while they can only be viewed by the guest user.
Note: The admin user cannot be deleted. Only one user with read/write privileges is allowed. However, up to five read-only users can be configured on the system.
4-53 aaa accounting
This command is used in the Global Config mode in order to create an accounting method list for user EXEC sessions, user executed commands, or DOT1X. This list is identified either by default or by a user-specified list_name. When enabled for a line-mode, accounting records can be sent either at both the beginning and the end (i.e., start-stop) or only at the end (i.e., stop-only). If the user specifies none, then accounting is disabled for the indicated list. If the user specifies TACACS+ as the accounting method, then accounting records are sent to a TACACS+ server. If the user specifies radius as the accounting method, then accounting records are sent to a RADIUS server.
The no command is used to delete the accounting method list.
Note: The following stipulations all apply:
- For each exec and commands type, the maximum number of Accounting Method lists that can be created is five.
- For DOT1X, it is only possible to create the default Accounting Method list. No other lists can be created.
- It is possible to use the same list-name for both the exec and commands accounting types.
- The use of AAA Accounting for commands with RADIUS as the accounting method is not possible.
- For DOT1X accounting, the only supported record type is either Start-stop or None, where the use of Start-stop enables accounting and the use of None disables accounting.
- The only accounting method type supported for DOT1X accounting is RADIUS.
aaa accounting {exec | commands | dot1x} {default | list_name} {start-stop | stop-only | none} method1 [method2...]
no aaa accounting {exec | commands | dot1x} {default | list_name}
Parameters
| exec | Indicates that accounting is provided for user EXEC terminal sessions. |
| commands | Indicates that accounting is provided for all user executed commands. |
| dot1x | Indicates that accounting is provided for DOT1X user commands. |
| default | Indicates that the default list of methods is used for accounting services. |
| list_name | Indicates the string of characters used to name the list of accounting methods. |
| start-stop | Indicates that a start accounting notice is sent at the beginning of a process and that a stop accounting notice is sent at the end of the process. |
| stop-only | Indicates that a stop accounting notice is sent at the end of the requested user process. |
| none | Indicates that accounting services are disabled on this line. |
| method | Indicates that either the TACACS+ or the RADIUS server is used for accounting purposes. |
Default
The default is None.
Command Mode
Global Config
Example
The following is an example of the command.
(Routing) #
(Routing) #configure
(Routing) (config)#aaa accounting commands default stop-only tacacs
(Routing) (config)#aaa accounting exec default start-stop radius
(Routing) (config)#aaa accounting dot1x default start-stop radius
(Routing) (config)#aaa accounting dot1x default none
(Routing) (config)#exit
The administrator can change the record type, or the methods list, for the same set of accounting type and list name without being required to first delete the previous configuration.
(Routing) #
(Routing) #configure
(Routing) (config) #aaa accounting exec ExecList stop-only tacacs
(Routing) (config) #aaa accounting exec ExecList start-stop tacacs
(Routing) (config) #aaa accounting exec ExecList start-stop tacacs radius
In the example above, the first aaa command causes method list for exec sessions with the name ExecList to be created, with the record-type being stop-only and the method being TACACS+. The second command causes the record type to be changed to start-stop from stop-only for the same method list. The third command, used for the same list, causes the methods list to be changed to {tacacs, radius} from {tacacs}.
The following is another example of the command.
(Routing) #
(Routing) #configure
(Routing) (config) #aaa accounting commands userCmdAudit stop-only tacacs radius
(Routing) (config) #no aaa accounting commands userCmdAudit
(Routing) (config) #exit
4-54 aaa authentication commands
aaa authentication enable
This command is used to set authentication to allow the accessing of higher privilege levels. The enableList is the default enable list. This default list is used by the console and contains the method as "enable" followed by none.
For Telnet and SSH users, a different default enable list, enableNetList, is used (that is, instead of enableList). This alternative list is applied for Telnet and SSH by default and contains "enable" followed by the deny methods. In D-LINK OS, the enable password is, by default, not configured. This means that, by default, users of Telnet and SSH will not get access to the Privileged EXEC mode. On the other hand, under the default conditions, a console user will always enter the Privileged EXEC mode without needing to enter the enable password.
When using the enable authentication command, the default and optional list names created with the aaa authentication enable command are used. The user can create a list by entering the aaa authentication enable list-name method command, where the list-name is any string of characters
used to name the list. The list of methods that the authentication algorithm tries is tried in the sequence in which they are identified in the method argument.
If no password is configured, the user manager returns ERROR (not PASS or FAIL) for the enable and line methods, and then moves on to the next configured method in the authentication list. If the method none is used, it indicates that no authentication is needed.
A prompt will only appear asking the user for an enable password if one is required. The authentication methods that follow do not require passwords:
- none
- deny
- enable (When no enable password is configured)
- line (When no line password is configured)
Example
Please consider the examples below.
a. aaa authentication enable default enable none
b. aaa authentication enable default line none
c. aaa authentication enable default enable radius none
d. aaa authentication enable default line tacacs none
Examples a and b do not result in a prompt for a password; however, because they contain the RADIUS and TACACS+ methods, respectively, examples c and d do cause the password prompt to be displayed.
If only enable is included as a login method, and if no enable password is configured, then D-LINK OS does not produce a prompt for a username. In such cases, D-LINK OS only produces a prompt for a password. D-LINK OS supports the configuring of methods after the local method is tried in the authentication and authorization lists. The next configured method is tried only if the user is not present in the local database.
Only if the previous method returns an error are the additional methods of authentication used (that is, they are not used it if simply fails). If the user wishes to ensure that the authentication succeeds even if an error is returned by all the methods, the user should specify none as the final method in the command line.
Note: Requests sent to a RADIUS server by the switch include the username \enabx\, where x indicates the requested privilege level. In order to ensure that enable is authenticated on RADIUS servers, the user should add \enabx\ users to them. By doing so, the login user ID will now be sent to TACACS+ servers for enable authentication.
The no command is used to return to the default configuration.
aaa authentication enable {default | list-name} method1 [method2...]
no aaa authentication enable {default | list-name}
Parameters
| default | Indicates that the listed authentication methods that follow this argument are used as the default list of methods when higher privilege levels are used. |
| list-name | Indicates the string of characters of up to 15 characters in length that is used to name the list of authentication methods that are activated when accessing higher privilege levels. |
| method1...[method2...] | Indicates that at least one of the following methods will be used: |
- deny: This method is used to deny access.
- enable: The enable password is used for authentication.
• line: The line password is used for authentication.
• none: No authentication is used. - radius: The list of all RADIUS servers is used for authentication.
• tacacs: The list of all TACACS+ servers is used for authentication.
Default
This default is default.
Command Mode
Global Config
Example
The following example sets authentication when a user is accessing higher privilege levels.
(switch)(config)# aaa authentication enable default enable
aaa authentication login
This command is used to set authentication at login. The default and optional list names created with the aaa authentication login command can be used with the command initially. The user can create a list by entering the aaa authentication login list-name method command, where the list-name is any string of characters used to name the list. The list of methods that the authentication algorithm tries is tried in the sequence in which they are identified in the method argument.
Each successive method of authentication in the list is only used if the previous method returns an error, not in the event that there is an authentication failure. If the user wishes to ensure that the authentication succeeds even if an error is returned by all the methods, the user should specify none as the final method in the command line. For example, if none is specifically indicated as an authentication method after radius, then no authentication is used in the event that the RADIUS server is down.
The no command is used to return to the default setting.
aaa authentication login {default | list-name} method1 [method2...]
no aaa authentication login {default | list-name}
Parameters
| default | The default Authentication List. For telnet/SSH, the default list is 'networkList'. |
| list-name | Indicates the string of characters of up to 15 characters in length that is used to name the list of authentication methods that are activated when a user logs in. |
| method1...[method2...] | Indicates that at least one of the following methods will be used:enable: The enable password is used for authentication.line: The line password is used for authentication. |
- local: The local username database is used for authentication.
• none: No authentication is used. - radius: The list of all RADIUS servers is used for authentication.
- tacacs: The list of all TACACS+ servers is used for authentication.
Default
- defaultList: This list only contains the method none and is used by the console.
- networkList: This list only contains the method local and is used by telnet and SSH.
Command Mode
Global Config
Example
The following is an example of the command.
(switch)(config)# aaa authentication login default radius local enable none
4-55 authorization commands
This command is used to apply a command authorization method list to an access method (such as console, telnet, or ssh).
The no command is used to remove command authorization from a line config mode.
authorization commands {listname | default}
no authorization commands { listname | default }
Parameters
| listname | Select authorization for all user executed commands. |
| default | Select to provide executed authorization. |
Default
The default is None.
Command Mode
- Line console
- Line telnet
- Line SSH
Example
The following is an example of the command.
(Switching) (config)#line console
(Switching) (config-line)#authorization command list2
(Switching) (config-line)#
(Switching) (config-line)#exit
(Switching) (config)#
4-56 aaa ias-user username
Used for the local authentication of users for network access through the IEEE 802.1X feature, the Internal Authentication Server (IAS) database is a dedicated internal database.
The aaa ias-user username command is used in the Global Config mode to add the user specified therein to the internal user database. This command also causes the mode to be changed to the AAA User Config mode.
The no command is used to remove the user specified therein from the internal database.
aaa ias-user username user
no aaa ias-user username user
Parameters
| user | Select an existing Internal Authentication Server user name. |
Default
The default is None.
Command Mode
Global Config
Example
The following is an example of the command.
(Routing) #
(Routing) #configure
(Routing) (config) #aaa ias-user username client-1
(Routing) (config-aaa-ias-user) #exit
(Routing) (config) #no aaa ias-user username client-1
(Routing) (config) #
4-57 aaa session-id
This command is used in the Global Config mode in order to specify whether or not the same session-id is to be used within a session for Authentication, Authorization, and Accounting service type.
The no command is used in the Global Config mode in order to reset the aaa session-id behavior to the default.
aaa session-id [command | unique]
no aaa session-id [command | unique]
Parameters
| common | (Optional) Indicates that the same session-id is used for all AAA Service types. |
| unique | (Optional) Indicates that a unique session-id is used for all AAA Service types. |
Default
This default is common.
Command Mode
Global Config
4-58 password (AAA IAS User configuration)
This command is used to specify a password for a given user in the IAS database. The optional parameter encrypted is provided in order to indicate that the password assigned to the command is already pre encrypted.
The no command is used to clear the password for a given user.
password [encrypted]
no password
Parameters
| password | Indicates the password for this level (8-64 characters in length). |
| encrypted | (Optional) Indicates that the encrypted password is to be entered, with that password being copied from another switch configuration. |
Default
The default is None.
Command Mode
AAA IAS User Config
Example
The following is an example of the command.
(Routing) #
(Routing) #configure
(Routing) (config) #aaa ias-user username client-1
(Routing) (config-aaa-ias-User) #password client123
(Routing) (config-aaa-ias-User) #no password
The following is another example of the command in which a MAC Authentication Bypass (MAB) client is added to the Internal user database.
(Routing) #
(Routing) #configure
(Routing) (config) #aaa ias-user username 1f3ccb1157
(Routing) (config-aaa-ias-User) #password 1f3ccb1157
(Routing) (config-aaa-ias-User) #exit
(Routing) (config) #
4-59 clear aaa ias-users
This command is used to remove all users from the IAS database.
clear aaa ias-users
Parameters
None
Default
The default is None.
Command Mode
Privileged Config
Example
The following is an example of the command.
(Routing) #
(Routing)#clear aaa ias-users
(Routing)#
4-60 show aaa ias-users
This command is used to display the configured IAS users and their attributes. The configured passwords are not shown within the show commands output.
show aaa ias-users
Parameters
None
Default
The default is None.
Command Mode
Privileged Config
Example
The following is an example of the command.
(Routing)#
(Routing)#show aaa ias-users
UserName
----
Client-1
Client-2
The IAS configuration commands shown in the output of the show running config command are shown in the example below. The passwords shown in the output of the command are always encrypted.
aaa ias-user username client-1
password a45c74Fdf56a558a2b5cf95573cd633bac2c6c598d54497ad4c46194918F2c encrypted exit
4-61 accounting
This command is used in a Line Configuration mode in order to apply the accounting method list to a line config (console telnet/ssh).
The no command is used to remove accounting from a Line Configuration mode.
accounting {exec | commands} {default | listname}
no accounting {exec | commands} {default | listname}
Parameters
| exec | Indicates that accounting will be applied for an EXEC session. |
| commands | Indicates that accounting will be applied for each command execution attempt. In the event that a user is enabling accounting for the exec mode for the current configuration type, then the user will be logged out. |
| default | Indicates the default Accounting List. |
| listname | Indicates the string of characters of up to 15 characters in length that is used to name the list. |
Default
The default is None.
Command Mode
Line Config
Example
The following is an example of the command.
(Routing) #
(Routing) #configure
(Routing) (Config) #line telnet
(Routing) (Config-telnet) #accounting exec default
(Routing) (Config-telnet) #exit
4-62 show accounting
This command is used to display the ordered methods for accounting lists.
show accounting
Parameters
None
Default
The default is None.
Command Mode
Privileged Config
Example
The following is an example of a CLI display output for the command.
(Routing)#show accounting
Number of Accounting Notifications sent at beginning of an EXEC session: 0
Errors when sending Accounting Notifications beginning of an EXEC session: 0
Number of Accounting Notifications at end of an EXEC session: 0
Errors when sending Accounting Notifications at end of an EXEC session: 0
Number of Accounting Notifications sent at beginning of a command execution: 0
Errors when sending Accounting Notifications at beginning of a command execution: 0
Number of Accounting Notifications sent at end of a command execution: 0
Errors when sending Accounting Notifications at end of a command execution: 0
4-63 show accounting methods
This command is used to display the configured accounting method lists.
show accounting methods
Parameters
None
Default
The default is None.
Command Mode
Privileged Config
Example
The following is an example of a CLI display output for the command.
(Routing)#show accounting methods
Acct Type Method Name Record Type Method Type
---- ---- ---- ----
Exec dfltExecList start-stop TACACS
Commands dfltCmdsList stop-only TACACS
Commands UserCmdAudit start-stop TACACS
DOT1X dfltDot1xList start-stop radius
Line EXEC Method List Command Method List
---- ---- ----
Console dfltExecList dfltCmdsList
Telnet dfltExecList dfltCmdsList
SSH dfltExecList UserCmdAudit
4-64 show authorization methods
This command is used to display the configured authorization method lists.
show authorization methods
Parameters
None
Default
The default is None.
Command Mode
Privileged Config
Example
The following is an example of a CLI display output for the command.
(Routing)#show authorization methods
Command Authorization Method List
dfltCmdAuthList : none
noCmdAuthList : none
Line Command Method List
Console dfltCmdAuthList
Telnet dfltCmdAuthList
SSH dfltCmdAuthList
Exec Authorization Method List
dfltExecAuthList : none
noExecAuthList : none
Line Exec Method List
Console dfltExecAuthList
Telnet dfltExecAuthList
SSH dfltExecAuthList
4-65 login authentication
This command is used to specify the login authentication method list for a line (that is, console, telnet, or SSH). Use of the default configuration means that the default set with the aaa authentication login command is used.
The no command is used to return to the default specified by the authentication login command.
login authentication {default | list-name}
no login authentication {default | list-name}
Parameters
| default | Indicates that the default list created with the aaa authentication login command is used. |
| list-name | Indicates that the indicated list created with the aaa authentication login command is used. |
Default
The default is None.
Command Mode
Line Config
Example
The following is an example specifying the default authentication method for a console.
(Routing) (Config)#line console
(Routing) (Config-line)#login authentication default
User Account and Password Commands
4-66 username (Global Config)
The username command is used in the Global Config mode in order to add a new user to the local user database. The privilege level, by default, is 1. By using the encrypted keyword, an administrator is allowed to transfer local user passwords between devices without being required to know the passwords. When the password parameter is used in conjunction with the encrypted parameter, the length of the password must be exactly 128 hexadecimal characters. In the event that the password strength feature is enabled, a check for password strength is conducted by the command, after which it returns an appropriate error indicator if the password fails to meet the password strength criteria. Use of the optional parameter override-complexity-check causes the password strength validation to be disabled.
The no command is used to return to the default specified by authentication login command.
username name {password password [encrypted [override-complexity-check] | level level [encrypted [override-complexity-check]] | override-complexity-check]} | {level level [override-complexity-check] password}
no username name
Parameters
| name | Indicates the name of the user, which must be 1-64 characters in length. |
| password password | Indicates the authentication password for the user, which typically must be 8-64 characters in length. However, this value can be zero in the event that the no password min-length command has been executed. Various special characters may be included in the password, including ! # $ % & ‘ ( ) * + , - / ; <= > @ [ \ ] ^ _ ` { | } ~. |
| level level | Indicates the user level, which must be anywhere from 0-15. A level 15 user may assign a level 0 value to another user in order to suspend that user's access. Otherwise, an access level of 1 can be entered for a non-privileged user (switch > prompt), while an access level of 15 can be entered to provide the highest level of privilege (switch # prompt). If the level is not specified in instances where it is optional, then the privilege level is set at 1. |
| encrypted | (Optional) Indicates the encrypted password entered, with that password being copied from another switch configuration. |
| override-complexity-check | (Optional) Indicates that the password strength validation is disabled. |
Default
The default is None.
Command Mode
Global Config
Example
In the following example, the user bob is configured with the password xxxyyymmmm and user level 15.
(Routing) (config)#username bob password xxxyyymmmm level 15
In the following example, the user test is configured with the password testPassword and is assigned a user level of 1. A validation check of the password strength is not conducted.
(Routing)(config)#username test password testPassword level 1 override-complexity-check
The following is a third example.
(Routing)(config)#username test password testtest
The following is a fourth example.
(Routing) (config)#username test password
e8d63677741431114f9e39a853a15e8fd35ad059e2elb49816c243d7e08152b052eafbf23b528d348cdbal
b1b7ab91be842278e5e970dbfc62d16dcd13c0b864 level 1 encrypted override-complexity-check
(Routing) (config)#username test level 15 password
Enter new password: *****
Confirm new password: *****
The following is a fifth example.
(Routing) (config)#username test level 15 override-complexity-check password
Enter new password: *****
Confirm new password: *****
4-67 username name nopassword
This command is used to remove an existing user's password (NULL password).
username name nopassword [level level]
Parameters
| name | Indicates the name of the user, which must be 1-32 characters in length. |
| password | Indicates the authentication password for the user, which must be 8-64 characters in length. |
| level level | Indicates the user level. A level 15 user may assign a level 0 value to another user in order to suspend that user's access. The range of user levels is 0-15. |
Default
The default is None.
Command Mode
Global Config
4-68 username unlock
This command is used to allow the unlocking of a locked user account. Only a Level 15 user can reactivate a locked user account.
username name unlock
Parameters
None
Default
The default is None.
Command Mode
Global Config
4-69 show users
This command is used to display the names and setting of the configured users. Truncated user names will be displayed by the show users command, while the show users long command can be used to display the complete user names. Only users with Level 15 privileges can use the show users command. Furthermore, the SNMPv3 fields will not be displayed unless SNMP is available on the system.
show users
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| User Name | Indicates the name the given user enters in order to login using either the serial port or Telnet. |
| User Access Mode | Indicates whether the user is only able to view the parameters on the switch (Level 1) or if the user can also change them (Level 15). By factory default, a “guest” has only Level 1 access while the "admin" user has Level 15 access. |
4-70 show users long
This command is used to display the complete list of usernames configured on the switch.
show users long
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#show users long
User Name
admin
guest
test1111test1111test1111test1111
4-71 show users accounts
This command is used to display the status of a local user with respect to user account lockout and the age of the user's password. The command causes truncated user names to be displayed, whereas the show users long command can be used to display complete usernames.
show users accounts [detail]
Parameters
| detail | (Optional) Display the details of local database users accounts. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the local user database information that is displayed.
(Routing)#show users accounts
User Name Privilege Password Aging Password Expiry Date Lockout
Admin 15 --- --- False
Guest 1 --- --- False
(Routing)#show users accounts detail
UserName......admin
Privilege......15
Password Aging......---
Password Expiry Date......---
Lockout......False
Override Complexity Check......Disable
Password Strength......---
Display Parameters
| User Name | Indicates the local user account's user name. |
| Access Level | Indicates the user's access level, with 1 indicating a non-privileged user (switch> prompt) and 15 indicating the highest level of privilege (switch# prompt). |
| Password Aging | Indicates the time (in days) until the password configured for the user expires. |
| Password Expiry Date | Indicates the current password's expiration date in date format. |
| Lockout | Indicates whether or not the user account is locked out (true or false). |
In the event that the “detail” keyword is included, the following additional fields will also be displayed.
| Password Override Complexity Check | Indicates the user's password override complexity check status. By default, the check is disabled. |
| Password Strength | Indicates the strength (strong or weak) of the user password. Only when the Password Strength feature is enabled is this field displayed. |
4-72 show users login-history
This command is used to display information regarding the login history of the various users.
show users login-history [name] [long]
Parameters
| name | (Optional) Indicates the name of the user, which must be 1-20 characters in length. |
| long | (Optional) Indicates the full description of the name string. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of user login history outputs.
(Routing)#show users login-history
Login Time Username Protocol Location
Jan 19 2005 08:23:48 Bob Serial
Jan 19 2005 08:42:31 John SSH 172.16.0.1
Jan 19 2005 08:49:52 Betty Telnet 172.16.1.7
4-73 password (Line Configuration)
The password command is used in the Line Configuration mode to specify a password on a line. By default, no password is specified.
The no command is used to remove the password on a line.
password [password]
no password
Parameters
| password | (Optional) Indicates the password for the given level, which must be 8-64 characters in length. |
Default
The default is None.
Command Mode
Line Config
Example
In the following example, a password mcmxxyyy is specified on a line.
(Routing)(config-line)#password mcmxxyyy
The following is a second example of the command.
(Routing) (config-line)#password testtest
(Routing) (config-line)#password
e8d63677741431114f9e39a853a15e8fd35ad059e2e1b49816c243d7e08152b052eafbf23b528d348cdbal
b1b7ab91be842278e5e970dbfc62d16dcd13c0b864 encrypted
(Routing) (config-line)#password
Enter new password: *****
Confirm new password: *****
4-74 password (User EXEC)
This command is used to enable a user to change the password for himself or herself only. The command should be utilized once the existing password has grown too old. After using the command, the user receives a prompt to enter the old password and the new password intended to replace it.
password
Parameters
None
Default
The default is None.
Command Mode
User EXEC
Example
The example that follows shows the prompt sequence provided when executing the password command.
(Routing)>password
Enter old password: *****
Enter new password: *****
Confirm new password: *****
4-75 enable password
The enable password configuration command is used to set a local password in order to control access to the privileged EXEC mode.
The no command is used to remove the password requirement.
enable password
no enable password
Parameters
| password | Indicates the password string, which must be 8-64 characters in length. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC | |
| Example | |
| The following is an example of the command. | |
| (Routing)#enable password testtest | |
| (Routing)#enable password | |
| e8d63677741431114f9e39a853a15e8fd35ad059e2e1b49816c243d7e08152b052eafbf23b528d348cdbal | |
| b1b7ab91be842278e5e970dbfc62d16dcd13c0b864 encrypted | |
| (Routing)#enable password | |
| Enter old password:******** | |
| Enter new password:******** | |
| Confirm new password:******** | |
4-76 passwords min-length
This command is used to enforce a minimum password length for local users, with the value used also applying to the enable password. The range of valid values is 0-64.
The no command is used to reset the minimum password length to the default value.
passwords min-length 0-64
no passwords min-length
Parameters
None
Default
The default is 8.
Command Mode
Global Config
4-77 passwords history
This command is used to specify the number of previous passwords that are to be stored for each user account. When the password of a local user is changed, the user will be unable to re-use any previously used password stored in the password history. This ensures that passwords are not re-used to frequently by users. The range of valid values is 0-10.
The no command is used to reset the password history to the default value.
passwords history 0-10
no passwords history
Parameters
None
Default
The default is 0.
Command Mode
Global Config
4-78 passwords aging
This command is used to track the aging (in days) of local users' passwords. When the password of user expires, the user will then be given a prompt to change the password before logging in again. The valid range of values is 1-365. The default value is 0, which means that password aging is not tracked.
The no command is used to reset the password aging to the default value.
passwords aging 1-365
no passwords aging
Parameters
None
Default
The default is 0.
Command Mode
Global Config
4-79 passwords lock-out
This command is used to improve the security of the switch by locking user accounts after a certain number of failed logins due to the entry of incorrect passwords. When a given lockout count is configured, a user must enter the correct password within that count in order to log in. Otherwise, further switch access will be denied to the user. A locked user account can only be reactivated by a user with Level 15 access. Password lockouts do not apply to logins attempts made from the serial console. The valid range of values for attempts is 1-5. The default value is 0, which means that no lockout count is enforced.
The no command is used to reset the password lockout count to the default value.
passwords lock-out 1-5
no passwords lock-out
Parameters
None
Default
The default is 0.
Command Mode
Global Config
4-80 passwords strength-check
This command is used to enable the password strength feature, which is used to check the strength of a given password during its configuration.
The no command is used set the password strength checking to the default value.
passwords strength-check
no passwords strength-check
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
4-81 passwords strength maximum consecutive-characters
This command is used to specify the maximum number of consecutive characters to be used to ensure password strength. The valid range of values is 0-15, with the default value being 0. Using the minimum value of 0 means that there is no restriction placed on that set of characters.
passwords strength maximum consecutive-characters 0-15
Parameters
None
Default
The default is 0.
Command Mode
Global Config
4-82 passwords strength maximum repeated-characters
This command is used to specify the maximum number of repeated characters to be used to ensure password strength. The valid range of values is 0-15, with the default value being 0. Using the minimum value of 0 means that there is no restriction placed on that set of characters.
passwords strength maximum repeated -characters 0-15
Parameters
None
Default
The default is 0.
Command Mode
Global Config
4-83 passwords strength minimum uppercase-letters
This command is used to specify the minimum number of uppercase letters that a password must contain. The valid range of values is 0-16, with the default value being 2. Using the minimum value of 0 designates no restriction placed on that set of characters.
The no command is used to reset the minimum number of uppercase letters required in a password to the default value.
passwords strength minimum uppercase-letters 0-16
no passwords strength minimum uppercase-letters
Parameters
None
Default
The default is 2
Command Mode
Global Config
4-84 passwords strength minimum lowercase-letters
This command is used to specify the minimum number of lowercase letters that a password must contain. The valid range of values is 0-16, with the default value being 2. Using the minimum value of 0 means that there is no restriction placed on that set of characters.
The no command is used to reset the minimum number of lowercase letters required in a password to the default value.
passwords strength minimum lowercase-letters 0-16
no passwords strength minimum lowercase-letters
Parameters
None
Default
The default is 2.
Command Mode
Global Config
4-85 passwords strength minimum numeric-characters
This command is used to specify the minimum number of numeric characters that a password must contain. The valid range of values is 0-16, with the default value being 2. Using the minimum value of 0 means that there is no restriction placed on that set of characters.
The no command is used to reset the minimum number of numeric characters required in a password to the default value.
passwords strength minimum numeric-characters 0-16
no passwords strength minimum numeric-characters
Parameters
None
Default
The default is 2.
Command Mode
Global Config
4-86 passwords strength minimum special-characters
This command is used to specify the minimum number of special characters that a password must contain. The valid range of values is 0-16, with the default value being 2. Using the minimum value of 0 means that there is no restriction placed on that set of characters.
The no command is used to reset the minimum number of special characters required in a password to the default value.
passwords strength minimum special-characters 0-16
no passwords strength minimum special-characters
Parameters
None
Default
The default is 2.
Command Mode
Global Config
4-87 passwords strength minimum character-classes
This command is used to specify the minimum number of characters classes that a password must contain. The classes of characters are uppercase letters, lowercase letters, special characters, and numeric characters. The valid range of value is 0-4, with the default value being 4.
The no command is used to reset the minimum number of classes of characters required in a password to the default value.
passwords strength minimum character-classes 0-4
no passwords strength minimum character-classes
Parameters
None
Default
The default is 4.
Command Mode
Global Config
4-88 passwords strength exclude-keyword
This command is used when configuring the password to exclude the specified keyword. It will ensure that the keyword is not accepted as a substring by the password in any form (for example, in between the string, case in-sensitive, or in reverse). A maximum of up to 3 such keywords can be configured by the user.
The no command is used to reset the restriction for the keyword specified or for all the keywords thus configured.
passwords strength exclude-keyword [keyword]
no passwords strength exclude-keyword [keyword]
Parameters
| keyword | (Optional)Select the keyword to exclude, range: 2 – 64. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
4-89 show passwords configuration
This command is used to show the configured password management settings.
show passwords configuration
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#show passwords configuration
Passwords Configuration
----
Minimum Password Length..... 1
Password Aging (days)..... 0
Password History..... 0
Lockout Attempts..... 0
Password Strength Check..... Disable
Minimum Password Uppercase Letters..... 5
Minimum Password Lowercase Letters..... 5
Minimum Password Numeric Characters..... 2
Minimum Password Special Characters..... 2
Maximum Password Repeated Characters..... 1
Maximum Password Consecutive Characters..... 0
Minimum Password Character Classes..... 4
Password Exclude Keywords..... <none>
Display Parameters
| Minimum Password Length | Indicates the minimum number of characters that are required when changing passwords. |
| Password Aging | Indicates the period of time (in days) for which a password will be valid. |
| Password History | Indicates the number of passwords to be stored in order to prevent reuse. |
| Lockout Attempts | Indicates the number of failed password login attempts allowed before lockout. |
| Password Strength Check | Indicates whether or not the function to comply with a strong password configuration is enabled or not. |
| Minimum Password Uppercase Letters | Indicates the minimum number of uppercase characters required when changing passwords. |
| Minimum Password Lowercase Letters | Indicates the minimum number of lowercase characters required when changing passwords. |
| Minimum Password Numeric Characters | Indicates the minimum number of numeric characters required when changing passwords. |
| Minimum Password Special Characters | Indicates the minimum number of special characters required when changing passwords. |
| Maximum Password Repeated Characters | Indicates the maximum number of repeated characters that a password can contain when configuring passwords. |
| Maximum Password Consecutive Characters | Indicates the maximum number of allowed consecutive characters when changing passwords. |
| Minimum Password Character Classes | Indicates the minimum number of character classes (lowercase, uppercase, numeric and special) that are required when configuring passwords. |
| Password Exclude-Keywords | Indicates the set of keywords that are to be excluded from the configured password in the event that strength checking is enabled. |
4-90 show passwords result
This command is used to show information about the last password setting attempt.
show passwords result
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)# show passwords result
Last User whose password is set .... guest
Password strength check .... Disable
Last Password Set Result:
Password Successfully Configured for User 'guest'.
Display Parameters
| Last User Whose Password Is Set | Indicates the name of the user whose password was set most recently. |
| Password Strength Check | Indicates whether or not password strength checking is enabled. |
| Last Password Set Result | Indicates whether or not the preceding attempt to set a password was successful. In the event that the attempt failed, the reason that it failed is included. |
SNMP Commands
In this section, the commands used in order to configure the Simple Network Management Protocol (SNMP) on the switch are described. The user can configure the switch so that it acts as an SNMP agent, which in turn allows it to communicate with SNMP managers on your network.
4-91 snmp-server
This command is used to set the name as well as the physical location of the switch, in addition to the organization responsible for the network. The parameters name, Loc, and con may be a maximum of 255 characters in length.
Note: If you wish to clear the snmp-server, then simply enter an empty string in quotes. For example, entering snmp-server {sysname " "} will clear the system name.
snmp-server {community community | community-group community-group | contact con | enable traps {bgp|linkmode|multiusers|stpmode|violation} | engineID {engine-id |default} | filter filter-name | group group-name | host ipaddr ipv6addr hostname | location Loc | sysname name | user user | v3-host v3-host | view view}
Parameters
| community community | Select the SNMP community string (1-20 characters). |
| community-group community-group | Select the group name to use when mapping an internal security name for SNMP v1 and SNMP v2. |
| contact con | Select a system contact up to 255 characters in length. |
| enable traps | Select to enable SNMP Traps. |
| engineID engine-id | Select to specify the SNMP engine ID on a local drive. |
| filter filter-name | Select a name to specify a filter entry. |
| group group-name | Select a group name to configure a new SNMP group. |
| host ipaddr ipv6addr hostname | Select a new recipient by entering the IPv4 or IPv6 address/hostname of the SNMP notification host. |
| location Loc | Select a system location up to 255 characters in length. |
| sysname sysname | Select a system name up to 255 characters in length. |
| user user | Select a new SNMP v3 user on the host that can connect to the agent (up to 30 characters). |
| V3-host v3-host | Select a group name (up to 30 characters) to specify the recipient of the SNMP notification. |
| view-name view | Select a label to display the record, create or update. |
Default
The default is None.
Command Mode
Global Config
4-92 snmp-server community
This command is used to add (name) a new SNMP community, and can also be used (optionally) to set the access mode, to set the allowed IP address, and to create a view for the community.
The no command is used to remove the community name in question from the table. That is, the name specified indicates the community name that is to be deleted.
Note: The community names listed in the SNMP Community Table must all be unique. As such when multiple entries are made using the same community name, the first of those entries is kept and processed, while all the duplicate entries are ignored.
snmp-server community community-name [{ro | rw | su}] [ipaddress ip-address] [view view-name] no snmp-server community community-name
Parameters
| community-name | Indicates a community name associated with the switch, as well as with the set of SNMP managers that manage it at a specified level of privilege. The length of a given community-name may be a maximum of 16 case-sensitive characters. |
| ro | rw | su | (Optional) Indicates the access mode for the SNMP community, which can be public (Read-Only/RO), private (Read-Write/RW), or Super User (SU). |
| ipaddress ip-address | (Optional) Indicates the associated community SNMP packet sending address. It is used in conjunction with the client IP mask value in order to specify the range of IP addresses from which the SNMP clients may utilize that community so as to access the device. Setting a value of 0.0.0.0 will allow access from any IP address. Otherwise, this value is added with the mask in order to specify the range of allowed client IP addresses. |
| view view-name | (Optional) Indicates the name of the view to be created or updated. |
Default
The default is as follows:
- public – this community has read-only permissions, a view name of Default, and provides access via all IP addresses
- private – this community has read/write permissions, a view name of Default, and provides access via all IP addresses
Command Mode
Global Config
4-93 snmp-server community-group
This command is used to configure a community access string such that access via the SNMPv1 and SNMPv2c protocols is permitted.
SNMP-server community-group community-string group-name [ipaddress ipaddress]
Parameters
| community-string | Indicates the community that is to be created and then associated with the group. The allowed range of characters is 1 to 20. |
| group-name | Indicates the name of the group with which the community is associated. The allowed range of characters is 1 to 30 characters. |
| ipaddress ipaddress | (Optional) Indicates the IPv4 address from which the community may be accessed. |
Default
The default is None.
Command Mode
Global Config
4-94 snmp-server enable traps violation
This command is interpreted by the Port MAC locking component, which configures a violation action in order to send an SNMP trap with a default trap frequency of 30 seconds. Using the Global command causes the trap violation mode to be configured across all interfaces valid for port-security. There is no global trap mode as such.
The no command is used to prevent the sending of any new violation traps.
Note: Please see "IGMP Snooping Configuration Commands" for information regarding other port security commands.
snmp-server enable traps violation
no snmp-server enable traps violation
Parameters
None
Default
The default is Disabled.
Command Mode
- Global Config
- Interface Config
4-95 snmp-server enable traps
This command is used to enable the switch to send out the traps for events.
The no command is used to disable the traps.
snmp-server enable traps?
no snmp-server enable traps
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
Example
The following is an example of the command.
(Routing) (Config) #snmp-server enable traps?
<cr>.....Press enter to execute the command.
bgp.....Press enter to execute the command.
linkmode.....Press enter to execute the command.
multiusers.....Press enter to execute the command.
stpmod.....Press enter to execute the command.
violatio.....Enable/Disable Port Security SNMP violation traps on all interfaces.
4-96 snmp-server enable traps bgp
When the bgp option is used for the "snmp-server enable traps" command described above, it enables the two traps defined in the standard BGP MIB, RFC 4273. In that case, then in the event that an adjacency reaches the ESTABLISHED state or in the event that a backward adjacency state transition occurs, a trap will be sent.
snmp-server enable traps bgp state-changes limited
Parameters
| state-changes limited | Indicates that the standard traps defined in RFC 4273 are enabled. |
| Default | |
| The default is DHCP. | |
| Command Mode | |
| Global Config |
4-97 snmp-server enable traps linkmode
This command is used to enable Link Up/Down traps for the entire switch. In the event that they are enabled, link traps are only sent in the event that the Link Trap flag setting for the port is also enabled.
The no command is used to disable Link Up/Down traps for the entire switch.
snmp-server enable traps linkmode no snmp-server enable traps linkmode
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
4-98 snmp-server enable traps multiusers
This command is used to enable Multiple User traps. In the event that the traps are enabled, a Multiple User Trap is sent whenever a user logs in to the terminal interface (EIA 232 or Telnet) and an existing terminal interface session is already ongoing.
The no command is used to disable Multiple User traps.
snmp-server enable traps multiusers no snmp-server enable traps multiusers
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
4-99 snmp-server enable traps stpmode
This command is used to enable the sending of both new root traps and topology change notification traps.
The no command is used to disable the sending of both new root traps and topology change notification traps.
snmp-server enable traps stpmode no snmp-server enable traps stpmode
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
4-100 snmp-server engineID local
This command is used to configure the SNMP engine ID on a local device.
The no command is used to remove the specified engine ID.
CAUTION: If the engine ID is changed, all the SNMP configurations that exist on the box will be invalidated.
snmp-server engineID local {engine-id | default}
no snmp-server engineID local
Parameters
| engine-id | A hexadecimal string identifying the engine-id. The allowed range of characters: even hexadecimal numbers from 6 to 32. |
| Default | This parameter sets the engine-id to the default string, which is based on the device MAC address. |
Default
The engineID is configured by default according to the device MAC address.
Command Mode
Global Config
4-101 snmp-server filter
This command is used to create a filter entry that can then be used to limit which traps will be sent to a host.
The no command is used to remove the specified filter.
snmp-server filter filtername oid-tree {included | excluded}
no snmp-server filter
Parameters
| filtername | Indicates the label for the filter that is being created. The allowed range of characters is 1 to 30 characters. |
| oid-tree | Indicates the OID subtree that is to be included or excluded from the filter. Subtrees may be specified numerically (1.3.6.2.4) or via keywords (system), while asterisks can be utilized to specify a subtree in an oid-tree family (1.3.*.4). |
| included | Indicates that the tree in question is included in the filter. |
| excluded | Indicates that the tree in question is excluded from the filter. |
Default
By defaults, no filters are created.
Command Mode
Global Config
4-102 snmp-server group
This command is used to create an SNMP access group.
The no command is used to remove the specified group.
snmp-server group group-name {v1 | v2c | v3 {noauth | auth | priv}} [context context-name] [read read-view] [write write-view] [notify notify-view]
no snmp-server group group-name {v1 | v2c | v3 {noauth | auth | priv}} [context context-name]
Parameters
| group-name | Indicates the group name that is used when configuring communities or users. The allowed range of characters is 1 to 30 characters. |
| v1 | Indicates that the group in question can only gain access via SNMPv1. |
| v2c | Indicates that the group in question can only gain access via SNMPv2c. |
| v3 | Indicates that the group in question can only gain access via SNMPv3. |
| noauth | Indicates that the group in question can gain access only when not using Authentication or Encryption. This is only applicable if SNMPv3 is selected. |
| auth | Indicates that the group in question can gain access only when using Authentication (but not Encryption). Applicable only if SNMPv3 is selected. |
| priv | Indicates that the group in question can gain access only when using both Authentication and Encryption. This is only applicable if SNMPv3 is selected. |
| context context-name | (Optional) Indicates the SNMPv3 context used during access. This is only applicable if SNMPv3 is selected. |
| read read-view | (Optional) Indicates the view that the group in question will use during GET requests. The allowed range of characters is 1 to 30 characters. |
| write write-view | (Optional) Indicates the view that the group in question will use during SET requests. The allowed range of characters is 1 to 30 characters. |
| notify notify-view | (Optional) Indicates the view that the group in question will use when sending out traps. The allowed range of characters is 1 to 30 characters. |
Default
Using the default views, generic groups are created for all versions and privileges.
Command Mode
Global Config
4-103 snmp-server host
This command is used to configure the traps to be sent to the specified host.
The no command is used to remove the specified host entry.
snmp-server host host-addr community-string [informs [timeout seconds] [retries retries] version {1 | 2c}] [udp-port port] [filter filter-name]
no snmp-server host host-addr {traps | informs} version {1 | 2c}
Parameters
| host-addr | Indicates the IPv4 or IPv6 address of the host to which the trap or inform notification is sent. |
| community-string | Indicates the community string that is sent as part of the notification. The allowable range of characters is 1 to 20 characters. |
| version 1 | Indicates that SNMPv1 traps will be sent. This option is unavailable in the event that informs is selected. |
| version 2c | Indicates that SNMPv2c traps will be sent. This option is unavailable in the event that informs is selected. By default, this option is selected. |
| traps | Indicates that SNMP traps will be sent to the host. By default, this option is selected. |
| informs | (Optional) Indicates that SNMPv2 inform notifications will be sent to the host. |
| timeout seconds | (Optional) Indicates the number of seconds that the system will wait for an acknowledgment before the inform notification is resent. The default value for this option is 15 seconds. The allowable range of time is 1 to 300 seconds. |
| retries retries | (Optional) Indicates the number of times that an inform notification will be resent. The default value for this option is 3 attempts. The allowed range of retries is 0 to 255 retries. |
| udp-port port | (Optional) Indicates the SNMP trap receiver port. Port 162 is set for this purpose by default. |
| filter filter-name | (Optional) Indicates the filter name that is to be associated with the host in question. Filters can be utilized to specify which traps will be sent to the host. The allowed range of characters is 1 to 30 characters. |
Default
The default is as follows: hosts are not configured.
Command Mode
Global Config
4-104 snmp-server port
This command is used to configure the UDP port number upon which requests are listened for by the SNMP server.
The no command is used to restore the specified SNMP server listen port to its factory default value.
snmp-server port 1025-65535
no snmp-server port
Parameters
None
Default
The default is 161.
Command Mode
Privileged EXEC
4-105 snmp-server trapsend
This command is used to set the UDP port that the SNMP server sends traps too.
The no command is used to send traps to the default UDP port.
snmp-server trapsend portid
no snmp-server trapsend portid
Parameters
None
Default
The default is 50505.
Command Mode
Global Config
4-106 snmp-server user
This command is used to create an SNMPv3 user to whom access to the system is granted.
The no command is used to remove the specified SNMPv3 user.
snmp-server user username groupname [remote engineid-string] [{auth-md5 password | auth-sha password | auth-md5-key md5-key | auth-sha-key sha-key} [priv-des password | priv-des-key des-key]
no snmp-server user username
Parameters
| username | Indicates the username under which the SNMPv3 user will connect to the switch. The allowed range of characters is 1 to 30 characters. |
| groupname | Indicates the name of the group to which the user belongs. The allowed range of characters is 1 to 30 characters. |
| remote engineid-string | (Optional) Indicates the engine-id of the remote management station from which the user in question will be connecting. The allowed range of characters is 5 to 32 characters. |
| auth-md5 password | auth-sha password | (Optional) Indicate the password that the user in question will use for the authentication or encryption mechanism. The allowed range of characters is 1 to 32 characters. |
| auth-md5-key md5-key | (Optional) Indicates a pregenerated MD5 authentication key. The length of this key will be 32 characters. |
| auth-sha-key sha-key | (Optional) Indicates a pregenerated SHA authentication key. The length of this key will be 48 characters |
| priv-des password | (Optional) Indicates the user password for authentication or encryption. The range is 1 to 32 characters. |
| priv-des-key des-key | (Optional) Indicates a pregenerated DES encryption key. The length of this key will be 32 characters if MD5 is selected, whereas it will be 48 characters if SHA is selected. |
Default
The default is as follows: No users are created.
Command Mode
Global Config
4-107 snmp-server view
This command is used to create or modify an existing view entry that is being utilized by groups to determine which objects a community or user is granted access to.
The no command is used to remove the specified view.
snmp-server view viewname [oid-tree] {included | excluded}
no snmp-server view viewname [oid-tree]
Parameters
| viewname | Parameter (range: 1 to 30 characters) label for the view being created. |
| oid-tree | (Optional) Indicates the OID subtree to be included or excluded from the view, specified numerically (1.3.6.2.4) or via keywords (system). |
| included | Indicates the included tree. |
| excluded | Indicates the excluded tree. |
| Default | |
| The default is as follows: views are created to grant access to the default group. | |
| Command Mode | |
| Global Config | |
4-108 snmp-server v3-host
This command is used to configure the traps to be sent to the specified host.
snmp-server v3-host host-addr username {traps | informs [timeout seconds] [retries retries]} {auth | noauth | priv] [udpport port] [filter filtername]}
Parameters
| host-addr | Indicates the IPv4 or IPv6 address of the host to which the trap or inform notification is to be sent. |
| username | Indicates the user (characters: 1 to 30) utilized to send a trap or inform notification. The user in question must be associated with a group that supports the access method and version in question. |
| traps | Indicates that SNMP traps will be sent to the host. This option constitutes the default option. |
| informs | Indicates that SNMP inform notifications to be sent to hosts. |
| timeout seconds | Indicates the number of seconds (default: 15 sec., range: 1 to 300 sec.) that the system will wait for an acknowledgment before the inform notification is resent. |
| retries retries | Indicates the number of times (default: 3 attempts, range: 0 to 255) that an inform notification will be resent. |
| auth | Indicates that authentication is enabled but not encryption. |
| noauth | Indicates that no authentication or encryption is enabled. This option is the default option. |
| priv | Indicates that authentication and encryption are enabled. |
| udpport port | Indicates the SNMP Trap receiver port (default: port 162). |
| filter filtername | Indicates the filter name (characters: 1 to 30) that is to be associated with the host in question. Filters can be utilized to specify which traps will be sent to the host. |
Default
The default is as follows: views are created to grant access to the default group.
Command Mode
Global Config
4-109 snmptrap source-interface
This command is used in the Global Configuration mode to configure the global source-interface (that is, the source IP address) for all SNMP communication between the server and the SNMP client.
The no command is used in the Global Configuration mode to remove the global source-interface (that is, the source IP selection) for all SNMP communication between the server and the SNMP client.
snmptrap source-interface {slot/port | loopback loopback-id | network | serviceport | tunnel tunnel-id | vlan vlan-id}
no snmptrap source-interface
Parameters
| slot/port | Indicates the port that will be used as the source interface. |
| loopback loopback-id | Indicates the loopback interface that will be used as the source interface (range: 0 to 7). |
| tunnel tunnel-id | Indicates the tunnel interface that will be used as the source interface (range: 0 to 7). |
| vlan vlan-id | Indicates the VLAN that will be used as the source interface. |
Default
The default is None.
Command Mode
Global Config
Example
The following is an example of the CLI display output for the command.
(DQS-5000-32Q28-2023) (ConfICig)#snmptrap source-interface ?
<slot/port>...... Enter an Interface in slot/port format.
loopback...... Configuration of Loopbck Interface.
network...... Use network source IP address.
serviceport...... Use serviceport source IP address.
tunnel...... Configure IPv6 Tunnel.
vlan...... Configuration of VLAN Interface.
4-110 show snmp
This command is used to show the current SNMP configuration.
show snmp
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
| (Routing)#show snmp | ||||||||
| Community-String Community-Access View Name IP Address | ||||||||
| D-LINK Read Only Default All | ||||||||
| Community-String Group Name IP Address | ||||||||
| D-LINK DefaultRead All | ||||||||
| Traps are enabled. Authentication trap is enabled. | ||||||||
| Version 1,2 notifications | ||||||||
| Target Address Type Community Version UDP Filter TO Retries | ||||||||
| Port | name | Sec | ||||||
| 192.168.1.10 | Trap | D-Link | 2 | 162 | ||||
| Version 3 notifications | ||||||||
| Target Address Type | Username | Security Level | UDP Port | Filter name | TO Sec | Retries | ||
| 192.168.1.20 | Inform D-Link | Auth-NoP | 162 | 15 | 3 | |||
| System Contact: D-Link_Support | ||||||||
| System Location: 2F | ||||||||
Display Parameters
Community String
Indicates the community string for the entry that is to be used by the
| SNMPv1 and SNMPv2 protocols to access the switch. | |
| Community Access | Indicates the access type that the community has: ·Read only ·Read write ·su |
| View Name | Indicates the name given to this community. |
| IP Address | Indicates that access to this community is limited to the given IP address. |
| Community String | Indicates the community that this mapping configures. |
| Group Name | Indicates the group that this community is assigned to. |
| IP Address | Indicates the IP address that this community is limited to. |
| Target Address | Indicates the address of the host to which traps will be sent. |
| Type | Indicates the type of message that will be sent, either traps or inform notifications. |
| Community | Indicates the community to which traps will be sent. |
| Version | Indicates the version of SNMP that the trap will be sent as. |
| UDP Port | Indicates the UDP port to which the trap or inform notification will be sent. |
| Filter name | Indicates the filter by which the traps will be limited for this host. |
| TO Sec | Indicates the number of seconds before the inform notifications will time out when sent to this host. |
| Retries | Indicates the number of times that inform notifications will be sent after timing out. |
| Target Address | Indicates the address of the host to which traps will be sent. |
| Type | Indicates the type of message that will be sent, either traps or inform notifications. |
| Username | Indicates the name to which this host has view access. |
| Security Level | Indicates the security level granted to this host. |
| UDP Port | Indicates the UDP port to which the trap or inform notification will be sent. |
| Filter name | Indicates the filter by which the traps will be limited for this host. |
| TO Sec | Indicates the number of seconds before the inform notifications will time out when sent to this host. |
| Retries | Indicates the number of times that inform notifications will be sent after timing out. |
4-111 show snmp engineID
This command is used to show the currently configured SNMP engineID.
show snmp engineID
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show snmp engineid
Local SNMP engineID: 800000ab0300a0c9000001
Display Parameters
Local SNMP EngineID
Indicates the current configuration for the displayed SNMP engineID.
4-112 show snmp filters
This command is used to show the configured filters that are used when sending traps.
show snmp filters [filtername]
Parameters
filtername
(Optional) Select the SNMP filter name to display its configuration.
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show snmp filters
Name OID Tree Type
Test enterprises.937 Included
Test2 enterprises.259 Excluded
Display Parameters
| Name | Indicates the filter name for the given entry. |
| OID Tree | Indicates the OID tree that the given entry will include or exclude. |
| Type | Indicates whether or not the given entry includes or excludes the OID tree. |
4-113 show snmp group
This command is used to show the configured groups.
show snmp group [groupname]
Parameters
| groupname | (Optional) Select the SNMP group name to display its configuration. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
| (Routing)#show snmp group | ||||||
| Name Context Security Security Read Write Notify Prefix Model Level View View View | ||||||
| D-LINK | "" | V2 | NoAuth-NoPriv | Default | "" | "" |
| DefaultRead | "" | V1 | NoAuth-NoPriv | Default | "" | Default |
| DefaultRead | "" | V2 | NoAuth-NoPriv | Default | "" | Default |
| DefaultRead | "" | V3 | NoAuth-NoPriv | Default | "" | Default |
| DefaultRead | "" | V3 | Auth-NoPriv | Default | "" | Default |
| DefaultRead | "" | V3 | Auth-Priv | Default | "" | Default |
| DefaultSuper | "" | V1 | NoAuth-NoPriv | DefaultSuper | DefaultSuper | DefaultSuper |
| DefaultSuper | "" | V2 | NoAuth-NoPriv | DefaultSuper | DefaultSuper | DefaultSuper |
| DefaultSuper | "" | V3 | NoAuth-NoPriv | DefaultSuper | DefaultSuper | DefaultSuper |
| DefaultWrite | "" | V1 | NoAuth-NoPriv | Default | Default | Default |
| DefaultWrite | "" | V2 | NoAuth-NoPriv | Default | Default | Default |
DefaultWrite "" V3 NoAuth-NoPriv Default Default Default
DefaultWrite "" V3 Auth-NoPriv Default Default Default
DefaultWrite "" V3 Auth-Priv Default Default Default
Display Parameters
| Name | Indicates the name of the group. |
| Context Prefix | Indicates a defined prefix to apply to the context. |
| Security Model | Indicates which protocol is allowed to access the system via the given group. |
| Security Level | Indicates the security level assigned to this group. |
| Read View | Indicates the view to which this group provides read access. |
| Write View | Indicates the view to which this group provides write access. |
| Notify View | Indicates the view to which this group provides trap access. |
4-114 show snmp-server
This command is used to show the current SNMP server user configuration.
show snmp-server
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show snmp-server
SNMP Server Port.... 161
SNMP Trap Send Port.... 162
Net-SNMP Proxy Mode.... Enable
Display Parameters
| SNMP Server Port | SNMP server listening port. |
| SNMP Trap Send Port | SNMP trap listening port. |
| Net-SNMP Proxy Mode | The SNMP proxy mode. |
4-115 show snmp user
This command is used to show the currently configured SNMPv3 users.
show snmp user [username]
Parameters
| username | (Optional) Enter the user account of an existing user. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) (Routing) (Config)#show snmp user
Name Group Name Auth Meth Priv Meth Remote Engine ID
Test D-Link 800000ab0300a0c9000001
Test1 D-Link SHA DES 800000ab0300a0c9000001
Display Parameters
| Name | Indicates the name of the user. |
| Group Name | Indicates the group that defines the SNMPv3 access parameters. |
| Auth Method | Indicates the authentication algorithm configured for the given user. |
| Privilege Method | Indicates the encryption algorithm configured for the given user. |
| Remote Engine ID | Indicates the engineID for the user that is defined on the client machine. |
4-116 show snmp views
This command is used to show the currently configured views.
show snmp views [viewname]
Parameters
| viewname | (Optional) Select the SNMP view name to display its configuration. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show snmp views
Name OID Tree Type
----
Default iso Included
Default snmpVacmMIB Excluded
Default usmUser Excluded
Default snmpCommunityTable Excluded
DefaultSuper iso Included
Display Parameters
| Name | Indicates the view name for the given entry. |
| OID Tree | Indicates the OID tree that the given entry will include or exclude. |
| Type | Indicates whether or not the given entry includes or excludes the OID tree. |
4-117 show trapflags
This command is used to show the trap conditions. The display for the command shows all of the enabled trapflags. By enabling or disabling the trap condition, the user can configure which traps the switch should generate. In the event that a trap condition is enabled and is detected, the trap is sent by the SNMP agent on the switch to all enabled trap receivers. It is not necessary for the user to reset the switch in order to implement any changes. Both cold and warm start traps are continuously generated, and these traps cannot be disabled.
show trapflags
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show trapflags
Authentication Flag.... Enable
Link Up/Down Flag.... Enable
Multiple Users Flag.... Enable
Spanning Tree Flag.... Enable
ACL Traps.... Disable
BGP Traps.... Disable
DVMRP Traps.... Disable
OSPFv2 traps.... Disable
PIM Traps.... Disable
OSPFv3 Traps.... Disable
Power Supply Module state trap.... Enable
Temperature trap.... Enable
Fan trap.... Enable
FIP snooping Traps.... Enable
Display Parameters
| Authentication Flag | This parameter indicates whether or not authentication failure traps will be sent. It can be either enabled or disabled (factory default: enabled). |
| Link Up/Down Flag | This parameter indicates whether or not link status traps will be sent. It can be either enabled or disabled (factory default: enabled). |
| Multiple Users Flag | This parameter indicates whether or not a trap will be sent when the same user ID is logged into the switch more than once at the same time (either through Telnet or the serial port). It can be either enabled or disabled (factory default: enabled). |
| Spanning Tree Flag | This parameter indicates whether or not spanning tree traps are sent. It can be either enabled or disabled (factory default: enabled). |
| ACL Traps | This parameter indicates whether or not ACL traps are sent. It can be either enabled or disabled (factory default: disabled). |
| BGP Traps | This parameter indicates whether or not BGP4 traps are sent. It can be either enabled or disabled (factory default: disabled).. (It should be noted that this field only appears on systems on which the BGPv4 software package is installed.) |
| DVMRP Traps | This parameter indicates whether or not DVMRP traps are sent. It canbe either enabled or disabled (factory default: disabled). In the event that any of the trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled traps. |
| OSPFv2 Traps | This parameter indicates whether or not OSPFv2 traps are sent. It can be either enabled or disabled (factory default: disabled). In the event that any of the OSPF trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled OSPF traps. |
| PIM Traps | This parameter indicates whether or not PIM traps are sent. It can be either enabled or disabled (factory default: disabled). In the event that any of the trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled traps. |
| OSPFv3 Traps | This parameter indicates whether or not OSPFv3 traps are sent. It can be either enabled or disabled (factory default: disabled). In the event that any of the trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled traps. |
| Power Supply Module State trap | This parameter indicates whether or not Power Supply Module State traps are sent. It can be either enabled or disabled (factory default: disabled). In the event that any of the trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled traps. |
| Temperature trap | This parameter indicates whether or not Temperature traps are sent. It can be either enabled or disabled (factory default: disabled). In the event that any of the trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled traps. |
| Fan trap | This parameter indicates whether or not Fan traps are sent. It can be either enabled or disabled (factory default: disabled). In the event that any of the trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled traps. |
| FIP snooping Traps | This parameter indicates whether or not FIP traps are sent. It can be either enabled or disabled (factory default: disabled). In the event that any of the trap flags are not enabled, the command display will showdisabled. Otherwise, the command shows the information for all the enabled traps. |
4-118 show snmp source-interface
The show snmp source-interface command is used in the Global Config mode to show the details of the configured global source interface used for an SNMP client. The IP address for the interface that has been selected is used as the source IP address for all communications with the server.
show snmp source-interface
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show snmp source-interface
SNMP trap Client Source Interface...... serviceport
SNMP trap Client Source IPv4 Address...... 192.168.0.1 [Up]
SNMP trap Client Source IPv6 Address...... fe80::2a0:c9ff:fe00:0 [Up]
RADIUS Commands
In this section, the commands used to configure the switch so that it can use a Remote Authentication Dial-In User Service (RADIUS) server on your network for the purposes of authentication and accounting are described.
4-119 aaa server radius dynamic-author
This command is used to enable Change of Authorization (CoA) functionality and in order to enter the dynamic authorization local server configuration mode.
The no command is used to disable CoA functionality.
aaa server radius dynamic-author
no aaa server radius dynamic-author
Parameters
None
Default
The default is None.
Command Mode
Global Config
Example
(Routing) #configure
(Routing) (Config) #aaa server radius dynamic-author
(Routing) (Config-radius-da) #
(Routing)#configure
(Routing) (Config) #no aaa server radius dynamic-author
4-120 auth type
This command is used to specify the type of authorization that will be used by the device for RADIUS clients in order to be granted authorization. The given client must match the configured attribute.
The no command is used to reset the type of authorization that will be used by the device for RADIUS clients.
auth type {any | all | session-key}
no auth type
Parameters
| any | Select any CoA client authentication types. Authentication attributes must match to allow authentication. |
| all | Select all CoA client authentication types. Authentication attributes must match to allow authentication. |
| Session-key | Select the session-key to match to authorize authentication. |
Default
The default is All.
Command Mode
Dynamic Authorization
Example
(Routing)(Config-radius-da)#auth type all
(Routing) (Config-radius-da) #no auth type
4-121 authorization network radius
This command is used to enable the switch to accept VLAN assignments from the RADIUS server.
The no command is used to disable the switch's ability to accept VLAN assignments from the RADIUS server.
authorization network radius
no authorization network radius
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
4-122 clear radius dynamic-author statistics
This command is used to clear RADIUS dynamic authorization counters.
clear radius dynamic-author statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following provides an example of the command.
(Routing)#clear radius dynamic-author statistics
Are you sure you want to clear statistics? (y/n) y
Statistics cleared.
4-123 client
This command is used to specify the IP address or hostname of the AAA server client. To configure the server key at the client level, the optional server key keyword and string argument are used.
The no command is used to remove the configured Dynamic Authorization client in the device, as well as the key associated with that client.
client {ip-address} [server-key [0 | 7] key-string]
no client { ip-address | hostame }
Parameters
| ip-address | Select the IP address of the DAC to configure. |
| Server-key | (Optional) Select the shared secret string to verify client COA requests for the server. |
Default
The default is None.
Command Mode
Dynamic Authorization
Example
(Routing) (Config-radius-da)#client 10.0.0.1 server-key 7 device1
(Routing) (Config-radius-da)#no client 10.0.0.1
4-124 debug aaa coa
This command is used to show Dynamic Authorization Server processing debug information.
debug aaa coa
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
4-125 debug aaa pod
This command is used to show messages related to packet of disconnect (POD) packets. To disable debugging output, use the no form of this command.
debug aaa pod
no debug aaa pod
Default
The default is Disabled.
Command Mode
Privileged EXEC
4-126 radius server attribute 4
This command is used to specify the RADIUS client that will use the NAS-IP-Address attribute in the event of RADIUS requests. If a given IP address is specified when this attribute is enabled, the RADIUS client will use that IP address when sending the NAS-IP-Address attribute in RADIUS communications. The no command is used to disable the NAS-IP-Address attribute global parameter for RADIUS clients. The RADIUS client will not send the NAS-IP-Address attribute along with RADIUS requests when this parameter is disabled.
radius server attribute 4 [ipaddr]
no radius server attribute 4 [ipaddr]
Parameters
| 4 | NAS-IP-Address attribute to be used in RADIUS requests. |
| ipaddr | (Optional) The IP address of the server. |
Default
The default is None.
Command Mode
Global Config
Example
The following provides an example of the command.
(Routing) (Config)#radius server attribute 4 192.168.37.60
(Routing) (Config)#
4-127 radius server host
This command is used to configure the IP address or DNS name that is to be used when communicating with the RADIUS server for the selected server type. When configuring the DNS name or IP address for authenticating or accounting servers, the user can also configure the server name and port number. In the event that the no names are indicating when configuring the authenticating and accounting servers, the command will use Default_RADIUS_Auth_Server and Default_RADIUS_Acct_Server, respectively, as the default names. The same name can be used in configuring more than one authenticating server, whereas the names used for accounting servers should be unique. The configuration of a maximum of 32 authenticating and accounting servers are allowed by the RADIUS client.
If the auth parameter is used, the command will configure the IP address or hostname that will be used to connect to a RADIUS authentication server. Up to 3 servers per RADIUS client can be configured. If three servers have already been configured, the command will fail until the user removes one of those servers by utilizing the "no" form of the command. If the optional port parameter is used, the command will configure the UDP port number that will be used to connect to the configured RADIUS server (port number range: 1 - 65535; default value: 1812).
Note: Set the port parameter to 1812 in order to reconfigure a RADIUS authentication server so that the default UDP port will be used.
If the acct token is used, the command will configure the IP address or hostname that will be used for the RADIUS accounting server. Only one accounting server can be configured, so if one accounting server is already configured, the "no" form of the command must be used to remove that server from the configuration before configuring another one. In doing so, the IP address or hostname that is specified must match that of an accounting server that was previously configured. If the optional part parameter is used, the command will configure the UDP port that will be used when connecting to the RADIUS accounting server. In the event that a port is currently configured for the accounting server, the newly specified port will replace the currently configured port (allowed port number range: 0 - 65535; default value: 1813).
Note: Set the port parameter to 1813 in order to reconfigure a RADIUS accounting server so that the default UDP port will be used.
To delete a configured server entry from the list of configured RADIUS servers, use the no version of this command. In the event that the RADIUS authenticating server that is being removed is the active server among those servers that are identified under the same server name, then another server will be selected by the RADIUS client for the purpose of making RADIUS transactions. In the event that the 'auth' token is used, the RADIUS authentication server that was previously configured will be removed from the configuration. Similarly, in the event that the 'acct' token is used, the RADIUS accounting server that was previously configured will be removed from the configuration. The ipaddr/dnsname parameter has to match the DNS name or the IP address of the previously configured RADIUS authentication / accounting server.
radius server host {auth | acct} {ipaddr | dnsname} [name servername] [port 0-65535]
no radius server host {auth | acct} } {ipaddr | dnsname}
Parameters
| acct | Select IP address or hostname of the RADIUS accounting server to configure. |
| auth | Select IP address or hostname of the RADIUS authentication server to configure. |
| ipaddr | Indicates the IP address of the server. |
| dnsname | Indicates the DNS name of the server. |
| name servername | (Optional) Indicates the port number that will be used to connect to the specified RADIUS server. |
| port 0-65535 | (Optional) Indicates the alias name used to identify the server. |
Default
The default is None.
Command Mode
Global Config
Example
The following provides an example of the command.
(Routing) (Config)#radius server host acct 192.168.37.60
(Routing) (Config)#radius server host acct 192.168.37.60 port 1813
(Routing) (Config)#radius server host auth 192.168.37.60 name Network1_RS port 1813
(Routing) (Config)#wadius server host acct 192.168.37.60 name Network2_RS
(Routing) (Config)#no radius server host acct 192.168.37.60
4-128 radius server key
This command is used to configure the key that will be used for RADIUS client communications with the specified server. The shared secret is configured for either the RADIUS authentication or the RADIUS accounting server depending on whether the 'auth' or 'acct' token is used. Either way, the IP address or hostname provided must match that of a previously configured server. Upon this command's execution, the secret is prompted.
The text-based configuration allows the RADIUS server's secrets to be supported in both encrypted and non-encrypted formats. When the configuration is saved, these secret keys are stored solely in the encrypted format. If the user wishes to enter the key in the encrypted format, the key must be entered along with the encrypted keyword. Furthermore, these secret keys are displayed in the encrypted format in the show running config command's display, while these keys cannot be shown in plain text format.
Note: The secret must consist of an alphanumeric value that does not exceed 16 characters.
radius server key {auth | acct} {ipaddr | dnsname} encrypted password
Parameters
| acct | Select the valid IP address or hostname of the RADIUS accounting server to configure the shared secret key. |
| auth | Select the valid IP address or hostname of the RADIUS authorization server to configure the shared secret key. |
| ipaddr | Indicates the IP address of the server. |
| dnsmane | Indicates the DNS name of the server. |
| password | Indicateshe password in the encrypted format. |
Default
The default is None.
Command Mode
Global Config
Example
The following provides an example of the CLI command.
(Routing) (Config)#radius server key acct 10.240.4.10 encrypted encrypt-string
4-129 radius server msgauth
This command is used to enable the use of the message authenticator attribute by the specified RADIUS Authenticating server.
The no command is used to disable the use of the message authenticator attribute by the specified RADIUS Authenticating server.
radius server msgauth {ipaddr | dnsname}
no radius server msgauth {ipaddr | dnsname}
Parameters
| ipaddr | Indicates the IP address of the server. |
| dnsmane | Indicates the DNS name of the server. |
Default
The default is None.
Command Mode
Global Config
4-130 radius server primary
This command is used to specify the configured server that will serve as the primary server among a group of servers that share the same server name. It should be noted, however, that multiple such primary servers can be configured for any group of servers that share the same name. The RADIUS client will, by default, use the primary server that has the specified server name in the event that the client is asked to perform transactions with an authenticating RADIUS server of a specified name. The RADIUS client will only use the backup servers configured with the same server name if it fails to communicate with the primary server for any reason. Such backup servers are identified as secondary servers.
radius server primary {ipaddr | dnsname}
Parameters
| ipaddr | Indicates the IP address of the server. |
| dnsmane | Indicates the DNS name of the server. |
Default
The default is None.
Command Mode
Global Config
4-131 radius server retransmit
This command is used to configure the RADIUS client global parameters specifying the allotted number of times a message is transmitted when an unsuccessful RADIUS authentication event occurs. Once the allotted number is reached and a response is not achieved, the client no longer communicates with other servers.
radius server retransmit retries
no radius server retransmit
Parameters
| retries | Indicates the maximum number of transmission attempts that will be made (range: 1 - 15). |
Default
The default is 4 attempts.
Command Mode
Global Config
4-132 radius source-interface
This command is used to specify the physical or logical interface that will be used as the RADIUS client source interface (i.e., the source IP address). The address configured as the source interface will be used for all RADIUS communications between the RADIUS client and the RADIUS server. More specifically, the source-interface IP address selected will be used to fill the IP header of RADIUS management protocol packets. This in turn allows security devices (such as firewalls) to identify the source packets sent by the specific switch.
If no source-interface is specified, the primary IP address for the outbound (originating) interface will be used as the source address. In the event that the configured interface is down, the RADIUS client will revert back to its default behavior.
The no command is used to reset the RADIUS source interface back to the default settings.
radius source-interface {slot/port | loopback loopback-id | vlan vlan-id | network | serviceport} no radius source-interface
Parameters
| slot/port | Indicates the specific port that will be used as the source interface. |
| loopback loopback-id | Indicates the specific loopback interface that will be used as the source interface (range for the loopback ID: 0 to 7). |
| vlan vlan-id | Indicates the specific VLAN that will be used as the source interface. |
| Network | Indicates the network port as the source interface. |
| Serviceport | Indicates the serviceport as the source interface. |
Default
The default is None.
Command Mode
Global Config
4-133 radius server timeout
This command is used to configure the global parameter for the RADIUS client that defines the timeout value (in seconds) after which retransmission of a request to the RADIUS server must occur if no response has been received. The timeout value must consist of an integer within the range of 1 to 30.
The no command is used to reset the timeout global parameter back to the default value.
radius server timeout seconds
no radius server timeout
Parameters
| seconds | Select the integer (range: 1 – 30) to define the RADIUS server timeout value. |
Default
The default is 5.
Command Mode
Global Config
4-134 server-key
This command is used to configure a global shared secret that will then be used for all dynamic authorization clients for which no individual shared secret key is configured.
The no command is used to remove the configured secret.
server-key [0 | 7] key-string
no server-key
Parameters
| 0 | Indicates that an unencrypted key is to be entered. |
| 7 | Indicates that an encrypted key is to be entered. |
| key-string | Indicates the shared secret string. For an unencrypted key, the maximum length is 128 characters, while for an encrypted key, the maximum length is 256 characters. The secret string will override the global setting for the given client only. The string should be enclosed in quotes in order to use special characters or embedded blanks. |
Default
The default is None.
Command Mode
Dynamic Authorization
Example
(Routing) (Config-radius-da) #server-key encrypted mydevice
(Routing) (Config-radius-da) #no server-key
4-135 show radius servers
This command is used to display the authentication parameters.
show radius servers {ipaddr | name hostname}
Parameters
| ipaddr | Select a valid IP address of the RADIUS server to display its configuration settings. |
| hostname | Select a valid hostname of the RADIUS server to display its configuration settings. |
Default
Not applicable.
Command Mode
User EXEC
Example
(Routing)#show radius servers name Default-RADIUS-Server
RADIUS Server Name..... CoA-Server-1
Current Server IP Address..... 1.1.1.1
Number of Retransmits..... 3
Timeout Duration..... 15
Deadtime..... 0
Port..... 3799
Source IP..... 10.27.9.99
RADIUS Accounting Mode..... Disabled
Secret Configured..... Yes
Message Authenticator..... Enable
Number of CoA Requests Received..... 203
Number of CoA ACK Responses Sent..... 111
Number of CoA NAK Responses Sent..... 37
Number of Coa Requests Ignored..... 55
Number of CoA Missing/Unsupported Attribute Requests..... 18
Number of CoA Session Context Not Found Requests..... 5
Number of CoA Invalid Attribute Value Requests..... 11
Number of Administratively Prohibited Requests..... 3
4-136 show radius
This command is used to show the values that have been configured for the global parameters of the RADIUS client.
show radius
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing) #show radius
Number of Configured Authentication Servers.....32
Number of Configured Accounting Servers.....32
Number of Named Authentication Server Groups.....15
Number of Named Accounting Server Groups.....3
Number of Retransmits....4
Time Duration....10
RADIUS Accounting Mode....Disable
RADIUS Attribute 4 Mode....Enable
RADIUS Attribute 4 Value....192.168.37.60
4-137 show radius servers
This command is used to show the summary and details for the RADIUS authenticating servers that have been configured for the RADIUS client.
show radius servers [{ipaddr | dnsname | name [servername]}]
Parameters
| ipaddr | (Optional) Indicates the IP address of the authenticating server. |
| dnsname | (Optional) Indicates the DNS name of the authenticating server. |
| servername | (Optional) Indicates the alias name used to identify the server. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show radius servers
Current Host Address Server Name Port Type
* 192.168.37.200 Network1_RADIUS_Server 1813 Primary
192.168.37.201 Network2_RADIUS_Server 1813 Secondary
192.168.37.202 Network3_RADIUS_Server 1813 Primary
192.168.37.203 Network4_RADIUS_Server 1813 Secondary
(Routing)#show radius servers name
Current Host Address Server Name Type
192.168.37.200 Network1_RADIUS_Server Secondary
192.168.37.201 Network2_RADIUS_Server Primary
192.168.37.202 Network3_RADIUS_Server Secondary
192.168.37.203 Network4_RADIUS_Server Primary
(Routing)#show radius servers name Default_RADIUS_Server
Server Name..... Default_RADIUS_Server
Host Address..... 192.168.37.58
Secret Configured..... No
Message Authenticator..... Enable
Number of Retransmits..... 4
Time duration..... 10
RADIUS Accounting Mode..... Disable
RADIUS Attribute 4 Mode..... Enable
RAIDUS Attribute 4 Value..... 192.168.37.60
(Routing)#show radius servers 192.168.37.58
Server Name..... Default_RADIUS_Server
Host Address..... 192.168.37.58
Secret Configured..... No
Message Authenticator..... Enable
Number of Retransmits..... 4
Time duration..... 10
RADIUS Accounting Mode..... Disable
RADIUS Attribute 4 Mode..... Enable
RAIDUS Attribute 4 Value..... 192.168.37.60
4-138 show radius accounting
This command is used to show a summary of the configured RADIUS accounting servers.
If no parameters are specified, then only the details of the accounting mode and the RADIUS accounting server will be displayed.
show radius accounting name [servername]
Parameters
| servername | (Optional) Indicates the alias name used to identify the server. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show radius accounting name
Host Address Server Name Port Secret Configured
192.168.37.200 Network1_RADIUS_Server 1813 Yes
192.168.37.201 Network2_RADIUS_Server 1813 No
192.168.37.202 Network3_RADIUS_Server 1813 Yes
192.168.37.203 Network4_RADIUS_Server 1813 No
(Routing) #show radius accounting name Default_Radius_Server
Server Name.... Default_RADIUS_Server
Host Address.... 192.168.37.200
RADIUS Accounting Mode.... Disable
Port.... 1813
Secret Configured.... Yes
4-139 show radius statistics
This command is used to show the summary statistics for the configured RADIUS Authenticating servers.
show radius statistics {ipaddr | dnsname | name [servername]}
Parameters
| ipaddr | Indicates the IP address of the server. |
| dnsname | Indicates the DNS name of the server. |
| servername | (Optional) Indicates the alias name used to identify the server. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show radius accounting statistics 192.168.37.200
RADIUS Accounting Server Name..... Default_RADIUS_Server
Host Address..... 192.168.37.200
Round Trip Time..... 0.00
Requests..... 0
Retransmissions..... 0
Responses..... 0
Malformed Responses..... 0
Bad Authenticators.... 0
Pending Requests.... 0
Timeouts.... 0
Unknown Types.... 0
Packets Dropped.... 0
(Routing)#show radius statistics name Default_RADIUS_Server
RADIUS Accounting Server Name..... Default_RADIUS_Server
Host Address..... 192.168.37.200
Round Trip Time..... 0.00
Requests..... 0
Retransmissions..... 0
Responses..... 0
Malformed Responses..... 0
Bad Authenticators..... 0
Pending Requests..... 0
Timeouts..... 0
Unknown Types..... 0
Packets Dropped..... 0
4-140 show radius source-interface
The show radius source-interface command is used in the Privileged EXEC mode to show the details of the configured global source interface used for a RADIUS client. The IP address for the interface that has been selected is used as the source IP address for all communications with the server.
show radius source-interface
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show radius source-interface
RADIUS Client Source Interface.... 0/2
RADIUS Client Source IPv4 Address.... 192.168.2.20 [Up]
4-141 show radius statistics
This command is used to show the summary statistics for the configured RADIUS Authenticating servers.
show radius statistics {ipaddr | dnsname | name [servername]}
Parameters
| ipaddr | Indicates the IP address of the server. |
| dnsname | Indicates the DNS name of the server. |
| servername | (Optional) Indicates the alias name used to identify the server. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show radius statistics 192.168.37.200
RADIUS Server Name..... Default_RADIUS_Server
Server Host Address..... 192.168.37.200
Access Requests..... 0.00
Access Retransmissions..... 0
Access Accepts..... 0
Access Rejects..... 0
Access Challenges..... 0
Malformed Access Responses..... 0
Bad Authenticators..... 0
Pending Requests..... 0
Timeouts..... 0
Unknown Types..... 0
Packets Dropped..... 0
(Routing)#show radius statistics name Default_RADIUS_Server
RADIUS Server Name..... Default_RADIUS_Server
Server Host Address..... 192.168.37.200
Access Requests..... 0.00
Access Retransmissions..... 0
Access Accepts..... 0
Access Rejects..... 0
Access Challenges..... 0
| Malformed Access Responses | 0 |
| Bad Authenticators | 0 |
| Pending Requests | 0 |
| Timeouts | 0 |
| Unknown Types | 0 |
| Packets Dropped | 0 |
TACACS+ Commands
TACACS+ is used to provide access control, via one or more centralized servers, to networked devices. Much like RADIUS, this protocol allows authentication to be simplified through the use of a single database that can be shared among many clients on a large network. TACACS+ is founded upon the TACACS+ protocol (which is described in RFC1492), but in addition to the basic TACACS+ protocol, it allows for separate authentication, accounting, and authorization services. Also, while the basic TACACS+ protocol is UDP based and utilizes messages that are passed in clear text over the network, the TACACS+ protocol utilizes TCP to ensure reliable delivery, in addition to using a shared key that is configured on both the client and the daemon server to encrypt all messages.
4-142 tacacs-server host
The tacacs-server host command is used in the Global Configuration mode to configure a TACACS+ server. This command is used to enter into the TACACS+ configuration mode. The ip-address/hostname parameter consists of the IP address or the hostname of the TACACS+ server. Multiple tacacs-server host commands can be used to specify multiple hosts.
The no command is used to delete a specified hostname or IP address. The ip-address/hostname parameter consists of the IP address of the TACACS+ server.
tacacs-server host [ip-address | hostname]
no tacacs-server host [ip-address | hostname]
Parameters
| ip-address | (Optional) Select the IP address of the TACACS+ server host to configure. |
| hostname | (Optional) Select the hostname TACACS+ server host to configure. |
Default
The default is None.
Command Mode
Global Config
4-143 key
The key command is used to define the authentication and encryption key strings.
key {key-string | encrypted}
Parameters
| key-string | Indicates a string value, length: 0 – 128 characters. |
| Encrypted | Indicates a pre-encrypted key. |
Default
The default is 0.
Command Mode
TACACS+ Config
4-144 keystring
The keystring command is used to re-confirm the authentication and encryption key function.
key {key-string | encrypted}
Parameters
| key-string | Indicates a string value, length: 0 – 128 characters. |
| Encrypted | Indicates a pre-encrypted key. |
Default
The default is 0.
Command Mode
TACACS+ Config
4-145 port
The port command is used to select the TACACS+ server port number.
port {port-number}
Parameters
| port-number | Indicates a port range: 0 – 65535. Default: 49. |
Default
The default is 0.
Command Mode
TACACS+ Config
4-146 priority
The priority command is used in the TACACS+ Configuration mode to define the order that servers are used in, where 0 (zero) indicates the highest priority server (range: 0 - 65535).
priority priority
Parameters
None
Default
The default is 0.
Command Mode
TACACS+ Config
4-147 timeout
The key command is used to define the timeout value.
timeout {timeout}
Parameters
| timeout | Indicates a string value, range: 1 – 30 seconds. |
Default
The default is 0.
Command Mode
TACACS+ Config
4-148 tacacs server key
The tacacs-server key command is used to set the encryption key and authentication for all TACACS+ communications between the TACACS+ daemon and the switch. The allowed range for the key-string parameter is 0-128 characters, and the parameter is used to specify the encryption key and authentication for all TACACS+ communications between the TACACS+ server and the switch. The key must match that which is used on the TACACS+ daemon.
With text-based configuration, the secrets of the TACACS+ server are supported in both encrypted and non-encrypted formats. When the configuration is saved, these secret keys are stored solely in the encrypted format. If the user wishes to enter the key in the encrypted format, the key must be entered along with the encrypted keyword. Furthermore, these secret keys are displayed in the encrypted format in the show running config command's display, while these keys cannot be shown in plain text format.
The no command is used to disable the encryption key and authentication for all TACACS+ communications between the TACACS+ daemon and the switch. The allowed range for the key-string parameter is 0-128 characters., and the key must match that which is used on the TACACS+ daemon.
tacacs-server key [key-string | encrypted key-string]
no tacacs-server key key-string
Parameters
| key-string | (Optional) Select a string length (0 – 128) to define the authentication key, default: none. |
| encrypted | (Optional) Select a pre-encrypted key to define. |
Default
The default is None.
Command Mode
Global Config
4-149 tacacs-server keystring
The tacacs-server keystring command is used to specify the global authentication encryption key that is used for all TACACS+ communications between the client and the TACACS+ server.
tacacs-server keystring [key-string | encrypted key-string]
Parameters
None
Default
The default is None.
Command Mode
Global Config
Example
The following provides an example of the CLI command.
(Routing) (Config) #tacacs-server keystring
Enter tacacs key: *****
Re-enter tacacs key: *******
4-150 tacacs-server source-interface
This command is used in the Global Configuration mode to configure the source interface (that is, the source IP address) for TACACS+ server configuration. The address configured as the source-interface IP address will be used to fill the IP header of management protocol packets. This in turn allows security devices (such as firewalls) to identify the source packets sent by the specific switch.
If no source-interface is specified, the primary IP address for the outbound (originating) interface will be used as the source address.
The no command is used to remove the global source interface (that is, the selected source IP) for all TACACS+ communications between the server and the TACACS+ client.
tacacs-server source-interface {slot/port | loopback loopback-id | vlan vlan-id | network | serviceport}
no tacacs-server source-interface
Parameters
| slot/port | Indicates the specific port that will be used as the source interface. |
| loopback loopback-id | Indicates the specific loopback interface that will be used as the source interface (range for loopback ID: 0 to 7). |
| vlan vlan-id | Indicates the specific VLAN that will be used as the source interface. |
| network | Indicates the network access client. |
| serviceport | Indicates the serviceport interface of use as the source interface. |
Default
The default is None.
Command Mode
Global Config
Example
The following provides an example of the command.
(Config)#tacacs-server source-interface loopback 0
(Config)#tacacs-server source-interface 0/1
(Config)#no tacacs-server source-interface
4-151 tacacs-server timeout
The tacacs-server timeout command is used to specify the timeout value for any communications with the TACACS+ servers. The range of the timeout parameter is 1-30 seconds. If a timeout value is not specified, then the global timeout will be set to the default value. Those TACACS+ servers not using the global timeout value, however, will retain the timeout values that have been configured for them.
The no command is used to reset the timeout value for all TACACS+ servers back to the default value.
tacacs-server timeout timeout
no tacacs-server timeout
Parameters
| timeout | Select the timeout value (1 – 30 seconds) for the TACACS+ server. Default: 5 seconds. |
Default
The default is 5.
Command Mode
Global Config
Configuration Scripting Commands
The use of Configuration Scripting allows the user to generate text-formatted script files that represent a system's current configuration. These configuration script files can be uploaded to a PC or UNIX system and edited, after which the edited files can be downloaded to the system so that the new configuration can be applied. In fact, these configuration scripts can be applied to one or multiple switches with no modifications or only minor modifications.
The show running-config command (please see "show running-config") can be used to capture a running configuration and transcribe it into a script. The copy command (please see "copy") can then be used to transfer the given configuration script to or from the switch.
To view the configuration stored in the startup-config, backup-config, or factory-defaults file, the user can use the show {startup-config | backup-config | factory-defaults} command (please see "show").
In general, scripts should be used on systems with the default configuration; however, it is also possible to apply scripts on systems with configurations other than the default configurations.
Scripts are required to conform to the following rules:
- The file extension for the script must be “.scr”.
• The maximum number of scripts allowed on the switch is ten.
• The maximum allowed size for all the script files on the switch combined is 2048 KB. - The maximum allowed number of command lines for configuration files is 2000.
Single-line annotations for use at the command prompt can be typed in by the user when write testing or configuring scripts in order to improve script readability. The beginning of a comment is flagged by the exclamation point (!) character. More specifically, the comment flag character can be used to begin a word at any point on the command line, with all input following this character being ignored. In other words, any command line beginning with the “!” character is recognized by the parser as a comment line and thus ignored.
The following lines provide an example of a script.
! Script file for displaying management access
show telnet !Displays the information about remote connections
! Display information about direct connections
show serial
! End of the script file!
Note: In the configuration script, a blank password for a user must be specified as a space within quotes. For example, if the password for user jane is to be changed from a blank password to hello, then the script entry would be as follows:
users passwd jane
" "
hello
hello
4-152 script apply
This command is used to apply the commands in the script to the switch, where the name of the script to apply is indicated by the scriptname parameter.
script apply scriptname
Parameters
| scriptname | Indicates the file name of the configuration script. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
4-153 script delete
This command is used to delete a specified script, with the scriptname parameter indicating the name of the script to be deleted. Alternatively, the all option can be used to delete all the scripts currently present on the switch.
script delete {scriptname | all}
Parameters
| scriptname | Indicates the file name of the configuration script. |
| all | Select to delete all the configuration script files from the switch. |
Default
The default is None.
Command Mode
Privileged EXEC
4-154 script list
This command is used to list all of the scripts currently present on the switch. Use of the command will also cause the remaining available places to be shown.
script list
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
4-155 script show
This command is used to show the contents of a script file, with the scriptname parameter indicating the file in question.
script show scriptname
Parameters
| scriptname | Indicaes the file name of the configuration script. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
4-156 script validate
This command is used to validate a script file through parsing of each line in the script file, with the scriptname parameter indicating the name of the script to be validated. The validate option is meant to provide assistance in script development, as the validation is intended to identify any potential problems. That said, it may not be successful in identifying all problems for a given script on every device.
script validate scriptname
Parameters
| scriptname | Indicates the file name of the configuration script. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
Pre-login Banner, System Prompt, and Host Name Commands
In this section, the commands used to configure the system prompt and the pre-login banner are described. The pre-login banner consists of the text that is displayed before the user logs in at the User: prompt.
4-157 copy (pre-login banner)
The option to upload or download the CLI Banner to or from the switch is included in the copy command. Local URLs can be specified by using FTP, TFTP, SFTP, SCP, or Xmodem.
copy
copy nvram:clibanner
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
4-158 set prompt
This command is used to change the name of the prompt, which may be up to 64 alphanumeric characters long.
set prompt prompt_string
Parameters
| prompt_string | Indicates the system prompt, up to 64 case sensitive characters. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
4-159 set clibanner
This command to is used to configure the pre-login CLI banner prior to displaying the login prompt. The no command is used to remove any configuration of the pre-login CLI banner.
set clibanner line
no set clibanner
Parameters
| line | This is a parameter consisting of the banner text, where the "" (double quote) symbol is used as a delimiting character. The maximum allowed |
length of the banner message is 2000 characters.
Default
The default is None.
Command Mode
Global Config
4-160 show clibanner
This command is used to display the configured pre-login CLI banner, which consists of the text that is displayed before the CLI prompt is displayed.
show clibanner
Parameters
None
Default
No content is displayed before login prompt.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show clibanner
Banner Message configured:
TEST
4-161 hostname
This command is used to set the system hostname. Using it also causes the prompt to be changed. The system hostname may be as many as 64 alphanumeric, case-sensitive characters in length.
hostname hostname
Parameters
| hostname | Indicates the system prompt, up to 64 case sensitive characters. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
Front Panel TAP Interfaces
The commands in this section can be used to enable and monitor the FPTI mode.
4-162 fpti
This command is used to enable the FPTI mode either globally (Global Config mode) or for a specific interface (Interface Config mode).
The no command is used to disable the FPTI mode.
fpti
no fpti
Parameters
None
Default
The default is Enabled.
Command Mode
- Global Config
- Interface Config
4-163 show port fpti
This command is used to display the global FPTI mode, as well as the FPTI mode on all the interfaces. If a single interface is specified, then only the FPTI mode for that interface will be displayed.
show port fpti [slot/port]
Parameters
| slot/port | (Optional) |
Default
The default is None.
Command Mode
- Global Config
- Interface Config
Example
| (Switching)#show port fpti | |
| Global Front Panel Tap Interface Mode...... Enabled | |
| Intf Mode | |
| 0/1 Enabled | |
| 0/2 Enabled | |
| 0/3 Enabled | |
| 0/4 Enabled | |
| 0/5 Enabled | |
| 0/6 Enabled | |
| 0/7 Enabled | |
| 0/8 Enabled | |
| 0/9 Enabled | |
| 0/10 Enabled | |
| 0/11 Enabled | |
| 0/12 Enabled | |
| 0/13 Enabled | |
| 0/14 Enabled | |
| 0/15 Enabled | |
| 0/16 Enabled | |
| 0/17 Enabled | |
| 0/18 Enabled | |
| 0/19 Enabled | |
| 0/20 Enabled | |
| 0/21 Enabled | |
| 0/22 Enabled | |
| 0/23 Enabled | |
| 0/24 Enabled |
| (Switching)#show port fpti 0/1 |
| Port....0/1 |
| Front Panel Tap Interface Mode....Enabled |
5. Utility Commands
In this section, the following utility commands available in the D-LINK OS CLI are described:
- "Application Commands"
- "CLI Output Filtering Commands"
- "System Information and Statistics Commands"
- "Logging Commands"
- "Email Alerting and Mail Server Commands
- "System Utility and Clear Commands"
- "IP Address Conflict Commands"
- "Serviceability Packet Tracing Commands"
- "sFlow Commands"
- "Switch Database Management Template Commands"
- "SFP Transceiver Commands"
- "Remote Monitoring Commands"
- "Spanning Tree Protocol Commands"
- "VLAN Commands"
- "Switch Ports"
- "Double VLAN Commands"
- "Provisioning (IEEE 802.1p) Commands"
- "Protected Ports Commands"
- "Port-Based Network Access Control Commands"
- "802.1X Supplicant Commands"
- "Task-based Authorization"
• "Asymmetric Flow Control Commands" - "Storm-Control Commands"
- "Link Dependency Commands"
- "MVR Commands"
• "Port-Channel/LAG (802.3ad) Commands" - "VPC Commands"
- "Port Mirroring"
- "Static MAC Filtering"
- "DHCP L2 Relay Agent Commands"
- "DHCP Client Commands"
- "DHCP Snooping Configuration Commands"
• "Dynamic ARP Inspection Commands" - "IGMP Snooping Configuration Commands"
- "IGMP Snooping Querier Commands"
- "MLD Snooping Commands"
- "MLD Snooping Querier Commands"
- "Port Security Commands"
- "LLDP (802.1AB) Commands"
- "LLDP-MED Commands"
- "Denial of Service Commands"
- "MAC Database Commands"
- "ISDP Commands"
- “Unidirectional Link Detection Commands”
- "Interface Error Disable and Auto Recovery"
Note: All of the commands described in this section are included in one of five functional groups:
• Show commands are used to display statistics, switch settings, and other information.
- Configuration commands are used to configure the options and features of the switch. There is a show command that corresponds to every configuration command and displays the configuration setting.
- Copy commands are used to transfer or save informational and configuration files to and from the switch.
- Debug commands are used to help troubleshoot network issues and provide diagnostic information.
- Clear commands are used to clear some or all of the settings and return them to the factory defaults.
5-1 erase application
This command is used to remove the file specified from the directory of switch file system applications.
erase application
Parameters
None
Default
The default is Disable.
Command Mode
Privileged EXEC
Application Commands
This command is used to make the application began by the designed executable file ready and available to be configured and executed. The way in which the application is run on the switch is determined by the parameters of this command.
An already installed application file name can be used to update the parameters when issuing this command. Doing so will update the configuration for when the application is started the next time.
It should be noted that this command can also be issued for a file that is not currently on the switch. Doing so allows the execution parameters to be preconfigured, with the configuration not taking effect until the executable file is actually included in the switch file system.
The no command is used to remove a given configuration of an application for execution on the switch. If the application in question is running when the no command is issued, all of the processes associated with the application will be stopped automatically.
5-2 application start
This command is used to initiate the execution of the application specified. Before an application can be started using this command, however, it must be installed.
application start filename
Parameters
| filename | Indicates the name of application to start. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
5-3 application stop
This command is used to stop the execution of the specified application.
application stop filename
Parameters
| filename | Indicates the name of application to stop. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
5-4 show application
This command is used to show the installed applications and their parameters.
show applications
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| filename | Indicates the name of the application. |
| start-on-boot | Indicates whether or not the application is configured to initiate on boot up.Yes indicates that the application will initiate on boot up.No indicates that the application will not initiate on boot up. |
| auto-restart | Indicates whether or not the application process is configured to restart automatically after it ends.Yes indicates that the application process will restart after it ends.No indicates that the application process will not restart automatically after it ends. |
| Max-CPU-Util | Indicates, as a percentange, the configured application CPU utilization limit. “None” is shown if unlimited. |
| Max-memory | Indicates, in megabytes, the configured application memory limit. “None” is shown if unlimited. |
5-5 show application files
This command is used to show the files in the switch's file system application directory.
show application files
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show application files
OpEN application process directory contents:
Total bytes for all files = 5
Display Parameters
| filename | Indicates the name of the file. |
| File size | Indicates the number of bytes that the file occupies in the file system. |
| Directory Size | Indicates the total number of bytes of all the files included in the application directory. |
CLI Output Filtering Commands
5-6 show xxx | include "string"
With this filtering command, the command xxx is executed, but the output is filtered so that only the lines containing a match for the "string" are shown, while all the non-matching lines in the output are not displayed.
Example
The following provides an example of the CLI command.
(Routing)#show running-config | include "spanning-tree"
spanning-tree configuration name "00-02-BC-42-F9-33"
spanning-tree bpduguard
spanning-tree bpdufilter default
5-7 show xxx | include "string" exclude "string2"
With this filtering command, the command xxx is executed, but the output is filtered so that only the lines containing a match for the "string" match and not containing a match for the "string2" are shown, while all the other non-matching lines in the output are also not shown.
Example
The following provides an example of the CLI command.
(Routing)#show running-config | include "spanning-tree" exclude "configuration"
spanning-tree bpduguard
spanning-tree bpdufilter default
5-8 show xxx | exclude "string"
With this filtering command, the command xxx is executed, but the output is filtered so that only those lines not containing a match for the "string" are shown.
Example
The following provides an example of the CLI command.
(Routing)#show interface 0/1
Packets Received Without Error.... 0
Packets Received With Error.... 0
Broadcast Packets Received.... 0
Packets Transmitted Without Errors.... 0
Transmit Packet Errors.... 0
Collision Frames.... 0
Time Since Counters Last Cleared.... 20 day 21 hr 30 min 9 sec
(Routing)#show interface 0/1 | exclude "Packets"
Transmit Packet Errors.... 0
Collision Frames.... 0
Time Since Counters Last Cleared.... 20 day 21 hr 30 min 9 sec
5-9 show xxx | begin "string"
With this filtering command, the command xxx is executed, but the output is filtered so that only those lines beginning with and following the first line containing a match for the "string" are shown, while all the preceding lines are not shown.
Example
The following provides an example of the CLI command.
(Routing)#show port all | begin "1/1"
1/1 Enable Down Disable N/A N/A
1/2 Enable Down Disable N/A N/A
1/3 Enable Down Disable N/A N/A
1/4 Enable Down Disable N/A N/A
1/5 Enable Down Disable N/A N/A
1/6 Enable Down Disable N/A N/A
(Routing)#
5-10 show xxx | section "string"
With this filtering command, the command xxx is executed, but the output is filtered so that only those lines included within the section(s) identified by lines containing a match for the "string" and ending with the first line that contains the default end-of-section identifier (i.e. "exit") are shown.
Example
The following provides an example of the CLI command.
(Routing)#show running-config | section "interface 0/1"
interface 0/1
no spanning-tree port mode
exit
5-11 show xxx | section "string" "string2"
With this filtering command, the command xxx is executed, but the output is filtered so that only lines included within the section(s) identified by lines containing a match for the "string" and ending with the first line containing a match for the "string2" are shown. If multiple sections that match the specified string criteria are included in the base output, then all such sections are displayed.
5-12 show xxx | section "string" include "string2"
With this filtering command, the command xxx is executed, but the output is filtered so that only lines included within the section(s) identified by lines containing a match for the "string" and a match for the "string2" and ending with the first line containing the default end-of-section identifier (i.e. "exit") are shown. This filter command can also include "exclude" and user-defined end-of-section identifier parameters.
System Information and Statistics Commands
In this section, the commands used to view information about system components, features, and configurations are described.
5-13 show arp switch
This command is used to show the contents of the Address Resolution Protocol (ARP) table for the IP stack. It should be noted that the IP stack only learns those ARP entries that are associated with the management interfaces – that is, the network or service ports – whereas ARP entries that are associated with routing interfaces are not listed.
show arp switch
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-14 dir
This command is used to list the files included in the directory/mnt/fastpath in flash from the CLI.
dir
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
(Routing)#dir
0 drwx 2048 May 09 2002 16:47:30 .
0 drwx 2048 May 09 2002 16:45:28 ..
0 -rwx 592 May 09 2002 14:50:24 slog2.txt
0 -rwx 72 May 09 2002 16:45:28 boot.dim
0 -rwx 0 May 09 2002 14:46:36 olog2.txt
0 -rwx 13376020 May 09 2002 14:49:10 image1
0 -rwx 0 Apr 06 2001 19:58:28 fsyssize
0 -rwx 1776 May 09 2002 16:44:38 slog1.txt
0 -rwx 356 Jun 17 2001 10:43:18 crashdump.ctl
0 -rwx 1024 May 09 2002 16:45:44 sslt.rnd
0 -rwx 14328276 May 09 2002 16:01:06 image2
0 -rwx 148 May 09 2002 16:46:06 hpc_dl.cfg
0 -rwx 0 May 09 2002 14:51:28 olog1.txt
0 -rwx 517 Jul 23 2001 17:24:00 ssh_host_key
0 -rwx 69040 Jun 17 2001 10:43:04 log_error_crashdump
0 -rwx 891 Apr 08 2000 11:14:28 sslt_key1.pem
0 -rwx 887 Jul 23 2001 17:24:00 ssh_host_rsa_key
0 -rwx 668 Jul 23 2001 17:24:34 ssh_host_dsa_key
0 -rwx 156 Apr 26 2001 13:57:46 dh512.pem
0 -rwx 245 Apr 26 2001 13:57:46 dh1024.pem
0 -rwx 0 May 09 2002 16:45:30 slog0.txt
5-15 show eventlog
This command is used to show the event log. This log contains error messages from the system, and is not cleared upon a system reset.
show eventlog
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show eventlog
Time
File Line TaskID Code yyyy/mm/dd hh:mm:ss
EVENT> boots.c 192 0E634DDC AAAAAAAA 2018/04/23 05:34:17
EVENT> boots.c 192 0F6A0DDC AAAAAAAA 2018/04/20 07:23:52
EVENT> boots.c 192 0F332DDC AAAAAAAA 2018/03/24 07:25:27
EVENT> boots.c 192 0DEAEDDC AAAAAAAA 2018/03/19 04:27:02
EVENT> boots.c 192 0E068DDC AAAAAAAA 2018/01/15 00:22:58
EVENT> boots.c 192 0DF65DDC AAAAAAAA 2018/01/11 08:29:45
EVENT> boots.c 192 0E7D2DDC AAAAAAAA 2018/01/10 01:13:58
EVENT> boots.c 192 0DD26DDC AAAAAAAA 2018/01/09 03:48:01
EVENT> boots.c 192 0ED02DDC AAAAAAAA 2018/01/08 00:31:26
EVENT> boots.c 192 0DEEBDDC AAAAAAAA 2018/01/05 00:28:27
EVENT> boots.c 192 0DA48DDC AAAAAAAA 2018/01/04 00:33:50
EVENT> boots.c 192 0DF92DDC AAAAAAAA 2018/01/03 01:08:10
| EVENT> | bootos.c | 192 | 0F61FDDC | AAAAAAAAA | 2018/01/02 | 01:05:20 |
| EVENT> | bootos.c | 192 | 0DA00DDC | AAAAAAAAA | 2017/12/27 | 10:41:49 |
| EVENT> | bootos.c | 192 | 0DD83DDC | AAAAAAAAA | 2017/12/27 | 00:37:50 |
| EVENT> | bootos.c | 192 | 0F46ADDC | AAAAAAAAA | 2017/10/17 | 04:12:45 |
| EVENT> | bootos.c | 192 | 0E2E9DDC | AAAAAAAAA | 2017/10/16 | 08:23:55 |
5-16 environment temprange
This command is used to specify the temperature range allowed for normal operation.
environment temprange min -100-100 max -100-100
Parameters
| min -100-100 | Indicates the minimum temperature allowed for normal operation (range: -100°C to 100°C; default: 0°C). |
| max -100-100 | Indicates the maximum temperature allowed for normal operation (range: -100°C to 100°C; default: 0°C). |
Default
The default is None.
Command Mode
Global Config
5-17 environment trap
This command is used to configure environment status traps.
environment trap {fan I powersupply | temperature}
Parameters
| fan | This parameter is used to enable or disable the sending of traps for fan status events (default: enable). |
| powersupply | This parameter is used to enable or disable the sending of traps for power supply status events (default: enable). |
| temperature | This parameter is used to enable or disable the sending of traps for temperature status events (default: enable). |
Default
The default is None.
Command Mode
Global Config
5-18 show environment
This command is used to show information regarding system disk space and usage.
show environment
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing)#show environment | |||||||
| Temp (C)....53Fan Speed, RPM....5844Fan Duty Level....45%Temperature traps range: 0 to 97 degrees (Celsius) | |||||||
| Temperature Sensors: | |||||||
| Unit | Sensor | Description | Temp (C) | State | Max_Temp (C) | ||
| 1 | 1 | Core 0 | 35 | Normal | 38 | ||
| 1 | 2 | Core 1 | 35 | Normal | 38 | ||
| 1 | 3 | Core 2 | 35 | Normal | 39 | ||
| 1 | 4 | Core 3 | 35 | Normal | 39 | ||
| 1 | 5 | Switch Temp | 53 | Normal | 54 | ||
| 1 | 6 | Temp_1 | 38 | Normal | 39 | ||
| 1 | 7 | Temp_2 | 40 | Normal | 41 | ||
| Fans: | |||||||
| Unit | Fan | Description | Type | Speed | Duty level | State | |
| 1 | 1 | Fan1_rotor1 | Removable | 5844 | 45% | Operational | |
| 1 | 2 | Fan1_rotor2 | Removable | 4804 | 45% | Operational | |
| 1 | 3 | Fan2_rotor1 | Removable | 5696 | 45% | Operational | |
| 1 | 4 | Fan2_rotor2 | Removable | 4687 | 45% | Operational | |
| 1 | 5 | Fan3_rotor1 | Removable | 5648 | 45% | Operational | |
| 1 | 6 | Fan3_rotor2 | Removable | 4753 | 45% | Operational | |
1 7 Fan4_rotor1 Removable 5696 45% Operational
1 8 Fan4_rotor2 Removable 4736 45% Operational
Power Modules:
Unit Power supply Description Type State
---- ---- ---- ---- ----
1 1 PS-1 Removable Operational
1 2 PS-2 Removable Not powered
Disk usage information:
Unit Total space (KB) Free space (KB) Used space (KB) Utilization (%)
---- ---- ---- ---- ----
1 999,320 929,064 1,194,772 33
Display Parameters
| Unit | Indicates the system unit number. |
| Sensor | Indicates the sensor summary |
| Description | Indicates the name of the unit. |
| Temperature | (Optional) Displays information related to the temperature environment. |
| State | Indicates the condition state of the unit. |
| Max Temp | (Optional) Displays the maximum posted value for nominal operation. |
| Fan | (Optional) Displays information relating to the fan environment. |
| Type | (Optional) Indicates the hardware type. |
| Speed | (Optional) Indicates the fan speed. |
| Duty Level | (Optional) Indicates the current operational value of the component. |
| State | (Optional) Indicates the current state of the component. |
| Power Supply | (Optional) Displays power supply voltage and current information. If applicable, displays the status of the redundant power supply. |
| Total Space | Indicates (in KB) the total amount of disk space on the system. |
| Free Space | Indicates (in KB) the amount of available disk space on the system. |
| Used Space | Indicates (in KB) the amount of disk space in use on the system. |
| Utilization | Indicates (as a percentage of total disk space) the amount of disk space in use on the system. |
5-19 show version
This command is used to show inventory information for the switch.
Please note that in future releases of the software, the show version command will replace the show hardware command.
show version
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show version
Switch: 1
System Description.... DQS-5000-54SQ28 - 48 25GE + 6 100GE,
2.1.5, Linux 3.16.0-29-generic
Machine Type.... DQS-5000-54SQ28 - 48 25GE + 6 100GE
Machine Model.... DQS-5000-54SQ28
Serial Number.... SG1F1000068
Part Number.... BXS500054SAF.A1
Maintenance Level.... A1
Manufacturer.... D-LINK
Burned In MAC Address.... 00:05:64:2F:0D:E5
Software Version.... 1.00.005
Operating System.... Linux 3.16.0-29-generic
Network Processing Device.... 6592_B1
Additional Packages.... BGP-4
.... QOS
.... Multicast
.... IPv6
.... Routing
.... Data Center
.... Open API
.... Prototype Open API
Display Parameters
| System Description | This parameter consists of text that is used to identify the product name of this switch. |
| Machine Type | Indicates the machine type as defined by the Vital Product Data. |
| Machine Model | Indicates the machine model as defined by the Vital Product Data. |
| Serial Number | This parameter consists of the unique box serial number for the switch. |
| Part Number | This parameter consists of the manufacturing part number. |
| Maintenance Level | Indicates hardware changes that are of significance to software. |
| Manufacturer | This parameter consists of a description of the manufacturer. |
| Burned in MAC Address | Indicates the universally assigned network address. |
| Software Version | Indicates the release.version.revision number of the code that is currently running on the switch. |
| Operating System | Indicates the operating system that is currently running on the switch. |
| Network Processing Device | Indicates the type of the processor microcode being used. |
| Additional Packages | Indicates the additional packages that have been incorporated into this system. |
5-20 show interface
This command is used to display a summary of the statistics for a given specified interface or to display a count of all the CPU traffic based upon the argument.
show interface {slot/port | counters | dampening | debounce | ethernet | lag lag-id | loopback | priority-flow-control | switchport | tunnel}
Parameters
| slot/port | Select a slot/port interface. |
| counters | Indicates the summary statistics for all ports on the switch. |
| dampening | Indicates the interface dampening information. |
| debounce | Indicates the debounce timer configuration and the current link flap count. |
| ethernet | Indicates statistics for a single or all ports. |
| lag | Indicates the statistics for the LAG interface. |
| loopback | Indicates the configured Loopback interface information. |
| priority-flow-control | Indicaes the Priority-Flow-Control information. |
| switchport | Indicates the statistics for the CPU port on the switch. |
| tunnel | Indicates the configured Tunnel interface information. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the show interface output command.
(Routing)#show interface switchport
Packets Received Without Error.... 8229
Broadcast Packets Received.... 10
Packets Received With Error.... 0
Packets Transmitted Without Errors.... 8278
Broadcast Packets Transmitted.... 11
Transmit Packet Errors.... 0
Address Entries Currently in Use.... 5
VLAN Entries Currently in Use.... 3
Time Since Counters Last Cleared.... 7 day 18 hr 14 min 46 sec
Display Parameters
When the argument is slot/port, the display parameters are as follows:
| Packets Received Without Error | Indicates the total number of packets received by the processor (including broadcast packets). |
| Packets Received With Error | Indicates the number of inbound packets which contained errors that prevented them from being delivered to a higher-layer protocol. |
| Broadcast Packets Received | Indicates the total number of received packets that were directed to the broadcast address. |
| Receive Packets Discarded | Indicates the number of inbound packets that were selected for discard even though no errors preventing their delivery to a higher-layer protocol had been detected. One potential reason for discarding such packets would be to free up buffer space. |
| Packets Transmitted Without Error | Indicates the total number of packets transmitted from the interface. |
| Transmit Packets Discarded | Indicates the number of outbound packets that were selected for discard even though no errors preventing their delivery to a higher-layer protocol had been detected. One potential reason for discarding such packets would be to free up buffer space. |
| Transmit Packets Errors | Indicates the number of outbound packets that could not be transmitted due to errors. |
| Collisions Frames | Indicates the best estimate of the overall number of collisions on this Ethernet segment. |
| Number of link down events | Indicates the counts for the port link down. |
| Link Flaps | Indicates the port link flaps. |
| Time Since Counters Last Cleared | Indicates the elapsed time since the statistics for this switch were last cleared in days, hours, minutes, and seconds. |
5-21 show interfaces status
This command is used to show information regarding the interface, including its description, speed, port state, and auto-neg capabilities. It is similar to the show port all command, but it also shows additional fields such as the interface description and port-capability.
The interface description itself can be configured through the existing command description
show interfaces status [{slot/port | vlan id | all | lag}]
Parameters
| slot/port | (Optional) Select a slot/port to display its status. |
| vlan id | (Optional) Select a VLAN interface. |
| all | (Optional) Select to display all interfaces. |
| lag | (Optional) Select a lag interface. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing #show interfaces status 0/1
Port Name Link Physical Physical Media Flow Control
State Mode Status Type Status
0/1 Down 25G Full 25G-BaseSX Inactive
Flow Control:Disabled
Display Parameters
| Port | Indicates the interface that is associated with the rest of the data shown in the row. |
| Name | Indicates the descriptive user-configured name for the given interface. |
| Link State | Indicates whether or not the link is up. |
| Physical Mode | Indicates the duplex and speed settings on the given interface. |
| Physical Status | Indicates the duplex mode and port speed for physical interfaces, although the physical status of LAGs is not reported. In the event that a port is down, its physical status will be unknown. |
| Media Type | Indicates the media type of the interface. |
| Flow Control Status | Indicates the 802.3x flow control status. |
| Flow Control | Indicates the configured 802.3x flow control mode. |
5-22 show interface counters
This command is used to report key summary statistics for all the ports (physical/CPU/port-channel).
show interface counters
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show interface counters
Port InOctets InUcastPkts InMcastPkts InBcastPkts
0/1 0 0 0 0
0/2 0 0 0 0
0/3 15098 0 31 39
0/4 0 0 0 0
0/5 0 0 0 0
...
ch1 0 0 0 0
ch2 0 0 0 0
...
...
ch64 0 0 0 0
CPU 359533 0 3044 217
Port OutOctets OutUcastPkts OutMcastPkts OutBcastPkts
0/1 0 0 0 0
0/2 0 0 0 0
0/3 131369 0 11 89
0/4 0 0 0 0
0/5 0 0 0 0
...
ch1 0 0 0 0
ch2 0 0 0 0
...
...
ch64 0 0 0 0
CPU 4025293 0 32910 120
Display Parameters
| Port | Indicates the physical port, LAG, or CPU interface that is associated with the rest of the data shown in the row. |
| InOctets | Indicates the number of inbound octets that have been received by the interface. |
| InUcastPkts | Indicates the number of inbound unicast packets that have been received by the interface. |
| InMcastPkts | Indicates the number of inbound multicast packets that have been received by the interface. |
| InBcastPkts | Indicates the number of inbound broadcast packets that have been received by the interface. |
| OutOctets | Indicates the number of outbound octets that have been transmitted by the interface. |
| OutUcastPkts | Indicates the number of outbound unicast packets that have been transmitted by the interface. |
| OutMcastPkts | Indicates the number of outbound multicast packets that have been transmitted by the interface. |
| OutBcastPkts | Indicates the number of outbound broadcast packets that have been transmitted by the interface. |
5-23 show interface ethernet
This command is used to show detailed statistics for a given specified interface or for all the interfaces or for all the CPU traffic based upon the argument.
show interface ethernet {slot/port | all | lag | switchport}
Parameters
| slot/port | Select a slot/port to display its status. |
| all | Select to display statistics for all ports. |
| lag | Select a lag interface. |
| switchport | Select to display statistics for the CPU port on the switch. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command when the all keyword is used.
(Routing)#show interface ethernet all
| Port | Bytes | Tx | Bytes | Rx | Packets | Tx | Packets | Rx |
| 0/1 | 0 | 0 | 0 | 0 | ||||
| 0/2 | 0 | 0 | 0 | 0 | ||||
| 1/1 | 0 | 0 | 0 | 0 | ||||
| 1/2 | 8 | 6 | 0 | 0 |
Display Parameters
When a value for slot/port is specified, the command causes the following information to be displayed.
Packets Received
- Total Packets Received (Octets) – Indicates the total number of octets of data received on the network (excluding framing bits but including Frame Check Sequence (FCS) octets and those in bad packets). This parameter provides a reasonable estimate of Ethernet utilization. If the user requires greater precision, the etherStatsOctets and etherStatsPkts objects should be sampled before and after a common interval. The result for this equation is the value Utilization, which is itself the percent utilization (on a scale of 0 to 100 percent) of the Ethernet segment.
- Packets Received 64 Octets – Indicates the total number of received packets (including bad packets) that were 64 octets in length (excluding framing bits but including FCS octets).
- Packets Received 65-127 Octets – Indicates the total number of received packets (including bad packets) that were between 65 and 127 octets in length inclusive (excluding framing bits but including FCS octets).
- Packets Received 128-255 Octets – Indicates the total number of received packets (including bad packets) that were between 128 and 255 octets in length inclusive (excluding framing bits but including FCS octets).
- Packets Received 256-511 Octets – Indicates the total number of received packets (including bad packets) that were between 256 and 511 octets in length inclusive (excluding framing bits but including octets).
- Packets Received 512-1023 Octets – Indicates the total number of received packets (including bad packets) that were between 512 and 1023 octets in length inclusive (excluding framing bits but including FCS octets).
- Packets Received1024-1518 Octets – Indicates the total number of received packets (including bad packets) that were
| between 1024 and 1518 octets in length inclusive (excluding framing bits but including FCS octets). | |
| • Packets Received > 1518 Octets – Indicates the total number of received packets that were longer than 1522 octets (excluding framing bits, but including FCS octets) and were otherwise well formed. | |
| • Packets RX and TX 64 Octets – Indicates the total number of received and transmitted packets (including bad packets) that were 64 octets in length (excluding framing bits but including FCS octets). | |
| • Packets RX and TX 65-127 Octets – Indicates the total number of received and transmitted packets (including bad packets) that were between 65 and 127 octets in length inclusive (excluding framing bits but including FCS octets). | |
| • Packets RX and TX 128-255 Octets – Indicates the total number of received and transmitted packets (including bad packets) that were between 128 and 255 octets in length inclusive (excluding framing bits but including FCS octets). | |
| • Packets RX and TX 256-511 Octets – Indicates the total number of received and transmitted packets (including bad packets) that were between 256 and 511 octets in length inclusive (excluding framing bits but including FCS octets). | |
| • Packets RX and TX 512-1023 Octets – Indicates the total number of received and transmitted packets (including bad packets) that were between 512 and 1023 octets in length inclusive (excluding framing bits but including FCS octets). | |
| • Packets RX and TX 1024-1518 Octets – Indicates the total number of received and transmitted packets (including bad packets) that were between 1024 and 1518 octets in length inclusive (excluding framing bits but including FCS octets). | |
| • Packets RX and TX 1519-2047 Octets – Indicates the total number of received and transmitted packets that were between 1519 and 2047 octets in length inclusive (excluding framing bits, but including FCS octets) and were otherwise well formed. | |
| • Packets RX and TX 1523-2047 Octets – Indicates the total number of received and transmitted packets that were between 1523 and 2047 octets in length inclusive (excluding framing bits, but including FCS octets) and were otherwise well formed. | |
| • Packets RX and TX 2048-4095 Octets – Indicates the total number of received and transmitted packets that were between 2048 and 4095 octets in length inclusive (excluding framing bits, but including FCS octets) and were otherwise well formed. | |
| • Packets RX and TX 4096-9216 Octets – Indicates the total number of received and transmitted packets that were between 4096 and 9216 octets in length inclusive (excluding framing bits, but including FCS octets) and were otherwise well formed. | |
| Packets Received Successfully | • Total Packets Received Without Error – Indicates the total number of received packets that were without errors. |
| • Unicast Packets Received – Indicates number subnetwork-unicast packets that were delivered to a higher-layer protocol. | |
| • Multicast Packets Received – Indicates number subnetwork-multicast packets that were delivered to a higher-layer protocol.Broadcast Packets Received – Indicates the total number of received good packets that were directed to the broadcast address. | |
| Receive Packets Discarded | Indicates the number of inbound packets that were selected for discard even though no errors preventing their delivery to a higher-layer protocol had been detected. One potential reason for discarding such packets would be to free up buffer space. |
| Packets Received with MAC Errors | Total Packets Received with MAC Errors – Indicates the total number of inbound packets containing errors that prevented them from being delivered to a higher-layer protocol.Jabbers Received – Indicates the number of received packets that were longer than 1518 octets (excluding framing bits, but including FCS octets), and had either a bad FCS with a non-integral number of octets (Alignment Error) or a bad Frame Check Sequence (FCS) with an integral number of octets (FCS Error). It should be noted that this definition of a jabber is different than that provided in IEEE-802.3 section 8.2.1.5 (10BASE5) and section 10.3.1.4 (10BASE2). These documents define a jabber as any packet exceeding 20 ms. The allowed range for detecting a jabber is between 20 ms and 150 ms.Fragments/Undersize Received – Indicates the total number of received packets that were less than 64 octets in length (excluding framing bits but including FCS octets).Alignment Errors – – Indicates the total number of received packets that had a length (excluding framing bits, but including FCS octets) of between 64 and 1518 octets inclusive, but that also had a bad Frame Check Sequence (FCS) with a non-integral number of octets.FCS Errors – – Indicates the total number of received packets that had a length (excluding framing bits, but including FCS octets) of between 64 and 1518 octets inclusive, but that also had a bad Frame Check Sequence (FCS) with an integral number of octets.Overruns – Indicates the total number of frames that were discarded as this port was overloaded with incoming packets, such that it could not keep up with the inflow. |
| Received Packets Not Forwarded | Total Received Packets Not Forwarded – Indicates the count of valid received frames that were discarded (that is, filtered) by the forwarding process.802.3x Pause Frames Received – Indicates the count of MAC Control frames with an opcode indicating the PAUSE operation that were received on this interface. This count does not change when the interface is operating in half-duplex mode.Unacceptable Frame Type – Indicates the number of frames discarded from this port because they were of an unacceptable frame type. |
| Packets Transmitted Octets | Total Packets Transmitted (Octets) – Indicates the total number of octets of data received on the network (excluding framing bits but including FCS octets and those in bad packets). This parameter provides a reasonable estimate of Ethernet utilization. If the user requires greater precision, the etherStatsOctets and etherStatsPkts objects should be sampledbefore and after a common interval.Packets Transmitted 64 Octets – Indicates the total number of received packets (including bad packets) that were 64 octets in length (excluding framing bits but including FCS octets).Packets Transmitted 65-127 Octets – Indicates the total number of received packets (including bad packets) that were between 65 and 127 octets in length inclusive (excluding framing bits but including FCS octets).Packets Transmitted 128-255 Octets – Indicates the total number of received packets (including bad packets) that were between 128 and 255 octets in length inclusive (excluding framing bits but including FCS octets).Packets Transmitted 256-511 Octets – Indicates the total number of received packets (including bad packets) that were between 256 and 511 octets in length inclusive (excluding framing bits but including FCS octets).Packets Transmitted 512-1023 Octets – Indicates the total number of received packets (including bad packets) that were between 512 and 1023 octets in length inclusive (excluding framing bits but including FCS octets).Packets Transmitted 1024-1518 Octets – Indicates the total number of received packets (including bad packets) that were between 1024 and 1518 octets in length inclusive (excluding framing bits but including FCS octets).Packets Transmitted > 1518 Octets – Indicates the total number of transmitted packets that were longer than 1518 octets (excluding framing bits, but including FCS octets) and were otherwise well formed.Max Frame Size – Indicates the maximum size of the Info (non-MAC) field that the port in question will receive or transmit.Maximum Transmit Unit – Indicates the maximum Ethernet payload size for the port. |
| Packets Transmitted Successfully | Total Packets Transmitted Successfully – Indicates the number of frames that have successfully been transmitted by the port to its segment.Unicast Packets Transmitted – Indicates the total number of packets, including those that were discarded or not sent, that higher-level protocols asked to be transmitted to a subnetwork-unicast address.Broadcast Packets Transmitted – Indicates the total number of packets, including those that were discarded or not sent, that higher-level protocols asked to be transmitted to the Broadcast address. |
| Transmit Packets Discarded | Indicates the number of outbound packets that were selected for discard even though no errors preventing their delivery to a higher-layer protocol had been detected. One potential reason for discarding such packets would be to free up buffer space.. |
| Transmit Errors | Total Transmit Errors – Indicates the sum of Single, Multiple, and Excessive Collisions.Tx FCS Errors – Indicates the total number of transmitted packets that had a length (excluding framing bits, but includingFCS octets) from 64 to 1518 octets inclusive, but that also had a bad Frame Check Sequence (FCS) with an integral number of octets. |
| Oversized – Indicates the total number of frames that exceeded the maximum permitted frame size. This count has a maximum increment rate of 815 counts per sec. at 10 Mb/s. | |
| Underrun Errors – Indicates the total number of frames that were discarded due to the transmit FIFO buffer becoming empty during frame transmission. | |
| Transmit Discards | Total Transmit Packets Discards – Indicates the sum total of discarded single collision frames, multiple collision frames, and excessive frames. |
| Single Collision Frames – Indicates the number of frames successfully transmitted on a particular interface for which transmission was inhibited by exactly one collision. | |
| Multiple Collision Frames – Indicates the number of frames successfully transmitted on a particular interface for which transmission was inhibited by multiple collisions. | |
| Excessive Collisions – Indicates the number of frames for which transmission failed on a particular interface due to excessive collisions. | |
| Protocol Statistics | 802.3x Pause Frames Transmitted – Indicates the number of MAC Control frames with an opcode indicating the PAUSE operation transmitted on this interface. This count does not change when the interface is operating in half-duplex mode. |
| Protocol Statistics | STP BPDUs Transmitted – Indicates the number of Spanning Tree Protocol Bridge Protocol Data Units sent. |
| STP BPDUs Received – Indicates the number of Spanning Tree Protocol Bridge Protocol Data Units received. | |
| PVST BPDUs Transmitted – Indicates the number of per VLAN Spanning Tree (PVST) units transmitted. | |
| PVST BPDUs Received – Indicates the number of per VLAN Spanning Tree (PVST) units received. | |
| Rapid-PVST BPDUs Transmitted – Indicates the number of Rapid per VLAN Spanning Tree (PVST) units transmitted. | |
| Rapid-PVST BPDUs Received – Indicates the number of Rapid per VLAN Spanning Tree (PVST) units received. | |
| RSTP BPDUs Transmitted – Indicates the number of Rapid Spanning Tree Protocol Bridge Protocol Data Units sent. | |
| RSTP BPDUs Received – Indicates the number of Rapid Spanning Tree Protocol Bridge Protocol Data Units received. | |
| MSTP BPDUs Transmitted – Indicates the number of Multiple Spanning Tree Protocol Bridge Protocol Data Units sent. | |
| MSTP BPDUs Received – Indicates the number of Multiple Spanning Tree Protocol Bridge Protocol Data Units received. | |
| SSTP BPDUs Transmitted – Indicates the number of Shared Spanning Tree Protocol Bridge Protocol Data Units sent. | |
| SSTP BPDUs Received – Indicates the number of Shared Spanning Tree Protocol Bridge Protocol Data Units received. | |
| Dot1x Statistics | EAPOL Frames Transmitted – Indicates the number of EAPOL frames of any type transmitted by this authenticator.EAPOL Start Frames Received – Indicates the number of valid EAPOL start frames received by this authenticator. |
| Time Since Counters Last Cleared | Indicates the elapsed time since the statistics for this port were last cleared in days, hours, minutes, and seconds. |
If the all keyword is used, the following information is displayed.
| Total Octets Transmitted | Indicates the total number of octets of data transmitted on the network (excluding framing bits but including FCS octets and those in bad packets). This parameter provides a reasonable estimate of Ethernet utilization. If the user requires greater precision, the etherStatsOctets and etherStatsPkts objects should be sampled before and after a common interval. |
| Total Octets Received | Indicates the total number of octets of data received on the network (excluding framing bits but including Frame Check Sequence (FCS) octets and those in bad packets). This parameter provides a reasonable estimate of Ethernet utilization. If the user requires greater precision, the etherStatsOctets and etherStatsPkts objects should be sampled before and after a common interval. The result for this equation is the value utilization, which is itself the percent utilization (on a scale of 0 to 100 percent) of the Ethernet segment. |
| Total Packets Transmitted Successfully | Indicates the number of frames transmitted by this port to its segment. |
| Total Packets Received Without Error | Indicates the total number of packets that were received without errors. |
5-24 show interface ethernet switchport
This command is used to show the information regarding private VLAN mapping for the switch interfaces.
show interface ethernet interface-id switchport
Parameters
| interface-id | Indicates the slot/port for the switch. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show interface ethernet 0/1 switchport
Port: 0/1
VLAN Switchport mode: Private Vlan Host
Private VLAN configured Host association: 10 20
Private VLAN configured Promiscuous VLANS:
Operational Private VLANS :
Display Parameters
| Port | The interface ID of the switch. |
| VLAN switchport mode | Indicates the particular configuration mode. |
| Private-vlan host-association | Indicates the VLAN association of the private-VLAN host ports. |
| Private-vlan mapping | Indicates the VLAN mapping of the private-VLAN promiscuous ports. |
| Operational private VLANS | Indicates the type of association to the interface. |
5-25 show mac-addr-table
This command is used to show the forwarding database entries, which are utilized by the transparent bridging function to decide how to forward a received frame.
Enter either the all parameter or the no parameter to show the entire table. To display the table entry for a specific MAC address on the specified VLAN, enter that MAC Address and the VLAN ID. To view summary information about the forwarding database table, enter the count parameter. To view MAC addresses on a specific interface, use the interface {slot/port I lag Lag-id} parameter. To display information about MAC addresses on a specified VLAN, use the vlan vlan_id parameter.
show mac-addr-table [{macaddr vlan_id | all | count | interface {slot/port | lag lag-id | vlan vlan_id} | vlan vlan_id}]
Parameters
| macaddr | Select a 6 byte MAC address. |
| vlan_id | Indicates a VLAN ID. |
| all | Select to indicate all interfaces. |
| count | Indicates the FDB count. |
| interface | Indicates the MAC address on the interface. |
| slot/port | Indicates the slot/port of the interface. |
| lag lag-id | Select to enter interface lag mode. |
| vlan vlan_id | Select to enter VLAN format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
| (Routing)#show mac-addr-table | |||||
| VLAN ID MAC Address Interface IfIndex Status | |||||
| 1 | 00:05:64:2F:0D:E5 | cpu | 235 | Management | |
| 1 | 00:05:64:2F:0D:E6 | cpu | 235 | Management | |
| 1 | 00:05:64:2F:0D:E7 | cpu | 235 | Management | |
Display Parameters
The following information is shown if the user does not enter a parameter, the keyword all, or the MAC address and VLAN ID.
| VLAN ID | Indicates the VLAN in which the MAC address is learned. |
| MAC Address | Indicates a unicast MAC address that the switch has forwarding and/or filtering information for. The format of the address consists of 6 two-digit hexadecimal numbers separated by colons (for example, 01:23:45:67:89:AB). |
| Interface | Indicates the port through which the address in question was learned. |
| Interface Index | Indicates the ifIndex of the interface table entry that is associated with the port in quesiton. |
| Status | Indicates the status of this entry. The meanings for the values are as follows:Static – Indicates that the value of the corresponding instance was added by a user or the system when a static MAC filter was defined. This value cannot be relearned.Learned – Indicates that the value of the corresponding instance was learned by observing the source MAC addresses of incoming traffic, and that the value is currently in use.Management – Indicates that the value of the corresponding instance (that is, the system MAC address) is also the value of an existing instance of the dot1dStaticAddress. The value is identified with interface 0/1. and is currently used when VLANs are enabled for routing.Self – Indicates that the value of the corresponding instance consists of the address of one of the switch’s physical interfaces (that is, the system’s own MAC address).Other – Indicates that the value of the corresponding instance |
does not fall under one of the aforementioned categories.
If the vlan vlan_id is entered, then only the MAC Address, interface, and Status fields will be displayed. If the interface slot/port parameter is entered, then the VLAN ID will also appear in addition to the MAC Address and Status fields.
The following information is displayed if the count parameter is entered:
| Dynamic Address count | Indicates the number of MAC addresses in the forwarding database that have been automatically learned. |
| Static Address (User-defined) count | Indicates the number of MAC addresses in the forwarding database that have been manually entered by a user. |
| Total MAC Addresses in use | Indicates the number of MAC addresses currently included in the forwarding database. |
| Total MAC Addresses available | Indicates the number of MAC addresses that the forwarding database can handle. |
5-26 process cpu threshold
This command is used to configure the CPU utilization thresholds, with the Rising and Falling thresholds being specified as a percentage of the CPU resources. The utilization monitoring time period must be in multiples of 5 seconds and can be configured to be any value from 5 seconds to 86400 seconds. The configuration of the CPU utilization threshold will be saved across any switch reboot. The configuration of the falling utilization threshold is optional. In the event that the falling CPU utilization parameters are not configured, then the same value used for the rising CPU utilization parameters will be used for the falling parameters.
process cpu threshold type total rising 1-100 interval <5-86400> {[falling] 1-100 interval <5-86400> {[falling] 1-100 interval <5-86400>}
Parameters
None
Default
The default is None.
Command Mode
Global Config
Display Parameters
| rising threshold | Indicates the percentage of CPU resources that triggers a notification when exceeded by the configured rising interval (range: 1 to 100; default: 0 (disabled)). |
| rising interval | Indicates, the duration, in seconds, for the CPU rising threshold violation that must be met to trigger a notification (range: 5 to 86400; default: 0 (disabled)). |
| falling threshold | Indicates the percentage of CPU resources that triggers a notification when exceeded by the configured falling interval (range: 1 to 100; default: 0 (disabled)).In other words, when the total CPU utilization falls below the specified level for a configured period of time, a notification is triggered. Note that the falling utilization threshold notification is triggered only if a rising threshold notification was previously sent. The falling utilization threshold value must always be set at equal to or less than the rising threshold value. |
| falling interval | Indicates, the duration, in seconds, for the CPU falling threshold violation that must be met to trigger a notification (range: 5 to 86400; default: 0 (disabled)). |
5-27 show process app-list
This command is used to show the user and system applications.
show process app-list
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show process app-list
ID Name PID Admin Status Auto Restart Running Status
1 dataplane 15309 Enabled Disabled Running
2 switchdrvr 15310 Enabled Disabled Running
3 syncdb 15314 Enabled Disabled Running
4 lighttpd 18718 Enabled Enabled Running
5 syncdb-test 0 Disabled Disabled Stopped
6 proctest 0 Disabled Enabled Stopped
7 user.start 0 Enabled Disabled Stopped
Display Parameters
| ID | Indicates the application identifier. |
| Name | Indicates the name that identifies the process. |
| PID | Indicates the number that the software uses to identify the process |
| Admin Status | Indicates the administrative status of the process. |
| Auto Restart | Indicates whether or not the process will be automatically restarted if it stops. |
| Running Status | Indicates whether or not the process is currently running. |
5-28 show process proc-list
This command is used to show the configured and in-use processes.
show process proc-list
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
| (Routing)#show process proc-list | |||||||
| PID | Process Name | Application ID-Name | Chld | VM Size (KB) | VM Peak (KB) | FD Count | |
| 15260 | procmgr | 0-procmgr No 1984 | 1984 | 8 | |||
| 15309 | dataplane | 1-dataplane | No | 293556 | 293560 | 11 | |
| 15310 | switchdrvr | 2-switchdrvr | No | 177220 | 177408 | 57 | |
| 15314 | syncdb | 3-syncdb | No 2060 | 2080 8 | |||
| 18718 | lighttpd | 4-lighttpd | No | 5508 | 5644 | 11 | |
| 18720 | lua_magnet | 4-lighttpd | Yes | 12112 | 12112 | 7 | |
| 18721 | lua_magnet | 4-lighttpd | Yes | 25704 | 25708 | 7 | |
Display Parameters
| PID | Indicates the number that the software uses to identify the process. |
| Process Name | Indicates the name that identifies the process. |
| Application ID-Name | Indicates the application identifier along with its associated name. |
| Child | Indicates whether or not the process has spawned a child process. |
| VM Size | Indicates the virtual memory size. |
| VM Peak | Indicates the maximum amount of virtual memory that the process has used at any given time. |
| FD Count | Indicates the file descriptors count for the process. |
5-29 show process app-resource-list
This command is used to show the configured and in-use resources of each application.
show process app-resource-list
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing) #show process app-resource-list | ||||||||
| ID | Name | PID | Memory Limit | CPU Share | Memory Usage | Max Mem Usage | ||
| --- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- |
| 1 | switchdrvr | 251 | Unlimited | Unlimited | 380 MB | 381 MB | ||
| 2 | syncdb | 252 | Unlimited | Unlimited | 0 MB | 0 MB | ||
| 3 | syncdb-test | 0 | Unlimited | Unlimited | 0 MB | 0 MB | ||
| 4 | proctest | 0 | 10 MB | 20% | 0 MB | 0 MB | ||
| 5 | utelnetd | 0 | Unlimited | Unlimited | 0 MB | 0 MB | ||
| 6 | lxshTelnetd | 0 | Unlimited | Unlimited | 0 MB | 0 MB | ||
| 7 | user.start | 0 | Unlimited | Unlimited | 0 MB | 0 MB | ||
Display Parameters
| ID | Indicates the application identifier. |
| Name | Indicates the name that identifies the process. |
| PID | Indicates the number that the software uses to identify the process. |
| Memory Limit | Indicates the maximum amount of memory that the process can consume. |
| CPU Share | Indicates the maximum percentage of CPU utilization that the process can consume. |
| Memory Usage | Indicates the amount of memory that the process is using currently. |
| Max Mem Usage | Indicates the maximum amount of memory that the process has used at any time since it was started. |
5-30 show process cpu threshold
This command is used to show the percentages of CPU utilization by different tasks.
It should be noted that it is not only the traffic to the CPU that could keep it busy, but the different tasks as well.
show process cpu threshold
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command using Linux.
(Switching)#show process cpu
Memory status Utilization bytes Report
free 106450944
alloc 423227392
CPU Utilization:
PID Name 5 Secs 60 Secs 300 Secs
765 _interrupt_thread 0.00% 0.01% 0.02%
767 L2X.0 0.58% 0.35% 0.28%
768 CNTR.0 0.77% 0.73% 0.72%
773 RX 0.00% 0.04% 0.05%
786 cpuUtilMonitorTask 0.19% 0.23% 0.23%
834 dotls_task 0.00% 0.01% 0.01%
810 hapiRxTask 0.00% 0.01% 0.01%
805 dtlTask 0.00% 0.02% 0.02%
863 spmTask 0.00% 0.01% 0.00%
894 ip6MapLocalDataTask 0.00% 0.01% 0.01%
908 RMONTask 0.00% 0.11% 0.12%
Total CPU Utilization 1.55% 1.58% 1.50%
5-31 show running-config
This command is used to show or record the current settings of different protocol packages supported on the switch. More specifically, it displays or records those commands with settings and configurations that are different from the default values. To display or record those commands with settings and configurations that remain equal to the default value, simply include the all option.
It should be noted that the Show running-config command does not show the User Password, even if one different from the default has been set.
The output for the command is displayed in script format, and the output can then be used to configure another switch with the same configuration. The output will be redirected to a script file if the optional scriptname is provided with a file name extension of “.scr”.
Note: If the show running-config command is issued from a serial connection, access to the switch via remote connections (such as Telnet) will be suspended as the output is being generated and shown.
Note: If a text-based configuration file is used, then the show running-config command will only show the configured physical interfaces. That is, if any interface contains only the default configuration, then that interface will be skipped when generating the show running-config command output. (This is true, in fact, for any configuration mode for which nothing but the default configuration is used.) In other words, the command to enter a particular config mode, as well as its exit command, are both omitted from the generated show running-config command output. As a result, they are omitted from the startup-config file when the configuration for the system is saved.
The following keys should be used to navigate the command output.
Key Action
| Enter | Advances one line. |
| Space Bar | Advances one page. |
| q | Stops the output and returns to the prompt. |
It should be noted that --More-- or (q)uit is shown at the bottom of the output screen until the user reaches the end of the output.
This command is used to display the current settings for the OSPFv2 trapflag status:
- In the event that all the flags are enabled, then trapflags all will be displayed by the command.
- In the event that all the flags in a specific group are enabled, then the command will cause the trapflags group name all to be displayed.
- If only some but not all of the flags in said group are enabled, the command will cause the trapflags groupname flag-name to be displayed.
show running-config [all | interface | vpc | scriptname]
Parameters
| scriptname | (Optional) Indicates the script file name for writing active configuration. |
| all | (Optional) Select to display all the running configurations. |
| interface | Indicates the running configuration for a specified interface. |
| vpc | Indicates the vpc running configuration. |
Default
The default is None.
Command Mode
Privileged EXEC
5-32 show running-config interface
This command is used to show the running configuration for a particular interface, with valid interfaces including physical LAG, tunnel, loopback, and VLAN interfaces.
show running-config interface {interface | lag lag-intf-num | loopback loopback-id | tunnel tunnel-id | vlan vlan-id}
Parameters
| interface | Indicates the running configuration for the specified interface. |
| lag lag-intf-num | Indicates the running configuration for the LAG interface. |
| loopback loopback-id | Indicates the running configuration for the loopback interface. |
| tunnel tunnel-id | Indicates the running configuration for the tunnel interface. |
| vlan vlan-id | Indicates the running configuration for the VLAN routing interface. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show running-config interface 0/1
!Current Configuration:
!
interface 0/1
addport 3/1
exit
(Routing)#
Display Parameters
| slot/port | Indicates a given interface in slot/port format. |
| lag | Indicates the running config for a particular lag interface. |
| loopback | Indicates the running config for a particular loopback interface. |
| tunnel | Indicates the running config for a particular tunnel interface. |
| vlan | Indicates the running config for a particular VLAN routing interface. |
5-33 show {startup-config | backup-config | factory-defaults}
This command is used in the CLI to show the content of text-based configuration files (i.e., the startup-config, backup-config, and factory-defaults files) that are saved in a compressed form in flash. When this command is used, the files are decompressed when their content is shown.
show {startup-config | backup-config | factory-defaults}
Parameters
| startup-config | Indicates the content of the startup-config file. |
| backup-config | Indicates the content of the backup-config file. |
| factory-defaults | Indicates the content of the factory-defaults file. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command when using the startup-config parameter.
(Routing)#show startup-config
!Current Configuration:
!
!System Description "DQS-5000-54SQ28 - 48 25GE + 6 100GE, 1.00.005, Linux 3.16.0-29-generic"
!System Software Version "1.00.005"
!System Up Time "0 days 0 hrs 0 mins 29 secs"
!Additional Packages BGP-4,QOS,Multicast,IPv6,Routing,Data Center
!Current System Time: Apr 26 13:50:51 2018
!
vlan database
exit
configure
ip routing
vxlan enable
line console
exit
line telnet
exit
line ssh
exit
!
interface loopback 0
ip address 192.168.1.30 255.255.255.255
ip ospf area 1
exit
interface 0/49
speed 40G full-duplex
routing
ip address 2.2.2.2 255.255.255.252
ip ospf area 1
exit
interface 0/50
speed 40G full-duplex
routing
ip address 1.1.1.2 255.255.255.252
ip ospf area 1
exit
router ospf
router-id 192.168.1.30
exit
ipv6 router ospf
exit
exit
The following is an example of the CLI display output for the command when using the backup-config parameter.
(Routing)#show backup-config
!Current Configuration:
!
!System Description "DQS-5000-54SQ28 - 48 25GE + 6 100GE, 1.0.4, Linux 3.16.0-29-generic"
!System Software Version "1.00.005"
!System Up Time "5 days 19 hrs 15 mins 33 secs"
!Additional Packages BGP-4,QOS,Multicast,IPv6,Routing,Data Center
!Current System Time: Apr 1 01:55:43 2018
!
serviceport protocol dhcp
network parms 10.90.90.13 255.255.255.0 0.0.0.0
vlan database
vlan 10,20,30
exit
configure
vxlan enable
line console
exit
line telnet
exit
line ssh
exit
spanning-tree configuration name "DLINK"
spanning-tree configuration revision 1
spanning-tree mst instance 1
spanning-tree mst priority 1 20480
spanning-tree mst vlan 1 10
spanning-tree mst instance 2
spanning-tree mst vlan 2 20
spanning-tree mst instance 3
spanning-tree mst vlan 3 30
interface 0/5
speed 10G full-duplex
addport 3/1
exit
interface 0/6
speed 10G full-duplex
addport 3/1
exit
interface 0/9
speed 10G full-duplex
addport 3/3
exit
interface 0/10
speed 10G full-duplex
addport 3/3
exit
!
snmp-server community "private" rw
interface 0/5
description 'Conn_SW4'
exit
interface 0/6
description 'Conn_SW4'
exit
interface 0/9
description 'Conn_SW2'
exit
interface 0/10
description 'Conn_SW2'
exit
interface lag 1
switchport mode access
exit
interface lag 3
switchport mode access
exit
router ospf
exit
ipv6 router ospf
router-id 3.3.3.3
exit
exit
The following is an example of the CLI display output for the command when using the factory-defaults parameter.
(Routing)#show factory-config
!Current Configuration:
!
!System Description "DQS-5000-54SQ28 - 48 25GE + 6 100GE, 1.00.005, Linux 3.16.0-29-generic"
!System Software Version "1.00.005"
!System Up Time "0 days 0 hrs 0 mins 29 secs"
!Additional Packages BGP-4,QOS,Multicast,IPv6,Routing,Data Center
!Current System Time: Apr 26 13:50:51 2018
!
vlan database
exit
configure
ip routing
vxlan enable
line console
exit
line telnet
exit
line ssh
exit
!
interface 0/49
exit
interface 0/50
exit
router ospf
exit
ipv6 router ospf
exit
exit
5-34 show sysinfo
This command is used to show switch information.
show sysinfo
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show sysinfo
System Description.... DQS-5000-54SQ28 - 48 25GE + 6 100GE,
1.00.005, Linux 3.16.0-29-generic
System Name.... Switch
System Location.....
System Contact.....
System Object ID.... 1.3.6.1.4.1.171.10.162.3.1
System Up Time.... 1 days 20 hrs 3 mins 44 secs Apr 25
01:38:00 2018 UTC
MIBs Supported:
RFC 1907 - SNMPv2-MIB The MIB module for SNMPv2 entities
HC-RMON-MIB The original version of this MIB, published
as RFC3273.
HCNUM-TC A MIB module containing textual conventions
for high capacity data types.
SNMP-COMMUNITY-MIB This MIB module defines objects to help
support coexistence between SNMPv1, SNMPv2,
and SNMPv3.
SNMP-MPD-MIB The MIB for Message Processing and
Dispatching
SNMP-TARGET-MIB The Target MIB Module
SNMP-VIEW-BASED-ACM-MIB The management information definitions for
the View-based Access Control Model for SNMP.
SFLOW-MIB sFlow MIB
NAX-ISDP-MIB Industry Standard Discovery Protocol MIB
NAX-BOXSERVICES-PRIVATE-MIB The D-Link Private MIB for NAX Box Services
| Feature. | |
| IANA-ADDRESS-FAMILY-NUMBERS-MIB | The MIB module defines the AddressFamilyNumbers textual convention. |
| NAX-DENIALOFSERVICE-PRIVATE-MIB | The D-Link Private MIB for NAX Denial of Service. |
| LLDP-MIB | Management Information Base module for LLDP configuration, statistics, local system data and remote systems data components. |
| LLDP-EXT-MED-MIB | The LLDP Management Information Base extension module for TIA-TR41.4 Media Endpoint Discovery information. |
| NAX-OPENFLOW-PRIVATE-MIB | The D-Link Private MIB for NAX OpenFlow |
| SMON-MIB | The MIB module for managing remote monitoring device implementations for Switched Networks |
| NAX-TIMERANGE-MIB | The D-Link Private MIB for NAX Time Ranges |
| DISMAN-TRACEROUTE-MIB | The Traceroute MIB (DISMAN-TRACEROUTE-MIB) provides access to the traceroute capability at a remote host. |
| RFC 1213 - RFC1213-MIB | Management Information Base for Network Management of TCP/IP-based internets: MIB-II |
| RFC 2674 - P-BRIDGE-MIB | The Bridge MIB Extension module for managing Priority and Multicast Filtering, defined by IEEE 802.1D-1998. |
| RFC 2737 - ENTITY-MIB | Entity MIB (Version 2) |
| RFC 3635 - Etherlike-MIB | Definitions of Managed Objects for the Ethernet-like Interface Types |
| NAX-INVENTORY-MIB | Unit and Slot configuration. |
| INET-ADDRESS-MIB | This MIB module defines textual conventions for representing Internet addresses. |
| NAX-LOGGING-MIB | This MIB provides objects to configure and display events logged on this system. |
| IANA-MAU-MIB | This MIB module defines dot3MauType OBJECT-IDENTITIES and IANAifMauListBits, IANAifMauMediaAvailable, IANAifMauAutoNegCapBits, |
| NAX-PFC-MIB | The MIB definitions Priority based Flow Control Feature. |
| NAX-VPC-MIB | The MIB definitions for VPC. |
| NAX-DOT1X-ADVANCED-FEATURES-MIB | The D-Link Private MIB for NAX Dot1x Advanced Features |
| NAX-RADIUS-AUTH-CLIENT-MIB | The D-Link Private MIB for NAX Radius Authentication Client. |
| RADIUS-AUTH-CLIENT-MIB | RADIUS Authentication Client MIB |
| -MANAGEMENT-ACAL-MIB | The D-Link Private MIB for NAX management acal feature. |
| RFC 1850 - OSPF-MIB | OSPF Version 2 Management Information Base Definitions of Managed Objects for the Virtual Router Redundancy Protocol |
| RFC 2787 - VRRP-MIB | |
| IP-FORWARD-MIB | The MIB module for the management of CIDR |
multipath IP Routes.
NAX-LOOPBACK-MIB The D-Link Private MIB for NAX Loopback
NAX-BGP-MIB The MIB definitions for Border Gateway
Protocol Flex package.
NAX-QOS-ACL-MIB NAX Flex QOS ACL
NAX-QOS-AUTOVOIP-MIB NAX Flex QOS VOIP
RFC 2932 - IPMROUTE-MIB IPv4 Multicast Routing MIB
RFC 5060 - PIM-STD-MIB Protocol Independent Multicast MIB
DVMRP-STD-MIB Distance-Vector Multicast Routing Protocol MIB
NAX-MULTICAST-MIB The MTB definitions for Multicast Routing Flex package.
MGMD-STD-MIB The MIB module for MGMD Management.
RFC 2466 - IPV6-ICMP-MIB Management Information Base for IP Version 6: ICMPv6 Group
NAX-ROUTING6-MIB The D-Link Private MIB for NAX IPv6 Routing.
NAX-IPV6-LOOPBACK-MIB The D-Link Private MIB for NAX Loopback IPV6 address configuration.
NAX-DCBX-MIB The MIB module defines objects to configure DCBX
IEEE8021-CN-MIB Congestion notification module for managing IEEE 802.1Qau
LLDP-V2-TC-MIB Textual conventions used throughout the IEEE Std 802.1AB version 2 and later MIB modules.
Display Parameters
| System Description | Indicates text used to identify the switch. |
| System Name | Indicates the name used to identify the switch. For this parameter, the factory default is blank. For instructions on how to configure the system name, please see “snmp-server”. |
| System Location | Indicates text used to specify the location of the switch. For this parameter, the factory default is blank. For instructions on how to configure the system location, please see “snmp-server”. |
| System Contact | Indicates text used to specify a contact person for the switch. For this parameter, the factory default is blank. For instructions on how to configure the system location, please see “snmp-server”. |
| System ObjectID | Indicates the base object ID for the switch’s enterprise MIB. |
| System Up Time | Indicates time since the last switch reboot in days, hours and minutes. |
| MIBs Supported | Indicates the list of MIBs supported by this agent. |
5-35 show tech-support
The show tech-support command is used to show the system and configuration information for the whole system, or the information for BGP, BGP-IPv6, OSPF, or OSPFv3 when the user contacts technical support. The output for the command includes log history files from previous runs. The output of the command also combines the output for all of the following commands:
• show version
• show sysinfo
• show port all
• show isdp neighbors
• show event log
• show logging buffered
• show trap log
• show previous run persistent logs
• show running config
• show debugging
It should be noted that the log messages are sorted and then shown in reverse chronological order.
show tech-support [{bgp | datacenter | dcvpn | dot1q | dot1s | ipv6 | layer3 | link_dependency | lldp | log | routing | sim | switching | system] [file]} | file]
Parameters
| bgp | Indicates bgp related information |
| datacenter | Indicates datacenter related information. |
| dcvpn | Indicates dcvpn related information. |
| dot1q | Indicates dot1q related information. |
| dot1s | Indicates dot1s related information. |
| dot3ad | Indicates dot3ad related information. |
| file | Indicates the file for output dump. |
| isdp | Indicates isdp related information. |
| layer3 | Indicates layer3 related information. |
| link_dependency | Indicates link_dependency related information. |
| lldp | Indicates lldp related information. |
| log | Indicates log related information. |
| routing | Indicates routing related information. |
| sim | Indicates sim related information. |
| switching | Indicates switching related information. |
| system | Indicates system related information. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show tech-support
************************** show version **************************
Switch: 1
System Description. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DQS-5000-54SQ28 - 48 25GE + 6 100GE, 2.1.5, Linux 3.16.0-29-generic
Machine Type. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DQS-5000-54SQ28 - 48 25GE + 6 100GE
Machine Model. . . . . . . . . . . . . . . . . . . . DQS-5000-54SQ28
Serial Number. . . . . . . . . . . . . . . 2N38C000068
Part Number. . . . . . . . . . . . . BXS500054SAF.A1
Maintenance Level. .. A
Manufacturer. .. D-LINK
Burned In MAC Address. .. 00:05:64:2F:0D:E5
Software Version. .. 1.00.005
Operating System. .. Linux 3.16.0-29-generic
Network Processing Device. .. 9324_B1
Additional Packages. .. BGP-4
QOS
Multicast
IPv6
Routing
Data Center
OpEN API
Prototype Open API
************************** show sysinfo **************************
System Description. .. DQS-5000-54SQ28 - 48 25GE + 6 100GE, 2.1.5, Linux 3.16.0-29-generic
System Name. .. Switch
System Location. ..
System Contact. ..
System Object ID. .. 1.3.6.1.4.1.171.10.162.3.1
System Up Time. .. 1 days 20 hrs 9 mins 18 secs Apr 25 01:43:34 2018 UTC
MIBs Supported:
RFC 1907 - SNMPv2-MIB. .. The MIB module for SNMPv2 entities HC-RMON-MIB. .. The original version of this MIB, published as RFC3273.
HCNUM-TC. .. A MIB module containing textual conventions for high capacity data types.
| SNMP-COMMUNITY-MIB. | This MIB module defines objects to help support coexistence between SNMPv1, SNMPv2, and SNMPv3. |
| SNMP-MPD-MIB. | The MIB for Message Processing and Dispatching |
| SNMP-TARGET-MIB. | The Target MIB Module |
| SNMP-VIEW-BASED-ACM-MIB. | The management information definitions for the View-based Access Control Model for SNMP. |
| SFLOW-MIB. | sFlow MIB |
| NAX-ISDP-MIB. | Industry Standard Discovery Protocol MIB |
| NAX-BOXSERVICES-PRIVATE-MIB. | The Private MIB for NAX Box Services Feature. |
| IANA-ADDRESS-FAMILY-NUMBERS-MIB. | The MIB module defines the AddressFamilyNumbers textual convention. |
| NAX-KEYING-PRIVATE-MIB. | The Private MIB for NAX Keying Utility |
| LLDP-EXT-DOT3-MIB. | The LLDP Management Information Base extension module for IEEE 802.3 organizationally defined discovery information. |
| NAX-LLPF-PRIVATE-MIB. | The Private MIB for NAX Link Local Protocol Filtering. |
| DISMAN-PING-MIB. | The Ping MIB (DISMAN-PING-MIB) provides the capability of controlling the use of the ping function at a remote host. |
| NAX-OUTBOUNDTELNET-PRIVATE-MIB. | The Private MIB for NAX Outbound Telnet |
| NAX-TIMEZONE-PRIVATE-MIB. | The Private MIB for NAX for system time, timezone and summer-time settings |
| LAG-MIB. | The Link Aggregation module for managing IEEE 802.3ad |
| RFC 1493 - BRIDGE-MIB. | Definitions of Managed Objects for Bridges (dot1d) |
| RFC 2674 - Q-BRIDGE-MIB. | The VLAN Bridge MIB module for managing Virtual Bridged Local Area Networks |
| RFC 2863 - IF-MIB. | The Interfaces Group MIB using SMIv2 |
| NAX-SWITCHING-MIB. | NAX Switching - Layer 2 |
| NAX-PORTSECURITY-PRIVATE-MIB. | Port Security MIB. |
| IANAifType-MIB. | This MIB module defines the IANAifType Textual Convention |
| MAU-MIB. | Management information for 802.3 MAUs. |
| NAX-MVR-PRIVATE-MIB. | The Private MIB for MVR Configuration |
| IEEE8021-PFC-MIB. | Priority-based Flow Control module for managing IEEE 802.1Qbb |
| IEEE8021-PAE-MIB. | Port Access Entity module for managing IEEE 802.1X. |
| NAX-DOT1X-AUTHENTICATION-SERVER-MIB. | The Private MIB for NAX Dot1x Authentication Server |
| RADIUS-ACC-CLIENT-MIB. | RADIUS Accounting Client MIB |
| TACACS-CLIENT-MIB. | Defines a portion of the SNMP MIB under the OID pertaining to TACACS+ client configurati |
| NAX-MGMT-SECURITY-MIB. | The Private MIB for NAX Mgmt Security |
| RFC 1850 - OSPF-TRAP-MIB. | The MIB module to describe traps for the OSPF Version 2 Protocol. |
| NAX-ROUTING-MIB. | NAX Routing - Layer 3 |
| IP-MIB. | The MIB module for managing IP and ICMP implementations, but excluding their management of IP routes. |
| RFC 1657 - BGP4-MIB. | Definitions of Managed Objects for the Fourth Version of the Border Gateway Protocol (BGP-4) using SMIv2 |
| NAX-QOS-MIB. | NAX Flex QOS Support |
| NAX-QOS-COS-MIB. | NAX Flex QOS COS |
| NAX-QOS-DIFFSERV-PRIVATE-MIB. | NAX Flex QOS DiffServ Private MIBs' definitions draft-ietf-magma-mgmd-mib-03 MGMD MIB, includes IGMPv3 and MLDv2. |
| RFC 5240 - PIM-BSR-MIB. | Bootstrap Router mechanism for PIM routers |
| IANA-RTPROTO-MIB. | IANA IP Route Protocol and IP MRoute Protocol Textual Conventions |
| IPMROUTE-STD-MIB. | The MIB module for management of IP Multicast routing, but independent of the specific multicast routing protocol in use. |
| RFC 2465 - IPV6-MIB. | Management Information Base for IP Version 6: Textual Conventions and General Group |
| RFC 3419 - TRANSPORT-ADDRESS-MIB. | Textual Conventions for Transport Addresses |
| NAX-DHCP6SERVER-PRIVATE-MIB. | The Private MIB for NAX DHCPv6 Server/Relay |
| NAX-IPV6-TUNNEL-MIB. | The Private MIB for NAX IPV6 Tunnel. |
| NAX-FIPSNOOPING-MIB. | The MIB module defines objects to configure FIP snooping and monitor the status of FCoE sessions. |
| IEEE8021-TC-MIB. | Textual conventions used throughout the various IEEE 802.1 MIB modules. |
| ********** show hardware********** | |
| Unrecognized command : show hardware | |
| Error! Command 'show hardware' doesn't exist.Hence aborting TechSupport execution. | |
| ********** show running-config********** | |
| !Current Configuration: ! !System Description "DQS-5000-54SQ28 - 48 25GE + 6 100GE, 1.00.005, Linux 3.16.0-29-generic" | |
!System Software Version "1.00.005"
!System Up Time "1 days 20 hrs 9 mins 18 secs"
!Additional Packages BGP-4, QOS, Multicast, IPv6, Routing, Data Center
!Current System Time: Apr 25 01:43:34 2018
!
vlan database
exit
configure
ipv6 pim sparse
ipv6 pim ssm default
vxlan enable
line console
exit
line telnet
exit
line ssh
exit
!
interface 0/1
ip address 10.1.1.2 255.255.0.0
ipv6 pim join-prune-interval 90
ip igmp
ip pim join-prune-interval 90
exit
router ospf
exit
ipv6 router ospf
exit
process cpu threshold type total rising 100 interval 5 falling 100 interval 5
exit
************************** debug crash & kernel logs **************************
************************** Debug crashlog 0 unit 1 *************************
Displaying FASTPATH Crash Dump 0
For kernel Crash Dump - osapiDebugCrashDumpDisplay(x,1)
Crash Dump 0 is not found
<Output truncated>
5-36 length value
This command is persistent and is used to set the pagination length to a specific number of lines for the sessions specified through configuring on different Line Config modes (telnet/ssh/console).
It should be noted that the length command on the Line Console mode applies for Serial Console sessions.
length value
no length value
Parameters
None
Default
The default is 24.
Command Mode
Line Config
5-37 show terminal length
This command is used to show all the configured terminal length values.
show terminal length
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show terminal length
Terminal Length:
For Current Session.... 24
For Serial Console.... 24
For Telnet Sessions.... 24
For SSH Sessions.... 24
5-38 memory free low-watermark processor
This command is used to ensure that a notification is sent when the CPU free memory falls below a configured threshold.. Subsequently, another notification is produced and sent when the available free memory increases to 10 percent above the specified threshold. However, only one Rising or Falling
memory notification will be generated over any period of 60 seconds in order to prevent the generation of excessive notifications when the free memory fluctuates around the configured threshold, which is specified in kilobytes. A given CPU free memory threshold configuration will be saved across a switch reboot.
memory free low-watermark processor 1-1034956
Parameters
| low-watermark | Indicates the threshold at which a notification message is triggered when the CPU free memory falls below the threshold (range: 1 to the maximum available memory on the switch; default: 0 (disabled)). |
Default
The default is None.
Command Mode
Global Config
5-39 clear mac-addr-table
This command is used to dynamically clear any learned entries from the forwarding database. Using the options discussed below, the user can specify the particular set of dynamically-learned forwarding database entries to be cleared.
clear mac-addr-table {all | vlan vlanId | interface slot/port | macAddr [macMask]}
Parameters
| all | This parameter causes all the dynamically learned forwarding database entries in the forwarding database table to be cleared. |
| vlan vlanId | This parameter causes all the dynamically learned forwarding database entries for the given vlanId to be cleared. |
| interface slot/port | This parameter causes all the forwarding database entries learned on for the given interface to be cleared. |
| macAddr [macMask] | This parameter causes all the dynamically learned forwarding database entries that match the range indicated by the MAC address and MAC mask to be cleared. When a MAC mask is not entered, only the specified MAC is cleared from the forwarding database table. MAC address format EEEE.EEEE.EEEE. |
Default
The default is None.
Command Mode
Privileged EXEC
Logging Commands
In this section, the commands used to configure the system logging and to view logs and the logging settings are described.
5-40 logging buffered
This command is used to enable logging in to an in-memory log.
The no command is used to disable logging in to an in-memory log.
logging buffered
no logging buffered
Parameters
None
Default
The default is Enable.
Command Mode
Global Config
5-41 logging buffered wrap
This command is used to enable the wrapping of in-memory logging when the log file achieves full capacity. Otherwise, the logging will stop when the log file reaches full capacity.
The no command is used to disable the wrapping of in-memory logging and configures the logging to be stopped when the log file reaches full capacity.
logging buffered wrap
no logging buffered wrap
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-42 logging cli-command
This command is used to enable the CLI command logging feature, which in turn makes the D-LINK OS software capable of logging all the CLI commands issued on the system, with those commands being stored in a persistent log. The show logging persistent command is used to show the stored history of CLI commands.
The no command is used to disable the CLI command logging feature.
logging cli-command
no logging cli-command
Parameters
None
Default
The default is Disable.
Command Mode
Global Config
5-43 logging console
This command is used to enable logging on to the console. The user can specify the severity level value as either an integer from 0 to 7 or in a symbolic fashion through the use of one of the following keywords: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), or debug (7).
The no command is used to disable logging on to the console.
logging console [severitylevel]
no logging console
Parameters
severitylevel
(Optional) Select the Logging Severity Level.
Default
The default is Enable.
Command Mode
Global Config
5-44 logging host
This command is used to configure the logging host parameters and allows for the configuration of up to eight hosts.
logging host {hostaddress | hostname} addresstype tls [anon | x509name] certificate-index {port severitylevel}
Parameters
| hostaddress | hostname | Indicate the IP address of the logging host. |
| addressstype | Indicates the type of address being passed (that is, DNS or IPv4). |
| tls | This parameter is used to enable TLS security for the host. |
| anon | x509name | (Optional) Indicates the type of authentication mode (that is, anonymous or x509name). |
| certificate-index | Indicates the certificate number that will be used for authentication (range: 0-8, with index 0 being used for the default file). |
| port | (Optional) Indicates a port number from 1 to 65535. |
| severitylevel | (Optional) The value for this parameter can be specified as either an integer from 0 to 7 or in a symbolic fashion through the use of one of the following keywords: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), or debug (7). |
Default
The default is as follows:
• port 514 (for UDP) and 6514 (for TLS)
- authentication mode: anonymous
• certificate index: 0
• level: critical (2)
Command Mode
Global Config
Example
The following is an example of the CLI display output for the command.
(Routing) (Config)#logging host google.com dns 214
(Routing) (Config)#logging host 10.130.64.88 ipv4 214 6
(Routing) (Config)#logging host 5.5.5.5 ipv4 tls anon 6514 debug
(Routing) (Config)#logging host 5.5.5.5 ipv4 tls x509name 3 6514 debug
5-45 logging host reconfigure
This command is used to enable logging host reconfiguration.
logging host reconfigure hostindex
Parameters
| hostindex | This parameter can be used to enter the Logging Host Index for which to change the IP address. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-46 logging host remove
This command is used to disable logging to host. Please see “show logging hosts” for a list of the host indexes.
logging host remove hostindex
Parameters
| hostindex | Indicates the Logging Host index to be removed. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-47 logging persistent
This command is used to configure the persistent logging for the switch, with the severity level parameter use to specify the logging messages of different severities. Potential values for the severity level are as follows: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), debug (7).
The no command is used to disable the persistent logging in the switch.
logging persistent severity level
no logging persistent
Parameters
| severity level | Indicates the Logging Severity level. |
| Default | |
| The default is Disabled. | |
| Command Mode | |
| Global Config |
5-48 logging protocol
This command is used to configure the logging protocol version number as either 0 or 1. Version 0 is used by RFC 3164 and version 1 is used by RFC 5424.
logging protocol {0 | 1}
Parameters
None
Default
The default is 0 (RFC 3164).
Command Mode
Global Config
5-49 logging syslog
This command is used to enable syslog logging. The optional facility parameter can be used to set the default facility used in syslog messages for those components without an internally assigned facility. The facility value can consist of one of the following keywords: kernel, user, mail, system, security, syslog, lpr, nntp, uucp, cron, auth, ftp, ntp, audit, alert, clock, local0, local1, local2, local3, local4, local5, local6, local7. The default facility is local7.
The no command is used to disable syslog logging.
logging syslog [facility facility]
no logging syslog [facility facility]
Parameters
| facility facility | Indicates the Syslog Facility. |
| Default | |
| The default is Disabled. | |
| Command Mode | |
| Global Config |
5-50 logging syslog port
This command is used to enable syslog logging. The value for the portid parameter consists of an integer within the range of 1-65535.
The no command is used to disable syslog logging.
logging syslog port 1-65535
no logging syslog port
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-51 logging syslog source-interface
This command is used to specify the logical or physica interface used as the Syslog client source interface. If configured, the source interface address is used for all Syslog communications between the Syslog client and the Syslog server. Otherwise, there will be no change in behavior. Also, the Syslog client will revert to normal behavior if the configured interface is down.
The no command is used to remove the configured global source interface (that is, the Source IP selection) for all Syslog communications between the Syslog server and the Syslog client.
logging syslog source-interface {slot/port | loopback loopback-id | vlan vlan-id}
no logging syslog source-interface
Parameters
| slot/port | Indicates the port to be used as the source interface. |
| loopback loopback-id | Indicates the loopback interface to be used as the source interface (range: 0 to 7). |
| tunnel tunnel-id | Indicates the tunnel interface to be used as the source interface (range: 0 to 7). |
| vlan vlan-id | Indicates the VLAN to be used as the source interface. |
Default
The default is None.
Command Mode
Global Config
5-52 show logging
This command is used to display the logging configuration information.
show logging
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show logging
Logging Client Local Port : 514
Logging Client USB File Name :
Logging Client Source Interface : (not configured)
CLI Command Logging : disabled
Console Logging : enabled
Console Logging Severity Filter : error
Buffered Logging : enabled
Buffered Logging Severity Filter : info
Persistent Logging : disabled
Persistent Logging Severity Filter : alert
Syslog Logging : disabled
Syslog Logging Facility : local7
Log Messages Received : 229
Log Messages Dropped : 0
Log Messages Relayed : 0
Display Parameters
| Logging Client Local Port | Indicates the port on the collector/relay that syslog messages are sent to. |
| Logging Client Source Interface | Indicates the configured syslog source-interface (source IP address). |
| CLI Command Logging | Indicates whether CLI Command logging is enabled. |
| Logging Protocol | Indicates the logging protocol version number.0: RFC 31641: RFC 5424 |
| Console Logging | Indicates whether console logging is enabled. |
| Console Logging Severity Filter | Indicates the minimum severity for logging to the console log.Specifically, messages with a numerical severity equal to or lower than the minimum severity are logged. |
| Buffered Logging | Indicates whether buffered logging is enabled. |
| Persistent Logging | Indicates whether persistent logging is enabled. |
| Persistent Logging Severity Filter | Indicates minimum severity at which the log entries are retained after a system reboot. |
| Syslog Logging | Indicates whether syslog logging is enabled. |
| Syslog Logging Facility | Indicates the value set for the facility in syslog messages. |
| Log Messages Received | Indicates the number of messages that the log process has received, including messages that were dropped or ignored. |
| Log Messages Dropped | Indicates the number of messages that could not be processed because of errors or a lack of resources. |
| Log Messages Relayed | Indicates the number of messages sent to the collector/relay. |
5-53 show logging buffered
This command is used to show buffered logging (that is, the system startup and system operation logs).
show logging buffered
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show logging buffered
Buffered (In-Memory) Logging : enabled
Buffered Logging Wrapping Behavior : On
Buffered Log Count : 210
<190> Apr 27 08:17:16 DQS-5000-54SQ28-2011 PROCMGR[emWeb]: proc_cnfgr.c(714) 1009 %%
No more data in file /tmp/procmgr-app-resource-list.txt
<190> Apr 27 08:16:59 DQS-5000-54SQ28-2011 PROCMGR[emWeb]: proc_cnfgr.c(521) 1008 %%
No more data in file /tmp/procmgr-proc-list.txt
<190> Apr 27 08:16:43 DQS-5000-54SQ28-2011 PROCMGR[emWeb]: proc_cnfgr.c(319) 1007 %%
No more data in file /tmp/procmgr-app-list.txt
Display Parameters
| Buffered (In-Memory) Logging | Indicates whether the In-Memory log id is enabled or disabled. |
| Buffered Logging Wrapping Behavior | Indicates the behavior of the In-Memory log when it is faced with a log full situation. |
| Buffered Log Count | Indicates the count of valid entries in the buffered log. |
5-54 show logging hosts
This command is used to show all configured logging hosts.
show logging hosts
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show logging hosts
Index IP Address/Hostname Severity Port Status Mode Auth Cert#
1 1.1.1.17 critical 514 Active udp x509name 6
2 10.130.191.90 debug 10514 Active tls x509name 4
3 5.5.5.5 debug 333 Active tls
Display Parameters
| Host Index | (This parameter is used for deleting hosts.) |
| IP Address / Hostname | Indicates the IP address or the hostname of the logging host. |
| Severity Level | Indicates the minimum severity to log to the given address. The possible values are as follows: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), and debug (7). |
| Port | Indicates the server port number, which is the port from which syslog messages are sent on the local host. |
| Status | Indicates the current snmp row status (that is, Active, Not in Service, or Not Ready). |
| Mode | Indicates the type of security: UDP or TLS. |
| Auth | Indicates the type of authentication mode: anonymous or x509name. |
| Cert # | Indicates the certificate number used for authentication (range: 0-8, with Index 0 being used as the default file). |
5-55 show logging persistent
The show logging persistent command is used to show persistent log entries. In the event that log-files is specified, then the persistent log files of the system are shown.
show logging persistent [log-files]
Parameters
| log-files | (Optional) Indicates the list of persistent log files existing in the system. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
Example
The following is an example of the CLI display output for the command.
(Switching)#show logging persistent
Persistent Logging : disabled
Persistent Log Count : 0
(Switching)#show logging persistent log-files
Persistent Log Files:
slog0.txt
slog1.txt
slog2.txt
olog0.txt
olog1.txt
olog2.txt
Display Parameters
| Persistent Logging | Indicates whether persistent logging is enabled or disabled. |
| Persistent Log Count | Indicates the number of persistent log entries. |
| Persistent Log Files | Indicates the list of persistent log files in the system. This list will only be displayed if log-files is specified. |
5-56 show logging traplogs
This command is used to show SNMP trap events and statistics.
show logging traplogs
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show logging traplogs
Number of Traps Since Last Reset.... 84
Trap Log Capacity.... 256
Number of Traps Since Log Last Viewed.... 84
Log System Up Time Trap
0 Apr 27 08:04:56 2018 Session 0 of type 1 started for user admin connected from EIA-232.
1 Apr 27 08:04:52 2018 Session 0 of type 1 ended for user admin connected from EIA-232.
2 Apr 27 07:55:32 2018 Session 0 of type 1 started for user admin connected from EIA-232.
3 Apr 27 07:55:09 2018 Session 0 of type 1 ended for user admin connected from EIA-232.
Display Parameters
| Number of Traps Since Last Reset | Indicates the number of traps since the previous boot. |
| Trap Log Capacity | Indicates the number of traps that the system can retain. |
| Number of Traps Since Log Last Viewed | Indicates the number of new traps since the command was last executed. |
| Log | Indicates the log number. |
| System Time Up | Indicates the length of time that the system had been running for at the time the trap was sent. |
| Trap | Indicates the text of the trap message. |
5-57 clear logging buffered
This command is used to clear buffered logging (that is, the system startup and system operation logs).
clear logging buffered
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Email Alerting and Mail Server Commands
5-58 logging email
This command is used to enable email alerts and to set the lowest severity level for the emailing of log messages. Specifically, if the user specifies a severity level, then log messages with a severity at or above this level but below the urgent severity level are emailed in a non-urgent manner by being collected together and then emailed when the log time expires. The severitylevel value can be specified as either an integer from 0 to 7 or in a symbolic manner with one of the keywords that follows: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), and debug (7).
The no command is used to disable email alerts.
logging email {severity | from-addr | logtime | message-type | test | urgent} no logging email
Parameters
| severity | (Optional) Indicates the serverity level of the email alert. |
| from-addr | Indicates the sender address configuration for the email alert. |
| logtime | Indicates the log duration configuration in minutes, range: 30 – 1440 minutes. |
| message-type | Indicates the message configuration type: urgent, non-urgent, both. |
| test | Indicates the test configuration for the email alert configuration. |
| urgent | Indicates the urgent log message. |
Default
The default is Disabled.
Command Mode
Global Config
5-59 logging email urgent
This command is used to set the lowest severity level for which log messages will be e-mailed immediately in a single e-mail message. The severity level value can be specified as either an integer from 0 to 7 or in a symbolic manner with one of the keywords that follows: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), and debug (7). Alternatively, none can be specified in order to indicate that log messages are to be collected and sent together in a batch email at a specified interval.
The no command is used to reset the urgent severity level back to the default value.
logging email urgent {severity | none}
no logging email urgent
Parameters
| severity | Indicates the severity level of the alert. |
| none | Indicates that no log messages are emailed as urgent. |
Default
The default is as follows: log messages with the Alert (1) and Emergency (0) severity levels are sent immediately.
Command Mode
Global Config
5-60 logging email message-type to-addr
This command is used to configure the email address to which messages are to be sent. The following message types are supported: urgent, non-urgent, and both. Furthermore, multiple email addresses can be configured for each supported severity level. The to-email-addr variable will consist of a standard email address, such as, for example, admin@yourcompany.com.
The no command is used to remove the configured to-addr field.
logging email message-type {urgent | non-urgent | both} to-addr to-email-addr
no logging email message-type {urgent | non-urgent | both} to-addr to-email-addr
Parameters
| both | Indicates both urgent and non urgent message types. |
| non-urgent | Indicates non urgent message types. |
| urgent | Indicates urgent message types. |
| to-addr to-email-addr | Indicates the email address recipient. |
Default
The default is None.
Command Mode
Global Config
5-61 logging email from-addr
This command is used to configure the email address of the sender (that is, the switch).
The no command is used to remove the configured email source address.
logging email from-addr from-address
no logging email from-addr from-address
Parameters
| from-addr from-address | Indicates the sender email address. |
| Default | |
| The default is service@dlink.com. | |
| Command Mode | |
| Global Config | |
5-62 logging email message-type subject
This command is used to configure the subject line used for an email of the specified type.
The no command is used to remove the configured email subject line for emails of the specified message type and thus restores the subject line to the default email subject.
logging email message-type {urgent | non-urgent | both} subject subject no logging email message-type {urgent | non-urgent | both} subject subject
Parameters
| both | Indicates both urgent and non urgent message types. |
| non-urgent | Indicates non urgent message types. |
| urgent | Indicates urgent message types. |
| subject subject | Indicates the subject line for the email alert. |
| to-addr to-address | Indicates the recipient email address for the alert. |
Default
The default is as follows:
- For urgent messages, the subject line, by default, is "Urgent Log Messages".
- For non-urgent messages, the subject line, by default, is "Non Urgent Log Messages".
Command Mode
Global Config
5-63 logging email logtime
This command is used to configure the frequency with which non-urgent email messages are sent. That is, non-urgent messages will be collected and sent together in a batch email at the specified interval (valid range: every 30-1440 minutes).
The no command is used by default to reset the non-urgent log time back to the default value.
logging email logtime 30-1440
no logging email logtime
Parameters
None
Default
The default is 30.
Command Mode
Global Config
5-64 logging traps
This command is used to set the severity level at which SNMP traps are to be logged and sent in an email. The severity level value can be specified as either an integer from 0 to 7 or in a symbolic manner with one of the keywords that follows: emergency (0), alert (1), critical (2), error (3), warning (4), notice (5), info (6), and debug (7).
The no command is used to reset the logging severity level for SNMP traps back to the default value.
logging traps severitylevel
no logging traps
Parameters
| severitylevel | Indicates the alert trap severity level. |
| DefaultThe default is as follows: messages with a severity level of 6 or higher are logged. | |
| Command ModeGlobal Config | |
5-65 logging email test message-type
This command is used to send an email to the SMTP server in order to test the email alert function.
logging email test message-type {urgent | non-urgent | both} message-body msg-body
Parameters
| both | Indicates both urgent and non urgent message types. |
| non-urgent | Indicates non urgent message types. |
| urgent | Indicates urgent message types. |
| message-body msg-body | Indicates the message string for the email body of the alert message. |
None
Default
The default is No default value.
Command Mode
Global Config
5-66 show logging email config
This command is used to show information about the configuration.
show logging email config
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show logging email config Email Alert Logging......disabled
Email Alert From Address...... service@dlink.com
Email Alert Urgent Severity Level...... alert
Email Alert Non Urgent Severity Level...... warning
Email Alert Trap Severity Level...... info
Email Alert Notification Period...... 30 min
Email Alert To Address Table:
Email Alert Subject Table:
For Msg Type urgent, subject is...... Urgent Log Messages
For Msg Type non-urgent, subject is...... Non Urgent Log Messages
Display Parameters
| Email Alert Logging | Indicates whether the feature is enabled or disabled. |
| Email Alert From Address | Indicates the email address of the sender (that is, the switch). |
| Email Alert Urgent Severity Level | Indicates the lowest severity level that is considered to be urgent. Messages with this level of severity or above are sent immediately. |
| Email Alert Non Urgent Severity Level | Indicates the lowest severity level that is considered to be non-urgent. Messages with this level of severity and above, up to the designated urgent level, are collected and sent together in a batch email. Any log messages with a lower level of severity are not sent via email message at all. |
| Email Alert Trap Severity Level | Indicates the lowest severity level at which traps are logged. |
| Email Alert Notification Period | Indicates the amount of time to wait between the sending of non-urgent messages. |
| Email Alert to Address Table | Indicates the configured email recipients. |
| Email Alert Subject Table | Indicates the subject lines to be included with emails of urgent (Type 1) and non-urgent (Type 2) messages. |
| For Msg Type urgent, subject is | Indicates the configured email subject for the sending of urgent messages. |
| For Msg Type non-urgent, subject is | Indicates the configured email subject for the sending of non-urgent messages. |
5-67 show logging email statistics
This command is used to show email alerting statistics.
show logging email statistics
Parameters
None
Default
The default is No default value.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show logging email statistics
Email Alert operation status...... disabled
Email Alert Statistics:
No of email Failures so far...... 0
No of email sent so far...... 0
Time since last email Sent...... 00 days 00 hours 00 mins 00 secs
Display Parameters
| Email Alert Operation Status | Indicates the operational status of the email alert feature. |
| No of Email Failures | Indicates the number of email messages for which unsuccessful send attempts have been made. |
| No of Email Sent | Indicates the number of email messages that have been sent from the switch since the counter was last cleared. |
| Time Since Last Email Sent | Indicates the amount of time since the most recent email was sent from the switch. |
5-68 clear logging email statistics
This command is used to reset the email alerting statistics.
clear logging email statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-69 mail-server
This command is used to configure the SMTP server to which email alert messages are sent by the switch and also to change the mode to the Mail Server Configuration mode. The address of the server can be in either the IPv4 or DNS name format.
The no command is used to remove the previously specified SMTP server from the configuration.
mail-server {ip-address | ipv6address | hostname}
no mail-server {ip-address | ipv6address | hostname}
Parameters
| ipaddress | Indicates the IP address of the mail server. |
| lpv6address | Indicates the IPv6 address of the mail server. |
| Host-name | Indicates the hostname of the mail server. |
Default
The default is None.
Command Mode
Global Config
5-70 security
This command is used to set the email alerting security protocol by enabling the use of TLS authentication by the switch with the SMTP Server. However, no email will be sent to the SMTP server if the TLS mode is enabled on the switch but is not supported by the SMTP server itself.
security {tlsv1 | none}
Parameters
| none | Indicates normal socket communication. |
| tlsv1 | Indicates TLSv1 socket communication. |
Default
The default is None.
Command Mode
Mail Server Config
5-71 port (Mail Server Config Mode)
This command is used to configure the TCP port that is to be used for communication with the SMTP server. For TLSv1, the recommended port is 465, whereas for no security (i.e., none), it is 25. However, the allowed range of ports is any nonstandard port in the range from 1 to 65535.
port {465 | 25 | 1-65535}
Parameters
None
Default
The default is 25.
Command Mode
Mail Server Config
5-72 username (Mail Server Config)
This command is used to configure the login ID used by the switch to perform authentication with the SMTP server.
username name
Parameters
| username | Indicates the mail server username configuration. Username length: 1 to 49 characters. |
Default
The default is admin.
Command Mode
Mail Server Config
5-73 password (Mail Server Config Mode)
This command is used to configure the password used by the switch to perform authentication with the SMTP server.
password password
Parameters
| password | Indicates the password string for the mail server configuration. |
| Default | |
| The default is admin. | |
| Command Mode | |
| Mail Server Config |
5-74 show mail-server config
This command is used to show information regarding the email alert configuration.
show mail-server {ip-address | hostname | all} config
Parameters
| ip-address | Indicates the IP address for the mail server configuration. |
| hostname | Indicates the hostname for the mail server configuration. |
| all | Indicates all the configuration settings for the mail server. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show mail-server all config
Mail Servers Configuration:
No of mail servers configured.... 1
Email Alert Mail Server Address.... 192.168.1.1
Email Alert Mail Server Port.... 25
Email Alert SecurityProtocol.... none
Email Alert Username.... Tester
Email Alert Password.... 123456789
Display Parameters
| No of mail servers configured | Indicates the number of SMTP servers that are configured on the switch. |
| Email Alert Mail Server Address | Indicates the IPv4 address or DNS hostname for the configured SMTP server. |
| Email Alert Mail Server Port | Indicates the TCP port used by the switch to send email to the SMTP server. |
| Email Alert Security Protocol | Indicates the security protocol (TLS or none) used by the switch to perform authentication with the SMTP server. |
| Email Alert Username | Indicates the username used by the switch to perform authentication with the SMTP server. |
| Email Alert Password | Indicates the password used by the switch to perform authentication with the SMTP server. |
System Utility and Clear Commands
In this section, the commands used to help troubleshoot issues with connectivity and to restore the factory defaults of various configurations are described.
5-75 clear config
This command is used to reset the configuration of the switch back to that included in the factory-defaults configuration file, if that file is present, without the switch being powered off. In the event that the factory-defaults configuration file is not present, then the application of D-LINK OS compile time defaults to the switch occurs instead. When this command is issued, a prompt appears asking for confirmation that the reset should proceed. If the user enters y at the prompt, then the current configuration of the switch will automatically be reset to the default values. Entering y does not, however, reset the switch itself.
clear config
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-76 clear counters
This command is used to clear the statistics for all the ports, for a specified slot/port, or for an interface on a VLAN based on the argument. In the event that a virtual router is specified, then the statistics for the ports included on the virtual router will be cleared. In contrast, if no router is specified, then the information for the default router is then displayed.
clear counters {slot/port | all [vrf vrf-name] | lag [lag-intf-num] | nvgre | vlan id / vxlan}
Parameters
| slot/port | Indicates a slot/port interface. |
| all | Select to clear all L1/L2 counters on all interfaces including IP counters. |
| lag | Select to clear LAG interface statistics. |
| nvgre | Select to clear the NVGRE tunnel counters. |
| vlan id | Indicates a VLAN interface. |
| vxlan | Select to clear all VXLAN tunnel counters. |
Default
The default is None.
Command Mode
Privileged EXEC
5-77 clear ip access-list counters
This command is used to clear the counters of the specified IP ACL and the IP ACL rule.
clear ip access-list counters {acl-ID | acl-name}
Parameters
| acl-ID 1-199 | Indicates the ACL ID to clear counters, range: 1 – 199. |
| acl-name | Indicates the ACL name to clear counters, up to 31 characters in length. |
Default
The default is None.
Command Mode
Global Config
5-78 clear ipv6 access-list counters
This command is used to clear the counters of the specified IP ACL and the IP ACL rule.
clear ipv6 access-list counters acl-name
Parameters
| acl-name | Indicates the ACL name to clear counters, up to 31 characters. |
Default
The default is None.
Command Mode
Privileged EXEC
5-79 clear mac access-list counters
This command is used to clear the counters of the specified MAC ACL and MAC ACL rule.
clear mac access-list counters acl-name
Parameters
| acl-name | Indicates the ACL name to clear counters, up to 31 characters. |
Default
The default is None.
Command Mode
Privileged EXEC
5-80 clear pass
This command is used to reset all the user passwords back to the factory defaults without having to power off the switch. When this command is issued, the user will be prompted to confirm that the password reset should proceed.
clear pass
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-81 clear traplog
This command is used to clear the trap log.
clear traplog
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-82 clear vlan
This command is used to reset the VLAN configuration parameters back to the factory defaults.
clear vlan
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-83 logout
This command is used to close the current telnet connection or to reset the current serial connection.
Note: Please be sure to save any configuration changes before logging out.
logout
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
5-84 ping
This command is used to ascertain whether or not another computer is on the network. The ping yields a synchronous response when it is initiated from the CLI interface.
Note: For related information regarding the ping command for IPv6 hosts, please see "ping ipv6".
ping [vrf vrf-name] {ip-address | hostname} {ipv6 {interface {slot/port | vlan 1-4093 | loopback loopback-id | network I serviceport | tunnel tunnel-id} link-local-address} | ip6addr | hostname} [count count] [interval 1-60] [size size] [source ip-address | ip6addr | {slot/port | vlan 1-4093 | serviceport | network}] [outgoing-interface {slot/port | vlan 1-4093 | serviceport | network}]
Parameters
Through use of the options described below, the user can specify both the number and size of Echo Requests, as well as the interval to wait between Echo Requests.
| vrf vrf-name | (Optional) Indicates the name of the virtual router within which to initiate the ping. In the event that no virtual router is specified, then the ping will be initiated in the default router instance. |
| address | Indicates the IPv4 or IPv6 addresses to ping. |
| count count | (Optional) The count parameter can be used to specify the number of ping packets (that is, ICMP Echo requests) to send to the destination address that is specified in the ip-address field (range: 1 to 15 requests). |
| interval | (Optional) The interval parameter can be used to specify the time, in seconds, between Echo Requests (range: 1 to 60 seconds). |
| size size | (Optional) The size parameter can be used to specify the size, in bytes,for the payload of the transmitted Echo Requests (range: 0 to 65507 bytes). |
| source | The source parameter can be used to specify the source IP/IPv6 address or interface to be used when the Echo request packets are sent. |
| hostname | The hostname parameter can be used to resolve the hostname to an IPv4 or IPv6 address. To resolve the hostname to an IPv6 address, the lpv6 keyword is specified. If no keyword is specified, then the hostname is resolved to an IPv4 address. |
| ipv6 | Using the ipv6 optional keyword, which can be used before either the ipv6-address or hostname argument, before the hostname will attempt to resolve the hostname directly to the IPv6 address. The keyword cab also be used to ping a link-local IPv6 address. |
| interface | The interface keyword can be used to ping a link-local IPv6 address over an interface. |
| link-local-address | Indicates the link-local IPv6 address that is to be pinged over an interface. |
| outgoing-interface | (Optional) The outgoing-interface parameter can be used to specify the outgoing interface for a multicast IP/IPv6 ping. |
Defaulta
The default is as follows:
- Count: 1
• Interval: 3 seconds - Size: 0 bytes
Command Mode
- Privileged EXEC
- User EXEC
Example
The following provide examples of the CLI command.
The following are examples of ping success:
(Routing)#ping 10.254.2.160 count 3 interval 1 size 255
Pinging 10.254.2.160 with 255 bytes of data:
Received response for icmp_seq = 0. time = 275268 usec
Received response for icmp_seq = 1. time = 274009 usec
Received response for icmp_seq = 2. time = 279459 usec
----10.254.2.160 PING statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (msec) min/avg/max = 274/279/276
The following are examples of ping failure:
In Case of Unreachable Destination:
(Routing)#ping 192.168.254.222 count 3 interval 1 size 255
Pinging 192.168.254.222 with 255 bytes of data:
Received Response: Unreachable Destination
Received Response: Unreachable Destination
Received Response: Unreachable Destination
----192.168.254.222 PING statistics----
3 packets transmitted, 3 packets received, 0% packet loss
round-trip (msec) min/avg/max = 0/0/0
In Case of Request TimedOut:
(Routing)#ping 1.1.1.1 count 1 interval 3
Pinging 1.1.1.1 with 0 bytes of data:
----1.1.1.1 PING statistics----
1 packets transmitted, 0 packets received, 100% packet loss round-trip (msec) min/avg/max = 0/0/0
5-85 quit
This command is used to close the current telnet connection or to reset the current serial connection. The system will ask the user whether or not to save any configuration changes before quitting.
quit
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
5-86 reload
This command is used to reset the switch without having to power it off, where "reset" means that all the network connections will be terminated and the boot code will be executed. In order to initialize itself, the switch then uses the stored configuration. The user will be prompted to confirm that the requested reset should proceed, and the LEDs on the switch indicate whether or not a reset has been successful.
In the event that ONIE is installed, the os parameter will be added to the reload command. The use of this parameter will enable the user to boot back into ONIE.
reload [configuration [scriptname]| os]
Parameters
| configuration | This parameter causes the configuration to be gracefully reloaded. In the event that no configuration file is specified, then the startup-config file will be loaded. |
| scriptname | Indicates the configuration file to load. The extension must be included in the scriptname. |
| os | The os reload feature is used to remove the OS and reinstall the new NOS. |
Default
The default is None
Command Mode
Privileged EXEC
5-87 copy
The copy command is used to upload and download files to and from the switch. Files can be uploaded and downloaded from a server using FTP, TFTP, Xmodem, Ymodem, or Zmodem. Also, it should be noted that a password is required if FTP is used.
copy source destination
Replace the destination and source parameters with the options indicated in "Copy Parameters". Meanwhile, use one of the following values for the url source or destination:
(xmodem | tftp://ipaddr|hostname | ip6address | hostname/filepath/filename [noval] | sftp | scp://username@ipaddr | ipv6address/filepath/filename | ftp://user@ipaddress | hostname/filepath/filename}
The keyword ias-users allows for the downloading of the IAS user database file. When that file is downloaded, the switch IAS user's database will be replaced with the users and the attributes included in the downloaded file. In the command copy url ias-users, one of the following is used for url in the IAS users file:
{{tftp://
Note: The maximum length for the file name is 31 characters, while the maximum length for the file path is 160 characters.
For FTP, TFTP, SFTP and SCP, the ipaddr/hostname parameter consists of the host name of the server or the IP address, filepath indicates the path to the file, and filename consists of the name of the file that the user wants to upload or download. For SFTP and SCP, the username parameter consists of the username used for logging into the remote server via SSH.
Note: ip6address also constitutes a valid parameter for the routing of packages that support IPv6.
If the user wishes to copy OpenFlow SSL certificates to the switch using TFTP or XMODEM, then only the following options relevant to the OpenFlow SSL certificates should be used:
copy [
Parameters
| source | Indicates the originating location of the source. |
| destination | Indicates the intended location to store |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following provides an example of the downloading and applying of the ias users file.
(Routing)#copy tftp://10.131.17.104/aaa_users.txt ias-users
Mode....TFTP
Set Server IP....10.131.17.104
Path..../
Filename....aaa_users.txt
Data Type....IAS Users
Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y
File transfer operation completed successfully.
Validating and updating the users to the IAS users database.
Updated IAS users database successfully.
Copy Parameters
| Source | Destination | Description |
| nvram:application: sourcefilename | url | Indicates the filename of the source application file. |
| nvram:backup-config | nvram:startup-config | Copies the backup configuration to the startup configuration. |
| nvram:clibanner | url | Copies the CLI banner to a server. |
| nvram:core-dump | tftp:///<filepath>/<filename>@<ipaddr | hostname>/<path>/<filename>| scp://<user>@<ipaddr | hostname>/<path>/<filename>| sftp://<user>@<ipaddr | hostname>/<path>/<filename> | Uploads the core dump file included on the local system to an external TFTP/FTP/SCP/SFTP server. |
| nvram:crash-log | url | Copies the crash log to a server. |
| nvram:errorlog | url | Copies the error log file to a server. |
| nvram:factory-defaults | url | Uploads the factory defaults file. |
| nvram:fastpath.cfg | url | Uploads the binary config file to a server. |
| nvram:log | url | Copies the log file to a server. |
| nvram:operational-log | url | Copies the operational log file to a server. |
| nvram:script scriptname | url | Copies the specified configuration script file to a server. |
| nvram:startup-config | nvram:backup-config | Copies the startup configuration to the backup configuration. |
| nvram:startup-config | url | Copies the startup configuration to a server. |
| nvram:startup-log | url | Copies the startup log to a server. |
| nvram:tech-support | url | Uploads the system and configuration information for technical support. |
| nvram:traplog | url | Copies the trap log file to a server. |
| system:image | url | Saves the system image to a server. |
| system:running-config | nvram:startup-config | Saves the running configuration to NVRAM. |
| system:running-config | nvram:factory-defaults | Saves the running configuration for NVRAM to the factory-defaults file. |
| url | nvram:application destfilename | Indicates the destination file name for the application file. |
| url | nvram:application destfilename | Downloads an application to the system. |
| url | nvram:backup-config | Downloads the configuration to the startup configuration. |
| url | nvram:ca-root index | Downloads the CA certificate file to the /mnt/fastpath directory and sends the index number name for the downloaded file to CAindex.pem. |
| url | nvram:clibanner Downloads the CLI banner to the system. | |
| url | nvram:client-key index | Downloads the client key file to the /mnt/fastpath directory and sends the index number name for the downloaded file to CAindex.key. |
| url | nvram:client-ssl-cent 1-8 | Downloads the client certificate to the /mnt/fastpath directory and sends the index number to name the downloaded file to CAindex.pem. |
| url | nvram:fastpath.ctg | Downloads the binary config file to the system. |
| url | nvram:script destfflename | Downloads a configuration script file to the system. During the downloading of the configuration script, the copy command validates the script. In the event of an error, the command lists all the lines at the end of the validation process and prompts the user to confirm before copying the script file. |
| url | nvram:script destfflename noval | When this option is used, the copy command will not validate the downloaded script file. The followins is an example of the CLI command:(Routing)#copytftp://1.1.1.1/file.scrnvram:script file.scr noval |
| url | nvram:sshkey-dsa | Downloads an SSH key file. For more information of relevance, please see "Secure Shell Commands". |
| url | nvram:sshkey-rsa1 | Downloads an SSH key file. |
| url | nvram:sshkey-rsa2 | Downloads an SSH key file. |
| url | nvram:openflow-ss1-ca-cert | Downloads an Openflow CA Certificate. |
| url | nvram:openflow-ss1-cert | Downloads an Openflow Switch Certificate. |
| url | nvram:openflow-ss1-priv-key | Downloads an Openflow Private Key. |
| url | nvram:startup-config | Downloads the startup configuration file to the system. |
| url | ias-users | Downloads an IAS users database file to the system. When the IAS users file is downloaded, the IAS user database of the switch is replaced with the users and their attributes included in the downloaded file. |
| url | nvram:tech-support-cmds | Downloads the file containing the list of commands to be displayed when using the show tech-support command. |
| url | {active | backup} | Downloads an image from the remote server to either image. |
5-88 write memory
This command is used to save any running configuration changes to NVRAM to ensure that the changes will persist across a reboot. The command is effectively the same as the copy system:running-config nvram:startup-config command. The confirm keyword can be used to directly save the configuration to NVRAM without a prompt for a confirmation being presented.
write memory [confirm]
Parameters
| confirm | (Optional) Select to directly save the configuration to NVRAM without user prompt confirmation. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
IP Address Conflict Commands
These commands are used to troubleshoot IP address conflicts.
5-89 ip address-conflict-detect run
Use this command to run active address conflict detection. Gratuitous ARP packets for IPv4 addresses are sent on the switch.
ip address-conflict-detect run
Parameters
None
Default
The default is None.
Command Mode
- Global Config
• Virtual Router Config
5-90 show ip address-conflict
The command shows the status information for the last detected address conflict.
show ip address-conflict [ vrf vrf-name]
Parameters
| vrf | Display IP address conflict information for a Virtual Router instance. |
| vrf-name | Displays the VPN routing/forwarding instance name. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show ip address-conflict
Address Conflict Detection Status..... Conflict Detected
Last Conflicting IP Address..... 192.168.0.1
Last Conflicting MAC Address..... 6C:EC:5A:07:E1:06
Time Since Conflict Detected..... 4 days 4 hrs 22 mins 36 secs
Display Parameters
Address Conflict Detection Status Reports any detected address conflict on any IP address.
| Last Conflicting IP Address | Display last detected IP Address conflict on any interface. |
| Last Conflicting MAC Address | Display last detected MAC Address conflict on any interface. |
| Time Since Conflict Detected | Displays days, hours, minutes and seconds since last detected conflict. |
5-91 clear ip address-conflic-detect
Clears detected address conflict status information for a specified virtual router. The command executes on default router if no specified router is given.
clear ip address-conflict-detect [vrf vrf-name]
Parameters
| vrf vrf-name | (Optional) Enter to clear the detected conflict event for the specified virtual router instance. |
Default
The default is None.
Command Mode
Privileged EXEC
Serviceability Packet Tracing Commands
These commands allow network engineers to diagnose D-LINK OS products.
CAUTION: Debug output can be long and may adversely affect system performance.
5-92 capture start
Start allows for manual capturing of CPU packets for packet trace.
The packet capture operates in three modes:
- capture file
- remote capture
- capture line
The command is not persistent across a reboot cycle.
capture start [{all | receive | transmit}]
Parameters
| all | Capture all traffic. |
| receive | Capture only received traffic. |
| transmit | Capture only transmitted traffic. |
Default
The default is None.
Command Mode
Privileged EXEC
5-93 capture stop
Stop allows for manual ending of CPU packet capturing for packet trace.
capture stop
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-94 capture
This command allows for configuration of file capture options (persistent across a reboot cycle.
capture {file | remote | line | USB}
Parameters
| file | In capture file mode, packets are saved to a file on NVRAM (maximum file size default: 524288 bytes). File can be transferred to TFTP server via TFTP, SFTP, SCP via CLI, and SNMP.File format: pcapNaming: cpuPktCapture.pcapUse network analyzer tools such as Wireshark® or Ethereal® to reviewfile. The file capturing function terminates any remote capture sessions and line capturing. Once activated, file capturing does not stop until the process reaches maximum file size or until function is manually stopped using the command capture stop. |
| remote | In remote capture mode, captured packets are diverted in real time to an external PC running Wireshark tool (Microsoft® Windows®). Captured packets are sent to the Wireshark tool via a TCP connection. Remote capture is enabled or disabled using the CLI.Configure the IP port number (default: 2002) to connect to the Wireshark switch. Configure the firewall if installed to allow for traffic between the Wireshark PC and the switch. The firewall must be configured to allow the Wireshark PC to initiate TCP connections to the switch.A successful client connection to the switch allows CPU packets to be sent to the client PC, Wireshark then receives the packets and displays them. The session continues until terminated by either end.Starting a remote capture session automatically terminates the file capture and line capturing. |
| line | In capture line mode, captured packets are saved in RAM and can be displayed on the CLI. Starting a line capture automatically terminates the following: remote capture session and capturing into a file. The maximum allowed packets for capturing: 128 packets, maximum 128 bytes each. |
| USB | In capture file mode, packets are saved to a USB destination. The valid name length is 1 to 64 characters. The file extension is added automatically. |
Default
The default is None.
Command Mode
Global Config
5-95 capture remote port
Remote Port configures file capture options. The command is persistent across a reboot cycle. The parameter is a TCP port number: 1024-49151.
capture remote port 1024-49151
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-96 capture file size
File size is used to configure file capture options. The command is persistent across a reboot cycle. The max-file-size parameter: maximum pcap file size range is 2 to 512 kB.
capture file size max-file-size
Parameters
| max-file-size | Indicates the file size in KB, range: 2 – 512 kilobytes. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-97 capture line wrap
Line wrap enables wrapping of captured packets in line mode when packet size reaches full capacity.
No command disables wrapping of captured packets stops function when the captured packet capacity is full.
capture line wrap
no capture line wrap
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-98 show capture packets
Capture packets displays packets captured and saved to RAM. Captured packets received or transmitted through the CPU are saved to RAM. A maximum 128 packets can be saved into RAM per capturing session. A maximum 128 bytes per packet can be saved into the RAM. Only the first 128 bytes are saved; data exceeding 128 bytes is not in the CLI.
The capture function stops automatically when the 128 bytes limit is reached. Captured packets are not retained after a reload cycle.
show capture packets
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-99 cpu-traffic direction
CPU-traffic direction interface associates CPU filters to an interface or list of interfaces (physical or logical LAG). The statistics counters are updated only for the configured interfaces. Traces are available for the configured interfaces.
Note: VLAN tag headers as the packet to the CPU should be considered as a tagged packet.
No command removes all interfaces from the CPU filters.
cpu-traffic direction {tx | rx | both} interface interface-range
no cpu-traffic direction {tx | rx | both} interface interface-range
Parameters
| both | Select to match ingress and egress packets. |
| rx | Select to match egress packets. |
| tx | Select to match ingress packets. |
Default
The default is None.
Command Mode
Global Config
5-100 cpu-traffic direction match cust-filter
CPU-traffic direction match allows custom filter configuration. The statistics and/or traces for the configured filters are obtainable at the specific offset for the packet matching configured data. The default mask is 0xFF. Three different offsets can be specified as the match conditions. The latest custom filter overrides the previous configuration.
Note: VLAN tag headers as the packet to the CPU should be considered as a tagged packet.
No command removes the configured custom filter.
cpu-traffic direction {tx | rx | both} match cust-filter offset1 data1 [mask1 mask1] offset2 data2 [mask2 mask2] offset3 data3 [mask3 mask3]
no cpu-traffic direction {tx | rx | both} match cust-filter offset1 data1 [mask1 mask1] offset2 data2 [mask2 mask2] offset3 data3 [mask3 mask3]
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingress packet. |
| offset1 | Select to configure the offset for custom filter. A hex value strings is required. |
| data1 | Select to configure the matching custom filter. A hex value strings is required. |
| mask# mask# | (Optional) Select to configure the matching conditions. |
Default
The default is None.
Command Mode
Global Config
5-101 cpu-traffic direction match srcip
CPU-traffic direction match configures the source IP address-specific filter. Use the command to obtain the statistics and/or the traces for configured filters matching configured source IP/Mask.
No command disables the configured source IP address filter.
cpu-traffic direction {tx | rx | both} match srcip ipaddress [mask mask]
no cpu-traffic direction {tx | rx | both} match srcip ipaddress [mask mask]
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingress packet. |
| ipaddress | Indicates the IP address for the srcip filter. |
| mask mask | (Optional) Select the IP address for the subnet mask. Default: 255.255.255.255. |
Default
The default is None.
Command Mode
Global Config
5-102 cpu-traffic direction match dstip
Configure the destination IP address-specific filter. The statistics and/or the traces of the configured filters are used for the matching IP/Mask packet.
No command disables the configured destination IP address filter.
cpu-traffic direction {tx | rx | both} match dstip ipaddress [mask mask]
no cpu-traffic direction {tx | rx | both} match dstip ipaddress [mask mask]
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingress packet. |
| ipaddress | Indicates the IP address for the dstip filter. |
| mask mask | (Optional) Select the IP address for the subnet mask. Default: 255.255.255.255. |
Default
The default is None.
Command Mode
Global Config
5-103 cpu-traffic direction match dstmac
Configure the destination IP address-specific filter. The statistics and/or the traces of the configured filters are used for the matching IP/Mask packet.
No command disables the configured destination IP address filter.
cpu-traffic direction {tx | rx | both} match dstmac macaddress [mask mask]
no cpu-traffic direction {tx | rx | both} match dstmac macaddress [mask mask]
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingress packet. |
| macaddress | Indicates the MAC address for the dstmac filter. |
| mask mask | (Optional) Select the IP address for the subnet mask.Default: 255.255.255.255. |
Default
The default is None.
Command Mode
Global Config
5-104 cpu-traffic direction match dsttcp
Cnfigure the source or destination TCP port-specific filter. The statistics and/or the traces of the configured filters are used for the matching TCP port packet.
No command removes the configured source/destination TCP port filter.
cpu-traffic direction {tx | rx | both} match {srctcp | dsttcp} port [mask mask]
no cpu-traffic direction {tx | rx | both} match {srctcp | dsttcp} port [mask mask]
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingress packet. |
| srctcp | Select to configure SRCTCP filter options. |
| dsttcp | Select to configure DSTTCP filter options. |
| port | Indicates the port value (0 – 65535). |
| mask mask | (Optional) Select the IP address for the subnet mask. |
Default: 255.255.255.255.
Default
The default is None.
Command Mode
Global Config
5-105 cpu-traffic direction match dstudp
Configure the destination IP address-specific filter. The statistics and/or the traces of the configured filters are used for the matching IP/Mask packet.
No command disables the configured destination IP address filter.
cpu-traffic direction {tx | rx | both} match dstudp ipaddress [mask mask]
no cpu-traffic direction {tx | rx | both} match dstudp ipaddress [mask mask]
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingress packet. |
| port | Indicates the port value value (0 – 65535). |
| mask mask | (Optional) Indicates the IP address for the subnet mask.Default: 255.255.255.255. |
Default
The default is None.
Command Mode
Global Config
5-106 cpu-traffic direction match filter
The command is used to configure the filter type.
No command disables the configured filter.
cpu-traffic direction match {tx | rx | both} match dstudp filter
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingresspacket. |
| port | Indicates the port value value (0 – 65535). |
| mask mask | (Optional) Indicates the designated subnet mask address. Default: 255.255.255.255. |
Default
The default is None.
Command Mode
Global Config
Example
The following shows an example of the command.
(Routing) (Config)#cpu-traffic direction both match filter?
all Configure all filters as matching condition.
arp Select ARP protocol as matching condition.
bcast Select BCAST option to match broadcast packets.
bgp Select BGP protocol as matching condition.
custom Select custom option to match all packets that match custom values.
dhcp Select DHCP protocol as matching condition.
dstip Select DSTIP option to match all packets with specified destination IP.
dstmac Select DSTMAC option to match all packets with specified destination MAC.
dsttcp Select DSTTCP option to match all packets with specified TCP destination port.
dstudp Select DSTUDP option to match all packets with specified UDP destination port.
ip Select IP protocol as matching condition.
lacpdu Select LACP protocol as matching condition.
lldp Select LLDP protocol as matching condition.
mcast Select MCAST option to match multicast packets.
ospf Select OSPF protocol as matching condition.
srcip Select SRCIP option to match all packets with specified source IP.
srcmac Select SRCMAC option to match all packets with specified source MAC.
srctcp Select SRCTCP option to match all packets with specified TCP source port.
srcudp Select SRCUDP option to match all packets with specified UDP source port.
stp Select STP protocol as matching condition.
ucast Select UCAST option to match unicast packets.
udld Select UDLD protocol as matching condition.
5-107 cpu-traffic direction match srcudp
Configure the source or destination UDP port-specific filter. The statistics and/or the traces of the configured filters are used for the matching source/destination UDP port.
No command removes the configured source/destination UDP port filter.
cpu-traffic direction {tx | rx | both} match {srctcp | dsttcp} port [mask mask] no cpu-traffic direction {tx | rx | both} match {srctcp | dsttcp} port [mask mask]
Parameters
| both | Select to match both ingress and egress packets. |
| rx | Indicates the egress packet. |
| tx | Indicates the ingress packet. |
| srctcp | Select to configure SRCTCP filter options. |
| dsttcp | Select to configure DSTTCP filter options. |
| port | Indicates the port value (0 – 65535). |
| mask mask | (Optional) Indicates the designated subnet mask address. Default: 255.255.255.255. |
Default
The default is None.
Command Mode
Global Config
5-108 cpu-traffic mode
Configure CPU-traffic mode. RX/TX direction packets are matched when the mode is enabled. No command disables CPU-traffic mode.
cpu-traffic mode no cpu-traffic mode
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-109 cpu-traffic trace
Configure CPU packet tracing. Packet is received through multiple components. When enabled and tracing is configured, the packets are traced as defined by filter. Enable dump-pkt to display the first 64 bytes of the packet and trace statistics.
No command disables CPU packet tracing and dump-pkt (if configured).
cpu-traffic trace {dump-pkt}
no cpu-traffic trace {dump-pkt}
Parameters
| dump-pkt | Select to enable packet dump option. |
| Default | |
| The default is Disabled. | |
| Command Mode | |
| Global Config |
5-110 show cpu-traffic
Use this command to display the current configuration parameters.
show cpu-traffic
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
(Routing)#show cpu-traffic
Admin Mode...... Disable
Packet Trace...... Disable
Packet Dump...... Disable
Direction TX:
Filter Options...... N/A
Interface...... N/A
Src TCP parameters.... 0 0
Dst TCP parameters.... 0 0
Src UDP parameters.... 0 0
Dst UDP parameters.... 0 0
Src IP parameters.... 0.0.0.0.0.0.0.
Dst IP parameters.... 0.0.0.0.0.0.0
Src MAC parameters.... 00:00:00:00:00:00:00:00:00:00:00
Dst MAC parameters.... 00:00:00:00:00:00:00:00:00:00:00:00
Custom filter parameters1.... Offset=0x0 Value=0x0 Mask=0x0
Custom filter parameters2.... Offset=0x0 Value=0x0 Mask=0x0
Custom filter parameters3.... Offset=0x0 Value=0x0 Mask=0x0
Direction RX:
Filter Options.... N/A
Interface.... N/A
Src TCP parameters.... 0 0
Dst TCP parameters.... 0 0
Src UDP parameters.... 0 0
Dst UDP parameters.... 0 0
Src IP parameters.... 0.0.0.0.0.0.0.
Dst IP parameters.... 0.0.0.0.0.0.0.
Src MAC parameters.... 00:00:00:00:00:00:00:00:00:00:00:00
Dst MAC parameters.... 00:00:00:00:00:00:00:00:00:00:00:00
Custom filter parameters1.... Offset=0x0 Value=0x0 Mask=0x0
Custom filter parameters2..... Offset=0x0 Value=0x0 Mask=0x0
Custom filter parameters3..... Offset=0x0 Value=0x0 Mask=0x
5-111 show cpu-traffic interface
Displays interface statistics for configured filters. Filter specific statistics (e.g., stp, udld, arp etc) can be displayed. Do not specify a filter to display all configured filters. Additionally, the source/destination (IP, TCP, UDP or MAC) with filters can be used as command option to obtain statistics.
show cpu-traffic interface {slot/port | all | cpu} filter
Parameters
| Intf-range slot/port | Indicates the slot/port interface. |
| all | Select to display the statistics for all interfaces. |
| cpu | Indicates the CPU port packets. |
Default
The default is None.
Command Mode
Privileged EXEC
5-112 show cpu-traffic summary
Display summary statistics for configured filters on all interfaces.
show cpu-traffic summary
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#show cpu-traffic summary
Filter Received Transmitted
STP 0 0
LACPDU 0 0
ARP 0 0
UDLD 0 0
LLDP 0 0
IP 0 0
OSPF 0 0
BGP 0 0
DHCP 0 0
BCAST 0 0
MCAST 0 0
UCAST 0 0
SRCIP 0 0
DSTIP 0 0
SRCMAC 0 0
DSTMAC 0 0
CUSTOM 0 0
SRCTCP 0 0
DSTTCP 0 0
SRCUDP 0 0
5-113 show cpu-traffic trace
Displays traced information (all available packets or specific filter [e.g., stp, udld, arp etc]). Additionally, the source/destination (IP, TCP, UDP or MAC) with filters can be used as command option to obtain statistics from history. Enable to display packet dump (buffer size: first 64 bytes) information and packet trace statistics.
show cpu-traffic trace filter
Parameters
| filter | Indicates the following filters: STP, LACPDU, ARP, UDLD, LLDP, IP, OSPF, BGP, DHCP, BCAST, MCAST, UCAST, SRCIP, DSTIP, SRCMAC, DSTMAC, CUSTOM, SRCTCP, DSTTCP, SRCUDP, DSTUDP. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#show cpu-traffic trace
Packet #1: IP; DHCP; UCAST; SRCMAC=00:10:10:10:10:10;
<08:06:10> Sysnet received in sysNetNotifyPduReceive()
<08:06:10> Packet delivered to IP via ipMapRecvIP()
<00:06:10> Freed
0000 00 10 18 82 18 b3 00 10 10 10 10 10 81 00 00 01 ......
0010 00 00 45 10 01 21 00 00 00 00 40 11 79 bd 00 00 ..E..!....@.y...
0020 00 00 ff ff ff ff 00 44 00 43 01 0d 48 10 03 01 ....D.C..H...
0030 06 00 18 85 4a 83 00 00 80 00 00 00 00 00 00 ....J......
5-114 clear cpu-traffic
Clears cpu-traffic statistics or trace information on all interfaces.
clear cpu-traffic {counters | traces}
Parameters
| counters | Select to clear CPU traffic counters on all interfaces. |
| traces | Select to clear CPU traffic traccess on all interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
5-115 debug aaa accounting
In User Manager, debug accounting configuration and functionality.
No command turns off debugging of User Manager accounting functionality.
debug aaa accounting
no debug aaa accounting
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-116 debug aaa authorization commands
In User Manager, enable tracing for AAA. The command is used to debug authorization configuration and functionality.
No command turns off debugging of User Manager authorization.
debug aaa authorization commands
no debug aaa authorization commands
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#debug aaa authorization commands
User Mgr authorization debug is enabled.
(Routing)#no debug aaa authorization commands
User Mgr authorization debug is Disabled.
5-117 debug arp
Enables ARP debug protocol messaging. Optionally, command execution can be performed through a specified virtual router.
No command disables ARP debug protocol messaging.
debug arp [vrf vrf-name]
no debug arp
Parameters
| vrf vrf-name | (Optional) Select to configure ARP Debug flag of a virtual router. |
| Default | |
| The default is Disabled. | |
| Command Mode | |
| Privileged EXEC |
5-118 debug auto-voip
Enables Auto VOIP debug messaging. Optional parameters trace H323, SCCP, or SIP packets.
No command disables Auto VOIP debug messaging.
debug auto-voip [H323 | SCCP | SIP ]
no debug auto-voip
Parameters
| H323 | Select to trace H323 packets. |
| SCCP | Select to trace SCCP packets. |
| SIP | Select to trace SIP packets. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-119 debug clear
Disable all previously enabled debug traces.
debug clear
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-120 debug console
Enable the display of debug trace output on the respective login session. To view trace output, the debug console display must be enabled. Once enabled, the debug trace output is available for display on the respective debug console; the function remains in effect for the life of the login session. This command is not persistent across resets.
Note: The debug console command directs debug data to a login session. The filter, specified by the console logging command, determines message severity level.
No command disables the debug trace output display on the respective login session.
debug console
no debug console
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-121 debug crashlog
View information contained in the crash log file. The crash log file includes the following:
- Call stack information in both primitive and verbose forms
- Log Status
- Buffered logging
- Event logging
- Persistent logging
- System Information (output of sysapiMbufDump)
- Message Queue Debug Information
• Memory Debug Information
• Memory Debug Status
• OS Information (output of osapiShowTasks)
• /proc information (meminfo, cpuinfo, interrupts, version and net/sockstat)
debug crashlog {{kernel} crashlog-number [upload url] | proc | verbose | deleteall | data crashdump-number}
Parameters
| kernel | View the crash log file for the kernel. |
| crashlog-number | Specifies the file number to view. The system maintains up to four copies, and the valid range is 1-4. |
| upload url | To upload the crash log (or crash dump) to a TFTP server, use the upload keyword and specify the required TFTP server information. |
| proc | View the application process crashlog. |
| verbose | Enable the verbose crashlog. |
| deleteall | Delete all crash log files on the system. |
| data | Crash log data recorder. |
| crashdump-number | Specifies the crash dump number to view. The valid range is 0-2. |
| download url | To download a crash dump to the switch, use the download keyword and specify the required TFTP server information. |
| component-id | Indicates the ID of the component listed as crash fault. |
| item-number | Indicates the item number. |
| additional-parameter | Additional parameters to include. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-122 debug crashlog kernel
Display the dmesg log from the specified kdump slot.
debug crashlog kernel crashlog-number
Parameters
| crashlog-number | Indicates the crashlog number. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-123 debug crashlog kernel upload
Upload the specified kernel dump to a designated TFTP server.
debug crashlog kernel crashlog-number upload tftpaddress
Parameters
| crashlog-number | Indicates the crashlog number. |
| tftpaddress | Indicates the TFTP URL to upload the crashlog in the following format:tftp:////. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-124 debug dcbx packet
Enable debug tracing for Tx/Rx DCBX packets.
debug dcbx packet: {receive | transmit}
Parameters
| receive | Select to turn on DCBX receive packet debug trace. |
| transmit | Select to turn on DCBX transmit packet debug trace. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-125 debug debug-config
Download or upload the debug-config.ini file. The file executes CLI commands (including devshell and drivshell commands) for specific predefined events.
Manually create a debug config file to download to the switch.
debug debug-config {download
Parameters
| download | Select to enter the URL to download the debug-config file.Format: tftp:///. |
| upload | Select to enter the URL to upload the debug-config file.Format: tftp:///. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-126 debug dhcp packet
Displays debug information related to DHCPv4 client activities and traced DHCPV4 packets to and from the local DHCPv4 client.
No command disables debug trace output display for DHCPV4 client activity.
debug dhcp packet [transmit | receive] no debug dhcp packet [transmit | receive]
Parameters
| transmit | (Optional) Select to turn on DHCPv4 client transmit packet debug trace. |
| receive | (Optional) Select to turn on DHCPv4 client receive packet debug trace. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-127 debug dot1x packet
Enable dot1x packet debug tracing.
No command disables dot1x packet debug tracing.
debug dot1x packet [transmit | receive] no debug dot1x packet [transmit | receive]
Parameters
| transmit | (Optional) Select to turn on dot1x client transmit packet debug trace. |
| receive | (Optional) Select to turn on dot1x client receive packet debug trace. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-128 debug dynamic port
The command enables dynamic port debugging.
No command disables the debugging function.
debug dynamic ports
no debug dynamic ports
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-129 debug exception
Display core dump features support.
No command disables the debug exception.
debug exception
no debug exception
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-130 debug fip-snooping
Use the command to debug the Fibre Channel over Ethernet Initialization Protocol (FIP) snooping on the device.
No command disables the fip-snooping.
debug fip-snooping packet {filter [ dst-mac | fip-proto-code | src-intf | src-mac | vlan ] | receive | transmit}
no debug fip-snooping packet {filter [dst-mac | fip-proto-code | src-intf | src-mac | vlan ] | receive | transmit}
Parameters
| packet | Turns on the fip-snooping packet debug trace. |
| dst-mac | Filter trace output on match condition based on a Destination MAC Address. |
| fip-proto-code | Filter based on FIP protocol codes. Use bitmap of supported types to match on multiple types. |
| src-intf | Filter trace output on match condition based source interface. |
| src-mac | Filter trace output on match condition based on a Source MAC Address. |
| vlan | Filter trace output on match condition based VLAN. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-131 debug igmpsnooping packet
Enable tracing of switch Tx/Rx IGMP Snooping packets.
No command disables tracing of IGMP Snooping packets.
debug igmpsnooping packet [transmit | receive]
no debug igmpsnooping packet [transmit | receive]
Parameters
| transmit | (Optional) Select to turn on IGMP snooping transmit packet debug trace. |
| receive | (Optional) Select to turn on IGMP snooping receive packet debug trace. |
Default
The default is Dissabled.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#debug igmpsnooping packet transmit
<15> JAN 01 02:45:06 192.168.17.29-1 IGMPSNOOP[185420002]: igmp_snooping_debug.c(116) 908 % Pkt TX - Intf: 0/20(20), Vlan_Id:1 Src_Mac: 00:03:0e:00:00:00 Dest_Mac:
01:00:5e:00:00:01 Src_IP:9.1.1.1 Dest_IP: 225.0.0.1 Type: V2_Membership_Report Group: 225.0.0.1
Display Parameters
| TX | A packet transmitted by the device. |
| Intf | The interface that the packet went out on. Format used is slot/port (internal interface number). Unit is always shown as 1 for interface on a non-stacking device. |
| Src_Mac | Source MAC address of the packet |
| Dest_Mac | Destination multicast MAC address of the packet. |
| Src_IP | The source IP address in the IP header in the packet. |
| Dest_IP | The destination multicast IP address in the packet. |
| Type | The type of IGMP packet. Type can be one of the following:Membership Query – IGMP Membership QueryV1_Membership_Report – IGMP Version 1 Membership ReportV2_Membership_Report – IGMP Version 2 Membership ReportV3_Membership_Report – IGMP Version 3 Membership ReportV2_Leave_Group – IGMP Version 2 Leave Group |
| Group | Multicast group address in the IGMP header. |
Example
The following is an example of the command.
(Routing)#debug igmpsnooping packet receive
<15> JAN 01 02:45:06 192.168.17.29-1 IGMP SNOOP[185429992]: igmp_snooping_debug.c(116) 908 % Pkt RX - Intl: 0/20(20), Vlan_Id:1 Src_Mac: 00:03:0e:00:00:10 Dest_Mac: 01:00:5e:00:00:05 Src_IP: 11.1.1.1 Dest_IP: 225.0.0.5 Type: Membership_Query Group: 225.0.0.5
Display Parameters
| RX | A packet received by the device. |
| Intf | The interface that the packet went out on. Format used is slot/port (internal interface number). Unit is always shown as 1 for interfaces on a non-stacking device. |
| Src_Mac | Source MAC address of the packet. |
| Dest_Mac | Destination multicast MAC address of the packet. |
| Src_IP | The source IP address in the ip header in the packet. |
| Dest_IP | The destination multicast ip address in the packet. |
| Type | The type of IGMP packet. Type can be one of the following:Membership_Query – IGMP Membership QueryV1_Membership_Report – IGMP Version 1 Membership ReportV2_Membership_Report – IGMP Version 2 Membership ReportV3_Membership_Report – IGMP Version 3 Membership ReportV2_Leave_Group – IGMP Version 2 Leave Group |
| Group | Multicast group address in the IGMP header. |
5-132 debug ip acl
Enable debug of IP Protocol packets based on corresponding ACL criteria.
No command disables IP Protocol packets debug.
debug ip acl acl Number
no debug ip acl acl Number
Parameters
| acl Number | Indicates a valid ACL Number. |
| Default | |
| The default is Disabled. | |
| Command Mode | |
| Privileged EXEC |
5-133 debug ip bgp
The debug ip bgp command (privileged EXEC mode) enables BGP event debug tracing. The system logs Debug messages according to severity level. To print logs on the console, enable console logging at the DEBUG level (logging console debug command). See "logging console".
Debug options for a specific peer are defined by combining peer specific and global options.
Enabling one packet type option enables packet tracing in both the inbound and outbound.
No command disables debug tracing of BGP events.
debug ip bgp [vrf vrf-name] {ipv4-address | ipv6-address} [events | in | keepalives | notification | open | out | refresh | updates]
no depub ip bgp [events | keepalives | notification | open | refresh | updates]
Parameters
| vrf vrf-name | Indicates the BGP information of a virtual router. |
| ipv4-address | Indicates the IPv4 address of the peer. |
| ipv6-address | Indicates the IPv6 address of the peer. |
| events | (Optional) Trace adjacency state events. |
| in | Indicates the Debug BGP received packets. |
| keepalives | (Optional) Trace transmit and receive of KEEPALIVE packets. |
| notification | (Optional) Trace transmit and receive of NOTIFICATION packets. |
| open | (Optional) Trace transmit and receive of OPEN packets. |
| out | Indicates the Debug BGP sent packets. |
| refresh | (Optional) Traces transmit and receive of ROUTE REFRESH packets. |
| updates | (Optional) Traces transmit and receive of UPDATE packets. |
Default
The default is Default.
Command Mode
Privileged EXEC
5-134 debug ip vrrp
Enable VRRP debug protocol messaging.
No command disables VRRP debug protocol messaging.
debug ip vrrp
no debug ip vrrp
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-135 debug ipv6 dhcp
Displays debug information about DHCPv6 client activities, additionally the command traces DHCPv6 packets to and from the local DHCPv6 client.
No command disables the display for the debug trace output (DHCPv6 client activity) function.
debug ipv6 dhcp
no debug ipv6 dhcp
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-136 debug ipv6 ospfv3 packet
Enable IPv6 OSPFv3 packet debug tracing.
No command disables IPv6 OSPFv3 packet tracing.
debug ipv6 ospfv3 packet
no debug ipv6 ospfv3 packet
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-137 debug isdp packet
Enable tracing of transmitted and received ISDP packets from the switch.
No command disables tracing of received/transmitted ISDP packets.
debug isdp packet [receive | transmit]
no debug isdp packet [receive | transmit]
Parameters
| transmit | (Optional) Select to turn on ISDP transmit packet debug trace. |
| receive | (Optional) Select to turn on ISDP receive packet debug trace. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-138 debug lacp packet
Enable tracing of received and transmitted LACP packets from the switch.
No command disables received/transmitted LACP packet tracing.
debug lacp packet
no debug lacp packet
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
Example
A sample output of the trace message is shown below.
(Routing)#debug lacp packet
<15> JAN 01 14:04:51 10.254.24.31-1 DOT3AD[183697744]: dot3ad_debug.c(385) 58 %
Pkt TX - Intl: slot/port(1), Type: LACP, Sys: 00:11:88: 14:62:e1, State: 0x47, Key: 0x36
5-139 debug mldsnooping packet
Trace received and transmitted MLD snooping packets. The following information: source address, destination address, control packet type, packet length, and the specific type of interface (received or transmitted) in which it was received.
No command disables received/transmitted MLD snooping packet debug tracing.
debug mldsnooping packet [receive | transmit]
no debug mldsnooping packet [receive | transmit]
Parameters
| transmit | (Optional) Select to turn on MLD snooping transmit packet debug trace. |
| receive | (Optional) Select to turn on MLD snooping receive packet debug trace. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-140 debug ospf packet
Enable tracing of received and transmitted OSPF packets from the switch or a specified virtual router. No command disables OSPF packet tracing.
debug ospf packet [vrf vrf-name]
no debug ospf packet
Parameters
| vrf vrf-name | (Optional) Select to configure OSPF packet Debug flags of a virtual router. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
Example
Sample outputs of the trace messages are shown below.
(Routing)#debug ospf packet
<15> JAN 02 11:03:31 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(297) 25430 % Pkt RX - Intf:2/0/48 Src
Ip:192.168.50.2 DestIp:224.0.0.5 AreaId:0.0.0.0 Type:HELLO NetMask:255.255.255.0 DesigRouter:0.0.0.0 Backup:0.0.0.0
<15> JAN 02 11:03:35 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(293) 25431 % Pkt TX - Intf:2/0/48 Src
Ip:10.50.50.1 DestIp:192.168.50.2 AreaId:0.0.0.0 Type:DB_DSCR Mtu:1500 Options:E Flags: I/M/MS Seq:126166
<15> JAN 02 11:03:36 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(297) 25434 % Pkt RX - Intf:2/0/48 Src
IP:192.168.50.2 DestIp:192.168.50.1 AreaId:0.0.0.0 Type:LS_REQ Length: 1500
<15> JAN 02 11:03:36 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(293) 25435 % Pkt TX - Intf:2/0/48 Src
Ip:10.50.50.1 DestIp:192.168.50.2 AreaId:0.0.0.0 Type:LS_UPD Length: 1500
<15> JAN 02 11:03:37 10.50.50.1-2 OSPF[46300472]: ospf_debug.c(293) 25441 % Pkt TX - Intf:2/0/48 Src
Ip:10.50.50.1 DetIp:224.0.0.6 AreaId:0.0.0.0 Type:LS_ACK Length: 1500
Display Parameters
| TX/RX | TX refers to a packet transmitted by the device. RX refers to packets received by the device. |
| Intf | The interface that the packet came in or went out on. Format used is slot/port (internal interface number). |
| SrcIp | The source IP address in the IP header of the packet. |
| DestIp | The destination IP address in the IP header of the packet. |
| Areald | The area ID in the OSPF header of the packet. |
| Type | Could be one of the following:HELLO – Hello packetDB_DSCR – Database descriptorLS_REQ – LS RequestLS_UPD – LS UpdateLS_ACK – LS Acknowledge |
The following are OSPF packet fields resulting from a trace.
HELLO packet field definitions:
| Netmask | The netmask in the hello packet. |
| DesignRouter | Designated Router IP address. |
| Backup | Backup router IP address. |
DB_DSCR packet field definitions:
| MTU | MTU. |
| Options | Options in the OSPF packet. |
| Flags | Could be one or more of the following:I – InitM – MoreMS – Master/Slave |
| Seq | Sequence Number of the DD packet. |
LS_REQ packet field definitions:
| Length | Length of packet. |
LS_UPD packet field definitions:
| Length | Length of packet. |
LS_ACK packet field definitions:
| Length | Length of packet. |
5-141 debug ping packet
Enable ICMP echo request and response tracing. Ping tracing of network/service port for switching packages can be traced with this command. Pings can also be traced on specified virtual router.
No command disables ICMP echo request and response tracing.
debug ping packet [vrf vrf-name]
no debug ping packet
Parameters
| vrf vrf-name | (Optional) Configure Ping Packet Debug flags of a virtual router. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
Example
A sample output of the trace message is shown below.
(Routing)# debug ping packet
<15> JAN 01 00:21:22 192.168.17.29-1 SIM[181040176]: sim_debug.c(128) 20 % Pkt TX - Intf: 0/1(1), SRC_IP:10.50.50.2, DEST_IP:10.50.50.1, Type:ECHO_REQUEST
<15> JAN 01 00:21:22 192.168.17.29-1 SIM[182813968]: sim_debug.c(82) 21 % Pkt RX - Intf: 0/1(1), SRC_IP:10.50.50.1, DEST_IP:10.50.50.2, Type:ECHO_REPLY
Display Parameters
| TX/RX | TX refers to a packet transmitted by the device. RX refers to packets received by the device. |
| Intf | The interface that the packet came in or went out on. Format used is slot/port (internal interface number). Unit is always shown as 1 for interfaces on a non-stacking device. |
| SRC_IP | The source IP address in the IP header in the packet. |
| DEST_IP | The destination IP address in the IP header in the packet. |
| Type | Type determines whether or not the ICMP message is a REQUEST or a RESPONSE. |
5-142 debug sflow packet
Enable sFlow debug packet tracing.
No command disables sFlow debug packet tracing.
debug sflow packet
no debug sflow packet
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-143 debug spanning-tree bpdu
Enable spanning tree received and transmitted BPDU tracing.
No command disables spanning tree BPDU tracing.
debug spanning-tree bpdu no debug spanning-tree bpdu
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-144 debug spanning-tree bpdu receive
Enable received spanning tree BPDU tracing. Enable spanning tree on the device and interface to allow for monitoring of packets for a specified interface.
No command disables tracing of received spanning tree BPDUs.
debug spanning-tree bpdu receive no debug spanning-tree bpdu receive
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
Example
A sample output of the trace message is shown below.
(Routing)#debug spanning-tree bpdu receive
<15> JAN 01 01:02:04 192.168.17.29-1 DOT1S[191096896]:dot1s_debug.c(1249) 101 % Pkt RX - Intf: 0/9(9), Source_Mac: 00:11:88:4e:c2:10 Version: 3, Root Mac: 00:11:88:4e:c2:00, Root Priority:0x8000 Path Cost: 0
Display Parameters
| RX | A packet received by the device. |
| Intf | The interface that the packet came in on. Format used is unit/port/slot (internal interface number). Unit is always shown as 1 for interfaces on a non-stacking device. |
| Source_Mac | Source MAC address of the packet. |
| Version | Spanning tree protocol version (0-3). 0 refers to STP, 2 RSTP and 3 MSTP. |
| Root_Mac | MAC address of the CIST root bridge. |
| Root_Priority | Priority of the CIST root bridge. The value is from 0 to 61440. It is displayed in hex in multiples of 4096. |
| Path_Cost | External root path cost component of the BPDU. |
5-145 debug spanning-tree bpdu transmit
Enable transmitted spanning tree BPDU tracing. Enable spanning tree on the device and interface to allow for monitoring of packets for a specified interface.
No command disables tracing of transmitted spanning tree BPDUs.
debug spanning-tree bpdu transmit
no debug spanning-tree bpdu transmit
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Routing)#debug spanning-tree bpdu transmit
<15> JAN 01 01:02:04 192.168.17.29-1 DOT1S[191096896]:dot1s_debug.c(1249) 101 % Pkt TX - Intf: 0/7(7), Source_Mac: 00:11:88:4e:c2:00 Version: 3, Root_Mac: 00:11:88:4e:c2:00, Root_Priority:0x8000 Path_Cost: 0
Display Parameters
| TX | A packet transmitted by the device. |
| Intf | The interface that the packet went out on. Format used is unit/port/slot (internal interface number). Unit is asalways shown as 1 for interfaces on a non-stacking device. |
| Source_Mac | Source MAC address of the packet. |
| Version | Spanning tree protocol version (0-3). 0 refers to STP, 2 RSTP and 3 MSTP. |
| Root_Mac | MAC address of the CIST root bridge. |
| Root_Priority | Priority of the CIST root bridge. The value is from 0 to 61440. It is displayed in hex in multiples of 4096. |
| Path_Cost | External root path cost component of the BPDU. |
5-146 debug tacacs
Enable TACACS+ debugging.
debug tacacs {packet | accounting | authentication | authorization}
Parameters
| accounting | Displays information about accountable events as they occur. |
| authentication | Displays information about AAA/TACACS+ authentication. |
| authorization | Displays information about AAA/TACACS+ authorization. |
| packet | Displays information about TACACS+ packets. |
Default
The default is None.
Command Mode
Global Config
5-147 debug transfer
Enable file transfers debugging.
No command disables file transfer debugging.
debug transfer
no debug transfer
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-148 debug udld events
Enable UDLD event debugging.
No command disables the debugging of UDLD process events or packet events.
debug udld events
no debug udld {events | packets}
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-149 debug udld packet receive
Enable received UDLD packet debugging.
No command disables the debugging of UDLD packet receipts.
debug udld packet receive
no debug udld packet receive
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-150 debug udld packet transmit
Enable transmitted UDLD PDU debugging. Use the no form of this command to disable UDLD debugging.
debug udd packet transmit
No debug udld packet
Parameters
| events | Turn on UDLD events debug trace. |
| packet | Turn on UDLD packet debug trace. |
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-151 show debugging
Display the packet tracing configuration.
show debugging
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show debugging Console display of debug output is enabled.
5-152 exception core-file
Configure a prefix for a core-file name. The following are examples of a generated core file name with the prefix:
If hostname is selected: file-name-prefix_hostname_Time_Stamp.bin
If hostname is not selected: file-name-prefix_MAC_Address_Time_Stamp.bin
If a hostname is configured, the core file name takes on the defined hostname. Otherwise the MAC address is used as the core name (prefix length: 15 characters) when generating a core dump file.
No command resets to factory default the exception core file prefix configuration. The hostname and time-stamp are disabled.
exception core-file {file-name-prefix | [hostname] | [time-stamp]}
no exception core-file
Parameters
| file-name-prefix | Enter the coredump file name up to 15 characters. File name can consist of -, _, alphanumerics. |
| hostname | (Optional) Select to append hostname to coredump file name. |
| time-stamp | (Optional) Select to append time-stamp to coredump file name. |
Default
The default is Core.
Command Mode
Global Config
5-153 exception dump filepath
Configure a TFTP/FTP server file-path (NFS mounted or USB device subdirectory) for dumping core files. No command resets to factory default the exception dump filepath configuration.
exception dump filepath dir
no exception dump filepath
Parameters
| dir | Enter the path to store the coredump. |
Default
The default is None.
Command Mode
Global Config
5-154 exception dump ftp-server
Configure remote FTP server (address) for core file dumping. Anonymous FTP is the default for the username and password; anonymous FTP must first be enabled on the FTP server.
No command resets the exception dump remote FTP server configuration to the factory default, includes FTP username and password.
exception dump ftp-server ip-address [{username user-name password password}] no exception dump ftp-server
Parameters
| ip-address | Enter the IP address of the FTP server. |
| username user-name | (Optional) Enter FTP user name. |
| password password | (Optional) Enter FTP password associated with the listed user name. |
Default
The default is None.
Command Mode
Global Config
5-155 exception dump nfs
Configure NFS mount point to NFS file system for core file dumping.
No command resets to factory defaults the exception dump NFS mount point configuration.
exception dump nfs ip-address/dir
no exception dump nfs
Parameters
| ip-address/dir | Enter the IP address and path to the NFS mount point. |
Default
The default is None.
Command Mode
Global Config
5-156 exception dump stack-ip-address
Configure a remote server for the purpose of dumping the core file in the event of a device crash.
No command resets to factory defaults the exception dump remote server configuration.
exception dump stack-ip-address {{add} [remove} ip-address} {{protocol} dhcp/ static} no enable exception dump stack-ip-address
Parameters
| ip-address | Enter the IP address of the server. |
| add | Enter the IP address for the alternative IP pool to be assigned to the device's service port in the stack. |
| protocol | Enter the type of protocol definition for the service port for a crash event. |
| remove | Enter the IP address to remove from the alternative IP pool. |
Default
The default is None.
Command Mode
Global Config
5-157 exception dump tftp-server
Configure a remote TFTP server for core file dumping.
No command resets to factory defaults the exception dump remote server configuration.
Note: Available only on selected Linux-based platforms.
exception dump tftp-server {ip-address}
no enable exception dump tftp-server
Parameters
| ip-address | Enter the IP address of the TFTP server. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-158 exception kernel-dump
Enable kernel crash core dumping (kdump). The system requires a reboot if the function is enabled. No command disables kernel crash core dumping (kdump). The specified crash log number is deleted.
exception kernel-dump
no exception kernel-dump crashlog-number
Parameters
| crashlog-number | Indicates the number identifying the crashlog. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-159 exception kernel-dump path
Set the kernel crash core dump (kdump) entry path. No command sets to default the kernel crash core dump (kdump) entry path.
exception kernel-dump path path no exception kernel-dump path
Parameters
| path | Set path to save kernel dump log files to. |
Default
The default is None.
Command Mode
Global Config
5-160 exception protocol
Specify the protocol to store the core dump file.
No command resets the exception protocol configuration to factory default.
exception protocol {nfs | tftp | ftp | local | none}
no exception protocol
Parameters
| nfs | Configure protocol to upload coredump to the NFS share. |
| tftp | Configure protocol to upload coredump to the TFTP server. |
| ftp | Configure protocol to upload coredump to the FTP server. |
| local | Configure protocol to generate coredump on Switch local file system. |
| none | Disable coredump. |
Default
The default is None.
Command Mode
Global Config
5-161 exception switch-chip-register
This command enables or disables the switch-chip-register dump in case of an exception. The switch-chip-register dump is taken only for a master unit and not for member units.
exception switch-chip-register {enable | disable}
Parameters
| enable | Enable switch-chip-register dump in case of an exception. |
| disable | Disable switch-chip-register dump in case of an exception. |
Default
The default is Disabled.
Command Mode
5-162 Global Configshow exception kernel-dump
Display the viewable kernel dump and available slot settings.
show exception kernel-dump
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show exception kernel-dump
Admin Mode..... False
Maximum Records..... 3
Available Records..... 0
Kernel Dump Storage Path..... /mnt/fastpath/crashlogs/kdump
5-163 show exception kernel-dump list
Display captured dumps.
show exception kernel-dump list
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-164 show exception kernel-dump log
Display specified kdump slot dmesg log.
show exception kernel-dump log crashlog-number
Parameters
| crashlog-number | Select the record number to view. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
5-165 mbuf
Configure memory buffer (MBUF) threshold limits and generate MBUF limit alerts.
mbuf {falling-threshold | rising threshold | severity}
Parameters
| falling-threshold | Set memory buffer minimum (%), usage below minimum triggers an alert; range: 1 to 100 (default: 0, disabled). |
| rising threshold | Set memory buffer maximum (5), exceeding usage triggers an alert; range: 1 to 100 (default: 0, disabled). |
| severity | Defines severity level of Mbuf logs; range: 1 to 7 (default: 5). |
Default
The default is None.
Command Mode
Global Config
5-166 write core
Generate an on-demand core dump file; suggested method to test core dump setup.
Example:
For a configured TFTP protocol, the write core test command is used to test connectivity with a TFTP server.
Similarly, by configuring the protocol to nfs, it can be used to mount and unmount the file system, providing a status result.
Note: write core reloads the non-malfunctioning switch if it hasn't crashed.
For write core test commands, the destination file name is used for the TFTP test. Specifying the destination file name can be set when the protocol is configured as TFTP.
write core [test [dest_file_name]]
Parameters
| test | (Optional) Select to tests the core dump setup. |
| dest_file_name | (Optional) Indicates the test file name to be uploaded. |
Default
The default is None.
Command Mode
Privileged EXEC
5-167 show exception
Display the configuration parameters to generate a core dump file.
show exception
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#show exception
Coredump file name core
Coredump filename uses hostname False
Coredump filename uses time-stamp TRUE
NFS Mount point NFS mount point configuration
TFTP Server Address TFTP server configuration
FTP Server IP FTP server configuration
FTP user name FTP user name
FTP password FTP password
File path Remote file path
Protocol none
Switch Chip Register Dump Switch chip register dump configuration
Stack IP Address Protocol dhcp
Stack IP Address
5-168 show exception core-dump-file
Display current local file system, core dump files.
show exception core-dump-file
Parameters
None
Default
The default is None.
Command Mode
- Config Mode
- Privileged EXEC
5-169 show exception log
Display current local file system, core dump traces.
show exception log [previous]
Parameters
| previous | (Optional) Display coredump log file from the previous coredump run. |
| DefaultThe default is None. | |
| Command ModeConfig ModePrivileged EXEC | |
5-170 show mbuf total
Display the memory buffer (MBUF) Utilization Monitoring parameters.
show mbuf total
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show mbuf total
Mbufs Total.... 246
Mbufs Free.... 246
Mbufs Rx Used.... 0
Mbufs Rx Norm Used.... 0
Mbufs Rx Mid2 Used.... 0
Mbufs Rx Mid1 Used.... 0
Mbufs Rx Mid0 Used.... 0
Mbufs Rx High Used.... 0
Mbufs Tx Used.... 0
Total Rx Norm Alloc Attempts.... 0
Total Rx Mid2 Alloc Attempts.... 37989
Total Rx Mid1 Alloc Attempts.... 13044
Total Rx Mid0 Alloc Attempts.... 0
Total Rx High Alloc Attempts.... 0
Total Tx Alloc Attempts.... 16480
Total Rx Norm Alloc Failures.... 0
Total Rx Mid2 Alloc Failures.... 0
Total Rx Mid1 Alloc Failures.... 0
Total Rx Mid0 Alloc Failures.... 0
Total Rx High Alloc Failures.... 0
Total Tx Alloc Failures.... 0
5-171 show msg-queue
Display message queues.
show msg-queue
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
| (Routing)#show msg-queue | ||||||||
| Queue ID | Queue Name | Messages in Queue | Threads waiting to Send | MessagesReceive High | Send Wait | Recv Wait | ||
| e6fc063c | BGP????? | Receive_q008f0259a | 0DebugQueues + 0x3ba | 0 | 0 | 00000000 | ||
| Oee64274 nim DoNotify + 0x41d | NIM EVENT | RESPON | 0 | 0 | 0 | 1 | 00000000 | ?????? 082a245d |
| Oee370ec | nimRifHpcMsgRsp | 0 | 0 | 0 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6fa0e8c | errDisableQueue | 0 | 0 | 1 | 1 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f9e804 | das_Mgmt_Queue | 0 | 0 | 0 | 1 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f9e174 | bfdEventMsgQ | 0 | 0 | 1 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| f3457f14 | mlag_bulk_ctrl_ | 0 | 0 | 1 | 1 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| f533cd64 | mlag_ckpt_queue | 0 | 0 | 1 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| dbd63634 | mlag_ctrl_msg_q | 0 | 0 | 1 | 1 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| dc9f6fc4 | dcpdp_queue | 0 | 0 | 1 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| Oee2defc | mlag_queue | 0 | 0 | 1 | 1 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f9a3f4 | VPC Consistency | 0 | 0 | 1 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f97944 | stats_app_queue | 0 | 0 | 1 | 1 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f97464 | rpcap_Usb_Captu | 0 | 0 | 1 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f96d34 | rpcap_CPU_Pkt_Q | 0 | 0 | 0 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f96ad4 | rpcap_Mgmt_Queue | 0 | 0 | 0 | 1 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f965c4 | fip keepalive q | 0 | 0 | 1 | 0 | 00000000 | ?????? | |
| 00000000 | ????? | |||||||
| e6f96384 | fip timer q | 0 | 0 | 0 | 1 | 00000000 | ?????? 08964085 | |
| fipSnoopTask + 0x115 | ||||||||
| e6f960ac | fip event q | 0 | 0 | 0 | 1 | 00000000 | ?????? 08964044 | |
| fipSnoopTask + 0xd4 | ||||||||
| e6f95eac | fip session q | 0 | 0 | 0 | 0 | 00000000 | ?????? 08964007 | |
| fipSnoopTask + 0x97 | ||||||||
| e6f94874 mvr_PDU_Queue00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f94674 mvr_Mgmt_Queue00000000 ???? | 0 | 0 | 0 | 1 | 00000000 ???? | |
| e6f93e74 openflowDatapat00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f93cc4 OFFROTO_FP_RCV_run + 0x85 | 0 | 0 | 0 | 0 | 00000000 ???? | 08d0df95 |
| e6f93514 openflowProtoQuopenflowProtoTask + 0x2el | 0 | 0 | 0 | 0 | 00000000 ???? | 08d00e01 |
| e6f93314 openflowQueue00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f8f13c boxsReqQ00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| e6f8ef44 boxsRespQboxsReqTask + 0x2e5 | 0 | 0 | 0 | 0 | 00000000 ???? | 083dc0b5 |
| e6f8c5ac udldPduQueue00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f8c3ac udldProcessQueu00000000 ???? | 0 | 0 | 0 | 1 | 00000000 ???? | |
| e6f8b724 isdpDpuQueue00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f8b524 isdpProcessQueu00000000 ???? | 0 | 0 | 0 | 1 | 00000000 ???? | |
| e6f8acec dhcpClientQueuedhcpClientTask + 0xef | 0 | 0 | 0 | 1 | 00000000 ???? | 082eeeaf |
| e6f89d84 lldp_Queue00000000 ???? | 0 | 0 | 1 | 2 | 00000000 ???? | |
| e6f89814 dcvpnRIOTMlagQu00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| e6f87b04 dcVpnRIOTSockMs00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| e6f86dfc dcVpnRIOTCnfgrQ00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| e6f86444 dcvpn_mlag_queu00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| e6f84f6c dcVpnAgeEventQu00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f82f84 OSPFv3 Proto_q3DebugQueues + 0xa3 | 0 | 0 | 0 | 0 | 00000000 ???? | 08f02283 |
| e6f82d84 dcVpnL2addrQueu00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| c2ffdda4 dcVpnCnfgrQueue00000000 ???? | 0 | 0 | 1 | 3 | 00000000 ???? | |
| e6f82aac OSPFv3 Proto_q2DebugQueues + 0xa3 | 0 | 0 | 0 | 0 | 00000000 ???? | 08f02283 |
| e6f828ac OSPFv3 Proto_q1DebugQueues + 0xa3 | 0 | 0 | 0 | 0 | 00000000 ???? | 08f02283 |
| e6f82544 OSPFv3 Proto_q000000000 ???? | 0 | 0 | 0 | 3 | 00000000 ???? | |
| e6f81a24 DHCPv6 Server P00000000 ???? | 0 | 0 | 1 | 2 | 00000000 ???? | |
| e6f81274 OSPFV3 redist q00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f81074 OSPFV3 task que00000000 ???? | 0 | 0 | 0 | 4 | 00000000 ???? | |
| e6f7f364 ip6Map_Process_ 00000000 ???? | 0 | 0 | 1 | 42 | 00000000 ???? | |
| e6f7f094 ip6Map Exceptio00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| e6f7ee8c ip6Map_LocalDat00000000 ???? | 0 | 0 | 1 | 3 | 00000000 ???? | |
| e6f7d37c voip_Queue0000000 ???? | 0 | 0 | 1 | 1 | 0000000 ???? | |
| e6f7d17c aclEventQueue0000000 ???? | 0 | 0 | 1 | 0 | 0000000 ???? | |
| e6f77c54 pimsmMapDataPkt0000000 ???? | 0 | 0 | 0 | 0 | 0000000 ???? | |
| e6f77a4c pimsmMapCtrlPkt0000000 ???? | 0 | 0 | 0 | 0 | 0000000 ???? | |
| e6f777e4 pimsmMapEventsQ0000000 ???? | 0 | 0 | 0 | 37 | 0000000 ???? | |
| e6f77574 pimsmMapAppTmrQpimsmMapTask + 0x1bb | 0 | 0 | 0 | 2 | 0000000 ???? | 08a852ea |
| e6f76414 pimdmMapCtrlPkt0000000 ???? | 0 | 0 | 0 | 0 | 0000000 ???? | |
| e6f76214 pimdmMapEventsQ0000000 ???? | 0 | 0 | 0 | 4 | 0000000 ???? | |
| e6f75eb4 pimdmMapAppTmrQpimdmMapTask + 0x13d | 0 | 0 | 0 | 0 | 0000000 ???? | 08a4f671 |
| e6f7512c dvmrpMapPktQueue0000000 ???? | 0 | 0 | 0 | 0 | 0000000 ???? | |
| e6f74f2c dvmrpMapMsgQueue0000000 ???? | 0 | 0 | 0 | 2 | 0000000 ???? | |
| e6f74bec dvmrpMapAppTimedvmrpMapTask + 0x100 | 0 | 0 | 0 | 0 | 0000000 ???? | 089fdf74 |
| e6f74704 mgmdMapPktQueue0000000 ???? | 0 | 0 | 0 | 0 | 0000000 ???? | |
| e6f74504 mgmdMapMsgQueue0000000 ???? | 0 | 0 | 0 | 10 | 0000000 ???? | |
| e6f741a4 mgmdMapAppTimermgmdMapTask + 0x184 | 0 | 0 | 0 | 1 | 0000000 ???? | 08a395c8 |
| e6f727f4 bgpMapNbrAutode0000000 ???? | 0 | 0 | 1 | 1 | 0000000 ???? | |
| e6f7251c BGP Protocol_q5DebugQueues + 0xa3 | 0 | 0 | 0 | 0 | 0000000 ???? | 08f02283 |
| e6f7231c BGP Protocol_q4DebugQueues + 0xa3 | 0 | 0 | 0 | 1 | 0000000 ???? | 08f02283 |
| e6f72044 BGP Protocol_q3DebugQueues + 0xa3 | 0 | 0 | 0 | 1 | 0000000 ???? | 08f02283 |
| e6f71e44 BGP Protocol_q2DebugQueues + 0xa3 | 0 | 0 | 0 | 1 | 0000000 ???? | 08f02283 |
| e6f71b6c BGP Protocol_q1DebugQueues + 0xa3 | 0 | 0 | 0 | 0 | 0000000 ???? | 08f02283 |
| e6f7196c BGP Protocol_q0DebugQueues + 0xa3 | 0 | 0 | 0 | 4 | 0000000 ???? | 08f02283 |
| e6f7077c mcastMapPktMsgQ0000000 ???? | 0 | 0 | 0 | 0 | 0000000 ???? | |
| e6f7039c mcastMapMsgQueue0000000 ???? | 0 | 0 | 0 | 6 | 0000000 ???? | |
| e6f70134 mcastMapAppTmrMmcastMapTask + 0x1b1 | 0 | 0 | 0 | 2 | 0000000 ???? | 08alb29d |
| e6f6fe54 Bgp Redist Q0000000 ???? | 0 | 0 | 0 | 2 | 0000000 ???? | |
| e6f6fc5c Bgp-Proc-QbgpProcTask + 0x68 | 0 | 0 | 0 | 3 | 0000000 ???? | 08471f78 |
| e6f6edd4 RLIM cnfgr queu0000000 ???? | 0 | 0 | 1 | 1 | 0000000 ???? | |
| d9bd0dec RLIM-t task que0000000 ???? | 0 | 0 | 1 | 0 | 0000000 ???? | |
| d99d0dec RLIM task queue0000000 ???? | 0 | 0 | 1 | 3 | 0000000 ???? | |
| d98d0dec rtrDiscProcessQ0000000 ???? | 0 | 0 | 1 | 4 | 0000000 ???? | |
| d9fd0dec IP_Helper_Fwd_Q00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f6eb44 vrrp_Queue00000000 ???? | 0 | 0 | 1 | 3 | 00000000 ???? | |
| f31f233c openrMsgQueue00000000 ???? | 0 | 0 | 1 | 3 | 00000000 ???? | |
| f31e170c ipMapArpMlagQue00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| f31b8ae4 ARP Timer_q000000000 ???? | 0 | 0 | 0 | 1 | 00000000 ???? | |
| df4f8a84 arpUnkL2Queue00000000 ???? | 0 | 0 | 0 | 1 | 00000000 ???? | |
| df4f888c arpCbQueueipMapArpCallbackTask + 0xf1 | 0 | 0 | 0 | 3 | 00000000 ???? 08e4f851 | |
| f344d43c arpReissueQueue00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f40064 pbr_Queue00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f3e6d4 ipMap_Process_Q00000000 ???? | 0 | 0 | 1 | 70 | 00000000 ???? | |
| e6f3e3ac ipMap_ARP_QueueipMapForwardingTask + 0x9f | 0 | 0 | 0 | 0 | 00000000 ???? 08e687df | |
| e6f3e1fc ipMap_Fwd_HighPipMapForwardingTask + 0x9f | 0 | 0 | 0 | 0 | 00000000 ???? 08e687df | |
| e6f3df24 ipMap_Fwd_Prior00000000 ???? | 0 | 0 | 0 | 2 | 00000000 ???? | |
| e6f3dd24 ipMap_Fwd_QueueipMapForwardingTask + 0x9f | 0 | 0 | 0 | 0 | 00000000 ???? 08e687df | |
| e6f3ce9c sshdQueue00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f3cle4 ssltQueue00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f3bcb4 RAGUARD Evnt Q00000000 ???? | 0 | 0 | 0 | 1 | 00000000 ???? | |
| f7193874 sflowPacketQueu00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f37e44 sflowPacketQueu00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f37c44 sflowEventQueue00000000 ???? | 0 | 0 | 0 | 1 | 00000000 ???? | |
| e6f368e4 dos_Queue00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| df1f87dc dhcpMap_Fwd_Qu00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| e6f357ec LogCfgQ00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f350ac DHCP Server Pro00000000 ???? | 0 | 0 | 1 | 1 | 00000000 ???? | |
| e6f34bd4 trapQueue00000000 ???? | 0 | 0 | 1 | 2 | 00000000 ???? | |
| f3429134 dot3ad_mlag_pdu00000000 ???? | 0 | 0 | 1 | 0 | 00000000 ???? | |
| f5300c34 dot3ad_queue00000000 ???? | 0 | 0 | 1 | 6 | 00000000 ???? | |
| f311021c dot3ad_timer_qu00000000 ???? | 0 | 0 | 1 | 6 | 00000000 ???? | |
| e6f30ee4 snoop_MLD_PDU_Q00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f30cdc snoop_IGMP_PDU_ 00000000 ???? | 0 | 0 | 0 | 0 | 00000000 ???? | |
| e6f30a0c snoop_Timer_Que00000000 ???? | 0 | 0 | 0 | 67 | 00000000 ???? |
| e6f30804 snoop_MFDB_NotisnoopTask + 0x3b5 | 0 | 0 | 0 | 0 | 00000000 | ????? | 092fd6e5 |
| e6f3058c snoop_QueuesnoopTask + 0xb9 | 0 | 0 | 0 | 4 | 00000000 | ????? | 092fd3e9 |
| e6f2f064 tacacs_queue00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f2e87c macal_Queue00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| df3f8b34 dot1s_mlag_help00000000 | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| e6f2d994 radiusClusterin00000000 | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| e6f2d794 radius_queue00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f2c434 dot1xQueue00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f2b7ac dot1s_signal_qu00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f2b5ac dot1s_stateCB_q00000000 | 0 | 0 | 0 | 64 | 00000000 | ????? | |
| e6f2b24c dot1s_queue00000000 | 0 | 0 | 0 | 67 | 00000000 | ????? | |
| e6f2a724 dot1qMsgQueue00000000 | 0 | 0 | 1 | 2 | 00000000 | ????? | |
| e6f29ee4 edb queue00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f2874c snmp trap queue00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f2825c DAI Pkt Q00000000 | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| e6f28064 DAI Evnt Q00000000 | 0 | 0 | 0 | 1 | 00000000 | ????? | |
| e6f276b4 DHCPV6 snp pkt00000000 | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| e6f2734c DHCPV6 snp evnt00000000 | 0 | 0 | 0 | 1 | 00000000 | ????? | |
| e6f26a2c DHCP snp pkt q00000000 | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| e6f2682c DHCP snp evnt q00000000 | 0 | 0 | 0 | 1 | 00000000 | ????? | |
| e6f25f14 pml_Queue00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f256cc fdb_mlag_age_qu00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f254cc fdb_mlag_queue00000000 | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| e6f248a4 FDQ-Q00000000 | 0 | 0 | 1 | 3 | 00000000 | ????? | |
| e6f2416c ErspanCnfgrQueu00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f22e0c TimeRange Proce00000000 | 0 | 0 | 1 | 2 | 00000000 | ????? | |
| e6f217cc cmgrInsertQueue00000000 | 0 | 0 | 1 | 15 | 00000000 | ????? | |
| e6f215d4 cmgrQueue00000000 | 0 | 0 | 1 | 7 | 00000000 | ????? | |
| e6f1fac4 bfd_pdu_queuehapiBroadBfdCtrlTask + 0x98 | 0 | 0 | 0 | 0 | 00000000 | ????? | 081cd258 |
| e6fle08c hapiMcAsyncQ00000000 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| e6f1ddb4 hapiMcastRpfAsyhapiBroadL3McastAsyncRpfHandle + 0x51 | 0 | 0 | 0 | 0 | 00000000 | ????? | 08120ee1 |
| e6f1dbb4 hapiMcastAsyncC | 0 | 0 | 0 | 1 | 00000000 | ????? | 0812146b |
| hapiBroadL3McastAsyncRouteAddDeleteHandle + 0x8b | |||||||
| e6f1d40c hapiL3WaitQ | 0 | 0 | 0 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| e6f1d204 hapiBroadL3Link | 0 | 0 | 0 | 1 | 00000000 | ????? | 081c1d36 |
| hapiBroadL3AsyncTask + 0x106 | |||||||
| e6f1cd2c hapiL3WakeQ | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| e6f1b66c hapiL2AsyncCmdQ | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| e6f1b194 hapiLagAsyncCmd | 0 | 0 | 0 | 1 | 00000000 | ????? | 08103d4e |
| hapiBroadLagAsyncProcessMessages + 0x7e | |||||||
| e6f1ad1c hapiDot1sAsyncC | 0 | 0 | 0 | 19 | 00000000 | ????? | 0810a445 |
| hapiBroadDot1sStateAsyncSet + 0x675 | |||||||
| f10e8964 hapiL2AsyncCmdQ | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10e8714 hapiL2McastAsyn | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10e823c hapiL2McastAsyn | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10c051c hapiL2AddrFlush | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f53008c4 dt1AddrQueue | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10bdc1c hapiLinkStatusQ | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10bd8bc hapiDebounceTim | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10bd26c hapiRxTxCapture | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10bcd94 hapiRxQueue | 0 | 0 | 1 | 3 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10bc8bc hapiTxBpduQ | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f3105ccc dtlqueue | 0 | 0 | 1 | 3 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10b8b3c dapiDebugQueue | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| Oedb611c cli_web_mgr_que | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f1085bac userMgrQueue | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f105d3a4 NIM-Q | 0 | 0 | 1 | 54 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f10218d4 Cnfgr_Msg_Q2 | 0 | 0 | 0 | 95 | 00000000 | ????? | 08284615 |
| cnfgrApiInit + 0xla5 | |||||||
| f1020694 Cnfgr_Msg_Q1 | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f22f8b7c Routing Timer_q | 0 | 0 | 0 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f22def44 debug_cfg_queue | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f730f394 LogUsbQueue | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f7308efc LoqEmailAlert | 0 | 0 | 1 | 0 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
| f730725c LogQ | 0 | 0 | 1 | 1 | 00000000 | ????? | |
| 00000000 | ????? | ||||||
5-172 debug packet-trace
Enable trace function for the packet trace feature.
debug packet-trace
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
sFlow Commands
sFlow monitors high-speed switch and routed networks to give complete visibility into network activity, enabling effective management and control of network resources.
5-173 sflow receiver
Configure the following sFlow: owner string, receiver timeout, max datagram size, IP address, and port.
No command sets the sFlow collector parameters to defaults.
Note: This command configures a receiver as a nontimeout entry. Unlike entries configured with a specific timeout value, this command is persistent and available in show running-config. As a nontimeout entry, the related sampler and pollers information is persistent and available in the running-config.
sflow receiver rcvr_idx {owner owner-string {timeout rcvr_timeout | notimeout} | max-datagram size | ip ip | port port}
no sflow receiver index {ip ip-address | maxdatagram size | owner string timeout interval | port 14-port}
Parameters
| rcvr_idx | |
| owner owner-string | The identity string (sFlowRcvrTable) for the receiver, range: 127 characters (default: null string). An empty string indicates an unclaimed entry and the configuration is set to default values. An entity wishing to claim an sFlowRcvrTable entry must ensure that the entry is unclaimed before trying to claim it. Before assigning a receiver to a sampler/poller, the entry must be first claimed, set owner string to non-null value. |
| timeout rcvr_timeout | Time string, in seconds (range: 0-2147483647, default: 0), states the remaining value before sampler/poller is released, no further samples are transmitted to receiver. A management entity wanting to maintain control of the sampler is responsible for setting a new value before the expiration. |
| notimeout | Entries with notimeout entry are assigned config until the assigned otherwise. |
| max-datagram size | The defined maximum number of data bytes for a single sample datagram (range: 200 to 9116, default: 1400). Set management entity to avoid fragmentation of the sFlow datagrams. |
| ip ip | The sFlow receiver IP address. If set to 0.0.0.0, no sFlow datagrams are sent. |
| port port | The destination Layer4 UDP port for sFlow datagrams, range is 1-65535. The default is 6343. |
Default
The default is None.
Command Mode
Global Config
5-174 sflow receiver owner timeout
Configure receiver as a timeout entry. Indicated information related to sampler and pollers are also displayed in the running-config (persistent).
Receiver configures set to a specific value are not displayed in running-config. Sampler and poller information related to this receiver is also not displayed in running-config.
sflow receiver index owner owner-string timeout
Parameters
| index | Receiver index identifier, range: 1 to 8. |
| owner owner-string | Corresponding owner name of receiver, entity in use for sFlowRcvrTable. The range is 127 characters, default is a null string. An empty string indicates an unclaimed entity and receiver configuration is set to the default. Before an entity can claimed--to assign a receiver to a sampler or poller--an sFlowRcvrTable entry, it must first be unclaimed, owner string to be set to a non-null value. |
Default
The default is None.
Command Mode
Global Config
5-175 sflow receiver owner notimeout
Configure a receiver as a non-timeout entry. The command does not have a timeout value making it persistent, it displays in running-config. As a non-timeout entry, the related sampler / poller information is displayed in the running-config.
When configured with a specific value, the receiver configuration is not shown in running-config. Samplers and pollers information related to this receiver will also not be shown in running-config.
sflow receiver rcvr_idx owner owner-string notimeout
Parameters
| rcvr_idx | Receiver index identifier. |
| owner owner-string | Owner string corresponds to the receiver name. The identity string (range: 127 characters, default: null string). The empty string indicates that the entry is currently unclaimed and the receiver configuration is reset to the default values. Before an entity can claimed--to assign a receiver to a sampler or poller--an sFlowRcvrTable entry, it must first be unclaimed, owner string to be set to a non-null value. |
Default
The default is None.
Command Mode
Global Config
5-176 sflow sampler
Configure new sFlow sampler instance on an interface or range of interfaces for data source, rcvr_idx must be valid.
No command resets sFlow sampler instance to default settings.
Note: Poller is defined as a data source configured to collect flow samples.
sflow sampler {rcvr-indx | rate sampling-rate | maxheadersize size}
no sflow sampler {rcvr-indx | rate sampling-rate | maxheadersize size}
Parameters
| rcvr-indx | sFlow Receiver for reception of flow samples. A value of zero (0) defines that receiver is not configured, packets will not be sampled. Only active receivers can be set. Expiration on a receiver also expires all associated samplers. Possible values are 1-8. The default is 0. |
| rate sampling-rate | The statistical sampling rate for defined packet sampling. A value of 1 |
| counts all packets, while a value of 0 disables sampling. A value of N means that out of N incoming packets, 1 packet will be sampled. Range: 1024 – 65536, 0. The default is 0. | |
| maxheadersize size | Maximum number of bytes to be copied from the sampler packet. The range is 20-256, default is 128. Set to zero (0) to set parameters to their corresponding default value. |
Default
The default is None.
Command Mode
interface Config
5-177 sflow poller
A data source configured to collect counter samples is called a poller. Use this command to enable a new sFlow poller instance on an interface or range of interfaces for this data source if rcvr_idx is valid.
Use the no command to reset the sFlow poller instance to the default settings.
Note: The sFlow task is heavily loaded when the sFlow polling interval is configured at the minimum value (i.e., one second for all the sFlow supported interfaces). In this case, the sFlow task is always busy collecting the counters on all the configured interfaces. This can cause the device to hang for some time when the user tries to configure or issue show sFlow commands. To overcome this situation, sFlow polling interval configuration on an interface or range of interfaces is controlled as mentioned below:
-
The maximum number of allowed interfaces for the polling intervals max (1, (interval - 10)) to min ((interval + 10), 86400) is: interval * 5
-
For every one second increment in the polling interval that is configured, the number of allowed interfaces that can be configured increases by 5.
sflow poller {rcvr-indx | interval poll-interval}
no sflow poller {rcvr-indx | interval poll-interval}
Parameters
| rcvr-indx | Enter the sFlow Receiver associated with the sampler/poller. A value of zero (0) means that no receiver is configured. The range is 1-8. The default is 0. |
| interval poll-interval | Enter the sFlow instance polling interval. A poll interval of zero (0) disables counter sampling. When set to zero (0), all the poller parameters are set to their corresponding default value. The range is 0-86400. The default is 0. A value of N means once in N seconds a counter sample is generated. |
Default
The default is None.
Command Mode
Interface Config
5-178 sflow sampler rate
Use this command to set the sampling rate for ingress/egress/flow-based sampling on this interface.
Use the no command to remove the sampling rate for ingress/egress/flow-based sampling on this interface.
sflow sampler rate value
no sflow sampler rate value
Parameters
value
Default
The default is 0 (sampling rate).
Command Mode
Interface Config
5-179 sflow source-interface
Specify the physical or logical interface for use with the sFlow client source interface. Once configured, source Interface address is used for all sFlow communications between the sFlow receiver and the sFlow client. When configured interface is down, sFlow client returns to normal operation.
No command resets the sFlow source interface to default.
sflow source-interface {slot/port | loopback loopback-id | network | serviceport | tunnel tunnel-id | vlan vlan-id}
no sflow source-interface
Parameters
| slot/port | Specifies the port to use as the source interface. |
| loopback loopback-id | Specifies the loopback interface to use as the source interface. The range of the loopback ID is 0 to 7. |
| network | Specifies the network source IP address |
| serviceport | Specifies the serviceport source IP address |
| tunnel tunnel-id | Specifies the tunnel or interface to use as the source interface. The range of the tunnel ID is 0 to 7. |
| vlan vlan-id | Specifies the VLAN to use as the source interface. |
Default
The default is None.
Command Mode
Global Config
5-180 show sflow agent
The sFlow agent is used to collect time-based sampling of network interface statistics and flow-based information. The sampling is sent to the configured sFlow receivers. The command displays sFlow agent information.
show sflow agent
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI output example.
(Routing)#show sflow agent
sFlow Version.... 1.3;
IP Address.... 10.131.12.66
Display Parameters
| sFlow Version | Uniquely identifies the version and implementation of this MIB. The version string has the following structure: MIB Version, Organization, Software Revision.MIB Version: 1.3, the version of this MIB.Organization: CompanyRevision: 1.0. |
| IP Address | The IP address associated with the agent sampling. |
5-181 show sflow pollers
Display the sFlow polling instances available on the switch. Use “-” for range.
show sflow pollers
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch) #show sflow pollers
Poller Data Source Receiver Index Poller Interval
0/1 1 10
Display Parameters
| Poller Data Source | sFlowDataSource (slot/port) for this sFlow sampler. The agent only supports Physical ports. |
| Receiver Index | sFlowReceiver associated with the identified sFlow counter poller. |
| Poller Interval | Interval period between called counter samplings associated with the data source. |
5-182 show sflow receivers
Display configuration information related to the sFlow receivers.
show sflow receivers [index]
Parameters
| index | (Optional) Enter Receiver Index <1-8>. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of a CLI display output (sflow receivers).
(Routing)#show sflow receivers 1
Receiver Index.... 1
Owner String.... minorblues
Time out.... 0
IP Address:.... 0.0.0.0
Address Type.... 1
Port.... 6343
Datagram Version.... 5
Maximum Datagram Size.... 1400
The following is an example of a show CLI display output (receiver configured as a non-timeout entry).
(Routing)#show sflow receivers
Rcvr Index Owner String Timeout Max Dgram Size Port IP Address
1 minorblues No Timeout 1400 6343 0.0.0.0
2 0 1400 6343 0.0.0.0
3 0 1400 6343 0.0.0.0
4 0 1400 6343 0.0.0.0
5 0 1400 6343 0.0.0.0
6 0 1400 6343 0.0.0.0
7 0 1400 6343 0.0.0.0
8 0 1400 6343 0.0.0.0
(Routing)#show sflow receivers 1
Receiver Index....1
Owner String....minorblues
Time out....0
IP Address:....0.0.0.0
Address Type....1
Port....6343
Datagram Version....5
Maximum Datagram Size....1400
Display Parameters
| Receiver Index | sFlow Receiver associated with the sampler/poller. |
| Owner String | Identity string for receiver, used by FlowRcvrTable entry. |
| Time Out | The period of time (seconds) before receiver is released and transmission samples to sFlow receiver is halted. A no timeout value defines sFlow receiver as a non-timeout entry. |
| Max Datagram Size | Maximum number of bytes allowed in a single sFlow datagram. |
| Port | The destination Layer4 UDP port for sFlow datagrams. |
| IP Address | The sFlow receiver IP address. |
| Address Type | The sFlow receiver IP address type. IPv4 address value is 1. |
| Datagram Version | sFlow protocol version to be used when sending samples to sFlow receiver. |
5-183 show sflow samplers
Display the sFlow sampling instances available on the switch.
show sflow samplers
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an output example.
(Routing)#show sflow samplers
Sampler Data Source Receiver Index Remote Agent Ingress Sampling Rate
0/1 1 2 1024
Flow Sampling Rate Egress Sampling Rate Max Header Size IP ACL MAC ACL
2048 4096 128 1001
Display Parameters
| Sampler Data Source | sFlowDataSource (slot/port) for this sFlow sampler. This agent only supports Physical ports. |
| Receiver Index | sFlowReceiver configured for this sampler. |
| Remote Agent | Remote agent instance index number. |
| Ingress Sampling Rate | Sampling rate for the ingress. |
| Flow Sampling Rate | Statistical sampling rate for packet sampling from this source. |
| Egress Sampling Rate | Sampling rate for the egress. |
| Max Header Size | Maximum number of bytes from a packet required to form a flow sample. |
| IP ACL | Associated IP ACL. |
| MAC ACL | Associated MAC ACL. |
5-184 show sflow source-interface
Display the sFlow source interface available on the switch.
show sflow source-interface
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch)#show sflow source-interface
sFlow Client Source Interface...... serviceport
sFlow Client Source IPv4 Address...... 192.168.0.1 [Up]
sFlow Client Source IPv6 Address...... fe80::205:64ff:fe2f:f80 [Up]
Display Parameters
| sFlow Client Source Interface | Physical or logical interface ID configured as the sFlow client source interface. |
sFlow Client Source IPv4 Address
IP address of interface configured for the sFlow client source interface.
Switch Database Management Template Commands
Switch Database Management (SDM) templates allow for combinations of scaling factors in order to allocate resources. In addition, SDM templates enable the reallocation of system resources to support a different mix of features based on network requirements.
5-185 sdm prefer
Sets the template to active after the next reboot. The keywords are as follows:
- dual-ipv4-and-ipv6 – Filters subsequent template choices supporting both IPv4 and IPv6, and maximizes the number of IPv4 and IPv6 unicast routes while limiting the number of ECMP next hops in each route to 4. The data-center template supports more ECMP next hops entries than dcvpn-data-center:
dual-ipv4-and-ipv6 alpm:
ARP Entries.... 2560
IPv4 Unicast Routes.... 32768
IPv6 NDP Entries.... 2560
IPv6 Unicast Routes.... 24576
ECMP Next Hops.... 48
IPv4 Multicast Routes.... 0
IPv6 Multicast Routes.... 0
dual-ipv4-and-ipv6 alpm:
ARP Entries.... 2560
IPv4 Unicast Routes.... 32768
IPv6 NDP Entries.... 2560
IPv6 Unicast Routes.... 24576
ECMP Next Hops.... 16
IPv4 Multicast Routes.... 0
IPv6 Multicast Routes.... 0
- ipv4-routing – Filters subsequent template choices to those that support IPv4, and not IPv6. The IPv4-routing default template maximizes the number of IPv4 unicast routes, while limiting the number of ECMP next hops in each route to 4. The data-center default template supports increases the number of ECMP next hops to 32 and reduces the number of routes. The data-center plus template increases the number of ECMP next hops to 32 while keeping the maximum IPv4 routes.
Note: A reboot is required after setting the template.
No command reverts to the default template. A reboot is required.
sdm prefer {dual-ipv4-and-ipv6 { alpm | data-center | dcvpn-data-center | default} | ipv4-routing {alpm | {data-center {default | plus} dcvpn-data-center | default}}
no sdm prefer
Parameters
| dual-ipv4-and-ipv6 alpm | Lists the scaling parameters for the the Dual IPv4 and IPv6 alpm template supporting more IPv4 unicast routes. |
| dual-ipv4-and-ipv6 data-center | List the scaling parameters for the Dual IPv4 and IPv6 template supporting more ECMP next hops entries than dcvpn-data-center. |
| dual-ipv4-and-ipv6 dcvpn-data-center | List the scaling parameters for the Dual IPv4 and IPv6 template supporting less ECMP next hops entries than data-center. |
| dual-ipv4-and-ipv6 default | List the scaling parameters for the the Dual IPv4 and IPv6 default template supporting balance IPv4 and IPv6 entries. |
| ipv4-routing alpm | List the scaling parameters for the IPv4-only template supporting more IPv4 routes. |
| ipv4-routing data-center default | List the scaling parameters for the IPv4-only template maximizing the number of unicast routes and also supporting more ARP entries in IPv4 routes. |
| ipv4-routing data-center plus | List the scaling parameters for the IPv4-only template maximizing the number of ARP entries and IPv4 routes. |
| ipv4-routing dcvpn-data-center | List the scaling parameters for the IPv4-only template maximizing the number of MAC address entries. |
| ipv4-routing default | List the scaling parameters for the IPv4-only template supporting the default setting. |
Default
The default is ipv4-routing data-center plus.
Command Mode
Global Config
5-186 show sdm prefer
Use this command to view the currently active SDM template and its scaling parameters, or to view the scaling parameters for an inactive template. When invoked with no optional keywords, this command lists the currently active template and the template that will become active on the next reboot, if it is different from the currently active template. If the system boots with a non-default template, and you clear the template configuration, either using no sdm prefer or by deleting the startup configuration, show sdm prefer lists the default template as the next active template. To list the scaling parameters of a specific template, use that template's keyword as an argument to the command.
Use the optional keywords to list the scaling parameters of a specific template.
show sdm prefer [dual-ipv4-and-ipv6 {default | data-center | alpm | data-center | dcvpn-data-center| default} | ipv4-routing {default | data-center {default | plus}}]
Parameters
| dual-ipv4-and-ipv6 default | (Optional) List the scaling parameters for the template supporting IPv4 and IPv6. |
| ipv4-routing | List template parameters for IPv4-only template. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an output sample of a SDM template. The next active SDM template has not been changed.
(Router)#show sdm prefer
The current template is the Dual IPv4 and IPv6 template.
ARP Entries.... 2560
IPv4 Unicast Routes.... 8160
IPv6 NDP Entries.... 2560
IPv6 Unicast Routes.... 2048
ECMP Next Hops.... 48
IPv4 Multicast Routes.... 1536
IPv6 Multicast Routes.... 512
Display Parameters
| ARP Entries | The maximum number of entries in the IPv4 Address Resolution Protocol (ARP) cache for routing interfaces. |
| IPv4 Unicast Routes | The maximum number of IPv4 unicast forwarding table entries. |
| IPv6 NDP Entries | The maximum number of IPv6 Neighbor Discovery Protocol (NDP) cache entries. |
| IPv6 Unicast Routes | The maximum number of IPv6 unicast forwarding table entries. |
| ECMP Next Hops | The maximum number of next hops that can be installed in the IPv4 and IPv6 unicast forwarding tables. |
SFP Transceiver Commands
Display SFP transceiver information. Transceivers that are compliant with the SFF-8472 (SFP+, SFP28) and SFF-8436(QSFP+, QSFP28) standards are supported.
5-187 show fiber-ports optical-transceiver
Display the diagnostic information of the SFP. The values are derived from the SFP's A2 (Diagnostics) table using the I²C interface.
show fiber-ports optical-transceiver {all | slot/port}
Parameters
| all | Enter all for all interfaces. |
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show fiber-ports optical-transceiver all
Link Link Nominal
Length Length Bit
50um 62.5um Rate
Port Vendor Name [m] [m] Serial Number Part Number [Mbps] Rev Compliance
0/1 D-LINK 8 3 SA011G4000005 DEM-431XT 10300 10GBase-SR
0/2 D-LINK 8 3 SA011G4000005 DEM-431XT 10300 A 10GBase-SR
0/3 D-LINK 8 3 SA011G4000005 DEM-431XT 10300 Cl 10GBase-SR
0/49 Volex Inc. 0 0 26201134400002 VAHS-26-0256 10300 x1 40GBase-CR4
(Routing)#show fiber-ports optical-transceiver 0/49
Link Link Nominal
Length Length Bit
50um 62.5um Rate
Port Vendor Name [m] [m] Serial Number Part Number [Mbps] Rev Compliance
0/49 Volex Inc. 0 0 26201134400002 VAHS-26-0256 10300 x1 40GBase-CR4
Display Parameters
| Port | Indicates the port interface. |
| Temp | Internally measured transceiver temperature. |
| Voltage | Internally measured supply voltage. |
| Current | Measured TX bias current. |
| Output Power | Measured optical output power relative to 1mW. |
| Input Power | Measured optical power received relative to 1mW. |
| TX Fault | Transmitter fault. |
| LOS | Loss of signal. |
5-188 show fiber-ports optical-transceiver-info
Display SFP vendor-related information. The values are derived from the SFP's A0 table using the I²C interface.
show fiber-ports optical-transceiver-info {all | slot/port}
Parameters
| All | Enter all for all interfaces. |
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switching)#show fiber-ports optical-transceiver-info all
Port Vendor Name Link Length 50um [m] Link Length 62.5 um [m]
0/49 DQS-5000-54SQ28 8 3
0/51 DQS-5000-54SQ28 8 3
0/52 DQS-5000-54SQ28 8 3
Serial Number Part Number Nominal Bit Rate [Mbps] Rev
A7N2018414 AXM761 10300 10
A7N2018472 AXM761 10300 10
A7N2018501 AXM761 10300 10
(Switching)#show fiber-ports optical-transceiver-info 0/49
Port Vendor Name Link Length 50um [m] Link Length 62.5 um [m]
0/49 DQS-5000-54SQ28 8 3
Serial Number Part Number Nominal Bit Rate [Mbps] Rev
A7N2018414 AXM761 10300 10
Display Parameters
| Port | Indicates the interface port. |
| Vendor Name | The full name of listed corporation, suggested: abbreviation of corporation name, SCSI company code, or the stock exchange symbol. The name is 1 to 16 ASCII characters in length. |
| Link Length 50um | The supported link length while operating in compliance with applicable standards using 50 micron multimode OM2 [500 MHz * km at 850nm] fiber. A value of zero designates no support for 50 micron multimode fiber or that the length information must be determined from the transceiver technology. |
| Link Length 62.5um | The link length as supported by the transceiver while operating in compliance with applicable standards using 62.5 micron multimode OM1 [200 MHz * km at 850nm, 500 MHz * km at 1310nm] fiber. A value of zero designates no support for 62.5 micron multimode fiber or that the length information must be determined from the transceiver technology. |
| Serial Number | The serial number for the transceiver. The serial number is 1 to 16 ASCII characters in length. A zero value in the field indicates an unspecified vendor serial number. |
| Part Number | The vendor part number or product name. A zero value in the field indicates an unspecified vendor serial number |
| Nominal Bit Rate | The nominal bit (signaling) rate in 100 MBd--rounded off to the nearest 100 MBd. The bit rate includes those bits necessary to encode and delimit the signal as well as those bits carrying data information. A zero value indicates an unspecified bit rate to be determined from the transceiver technology. The actual information transfer rate is dependent on the encoding of the data, as defined by the encoding value. |
| Rev | Vendor product revision number. An empty field indicates that the vendor revision is unspecified. |
Remote Monitoring Commands
Remote Monitoring (RMON) allows for the collection of network traffic data. RMON supports 64-bit counters (RFC 3273) and High Capacity Alarm Table (RFC 3434).
Note: No configuration commands are available for ether stats and high capacity ether stats. The data source for ether stats and high capacity ether stats are configured during initialization.
5-189 rmon alarm
Set the RMON alarm entry in the RMON alarm MIB group.
No command deletes the RMON alarm entry.
rmon alarm alarm number variable sample interval {absolute | delta} rising-threshold value [rising-event-index] falling-threshold value [falling-event-index] [startup {rising | falling | rising-falling}] [owner string]
no rmon alarm alarm number
Parameters
| Alarm Index | Unique index identifying an entry in the alarm table. Each entry defines a diagnostic sample at a particular interval for an object on the device. The range is 1 to 65535. |
| Alarm Variable | Variable object identifier to be sampled. Only variables that resolve to an ASN.1 primitive type of integer. |
| Alarm Interval | Data sampling and comparison (seconds) of the rising and falling threshold. The range is 1 to 2147483647. The default is 1. |
| Alarm Absolute Value | Statistical value during the sampling period. This object is a read-only, 32-bit signed value. |
| Alarm Rising Threshold | Rising threshold for the statistical sample. The range is 2147483648 to 2147483647. The default is 1. |
| Alarm Rising Event Index | Rising event index once threshold is crossed. The range is 1 to 65535. The default is 1. |
| Alarm Falling Threshold | Falling threshold for the statistical sample. The range is 2147483648 to 2147483647. The default is 1. |
| Alarm Falling Event Index | Falling event index once threshold is crossed. The range is 1 to 65535. The default is 2. |
| Alarm Startup Alarm | Designate alarm type. Possible values are rising, falling or both rising-falling. The default is rising-falling. |
| Alarm Owner | The owner string associated with the alarm entry. The default is monitor Alarm. |
Default
The default is None.
Command Mode
Global Config
Example
The following is an output example.
(Routing)(Config)#rmon alarm 1 ifInErrors.2 30 absolute rising-threshold 100 1 falling-threshold 10 2 startup rising owner myOwner
The following is an output example.
(Routing) (Config)#no rmon alarm 1
5-190 rmon hcalarm
Set the RMON hcalarm entry for the High Capacity RMON alarm MIB group.
No command deletes the rmon hcalarm entry.
rmon hcalarm alarm number variable sample interval {absolute | delta} rising-threshold high value low value status {positive | negative} [rising-event-index] falling-threshold high value low value status {positive | negative} [falling-event-index] [startup {rising | falling | rising-falling}] [owner string]
no rmon hcalarm alarm number
Parameters
| High Capacity Alarm Index | Integer index value to uniquely identify the high capacity alarm entry. The range is 1 to 65535. |
| High Capacity Alarm Variable | Identifier of the sampled variable. |
| High Capacity Alarm Interval | Interval sampling period in seconds used to compare with the rising and falling thresholds. The range is 1 to 2147483647. The default is 1. |
| High Capacity Alarm Sample Type | Sampling method to obtain variables used to compare against the thresholds. Possible types are Absolute Value or Delta Value. The default is Absolute Value. |
| High Capacity Alarm Absolute Value | The absolute value (that is, the unsigned value) for the hcAlarmVariable statistic during last completed sampling period. This object is a 64-bit read-only, unsigned value. |
| High Capacity Alarm Absolute Alarm Status | Indicates the validity and sign of the data for the high capacity alarm object, high value (hcAlarmAbsValueobject). Possible status types are valueNotAvailable (default), valuePositive, or valueNegative. |
| High Capacity Alarm Startup Alarm | High capacity alarm startup alarm for sending. Possible values are rising, falling, or rising-falling (default). |
| High Capacity Alarm Rising-Threshold Absolute Value Low | Threshold value: lower 32 bits of the absolute value, for the sampling. The range is 0 to 4294967295. The default is 1. |
| High Capacity Alarm Rising-Threshold Absolute Value High | Threshold value: upper 32 bits of the absolute value, for sampling. The range is 0 to 4294967295. The default is 0. |
| High Capacity Alarm Rising-Threshold Value Status | Object indicates the data sign for the rising threshold, as defined by hcAlarmRisingThresAbsValueLow and hcAlarmRisingThresAbsValueHigh. Possible values are valueNotAvailable, valuePositive (default), or valueNegative. |
| High Capacity Alarm Falling-Threshold Absolute Value Low | Lower 32 bits of the value defining threshold sampling. The range is 0 to 4294967295. The default is 1. |
| High Capacity Alarm | Upper 32 bits of the value for threshold sampling. The range is 0 to |
| Falling-Threshold Absolute Value High | 4294967295. The default is 0. |
| High Capacity Alarm Falling-Threshold Value Status | Indicates the falling threshold's data sign, as defined by the objects hcAlarmFallingThresAbsValueLow and hcAlarmFallingThresAbsValueHigh. Possible values are valueNotAvailable, valuePositive (default), or valueNegative. |
| High Capacity Alarm Rising Event Index | Index of the eventEntry used when a rising threshold is crossed. The range is 1 to 65535. The default is 1. |
| High Capacity Alarm Falling Event Index | Index of the eventEntry used when a falling threshold is crossed. The range is 1 to 65535. The default is 2. |
| High Capacity Alarm Failed Attempts | Failed number of associated hcAlarmVariable was polled by hcAlarmEntry.. This object is a 32-bit counter value that is read-only. |
| High Capacity Alarm Owner | Alarm entry owner string. The default is monitorHCAIarm. |
| High Capacity Alarm Storage Type | The configured type of non-volatile storage. This object is read-only. The default is volatile. |
Default
The default is None.
Command Mode
Global Config
Example
The following is an output example.
(Routing)(Config)#rmon hcalarm 1 ifInOctets.1 30 absolute rising-threshold high 1 low 100 status positive 1 falling-threshold high 1 low 10 status positive startup rising owner myOwner
The following is an output example.
(Routing) (Config) #no rmon hcalarm 1
5-191 rmon event
Sets the RMON event entry in the RMON event MIB group.
No command deletes the rmon event entry.
rmon event event number [description string | type log | owner string | trap community] no enable password
Parameters
| event number | Variable identifying an entry in the event table. An entry identifies asingle event. The range is 1 to 65535. |
| description string | (Optional) A description for the event entry. The default is alarmEvent. |
| type log | (Optional) Event notification type. Possible values are None (default), Log, SNMP Trap, Log and SNMP Trap. |
| owner string | (Optional) String describing owner entry. The default is monitorEvent. |
| trap community | (Optional) Specified SNMP community by this octet string which is used to send an SNMP trap. The default is public. |
Default
The default is None.
Command Mode
Global Config
Example
The following is an output example.
(Routing)(Config)#rmon event 1 log description test
The following is an example of the output.
(Routing) (Config) #no rmon event 1
5-192 show rmon
This command displays the entries in the RMON alarm table.
show rmon {alarms | alarm alarm-index | collection | events | hcalarm | hcalarms | history | log | statistics }
Parameters
| alarms | Show RMON alarm entries. |
| alarm alarm-index | Display the alarm table. |
| collection | Displays the configured requested group of statistics. |
| events | Displays the RMON event table. |
| hcalarm | Show RMON high capacity alarm entries. |
| hcalarms | Displays the high capacity alarm table. |
| history | Displays the RMON history ethernet statistics. |
| log | Display the RMON logging table. |
| statistics | Display RMON ethernet statistics. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show rmon alarms
Index OID Owner
1 alarmInterval.1 MibBrowser
2 alarmInterval.1 MibBrowser
The following is a CLI display output example.
(Routing)#show rmon alarm 1
Alarm 1
----
OID: alarminterval 1
Last Sample Value: 1
Interval: 1
Sample Type: absolute
Startup Alarm: rising-falling
Rising Threshold: 1
Falling Threshold: 1
Rising Event: 1
Falling Event: 2
Owner: DLBrowser
Display Parameters
| Alarm | Unique index identifying an entry in the alarm table. Each entry defines a diagnostic sample at a particular interval for an object on the device. The range is 1 to 65535. |
| OID | Object ID to which the variable name is resolved. The format is x.x.x.x. |
| Last Sample Value | Object ID of the last event. |
| Interval | Interval (seconds) defining rising and falling thresholds sampling and comparison period. The range is 1 to 2147483647. The default is 1. |
| Sample Type Absolute | Statistical value during the last sampling period. This object is a read-only, 32-bit signed value. |
| Startup Alarm | Specified alarm to send. Possible values are rising, falling or both rising-falling. The default is rising-falling. |
| Rising Threshold | Rising threshold for the statistical sample. The range is 2147483648 to 2147483647. The default is 1. |
| Falling Threshold | Falling threshold of statistical sample. The range is 2147483648 to 2147483647. The default is 1. |
| Rising Event | Entry index used when a rising threshold is crossed. The range is 1 to 65535. The default is 1. |
| Falling Event | Entry index used when a falling threshold is crossed. The range is 1 to 65535, default is 2. |
| Owner | String associated with the alarm entry. The default is monitorAlarm. |
5-193 show rmon collection history
Displays the RMON history control table.
show rmon collection history [interfaces slot/port]
Parameters
| interfaces slot/port | (Optional) Display RMON interface information. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show rmon collection history
Index Interface Interval Requested Granted Owner Samples Samples
1 0/1 30 10 10 myowner
2 0/1 1800 50 10 monitorHistoryControl
3 0/2 30 50 10 monitorHistoryControl
4 0/2 1800 50 10 monitorHistoryControl
5 0/3 30 50 10 monitorHistoryControl
6 0/3 1800 50 10 monitorHistoryControl
7 0/4 30 50 10 monitorHistoryControl
The following is a CLI display output example.
(Routing)#show rmon collection history interfaces 0/1
Index Interface Interval Requested Granted Owner
Samples Samples
1 0/1 30 10 10 myowner
2 0/1 1800 50 10 monitorHistoryControl
Display Parameters
| Index | Unique index identifying an entry in the historyControl table. The entry defines a set of samples at a particular interval for an interface on the device. The range is 1 to 65535. |
| Interface | Displays the interface ID. |
| Interval | Defined interval period in seconds for data sampling. The range is 1 to 3600. The default is 1800. |
| Requested | Variable defining number of discrete time intervals for the saving of data. The range is 1 to 65535. The default is 50. |
| Granted Samples | Designated discrete sampling intervals for the saving of data. This object is read-only. The default is 10. |
| Owner | Owner string associated with the history control entry. The default is monitorHistoryControl. |
5-194 show rmon events
Display entries listed in RMON event table.
show rmon events
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show rmon events
Index Description Type Community Owner Last time sent
1 test log public MIB 0 days 0 h:0 m:0 s
Display Parameters
| Event Index | Unique index identifying an entry in the event table. Each such entry defines one event that is to be generated when the appropriate conditions occur. The range is 1 to 65535. |
| Event Description | Description of the event entry. The default is alarmEvent. |
| Event Type | Notification event type. Possible values are None (default), Log, SNMP Trap, Log and SNMP Trap. |
| Event Owner | String describing associated entry owner. The default is monitorEvent. |
| Event Community | SNMP community, specific the octet string, used to send an SNMP trap. The default is public. |
| Owner | Defined event owner for entry. |
| Last time sent | Defined period of last transmission of log or a SNMP trap message. |
5-195 show rmon history
Display specified entry in the RMON history table.
show rmon history index {errors [period seconds] | other [period seconds] | throughput [period seconds]}
Parameters
| Index | Index of the entry. |
| errors [period seconds] | (Optional) Display the error counter period in seconds. |
| other [period seconds] | (Optional) Display the drop and collision counter period in seconds. |
| throughput [period seconds] | (Optional) Display the throughput counter period in seconds. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show rmon history 1 errors
Sample set: 1 Owner: myowner
Interface: 0/1 Interval: 30
Requested Samples: 10 Granted Samples: 10
Maximum table size: 1758
| Time | CRC | Align | Undersize | Oversize | Fragments | Jabbers | |||
| Jan | 01 | 1970 | 21:41:43 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:42:14 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:42:44 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:43:14 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:43:44 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:44:14 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:44:45 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:45:15 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:45:45 | 0 | 0 | 0 | 0 | 0 | |
| Jan | 01 | 1970 | 21:46:15 | 0 | 0 | 0 | 0 | 0 | |
The following is a CLI display output example.
| (Routing)#show rmon history 1 throughput | |
| Sample set: 1 Owner: myowner | |
| Interface: 0/1 Interval: 30 | |
| Requested Samples: 10 Granted Samples: 10 | |
| Maximum table size: 1758 |
| Time | Octets | Packets | Broadcast | Multicast | Util | |||
| Jan 01 | 1970 | 21:41:43 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:42:14 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:42:44 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:43:14 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:43:44 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:44:14 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:44:45 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:45:15 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:45:45 | 0 | 0 | 0 | 0 | 1 | |
| Jan 01 | 1970 | 21:46:15 | 0 | 0 | 0 | 0 | 1 | |
| (Routing)#show rmon history 1 other |
| Sample set: 1 Owner: myowner |
| Interface: 0/1 Interval: 30 |
| Requested Samples: 10 Granted Samples: 10 |
| Maximum table size: 1758 |
| Time | Dropped | Collisions | |||||
| Jan | 01 | 1970 | 21:41:43 | 0 | 0 | ||
| Jan | 01 | 1970 | 21:42:14 | 0 | 0 | ||
| Jan | 01 | 1970 | 21:42:44 | 0 | 0 | ||
| Jan | 01 | 1970 | 21:43:14 | 0 | 0 | ||
| Jan | 01 | 1970 | 21:43:44 | 0 | 0 | ||
| Jan | 01 | 1970 | 21:44:14 | 0 | 0 |
| Jan | 01 | 1970 | 21:44:45 | 0 | 0 |
| Jan | 01 | 1970 | 21:45:15 | 0 | 0 |
| Jan | 01 | 1970 | 21:45:45 | 0 | 0 |
| Jan | 01 | 1970 | 21:46:15 | 0 | 0 |
Display Parameters
| Control Index | Unique identifier in a historyControl table. Each entry defines a set of samples at a particular interval for an interface on the device. The range is 1 to 65535. |
| Control Data Source | The source interface for which historical data is collected. |
| Control Buckets Requested | Designated number of discrete time intervals for the saving of data. The range is 1 to 65535. The default is 50. |
| Control Interval | The interval in seconds over which the data is sampled. The range is 1 to 3600. The default is 1800. |
| Control Buckets Granted | Designated number of discrete sampling intervals for the saving of data. This object is read-only. The default is 10. |
| Control Interval. | The interval in seconds over which the data is sampled. The range is 1 to 3600. The default is 1800. |
| Control Owner | Owner string associated with the history control entry. The default is monitorHistoryControl. |
| Maximum Table Size | Maximum number of entries that the history table can hold. |
| Time | Period stamp in seconds for collected sample. |
| CRC Align | Number of CRC align errors. |
| Undersize Packets | Number of undersized packets, less than 64 octets long (excluding framing bits, including FCS octets). |
| Oversize Packets | Total number of oversized packets longer than 1518 octets (excluding framing bits, including FCS octets). |
| Fragments | Total number of fragment packets--not integral number of octets in length or with a bad Frame Check Sequence (FCS)--less than 64 octets in length (excluding framing bits, including FCS octets). |
| Jabbers | Total number of jabber packets; longer than 1518 octets (excluding framing bits, including FCS octets), not integral number of octets in length or had a bad Frame Check Sequence (FCS). |
| Octets | Total number of octets received on the interface. |
| Packets | Total number of packets received (including error packets) on the interface. |
| Broadcast | Total number of good broadcasted packets received on the interface. |
| Multicast | Total number of good Multicast packets received on the interface. |
| Dropped | Displays the total number of dropped collisions. |
| Collisions | Displays the total number of collisions on the interface. |
5-196 show rmon log
Displays the entry list in the RMON log table.
show rmon log [event-index]
Parameters
| event-index | Enter a unique Event Index (1-65535) |
| DefaultThe default is None. | |
| Command ModePrivileged EXEC | |
| Display Parameters | |
| Maximum table size | Maximum allowed of log entries. |
| Event | Defined event index. |
| Description | Event entry comment. |
| Time | Event entry time stamp. |
5-197 show rmon statistics interfaces
Displays the RMON statistics for the specified interfaces.
show rmon statistics interfaces slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC | |
| Example | |
| The following is a CLI display output example. | |
| (Routing)#show rmon statistics interfaces 0/1 | |
Port: 0/1
Dropped: 0
Octets: 0 Packets: 0
Broadcast: 0 Multicast: 0
CRC Align Errors: 0 Collisions: 0
Undersize Pkts: 0 Oversize Pkts: 0
Fragments: 0 Jabbers: 0
64 Octets: 0 65 - 127 Octets: 0
128 - 255 Octets: 0 256 - 511 Octets: 0
512 - 1023 Octets: 0 1024 - 1518 Octets: 0
HC Overflow Pkts: 0 HC Pkts: 0
HC Overflow Octets: 0 HC Octets: 0
HC Overflow Pkts 64 Octets: 0 HC Pkts 64 Octets: 0
HC Overflow Pkts 65 - 127 Octets: 0 HC Pkts 65 - 127 Octets: 0
HC Overflow Pkts 128 - 255 Octets: 0 HC Pkts 128 - 255 Octets: 0
HC Overflow Pkts 256 - 511 Octets: 0 HC Pkts 256 - 511 Octets: 0
HC Overflow Pkts 512 - 1023 Octets: 0 HC Pkts 512 - 1023 Octets: 0
HC Overflow Pkts 1024 - 1518 Octets: 0 HC Pkts 1024 - 1518 Octets: 0
Display Parameters
| Port | Indicates the interface in slot/port format. |
| Dropped | Total number of interface dropped events. |
| Octets | Total number of octets received. |
| Packets | Total number of packets received (including error packets). |
| Broadcast | Total number of good broadcast packets received. |
| Multicast | Total number of good multicast packets received. |
| CRC Align Errors | Total number of packets received from 64 to 1518 octets (excluding framing bits, including FCS octets) inclusive. |
| Collisions | Total number of collisions. |
| Undersize Pkts | Total number of undersize packets, less than 64 octets long (excluding framing bits, including FCS octets). |
| Oversize Pkts | Total number of oversize packets, longer than 1518 octets (excluding framing bits, including FCS octets). |
| Fragments | Total number of fragment packets. Packets are not an integral number of octets in length or without a bad Frame Check Sequence (FCS), and are less than 64 octets in length (excluding framing bits, including FCS octets). |
| Jabbers | Total number of jabber packets; longer than 1518 octets (excluding framing bits, including FCS octets) and not an integral number of octets in length or contain a bad Frame Check Sequence (FCS). |
| 64 Octets | Total number of packets, 64 octets in length (excluding framing bits, including FCS octets). |
| 65-127 Octets | Total number of packets from 65 to 127 octets in length (excluding framing bits, including FCS octets). |
| 128-255 Octets | Total number of packets from 128 to 255 octets in length (excluding framing bits, including FCS octets). |
| 256-511 Octets | Total number of packets from 256 to 511 octets in length (excluding framing bits, including FCS octets). |
| 512-1023 Octets | Total number of packets from 512 to 1023 octets in length (excluding framing bits, including FCS octets). |
| 1024-1518 Octets | Total number of packets from 1024 to 1518 octets in length (excluding framing bits, including FCS octets). |
| HC Overflow Pkts | Total number of HC overflow packets. |
| HC Overflow Octets | Total number of HC overflow octets. |
| HC Overflow Pkts 64 Octets | Total number of HC overflow packets, 64 octets in length. |
| HC Overflow Pkts 65 – 127 Octets | Total number of HC overflow packets from 65 to 127 octets in length. |
| HC Overflow Pkts 128 - 255 Octets | Total number of HC overflow packets from 128 to 255 octets in length. |
| HC Overflow Pkts 256 – 511 Octets | Total number of HC overflow packets from 256 to 511 octets in length. |
| HC Overflow Pkts 512 – 1023 Octets | Total number of HC overflow packets from 512 to 1023 octets in length. |
| HC Overflow Pkts 1024 – 1518 Octets | Total number of HC overflow packets from 1024 to 1518 octets in length. |
5-198 show rmon hcalarms
Displays the entries in the RMON high-capacity alarm table.
show rmon {hcalarms | hcalarm alarm index}
Parameters
| hcalarms | Displays the high capacity alarm table. |
| hcalarm alarm index | Show RMON high capacity alarm entries, index: 1-65535. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show rmon hcalarms
Index OID Owner
1 alarmInterval.1 MibBrowser
2 alarmInterval.1 MibBrowser
(Routing)#show rmon hcalarm 1
Alarm 1
OID: alarmInterval.1
Last Sample Value: 1
Interval: 1
Sample Type: absolute
Startup Alarm: rising-falling
Rising Threshold High: 0
Rising Threshold Low: 1
Rising Threshold Status: Positive
Falling Threshold High: 0
Falling Threshold Low: 1
Falling Threshold Status: Positive
Rising Event: 1
Falling Event: 2
Startup Alarm: Rising-Falling
Owner: MibBrowser
Display Parameters
| Alarm | Object identifier of sampled variable. Only variables that resolve to an ASN.1 primitive type of integer. |
| AlarmInterval | Interval defining in seconds the sampling/comparing period of rising and falling thresholds. The range is 1 to 2147483647. The default is 1. |
| Last Sample Value | Displays the value of the statistic during the last sampling period. |
| Interval | Displays the interval in seconds over which the data is sampled and compared with the rising and falling thresholds. |
| Sample Type | Sampling method of selected variable and calculating the value to be compared against the thresholds. Possible types are Absolute Value or Delta Value. The default isAbsolute Value. |
| Startup Alarm | The designated startup alarm to be sent. Possible values arerising, falling, or rising-falling. The default is rising-falling. |
| High Capacity Alarm Index | Integer index value identifying capacity alarm entry. The range is 1 to 65535. |
| Rising Threshold High | The upper 32 bits of the threshold's absolute value. The range is 0 to 4294967295. The default is 0. |
| Rising-Threshold Low | The lower 32 bits of the threshold's absolute value. The range is 0 to 4294967295. The default is 1. |
| Rising Threshold Status | This indicated data sign of the rising threshold, defined by hcAlarmRisingThresAbsValueLow and hcAlarmRisingThresAbsValueHigh objects. Possible values are valueNotAvailable, valuePositive (default), or valueNegative. |
| Falling Threshold High | The upper 32 bits of the threshold's absolute value. The range is 0 to 4294967295. The default is 0. |
| Falling Threshold Low | The lower 32 bits of the absolute value for threshold for the sampled statistic. The range is 0 to 4294967295. The default is 1. |
| Failling Threshold Staus | The indicated data sign for the falling threshold, defined by hcAlarmFallingThresAbsValueLow and hcAlarmFallingThresAbsValueHigh objects. Possible values are valueNotAvailable, valuePositive (default), or valueNegative. |
| Rising Event | Entry index used when a rising threshold is crossed. The range is 1 to 65535. The default is 1. |
| Falling Event | Entry index used when a falling threshold is crossed. The range is 1 to 65535. The default is 2. |
| Startup Alarm | The designated startup alarm to be sent. Possible values are rising, falling, or rising-falling. The default is rising-falling. |
| Owner | String defining the associated owner for the alarm entry. The default is monitorHCAlarm. |
| High Capacity Alarm Absolute Value | The absolute value, unsigned, of the hcAlarmVariable statistic during last sampling period. The value during the current sampling period is available after the period is completed. This object is a 64-bit unsigned value (Read-Only). |
5-199 shutdown
This command disables a port or range of ports.
Note: You can use the shutdown command on physical and port-channel (LAG) interfaces, but not on VLAN routing interfaces. No command enables a port.
shutdown
no shutdown
Parameters
None
Default
The default is Enabled.
Command Mode
Interface Config
5-200 shutdown all
Disables all ports.
Note: Shutdown all is available for physical and port-channel (LAG) interfaces, but not for VLAN routing interfaces.
Use the no command to enable all ports.
shutdown all
no shutdown all
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-201 speed
Enable or disable auto-negotiation and set the advertised port speed. The duplex parameter allows for both half and full duplex speed configuration.
Use the auto keyword to enable auto-negotiation on the port. Use the command without the auto keyword to ensure auto-negotiation is disabled and to set the port speed and mode according to the command values. If auto-negotiation is disabled, set the speed and duplex mode.
Note: The support speed depends on the model.
speed auto {10G|25G|40G|100G} [10G|25G|40G|100G] [half-duplex | full-duplex]
speed {10G|25G|40G|100G} {half-duplex | full-duplex}
Parameters
| half-duplex | Set to half duplex. |
| full-duplex | Set to full duplex. |
Default
The default is Auto-negotiation.
Command Mode
Interface Config
5-202 show port
Display port information.
show port {intf-range | all}
Parameters
| intf-range | Enter interface(s) in slot/port format, use comma for a list and hyphen for ranges. |
| advertise | Show the auto negotiation advertisement information. |
| all | Enter 'all' for all interfaces. |
| description | Display interface description. |
| fpti | Display front panel tap interface information. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an output example of all port entries.
| (Routing)#show port all | |||||||||
| Admin | Physical | Physical | Link | Link | LACP | Actor | |||
| Intf | Type | Mode | Mode | Status | Status | Trap | Mode | Timeout | |
| 0/1 | Enable | Auto | 100 | Full | Up | Enable | Enable | long | |
| 0/2 | Enable | Auto | 100 | Full | Up | Enable | Enable | long | |
| 0/3 | Enable | Auto | Down | Enable | Enable | long | |||
| 0/4 | Enable | Auto | 100 | Full | Up | Enable | Enable | long | |
| 0/5 | Enable | Auto | 100 | Full | Up | Enable | Enable | long | |
| 0/6 | Enable | Auto | 100 | Full | Up | Enable | Enable | long | |
| 0/7 | Enable | Auto | 100 | Full | Up | Enable | Enable | long | |
| 0/8 | Enable | Auto | 100 | Full | Up | Enable | Enable | long | |
| 1/1 | Enable | Down | Disable | N/A | N/A | ||||
| 1/2 | Enable | Down | Disable | N/A | N/A | ||||
| 1/3 | Enable | Down | Disable | N/A | N/A | ||||
| 1/4 | Enable | Down | Disable | N/A | N/A | ||||
| 1/5 | Enable | Down | Disable | N/A | N/A | ||||
| 1/6 | Enable | Down | Disable | N/A | N/A | ||||
The following command is a port range output example.
| (Routing)#show port 0/1-1/6 | |||||||||
| Admin | Physical | Physical | Link | Link | LACP | Actor | |||
| Intf | Type | Mode | Mode | Status | Status | Trap | Mode | Timeout | |
| 0/1 | Enable | Auto | 100 | Full | Up | Enable | long | ||
| 0/2 | Enable | Auto | 100 | Full | Up | Enable | long | ||
| 0/3 | Enable | Auto | Down | Enable | long | ||||
| 0/4 | Enable | Auto | 100 | Full | Up | Enable | long | ||
| 0/5 | Enable | Auto | 100 | Full | Up | Enable | long | ||
| 0/6 | Enable | Auto | 100 | Full | Up | Enable | long | ||
| 0/7 | Enable | Auto | 100 | Full | Up | Enable | long | ||
| 0/8 | Enable | Auto | 100 | Full | Up | Enable | long | ||
| 1/1 | Enable | Down | Disable | N/A | |||||
| 1/2 | Enable | Down | Disable | N/A | |||||
| 1/3 | Enable | Down | Disable | N/A | |||||
| 1/4 | Enable | Down | Disable | N/A | |||||
| 1/5 | Enable | Down | Disable | N/A | |||||
| 1/6 | Enable | Down | Disable | N/A | |||||
Display Parameters
| Interface | Slot/port. |
| Type | Define port type, values are as follows:Mirror – this port is a monitoring port.PC Mbr – this port is a member of a port-channel (LAG).Probe – this port is a probe port. |
| Admin Mode | The Port control administration state. The port must be enabled (default) in order for it to be allowed into the network. |
| Physical Mode | The desired port speed and duplex mode. If auto-negotiation support is selected, the duplex mode and speed is determined by the auto-negotiation process. Maximum capability of the port (full duplex -100M) is advertised. Otherwise, this object determines the port's duplex mode and transmission rate. The factory default is Auto. |
| Physical Status | Port speed and duplex mode. |
| Link Status | Up or down. |
| Link Trap | Determiner for send trap function if link status changes. The factory default is enabled. |
| LACP Mode | Enabled or disabled. |
| Actor Timeout | Displays the timeout value for the actor admin key. By default, ports are set to use a long timeout value (90 seconds). |
5-203 show port description
This command displays the interface description.
show port description {slot/port | lag lag-id | loopback loopback-id | tunnel tunnel-id | VLAN vlan-id}
Parameters
| slot/port | Enter an interface in slot/port format. |
| lag lag-id | Enter an interface in lag format. |
| loopback loopback-id | Configuration of Loopback Interface. |
| tunnel tunnel-id | Configure IPv6 Tunnel. |
| vlan vlan-id | Enter an interface in VLAN format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switching)#show port description 0/1
Interface.... 0/1
ifIndex.... 1
Description....
MAC address.... 00:10:18:82:0C:10
Bit offset .... 1
Display Parameters
| Interface | Slot/port or LAG with the information. |
| ifIndex | Interface index number associated with the port. |
| Description | The alpha-numeric description of the interface created by the command. |
| MAC address | Port MAC address in the following format: 6 two-digit hexadecimal numbers separated by colons, for example 01:23:45:67:89:AB. |
| Bit Offset | The bit offset value. |
5-204 hardware profile portmode
Configure a 40G QSFP+ port in either 4x10G mode, 1x40G mode or a 100G QSFP28 port in either 1x100G, 2x50G, or 4x25G mode.
The function is only available on interfaces supporting expandable ports.
Note: Not avialble in interface range mode.
No command returns the port to default.
hardware profile portmode mode
no hardware profile portmode
Parameters
| mode | Modes are dependent on the platform. Possible modes are:1x40g: Configure the port as a single 40G port using four lanes.4x10g: Configure the port as four 10G ports, each on a separate lane. This mode requires the use of a suitable 4x10G to 1x40G pigtail cable.1x100G: Configure the port as a single 100G port using four lanes. The 100G ports may be reconfigured as 40G ports using the interface speed command.2x50G: Configure the port as two 50G ports, each using two lanes. This mode requires the use of a suitable 1x100G to 2x50G pigtail cable.4x25g: Configure the port as a four 25G ports, each on a separate lane. This mode requires a 4x25G to 1x100G breakout cable--can be reconfigured as 4x10G ports. |
Default
The default is Platform-specific.
Command Mode
Interface Config
5-205 show interfaces hardware profile
Display the hardware profile information for the ports supporting expandable features. Available displays are 40G interface with corresponding 10G interfaces, 100G interface with corresponding 25G or 50G interfaces.
A reboot is required for new configuration settings to take effect. The interface displays both the configured mode and the current operational mode of the interface.
show interfaces hardware profile [interface]
Parameters
| interface | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
| (Routing)#show interfaces hardware profile | ||||
| 40G Interface | 10G Interfaces | Configured Mode | Oper Mode | |
| 0/1 | 0/17-20 | 1x40G | 4x10G | |
| 0/2 | 0/21-24 | 1x40G | 1x40G | |
| (Routing)#show interfaces hardware profile 0/1 | ||||
| 40G Interface | 10G Interfaces | Configured Mode | Oper Mode | |
| 0/1 | 0/17-20 | 1x40G | 4x10G | |
Additional information for platforms supporting expandable ports (high density ports that can be split into multiple lane modes).
| (Routing)#show interfaces hardware profile | ||||
| 100G/40G | Configured Operating Expandable Expanded | |||
| Interface | Mode | Mode | Option(s) | Interfaces |
| 0/81 | 1x40G | 1x40G | 4x10G | 0/93-96 |
| 0/82 | 1x40G | 1x40G | 4x10G | 0/97-100 |
| 0/83 | 1x40G | 1x40G | 4x10G | 0/101-104 |
| 0/84 | 1x40G | 1x40G | 4x10G | 0/105-108 |
| 0/85 | 1x100G | 1x100G | 4x25G | 0/109-112 |
| 2x50G | 0/125-126 | |||
| 0/86 | 1x100G | 1x100G | 4x25G | 0/113-116 |
| 2x50G | 0/127-128 | |||
| 0/87 | 1x100G | 1x100G | 4x25G | 0/117-120 |
| 2x50G | 0/129-130 | |||
| 0/88 | 1x100G | 1x100G | 4x25G | 0/121-124 |
| 2x50G | 0/131-132 | |||
| (Routing) #show interfaces hardware profile 0/85 | ||||
| 100G/40G | Configured Operating Expandable Expanded | |||
| Spanning-tree vlan priority Interface Mode Mode Option(s) Interfaces | ||||
| 0/85 | 1x100G | 1x100G | 4x25G | 0/109-112 |
| 2x50G | 0/125-126 | |||
Spanning Tree Protocol Commands
This section describes the commands you use to configure Spanning Tree Protocol (STP). STP helps prevent network loops, duplicate messages, and network instability.
5-206 spanning-tree
Sets the spanning-tree operational mode to enabled.
No command sets the spanning-tree operational mode to disabled. While disabled, the spanning-tree configuration is retained and can be changed, but is not activated.
spanning-tree no spanning-tree
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-207 spanning-tree auto-edge
Use this command to allow the interface to become an edge port if it does not receive any BPDUs within a given amount of time.
Use the no command to reset the auto-edge status of the port to the default value.
spanning-tree auto-edge no spanning-tree auto-edge
Parameters
None
Default
The default is Enabled.
Command Mode
Interface Config
5-208 spanning-tree backbonefast
Use this command to enable the detection of indirect link failures and accelerate spanning tree convergence on PVST configured switches.
Backbonefast accelerates finding an alternate path when an indirect link to the root port goes down.
Backbonefast can be configured even if the switch is configured for MST(RSTP) or PVST mode. It only has an effect when the switch is configured for the PVST mode.
If a backbonefast-enabled switch receives an inferior BPDU from its designated switch on a root or blocked port, it sets the maximum aging time on the interfaces on which it received the inferior BPDU if there are alternate paths to the designated switch. This allows a blocked port to immediately move to the listening state where the port can be transitioned to the forwarding state in the normal manner.
On receipt of an inferior BPDU from a designated bridge, backbonefast enabled switches send a Root Link Query (RLQ) request to all non-designated ports except the port from which it received the inferior BPDU. This check validates that the switch can receive packets from the root on ports where it expects to receive BPDUs. The port from which the original inferior BPDU was received is excluded because it has already encountered a failure. Designated ports are excluded as they do not lead to the root.
On receipt of an RLQ response, if the answer is negative, the receiving port has lost connection to the root and its BPDU is immediately aged out. If all nondesignated ports have already received a negative answer, the whole bridge has lost the root and can start the STP calculation from scratch.
If the answer confirms the switch can access the root bridge on a port, it can immediately age out the port on which it initially received the inferior BPDU.
A bridge that sends an RLQ puts its bridge ID in the PDU. This ensures that it does not flood the response on designated ports.
A bridge that receives an RLQ and has connectivity to the root forwards the query toward the root through its root port.
A bridge that receives a RLQ request and does not have connectivity to the root (switch bridge ID is different from the root bridge ID in the query) or is the root bridge immediately answers the query with its root bridge ID.
RLQ responses are flooded on designated ports.
Use the no command to disable backbonefast.
Note: Per VLAN Rapid Spanning Tree Protocol (PVRSTP) embeds support for FastBackbone and FastUplink. Even if FastUplink and FastBackbone are configured, they are effective only in PVSTP mode.
spanning-tree backbonefast
no spanning-tree backbonefast
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-209 spanning-tree cost
Use this command to configure the external path cost for port used by a MST instance. When the auto keyword is used, the path cost from the port to the root bridge is automatically determined by the speed of the interface. To configure the cost manually, specify a cost value from 1-200000000.
Use the no command to reset the auto-edge status of the port to the default value.
spanning-tree cost {cost | auto} no spanning-tree cost
Parameters
| cost | Enter an integer in the range of 1 – 20000000. |
| auto | Set the external pathcost value automatically on the basis of Link Speed. |
Default
The default is Auto.
Command Mode
Interface Config
5-210 spanning-tree bpdufilter
Use this command to enable BPDU Filter on an interface or range of interfaces. Use the no command to disable BPDU Filter on the interface or range of interfaces.
spanning-tree bpdufilter no spanning-tree bpdufilter
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-211 spanning-tree bpdufilter default
Use this command to enable BPDU Filter on all the edge port interfaces.
Use the no command to disable BPDU Filter on all the edge port interfaces.
spanning-tree bpdufilter default no spanning-tree bpdufilter default
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-212 spanning-tree bpduguard
Enable BPDU Guard on the switch.
No command disables BPDU Guard on the switch.
spanning-tree bpduguard no spanning-tree bpduguard
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-213 spanning-tree bpdumigrationcheck
Force a rapid spanning tree (RSTP) and multiple spanning tree (MSTP) BPDUs transmission. Use the slot/port parameter to transmit a BPDU from a specified interface, or use the all keyword to transmit
BPDUs from all interfaces. The command forces the BPDU transmission execution. It does not change the system configuration nor does it have a "no" version.
spanning-tree bpdumigrationcheck {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Force all the ports to transmit RST or MST BPDUs. |
Default
The default is None.
Command Mode
Global Config
5-214 spanning-tree configuration name
Set the Configuration Identifier Name to identify the current configuration. The string uses up to 32 characters.
No command resets the Configuration Identifier Name to default.
spanning-tree configuration name name
no spanning-tree configuration name
Parameters
| name | Enter a string of at most 32 characters. |
Default
The default is MAC address in hexadecimal notation.
Command Mode
Global Config
5-215 spanning-tree configuration revision
Set the Configuration Identifier Revision Level for to identify the current configuration. The Configuration Identifier Revision Level range: 0 to 65535.
No command sets the Configuration Identifier Revision Level to identify the current configuration.
spanning-tree configuration revision 0-65535
no spanning-tree configuration revision
Parameters
None
Default
The default is 0.
Command Mode
Global Config
5-216 spanning-tree forward-time
Sets the Bridge Forward Delay parameter to a new value for the common and internal spanning tree. The forward-time value in seconds, range: 4 to 30.
No command sets the Bridge Forward Delay parameter for the common and internal spanning tree to the default.
spanning-tree forward-time 4-30
no spanning-tree forward-time
Parameters
None
Default
The default is 15.
Command Mode
Global Config
5-217 spanning-tree max-age
Set the Bridge Max Age parameter to a defined value for common and internal spanning tree. The max-age value range is: 6 to 40, with the value being less than or equal to 2 x (Bridge Forward Delay - 1).
No command sets the Bridge Max Age parameter to default.
spanning-tree max-age 6-40
no spanning-tree max-age
Parameters
None.
Default
The default is 20.
Command Mode
Global Config
5-218 spanning-tree max hops
Sets the MSTP Max Hops parameter to a defined value for the common and internal spanning tree, range 1 to 127.
No command sets the Bridge Max Hops parameter for the common and internal spanning tree to the default value.
spanning-tree max-hops 1-127
no spanning-tree max-hops
Parameters
None
Default
The default is 20.
Command Mode
Global Config
5-219 spanning-tree mode
Configure global spanning tree mode per VLAN spanning tree, Rapid-PVST, MST, RSTP or STP. Only a single setting MSTP (RSTP), PVST or RPVST can be enabled on a switch.
Enabling PVSTP or rapid PVSTP (PVRSTP) disables MSTP/RSTP/STP. By default, MSTP is enabled.
No command globally configures the switch to the default spanning-tree mode, MSTP.
spanning-tree mode {mst | pvst | rapid-pvst | stp | rstp}
no spanning-tree mode
Parameters
| mst | Configure spanning-tree mode as mst. |
| pvst | Configure spanning-tree mode as pvst. |
| rapid-pvst | Configure spanning-tree mode as rapid-pvst. |
| stp | Configure spanning-tree mode as pst. |
| rstp | Configure spanning-tree mode as rstp. |
Default
The default is MST.
Command Mode
Global Config
5-220 spanning-tree mst
Set Path Cost or Port Priority for ports within the multiple or common and internal spanning tree instances. Specify an mstid parameter which corresponds to an existing multiple spanning tree instance, the corresponding settings are done for that multiple spanning tree instance. Specify 0 (defined as the default) as the mstid, the configurations are done for the common and internal spanning tree instance.
By specifying a cost for the path cost for the port is set within a multiple spanning tree instance or the common and internal spanning tree instance--dependent on the mstid parameter. The path cost range: 1 to 200000000 or auto. The auto option defines the path cost value based on Link Speed.
spanning-tree mst mstid {cost 1-200000000 | auto} | port-priority 0-240}
no spanning-tree mst mstid {cost | port-priority}
Parameters
| mstid | Indicates a multiple spanning tree instance identifier. |
| cost 1-200000000 | Indicates the path cost range: 1 – 2000000000. |
| auto | Indicates the path cost value based on Link Speed. |
| port-priority 0-240 | Indicates the priority for the identified port interface. |
Default
The default is as follows:
- cost - auto
- port-priority – 128
Command Mode
Global Config
5-221 spanning-tree mst instance
Add multiple spanning tree instances to the switch, mstid range: 1 to 4094. The range corresponds to the instance ID to be added. The maximum number of supported multiple instances is 4.
No command removes a multiple spanning tree instance and reallocates all VLANs corresponding instances to the common and internal spanning tree.
spanning-tree mst instance mstid
no spanning-tree mst instance mstid
Parameters
| mstid | Enter a multiple spanning tree instance identifier. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-222 spanning-tree mst priority
Sets the bridge priority for specific multiple spanning tree instances. The mstid parameter corresponds to the desired existing multiple spanning tree instances. The priority value range: 0 to 61440 in increments of 4096.
Specify 0 (default CIST ID) as the mstid to set the Bridge Priority parameter to a value for the common and internal spanning tree. The bridge priority range: 0 to 61440.
Note: The twelve least significant bits are masked, specified by 802.1s affecting the priority, which is rounded down to the next lower valid priority.
No command sets the bridge priority for a specific multiple spanning tree instance to the default value. The parameter mstid is a number that corresponds to the desired existing multiple spanning tree instance.
spanning-tree mst priority mstid 0-61440
no spanning-tree mst priority mstid 0-61440
Parameters
| mstid | Enter a multiple spanning tree instance identifier (0 - 61440). |
Default
The default is 32768.
Command Mode
Global Config
5-223 spanning-tree mst vlan
Adds an association between a multiple spanning tree instance and one or more VLANs disassociating the VLAN(s) from the common and internal spanning tree. The parameter mstid is a number that corresponds to the desired existing multiple spanning tree instance.
No command disassociates a multiple spanning tree instance and one or more VLANs. In so doing, the VLAN(s) revert to the common and internal spanning tree association.
spanning-tree mst vlan mstid vlanid
no spanning-tree mst vlan mstid vlanid
Parameters
| mstid | Enter a multiple spanning tree instance identifier. |
| vlanid | Enter VLAN IDs in range <1-4093>. Use '-' to specify a range, or ',' to separate VLAN IDs in a list. Spaces and zeros are not permitted. |
Default
The default is None.
Command Mode
Global Config
5-224 spanning-tree port mode
Enable the Administrative Switch Port State for a port.
No command to set the Administrative Switch Port State for this port to disabled.
spanning-tree port mode
no spanning-tree port mode
Parameters
None
Default
The default is Enabled.
Command Mode
Interface Config
5-225 spanning-tree port mode all
This command sets the Administrative Switch Port State for all ports to enabled.
Use the no command to set the Administrative Switch Port State for all ports to disabled.
spanning-tree port mode all
no spanning-tree port mode all
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-226 spanning-tree transmit
Sets the Bridge Transmit Hold Count parameter, range: 1-10.
spanning-tree transmit hold-count
Parameters
| hold-count | The Bridge Tx hold-count parameter, value 1 to 10. |
| Default | |
| The default is 6. | |
| Command Mode | |
| Global Config |
5-227 spanning-tree uplinkfast
Configures the rate at which gratuitous frames are sent (in packets per second) after switchover to an alternate PVSTP port and enables uplinkfast. The range is 0-32000 (default is 150). This command accelerates spanning-tree convergence after switchover to an alternate port.
Configur Uplinkfast even if the switch is configured for MST(RSTP) mode, only in PVST mode. Enabling FastUplink increases the priority by 3000. Path costing less than 3000 have an additional 3000 added when uplinkfast is enabled.
PVRSTP embeds support for backbonefast and uplinkfast, provisioning to enable or disable these features is not available.
No command disables uplinkfast on PVSTP configured switches. All switch priorities and path costs not modified from default values are set to default.
spanning-tree uplinkfast [max-update-rate packets]
no spanning-tree uplinkfast [max-update-rate]
Parameters
| max-update-rate | (Optional) Configure spanning tree directlink rapid convergence maximum update rate. |
| packets | (Optional) Indicates the rate. |
Default
The default is 150.
Command Mode
Global Config
5-228 spanning-tree vlan
Enable/disable spanning tree on a VLAN.
spanning-tree vlan vlan-list
Parameters
| vlan-list | The VLANs to which to apply this command. |
Default
The default is None.
Command Mode
Global Config
5-229 spanning-tree vlan cost
Sets the path cost for a VLAN port. Values range: 1 to 200000000 or auto. If auto is selected, the path value is based on the link speed.
spanning-tree vlan vlan-id cost {auto | 1-200000000}
Parameters
| vlan-id | Enter an integer in the range of 1 - 200000000. |
| auto | Set the pathcost value automatically on the basis of Link Speed. |
Default
The default is None.
Command Mode
Interface Config
5-230 spanning-tree vlan forward-time
Configures the spanning tree forwarding delay time for a VLAN or a set of VLANs, default is 15 seconds. Set value to a lower number to accelerate transition to forwarding.
Note: Consider the end-to-end BPDU propagation delay, the maximum frame lifetime, the maximum transmission halt delay, and the message age overestimate values specific to their network when configuring this parameter.
spanning-tree vlan vlan-list forward-time 4-30
Parameters
| vlan-list | Enter the VLANs to apply. |
| forward-time 4-30 | Forward delay time for the spanning tree, range 4-30 seconds. |
Default
The default is 15.
Command Mode
Global Config
5-231 spanning-tree vlan hello-time
Configure hello time (spanning-tree) for a specified or range of VLANs. The default is 2 seconds. Set this value to a lower number to accelerate the discovery of topology changes.
spanning-tree vlan vlan-list hello-time 1-10
Parameters
| vlan-list | ApplicableVLANs. |
| hello-time 1-10 | Forward hello time for spanning tree. The range is 1-10 seconds. |
Default
The default is 2.
Command Mode
Global Config
5-232 spanning-tree vlan max-age
Configure the spanning tree maximum age time. The default is 20 seconds.
To accelerate the discovery of topology changes lower the value.
Note: Consider the end-to-end BPDU propagation delay and message age overestimate for the specific topology when configuring this value.
Default settings: 20 for a network of diameter 7; lost message value 3; transit delay 1; hello interval 2 seconds; overestimate per bridge 1 second; and BPDU delay 1 second. For a network of diameter 4, a setting of 16 seconds is appropriate if all other timers remain at their default values.
spanning-tree vlan vlan-list max-age 6-40
Parameters
| vlan-list | Applicable VLANs. |
| max-age 6-40 | Time for spanning tree forwarding hello time. The range is 1-10 seconds. |
Default
The default is 20.
Command Mode
Global Config
5-233 spanning-tree vlan port-priority
Change VLAN port priority value of the VLAN port. Allows the selection of the relative importance of the VLAN port in the forwarding selection process when port is configured as point-to-point link. Set this value to a lower number to prefer a port for forwarding of frames.
spanning-tree vlan vlan-list port-priority priority
Parameters
| vlan-id | The VLANs to which to apply this command. |
| priority | The VLAN port priority, range 0-240. |
Default
The default is None.
Command Mode
Interface Config
5-234 spanning-tree vlan priority
Configure the bridge priority of a VLAN. The default value is 32768.
Configured values not among specified values are rounded off to the nearest valid value.
spanning-tree vlan vlan-list priority priority
Parameters
| vlan-list | Applicable VLANs. |
| priority | The VLAN bridge priority. Valid values are 0, 4096, 8192, 12288, 16384, 20480, 24576, 28672, 32768, 36864, 40960, 45056, 49152, 53248, 57344, and 61440. |
Default
The default is 32768.
Command Mode
Global Config
5-235 spanning-tree vlan root
Modify the bridge priority from the default value of 32768 to a lower value as calculated to ensure the bridge is the root (or standby) and configure it to become the root bridge or standby root bridge.
spanning-tree vlan vlan-list root {primary | secondary}
Parameters
| vlan-list | The VLANs to which to apply this command. |
| primary | Configure VLAN as primary. |
| secondary | Configure VLAN as secondary. |
Default
The default is 32768.
Command Mode
Global Config
5-236 show spanning-tree
Displays spanning tree settings for the common and internal spanning tree. The following details are displayed.
show spanning-tree
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing)#show spanning-tree
Bridge Priority.... 32768
Bridge Identifier.... 80:00:00:05:64:2F:0F:81
Time Since Topology Change.... 4 day 4 hr 38 min 39 sec
Topology Change Count.... 0
Topology Change in progress.... False
Designated Root.... 80:00:00:05:64:2F:0F:81
Root Path Cost.... 0
Root Port Identifier.... 00:00
Bridge Max Age.... 20
Bridge Max Hops.... 20
Bridge Tx Hold Count.... 6
Bridge Forwarding Delay.... 15
Hello Time.... 2
Bridge Hold Time.... 6
CST Regional Root.... 80:00:00:05:64:2F:0F:81
Regional Root Path Cost.... 0
Associated FIDs Associated VLANs
Display Parameters
| Bridge Priority | Specifies the bridge priority for the Common and Internal Spanning tree (CST). Value range: 0 and 61440, displayed in multiples of 4096. |
| Bridge Identifier | The bridge identifier for the CST, based on bridge priority and the base MAC address. |
| Time Since Topology Change | Time in seconds. |
| Topology Change Count | Number of times changed. |
| Topology Change | Boolean value of the Topology Change parameter. indicative of a topology change in progress on any port assigned to the common and internal spanning tree. |
| Designated Root | Root bridge bridge identifier, comprised of bridge's priority and base MAC address. |
| Root Path Cost | Root Path Cost parameter value for the common and internal spanning tree. |
| Root Port Identifier | Port identifier to access the Designated Root for the CST. |
| Root Port Max Age | Derived value. |
| Root Port Bridge Forward Delay | Derived value. |
| Hello Time | CST configured parameter value. |
| Bridge Hold Time | The Configuration Bridge Protocol Data Units (BPDUs) minimum time between transmission. |
| Bridge Max Hops | Bridge max-hops count for the device. |
| CST Regional Root | Bridge Identifier of the CST Regional Root, comprised of the bridge's priority and base MAC address of the bridge. |
| Regional Root Path Cost | Path Cost to the CST Regional Root. |
| Associated FIDs | List of forwarding database identifiers currently associated with this instance. |
| Associated VLANs | List of VLAN IDs currently associated with this instance. |
5-237 show spanning-tree active
Display the spanning tree values on active ports for the modes (xSTP and PV(R) STP).
show spanning-tree active
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
Example 1:
(Routing)#show spanning-tree active
Spanning Tree: Enabled (BPDU Flooding: Disabled) Portfast BPDU Filtering: Disabled Mode: rstp
CST Regional Root: 80:00:00:01:85:48:F0:0F
Regional Root Path Cost: 0
####### MST 0 Vlan Mapped: 3
ROOT ID
Priority 32768
Address 00:00:EE:EE:EE:EE
This Switch is the Root.
Hello Time: 2s Max Age: 20s Forward Delay: 15s
Interfaces
Name State Prio.Nbr Cost Status Role RestrictedPort
---- ---- ---- ---- ---- ----
0/49 Enabled 128.49 2000 Forwarding Desg No
3/1 Enabled 96.66 5000 Forwarding Desg No
3/2 Enabled 96.67 5000 Forwarding Desg No
3/10 Enabled 96.75 0 Forwarding Desg No
Example 2:
(Routing)#show spanning-tree active
Spanning-tree enabled protocol rpvst
VLAN 1
RootID Priority 32769
Address 00:00:EE:EE:EE:EE
Cost 0
Port This switch is the root
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
BridgeID Priority 32769 (priority 32768 sys-id-ext 1)
Address 00:00:EE:EE:EE:EE
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Name State Prio.Nbr Cost Status Role
0/49 Enabled 128.49 2000 Forwarding Designated
3/1 Enabled 128.66 5000 Forwarding Designated
3/2 Enabled 128.67 5000 Forwarding Designated
3/10 Enabled 128.75 0 Forwarding Designated
VLAN 3
RootID Priority 32771
Address 00:00:EE:EE:EE:EE
Cost 0
Port This switch is the root
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
BridgeID Priority 32771 (priority 32768 sys-id-ext 3)
Address 00:00:EE:EE:EE:EE
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Name State Prio.Nbr Cost Status Role
3/1 Enabled 128.66 5000 Forwarding Designated
3/2 Enabled 128.67 5000 Forwarding Designated
3/10 Enabled 128.75 0 Forwarding Designated
Example 3:
(Routing)#show spanning-tree active
Spanning-tree enabled protocol rpvst
VLAN 1
RootID Priority 32769
Address 00:00:EE:EE:EE:EE
Cost 0
Port 10(3/10)
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
BridgeID Priority 32769 (priority 32768 sys-id ext 1)
Address 00:00:EE:EE:EE:EE
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Name State Prio.Nbr Cost Status Role
---- ---- ---- ---- ----
0/49 Enabled 128.49 2000 Discarding Alternate
3/1 Enabled 128.66 5000 Forwarding Disabled
3/2 Enabled 128.67 5000 Forwarding Disabled
3/10 Enabled 128.75 0 Forwarding Root
VLAN 3
RootID Priority 32771
Address 00:00:EE:EE:EE:EE
Cost 0
Port 10(3/10)
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
BridgeID Priority 32771 (priority 32768 sys-id-ext 3)
Address 00:00:EE:EE:EE:EE
Hello Time 2 Sec Max Age 20 sec Forward Delay 15 sec
Aging Time 300 sec
Name State Prio.Nbr Cost Status Role
---- ---- ---- ---- ----
3/1 Enabled 128.66 5000 Forwarding Disabled
3/2 Enabled 128.67 5000 Forwarding Disabled
3/10 Enabled 128.75 0 Forwarding Root
5-238 show spanning-tree backbonefast
Display spanning tree information for backbonefast.
show spanning-tree backbonefast
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is an output example.
(Routing)#show spanning-tree backbonefast
Backbonefast Statistics
Transitions via Backbonefast (all VLANs) : 0
Inferior BPDUs received (all VLANs) : 0
RLQ request PDUs received (all VLANs) : 0
RLQ response PDUs received (all VLANs) : 0
RLQ request PDUs sent (all VLANs) : 0
RLQ response PDUs sent (all VLANs) : 0
Display Parameters
| Transitions via Backbonefast | Backbonefast transition value. |
| Inferior BPDUs received (all VLANs) | Inferior BPDUs value received on all VLANs. |
| RLQ request PDUs received (all VLANs) | Root link query (RLQ) request value PDUs received on all VLANs. |
| RLQ response PDUs received (all VLANs) | RLQ response PDUs received values on all VLANs. |
| RLQ request PDUs sent (all VLANs) | RLQ request PDUs sent values on all VLANs. |
| RLQ response PDUs sent (all VLANs) | RLQ response PDUs sent values on all VLANs. |
5-239 show spanning-tree brief
Display spanning tree settings for the bridge.
show spanning-tree brief
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a command example.
(Routing)# show spanning-tree brief
Bridge Priority.... 32768
Bridge Identifier.... 80:00:00:05:64:2F:0D:E5
Bridge Max Age.... 20
Bridge Max Hops.... 20
Bridge Hello Time.... 2
Bridge Forward Delay.... 15
Bridge Hold Time.... 6
Display Parameters
| Bridge Priority | Displays the specified bridge priority for both Common and Internal Spanning Tree (CST). Displayed in multiples of 4096, the value range is from 0 to 61440. It is displayed in multiples of 4096. |
| Bridge Identifier | Bridge identifier for the selected MST instance, composed of the bridge priority and the base MAC address of the bridge. |
| Bridge Max Age | Displays the specified bridge max age for CST. The value is defined in seconds ranging from 6 to 40, less than or equal to 2 x (Bridge Forward Delay -1). |
| Bridge Max Hops | Bridge max-hops count for the device. |
| Bridge Hello Time | Displays the bridge hello timer value between each bridge protocol data unit through a port. The value is defined as 2 seconds by default with a range between 1 and 10 seconds forward delay. |
| Bridge Forward Delay | Displays the specified bridge forward delay parameter for CST. The value is defined in seconds ranging from 4 to 30. |
| Bridge Hold Time | Minimum time between transmission of Configuration Bridge Protocol Data Units (BPDUs). |
5-240 show spanning-tree interface
Display the settings and parameters for a specific switch port within the common and internal spanning tree. The {slot/port | lag /lag-id} is the displayed switch port or LAG. The following details are displayed:
show spanning-tree interface {slot/port | lag lag-id}
Parameters
| slot/port | Enter an interface in slot/port format. |
| lag lag-id | Enter into interface lag mode. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Display Parameters
| Hello Time | Port admin hello time. |
| Port Mode | Enabled or disabled. |
| BPDU Guard Effect | Enabled or disabled. |
| Root Guard | Enabled or disabled. |
| Loop Guard | Enabled or disabled. |
| TCN Guard | Enable or disable propagation of received change notifications to topology and other ports. |
| BPDU Filter Mode | Enabled or disabled. |
| BPDU Flood Mode | Enabled or disabled. |
| Auto Edge | To enable or disable auto edge feature: ports without an edge delay time BPDU transforming to a forwarding faster. |
| Port Up Time Since Counters Last Cleared | Time since port was reset, displayed in days, hours, minutes, and seconds. |
| STP BPDUs Transmitted | Spanning Tree Protocol Bridge Protocol Data Units sent. |
| STP BPDUs Received | Spanning Tree Protocol Bridge Protocol Data Units received. |
| RSTP BPDUs Transmitted | Rapid Spanning Tree Protocol Bridge Protocol Data Units sent. |
| RSTP BPDUs Received | Rapid Spanning Tree Protocol Bridge Protocol Data Units received. |
| MSTP BPDUs Transmitted | Multiple Spanning Tree Protocol Bridge Protocol Data Units sent. |
| MSTP BPDUs Received | Multiple Spanning Tree Protocol Bridge Protocol Data Units received. |
5-241 show spanning-tree mst detailed
The command displays the detailed settings for an MST instance.
show spanning-tree mst detailed mstid
Parameters
| mstid | A multiple spanning tree instance identifier. The value is 0-4094. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing)#show spanning-tree mst detailed 1
MST Instance ID.... 1
MST Bridge Priority.... 32768
MST Bridge Identifier.... 80:01:00:05:64:2F:0F:81
Time Since Topology Change.... 4 day 4 hr 40 min 27 sec
Topology Change Count.... 0
Topology Change in progress.... False
Designated Root.... 80:01:00:05:64:2F:0F:81
Root Path Cost.... 0
Root Port Identifier.... 00:00
Associated FIDs Associated VLANs
10 10
5-242 show spanning-tree mst port detailed
Displays the detailed settings and parameters for a specific switch port within a particular multiple spanning tree instance. The parameter mstid is a number that corresponds to the desired existing multiple spanning tree instance. The {slot/port | lag lag-id} is the desired switch port or LAG.
show spanning-tree mst port detailed mstid {slot/port | lag lag-id}
Parameters
| mstid | Enter a multiple spanning tree instance identifier. |
| slot/port | Enter an interface in slot/port format. |
| lag lag-id | Enter into interface lag mode. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Display Parameters
| MST Instance ID | Existing MST instance ID. |
| Port Identifier | Port identifier for the specified port (selected MST instance), comprised of port priority and the interface number of the port. |
| Port Priority | Port priority within the selected MST instance. The port priority is displayed in multiples of 16. |
| Port Forwarding State | Current spanning tree state of this port. |
| Port Role | Port role values: Root Port, Designated Port, Alternate Port, Backup Port, Master Port or Disabled Port. |
| Auto-Calculate Port Path Cost | Indicates if auto calculation is enabled. |
| Port Path Cost | Displays the path cost of the specified port. The value range is between 1 and 65535. The path cost is typically defined as 1000 ÷ /LAN speed in megabits per second. |
| Designated Root | Designated root identifier for the port. |
| Root Path Cost | The path cost to reach root bridge. The root path cost is zero if bridge is the root instance. |
| Designated Bridge | Designated Port bridge identifier. |
| Designated Port Identifier | Port on the Designated Bridge offering lowest LAN cost. |
| Loop Inconsistent State | If loop is in inconsistent state, the port has failed to receive BPDUs while configured with loop guard enabled. Loop inconsistent state places the port in a blocking state until subsequent BPDU is received. |
| Transitions Into Loop Inconsistent State | The number of times transitioned into a loop inconsistent state. |
| Transitions Out of Loop Inconsistent State | The number of times transitioned out of loop inconsistent state. |
If 0 (defined as the default CIST ID) is specified as the mstid, the command displays the settings and parameters for a specific switch port within the common and internal spanning tree. The following display:.
| Port Identifier | Port identifier within the CST. |
| Port Priority | Priority within the CST. |
| Port Forwarding State | Forwarding state within the CST. |
| Port Role | Role of the specified interface within the CST. |
| Auto-Calculate Port Path Cost | Indicates if auto calculation is enabled or not (disabled). |
| Port Path Cost | Configured path cost for the specified interface. |
| Auto-Calculate External Port Path Cost | Indicates whether auto calculation for external port path cost is enabled. |
| External Port Path Cost | Cost across boundary region to reach to the root bridge of the CIST. |
| Designated Root | Identifier of the designated root within the CST. |
| Root Path Cost | Root path cost to reach the LAN. |
| Designated Bridge | The bridge containing the designated port. |
| Designated Port Identifier | Port offering lowest cost to LAN on the Designated Bridge. |
| Topology Change Acknowledgement | If a topology change is in progress, this represents the value of flag in next Configuration Bridge Protocol Data Unit (BPDU) transmission. |
| Hello Time | The designated hello time. |
| Edge Port | The value identifying an edge port. |
| Edge Port Status | Derived value of the edge port status. True if an edge port, false otherwise. |
| Point To Point MAC Status | Derived value indentifying a point to point link. |
| CST Regional Root | The regional root identifier in use for this port. |
| CST Internal Root Path Cost | Internal root path cost to the LAN by the designated external port. |
| Loop Inconsistent State | The current loop state. While loop guard is enabled, the port fails to receive BPDUs. Loop inconsistent state maintains the port in a blocking state until a subsequent BPDU is received. |
| Transitions Into Loop Inconsistent State | The number of times transitioned into a loop inconsistent state. |
| Transitions Out of Loop Inconsistent State | The number of times this interface has transitioned out of loop inconsistent state. |
5-243 show spanning-tree mst port summary
Display the settings of one or all ports within the multiple spanning tree instance. The parameter mstid displays the particular MST instance. The parameter {slot/port | lag lag-id | all} indicates the switch port, LAG, or all ports.
A 0 (defined as the default CIST ID) value for mstid, the status summary is displayed for one or all ports.
show spanning-tree mst port summary mstid {slot/port | active | lag lag-id | all)
Parameters
| mstid | Enter a multiple spanning tree instance identifier. |
| slot/port | Enter an interface in slot/port format. |
| active | Enter active to select all active interfaces. |
| lag lag-id | Enter into interface lag mode. |
| all | Enter all for all interfaces. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Display Parameters
| MST Instance ID | The associated MST instance. |
| Interface | Enter an interface in slot/port format. |
| STP Mode | Indicates if spanning tree is enabled or disabled. |
| Type | Not in use. |
| STP State | The designated forwarding state of the port. |
| Port Role | The specified role of the port. |
| Desc | Indicates whether the port is in loop inconsistent state or not. This field is blank if the loop guard feature is not available. |
5-244 show spanning-tree mst port summary active
Display active link settings for the ports within the specified multiple spanning tree instance.
show spanning-tree mst port summary mstid active
Parameters
| mstid | Enter a multiple spanning tree instance identifier. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing)#show spanning-tree mst port summary 1 active
Interface STP Type STP Port
Mode State Role Desc
0/1 Enabled Mirror Manual forwarding Disabled
0/2 Enabled Manual forwarding Disabled
Display Parameters
| MST Instance ID | MST instance ID. |
| Interface slot/port | |
| Interface | Indicates spanning tree status: enabled or disabled on the port. |
| Type | Not in use. |
| STP State | The forwarding state of the port within the specified spanning tree instance. |
| Port Role | Role status of the specified port within the spanning tree. |
| Desc | Indicates the port status, loop inconsistent state or not. This field is blank if the loop guard feature is not available. |
5-245 show spanning-tree mst summary
Displays summary information regarding all multiple spanning tree instances.
show spanning-tree mst summary
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing)#show spanning-tree mst summary
MST Instance ID.... 1
Associated FIDs Associated VLANs
10 10
MST Instance ID.... 2
Associated FIDs Associated VLANs
20 20
MST Instance ID.... 3
Associated FIDs Associated VLANs
30 30
Display Parameters
| MST Instance ID List | List of current multiple spanning trees IDs. |
| For each MSTID: | Associated FIDs: Forwarding database identifiers associated with this instance.Associated VLANs: VLAN IDs associated with this instance. |
5-246 show spanning-tree summary
Display spanning tree settings and parameters.
show spanning-tree summary
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing) #show spanning-tree summary
Spanning Tree Admin Mode...... Disabled
Spanning Tree Version...... IEEE 802.1w
BPDU Guard Mode...... Disabled
BPDU Filter Mode...... Disabled
Configuration Name...... DLINK
Configuration Revision Level...... 1
Configuration Digest Key...... 0xaa07b4589430317683e50b5c456a0c69
Configuration Format Selector.... 0
MST Instances.... 1,2,3
Display Parameters
| Spanning Tree Adminmode | Enabled or disabled. |
| Spanning Tree Version | Version of 802.1 currently supported (IEEE 802.1s, IEEE 802.1w, or IEEE 802.1d) based upon the Force Protocol Version parameter. |
| BPDU Guard Mode | Enabled or disabled. |
| BPDU Filter Mode | Enabled or disabled. |
| Configuration Name | Identifier used to identify the configuration currently being used. |
| Configuration Revision Level | Identifier used to identify the configuration currently being used. |
| Configuration Digest Key | A generated Key used in the exchange of the BPDUs. |
| Configuration Format Selector | Specifies the version of the configuration format being used in the exchange of BPDUs. The default value is zero. |
| MST Instances | List of all multiple spanning tree instances configured on the switch. |
5-247 show spanning-tree uplinkfast
Display spanning tree information to uplinkfast.
show spanning-tree uplinkfast
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is an output example.
(Routing)#show spanning-tree uplinkfast
Uplinkfast is enabled.
BPDU update rate 150 packets/sec
Uplinkfast Statistics
Uplinkfast transitions (all VLANs).... 0
Proxy multicast addresses transmitted (all VLANs).... 0
Display Parameters
| Uplinkfast transitions (all VLANs) | The number of uplinkfast transitions on all VLANs. |
| Proxy multicast addresses transmitted (all VLANs) | The number of proxy multicast addresses transmitted on all VLANs. |
5-248 show spanning-tree vlan
Displays spanning tree information per VLAN and list the port roles, states and port cost. The vlan-list parameter is a list of VLANs or VLAN-ranges separated by commas and with no embedded blank spaces, ranging from "X-Y" where X and Y are valid VLAN identifiers and X<Y. The vlanid corresponds to an existing VLAN ID.
show spanning-tree vlan {vlanid | vlan-list}
Parameters
| vlanid | Enter a VLAN identifier. |
| vlan-list | Enter VLAN IDs in range <1-4093>. Use '-' to specify a range, or '', to separate VLAN IDs in a list. Spaces and zeros are not permitted. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing)#show spanning-tree vlan 1
VLAN 1
Spanning-tree enabled protocol rpvst
RootID Priority 32769
Address 00:0C:29:D3:80:EA
Cost 0
Port This switch is the root
Hello Time 2 Sec Max Age 15 sec Forward Delay 15 sec
BridgeID Priority 32769 (priority 32768 sys-id-ext 1)
Address 00:0C:29:D3:80:EA
Hello Time 2 Sec Max Age 15 sec Forward Delay 15 sec
Aging Time 300
Interface Role Status Cost Prio.Nbr
1/0/1 Designated Forwarding 3000 128.1
1/0/2 Designated Forwarding 3000 128.2
1/0/3 Disabled Disabled 3000 128.3
1/0/4 Designated Forwarding 3000 128.4
1/0/5 Designated Forwarding 3000 128.5
1/0/6 Designated Forwarding 3000 128.6
1/0/7 Designated Forwarding 3000 128.7
1/0/8 Designated Forwarding 3000 128.8
0/1/1 Disabled Disabled 3000 128.1026
0/1/2 Disabled Disabled 3000 128.1027
0/1/3 Disabled Disabled 3000 128.1028
0/1/4 Disabled Disabled 3000 128.1029
0/1/5 Disabled Disabled 3000 128.1030
0/1/6 Disabled Disabled 3000 128.1031
VLAN Commands
This section includes VLAN configuration settings information.
5-249 vlan database
Configure VLAN settings through the VLAN Config mode.
vlan database
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-250 network mgmt\_vlan
Configure the Management VLAN ID.
No command sets the Management VLAN ID to the default.
network mgmt_vlan 1-4093
no network mgmt_vlan 1-4093
Parameters
None
Default
The default is 1.
Command Mode
Privileged EXEC
5-251 vlan
Create a VLAN and assign an ID-- a valid VLAN identification number, range: 1-4093 (default: 1).
No command deletes existing VLAN identiers.
vlan 1-4093
no vlan 1-4093
Parameters
None
Default
The default is None.
Command Mode
VLAN Config
5-252 vlan acceptframe
Sets the frame acceptance mode on a single or range of interfaces. For VLAN Only mode, all received untagged frames or priority frames are discarded. For Admit All mode, all received untagged frames or priority frames the interface are accepted and assigned the value of the interface VLAN ID for the port. For admituntaggedonly mode, only untagged frames are accepted on the interface, while tagged frames are discarded.
No command resets the frame acceptance mode for the interface or range of interfaces to the default value.
vlan acceptframe {admituntaggedonly | vlanonly | all}
no vlan acceptframe
Parameters
| admituntaggedonly | Set only untagged frames. |
| vlanonly | Admit only tagged frames. |
| all | Admit all frame types. |
Default
The default is All.
Command Mode
Interface Config
5-253 vlan ingressfilter
Enable ingress filtering on a single or range of interfaces. When ingress filtering is disabled, any frames received with VLAN IDs not matching VLAN membership of the receiving interface are admitted and forwarded to ports that are members of that VLAN.
No command disables ingress filtering. When ingress filtering is disabled, any frames received with VLAN IDs not matching VLAN membership of the receiving interface are admitted and forwarded to ports that are members of that VLAN.
vlan ingressfilter
no vlan ingressfilter
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-254 vlan internal allocation
Configure VLAN IDs for port-based routing interfaces.
vlan internal allocation {base vlan-id | policy ascending | policy decending}
Parameters
| base vlan-id | VLAN ID assigned to a port-based routing interface. |
| policy ascending | Policy assignment follows an ascending scale.. |
| policy descending | Policy assignment follows a descending scale. |
Default
The default is None.
Command Mode
Global Config
5-255 vlan makestatic
Change dynamically created VLANs to a static VLAN. The ID is a valid VLAN identification number, range: 1-4093.
vlan makestatic 1-4093
Parameters
None
Default
The default is None.
Command Mode
VLAN Config
5-256 vlan name
Change VLAN name variable, alphanumeric string of up to 32 characters; range: 1-4093. No command sets VLAN value to a blank string.
vlan name 1-4093 name
no vlan name 1-4093
Parameters
| name | Indicates the name variable. |
Default
The default is as follows:
- VLAN ID 1 - default
• Other VLANS – blank string
Command Mode
Global Config
5-257 vlan participation
Configures the participation state for a specific or range of interfaces in a VLAN.
vlan participation {exclude | include | auto} 1-4093
Parameters
| exclude | Does not include entry as a member of this VLAN. |
| include | Include the interface as a member of this VLAN. |
| auto | Dynamic registration of entry in VLAN, participation is available upon a join request. |
Default
The default is None.
Command Mode
Interface Config
5-258 vlan participation all
Configures the participation status for all interfaces in a VLAN.
vlan participation all {exclude | include | auto} 1-4093
Parameters
| exclude | Does not include entry as a member of this VLAN. |
| include | Include the interface as a member of this VLAN. |
| auto | Dynamic registration of entry in VLAN, participation is available upon a join request. |
Default
The default is None.
Command Mode
Global Config
5-259 vlan port acceptframe all
Set the frame acceptance mode for all interfaces.
No command sets the frame acceptance mode for Admit All (global). In Admit All mode, received untagged frames or priority frames on the interface are accepted and assigned the interface VLAN ID value for the port.
vlan port acceptframe all {admituntaggedonly | vlanonly | all} no vlan port acceptframe all
Parameters
| admituntaggedonly | Select to admit only untagged frames. |
| all | Select to admit all frame types. |
| vlanonly | Select to admit only tagged frames. |
Default
The default is All.
Command Mode
Global Config
5-260 vlan port ingressfilter all
Enable ingress filtering for all ports. Disable ingress filtering to admit and forward frames not matching the VLAN membership of the received interface to member ports of the VLAN.
No command disables ingress filtering for all ports.
Disable ingress filtering to admit and forward frames not matching the VLAN membership of the received interface to member ports of the VLAN.
vlan port ingressfilter all no vlan port ingressfilter all
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-261 vlan port pvid all
Change VLAN ID for all interface.
No command sets the VLAN ID for all interfaces to 1.
vlan port pvid all 1-4093
no vlan port pvid all
Parameters
None
Default
The default is 1.
Command Mode
Global Config
5-262 vlan port tagging all
Enablee tagging behavior for all interfaces in a VLAN allowing the transmission of traffic as tagged frames. Disable tagging to transmit as untagged frames.
No command disables the tagging behavior for all interfaces in a VLAN.
vlan port tagging all 1-4093
no vlan port tagging all
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-263 vlan pvid
Change the VLAN ID on a single or range of interfaces.
No command sets the VLAN ID on a single or range of interfaces to 1.
vlan pvid 1-4093
no vlan pvid
Parameters
None
Default
The default is 1.
Command Mode
- Interface Config
- Interface Range Config
5-264 vlan tagging
Enable the tagging behavior for a specific interface or range of interfaces in a VLAN allowing the transmission of traffic as tagged frames. Disable tagging to transmit as untagged frames.
No command disables the tagging behavior for all interfaces in a VLAN.
vlan tagging 1-4093
no vlan tagging 1-4093
Parameters
None
Default
The default is None.
Command Mode
Interface Config
5-265 show vlan
Display configured private VLANs [including primary and secondary VLAN IDs, type (community, isolated, or primary) information] including ports which belong to a private VLAN.
show vlan {vlanid | brief | internal | port [slot/port | all]| private-vlan [type] remote span}
Parameters
| vlanid | Enter a VLAN ID. |
| brief | Display switch VLANs. |
| internal | Show VLANs assigned to port-based routing interfaces |
| port slot/port | Display 802.1Q port parameters. |
| all | Display all interfaces. |
| private-vlan | Display private VLAN configuration. |
| remote-span | Display RSPAN VLAN |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Display Parameters
| Primary | Primary identifier, range: 1 to 4093. |
| Secondary | Secondary VLAN identifier. |
| Type | Secondary VLAN type (community, isolated, or primary). |
| Ports | Ports which are associated with a private VLAN. |
| VLAN ID | VLAN identifier (VID) associated with each VLAN: range 1 to 4093. |
| VLAN Name | String value given to identify VLAN, supports 32 alphanumeric characters long, including blanks (default is blank). VLAN ID 1 is named as the Default. This field is optional. |
| VLAN Type | Type of VLAN, which can be Default (VLAN ID = 1), static, or Dynamic. A dynamic VLAN can be created by GVRP registration or during the 802.1X authentication process (DOT1X) when a RADIUS-assigned VLAN does not exist on the switch. |
| Interface | The associated physical port or LAG interface. |
| Current | Participation status:Include – This port is always a member of this VLAN. This is equivalent to registration fixed in the IEEE 802.1Q standard.Exclude – This port is never a member of this VLAN. This is equivalent to registration forbidden in the IEEE 802.1Qstandard.Autodetect– To allow the port to be dynamically registered in this VLAN via GVRP. The port will not participate in this VLAN unless a join request is received on this port. This is equivalent to registration normal in the IEEE 802.1Q standard. |
| Configured | Participation status of a port in this VLAN, values include:Include– This port is always a member of this VLAN. This is equivalent to registration fixed in the IEEE 802.1Q standard.Exclude– This port is never a member of this VLAN. This is equivalent to registration forbidden in the IEEE 802.1Q standard.Autodetect– To allow the port to be dynamically registered in this VLAN via GVRP. The port will not participate in this VLAN unless a join request is received on this port. This is equivalent to registration normal in the IEEE 802.1Q standard. |
| Tagging | The defined tagging behavior.Tagged– Transmit traffic for this VLAN as tagged frames.Untagged– Transmit traffic for this VLAN as untagged frames. |
5-266 show vlan internal usage
Display information about the VLAN ID allocation on the switch.
show vlan internal usage
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing)#show vlan internal usage
Base VLAN ID: 4093
Allocation policy: Descending
Display Parameters
| Base VLAN ID | Identifies the base VLAN ID for internal allocation of VLANs to the routing interface. |
| Allocation policy | Identifies whether the system allocates VLAN IDs in ascending or descending order. |
5-267 show vlan brief
Display a list of all configured VLANs.
show vlan brief
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
| (Routing)#show vlan brief | ||
| VLAN ID | VLAN Name | VLAN Type |
| 1 | default | Default |
| 2 | VLAN0002 | Static |
| 3 | VLAN0003 | Static |
| 4 | VLAN0004 | Static |
| 5 | VLAN0005 | Static |
| 6 | VLAN0006 | Static |
| 7 | VLAN0007 | Static |
| 8 | VLAN0008 | Static |
Display Parameters
| VLAN ID | VLAN Identifier (vlanid) associated for each VLAN, range: S1-4093. |
| VLAN Name | String value given to identify VLAN, supports 32 alphanumeric characters long, including blanks (default is blank). VLAN ID 1 is named as the Default. This field is optional. |
| VLAN Type | Type of VLAN (default, VLAN ID = 1) static. |
5-268 show vlan port
Displays VLAN port information.
show vlan port {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter 'all' for all interfaces. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
| (Routing) #show vlan port all | ||||||
| Interface VLAN ID Configured | Port VLAN ID Current | Port Frame Types | Acceptable Filtering | Ingress Filtering | Ingress Filtering | Default |
| 0/1 | 1 | 1 | Admit All | Enable | Enable | 0 |
| 0/2 | 5 | 5 | Admit All | Enable | Enable | 0 |
| 0/3 | 1 | 1 | Admit All | Disable | Disable | 0 |
| 0/4 | 1 | 1 | Admit All | Disable | Disable | 0 |
| 0/5 | 1 | 0 | Admit All | Enable | Disable | 0 |
| 0/6 | 1 | 0 | Admit All | Enable | Disable | 0 |
Display Parameters
| Interface | Set the parameters for all slot/port. |
| Port VLAN ID Configured | The VLAN ID that this port will assign to untagged frames or priority tagged frames received on this port, value for established (default: 1). |
| Port VLAN ID Current | Assigned VLAN ID to received untagged frames or priority tagged frames. The factory default is 1. |
| Acceptable Frame Types | Supported frame types, ‘VLAN only’ and ‘Admit All’. ‘VLAN only’ discards received untagged or priority tagged frames. ‘Admit All’ accepts received untagged or priority tagged frames and assigns a port VLAN ID. |
| Ingress Filtering Configured | Options: enable or disable.Enable to discard a frame if port is not a member of the associated VLAND is able to forward frames according to 802.1Q VLAN bridge specification (default: disabled). |
| Ingress Filtering Current | Displays the current ingress filtering configuration. |
| GVRP | Option: enable or disable. |
| Default Priority | The 802.1p priority assigned to tagged packets arriving on the port. |
| Protected Port | False status indicates a non-protected port. True status indicates a protected port. |
| Switchport mode | The current switchport mode. |
| Operating parameters | The operating parameters: VLAN, name, egress rule, and type. |
| Static configuration | The static configuration: VLAN, name, and egress rule. |
| Forbidden VLANs | The forbidden VLAN configuration: VLAN and name. |
Switch Ports
This section describes switch port mode settings.
5-269 switchport mode
Configure the switch port mode: access, trunk or general.
In Trunk mode, the port is configured as a member of all VLANs on switch unless specified in the allowed list in the switchport trunk allowed vlan. The PVID of the port is set to the Native VLAN as specified in the switchport trunk native vlan. Tagged packets received with a VLAN ID from non-member ports are discarded and MAC learning is not initiated.
In Access mode, the port becomes a member of only one VLAN. The port sends and receives untagged traffic. It can also receive tagged traffic, while filtering is enabled.
In General mode, custom configuration of VLAN membership, PVID, tagging, ingress filtering is available. No command resets the switch port mode to default.
switchport mode {access | trunk | general | {private-vlan host/promiscuous}}
no switchport mode {access | trunk | general | {private-vlan host/promiscuous}}
Parameters
| access | Untagged Layer 2 VLAN Interface. |
| trunk | Trunking Layer 2 VLAN interface. |
| general | Full 802.1q support VLAN Interface. |
| private-vlan | Set switchport mode as host or promiscuous port for the private VLAN. |
Default
The default is General mode.
Command Mode
Interface Config
5-270 switchport trunk allowed vlan
Configure the allowed VLAN list configured to receive and send traffic in tagged format (trunking mode). The default is all.
VLANs lists can be modified through the add or remove options or replaced with another list using the vlan-list, all, or except options. Selecting all sets VLANs to the list of allowed VLAN. The except option provides an exclusion list.
Use the no command to reset the list of allowed VLANs on the trunk port to its default value.
switchport trunk allowed vlan {vlan-list | all | {add vlan-list} | {remove vlan-list} | {except vlan-list}} no switchport trunk allowed vlan
Parameters
| vlan-list | Values: 1 to 4093, range is entered using two values separated by a hyphen. The lower value is entered first. |
| all | Specifies all VLANs from 1 to 4093. This option is not supported on commands that do not permit all VLANs in the list to be set at the same time. |
| add | Add VLANs to the current list. |
| remove | Removes VLANs from the current list. |
| except | Create an exception entry to the VLAN list. |
Default
The default is All.
Command Mode
Interface Config
5-271 switchport trunk native vlan
Configure the Trunk port Native VLAN (PVID) parameter. Untagged ingress packets on the port are assigned a Native VLAN tag--native VLAN must be configured in the allowed VLAN list for tagging of received untagged packets. Otherwise, they are untagged packets are discarded. The default is 1.
No command resets the switch port trunk mode native VLAN to default.
switchport trunk native vlan vlan-id
no switchport trunk native vlan
Parameters
| vlan-id | Enter VLAN ID. |
| Default | |
| The default is VLAN. | |
| Command Mode | |
| Interface Config | |
5-272 switchport access vlan
Configure Access port VLAN, only a single can be assigned to the Access port. By default access ports are members of VLAN 1. Access ports may be assigned to a VLAN other than VLAN 1.
No command resets the switch port access mode VLAN to default.
switchport access vlan vlan-id
no switchport access vlan
Parameters
| vlan-id | Enter VLAN ID. |
| Default | |
| The default is 1. | |
| Command Mode | |
| Interface Config | |
5-273 show interfaces switchport
Display the switchport status for a single or all interfaces.
show interfaces switchport slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing)#show interfaces switchport 0/1 |
| Port: 0/1 |
| VLAN Membership Mode: General |
| Access Mode VLAN: 1 (default) |
| General Mode PVID: 1 (default) |
| General Mode Ingress Filtering: Disabled |
| General Mode Acceptable Frame Type: Admit all |
| General Mode Dynamically Added VLANs: |
| General Mode Untagged VLANs: 1 |
| General Mode Tagged VLANs: |
| General Mode Forbidden VLANs: |
| Trunking Mode Native VLAN: 1 (default) |
| Trunking Mode Native VLAN tagging: Disable |
| Trunking Mode VLANs Enabled: All |
| Protected Port: False |
| (Routing)#show interfaces switchport |
| Port: 0/1 |
| VLAN Membership Mode: General |
| Access Mode VLAN: 1 (default) |
| General Mode PVID: 1 (default) |
| General Mode Ingress Filtering: Disabled |
| General Mode Acceptable Frame Type: Admit all |
| General Mode Dynamically Added VLANs: |
| General Mode Untagged VLANs: 1 |
| General Mode Tagged VLANs: |
| General Mode Forbidden VLANs: |
| Trunking Mode Native VLAN: 1 (default) |
| Trunking Mode Native VLAN tagging: Disable |
| Trunking Mode VLANs Enabled: All |
| Protected Port: False |
5-274 show interfaces switchport
Display the Switch port configuration for a selected interface mode. All interfaces are displayed if there is not specific selection.
show interfaces switchport {access | err-disabled | trunk | general} [slot/port]
Parameters
| access | Display the switchport information for interfaces configured in access mode. |
| err-disabled | Display the error disable status of interfaces. |
| general | Display the switchport information for interfaces configured in general mode. |
| Trunk | Display the switchport information for interfaces configured in trunk mode. |
| slot/port | (Optional) Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Switching)#show interfaces switchport access 0/1 | ||||||||
| Intf | PVID | |||||||
| ---- | ---- | |||||||
| 0/1 | 1 | |||||||
| (Switching)#show interfaces switchport trunk 0/6 | ||||||||
| Intf | PVID | Allowed Vlans List | ||||||
| ---- | ---- | ---- | ||||||
| 0/6 | 1 | All | ||||||
| (Switching)#show interfaces switchport general 0/5 | ||||||||
| Intf | PVID | Ingress | Acceptable | Untagged | Tagged | Forbidden | Dynamic | |
| Filtering | Frame Type | Vlans | Vlans | Vlans | Vlans | |||
| ---- | ---- | ---- | ---- | ---- | ---- | ---- | ---- | |
| 0/5 | 1 | Enabled | Admit All | 7 | 10-50,55 | 9,100-200 | 88,96 | |
| (Switching)#show interfaces switchport general | ||||||||
Intf PVID Ingress Acceptable Untagged Tagged Forbidden Dynamic
Filtering Frame Type Vlans Vlans Vlans Vlans
0/1 1 Enabled Admit All 1,4-7 30-40,55 3,100-200 88,96
0/2 1 Disabled Admit All 1 30-40,55 none none
Double VLAN Commands
This section describes double VLAN (DVLAN) configuration. Double VLAN tagging uses a Metro Core to allow VLAN traffic from one customer domain to another.
5-275 dvlan-tunnel ethertype (Interface Config)
Configure the Ethertype for a specified interface. A two-byte hex ethertype is used to define the first 16 bits of the DVLAN tag. The Ethertype supports the following values 802.1Q, vman, or custom. If the Ethertype with custom value must be set to a value range of 1 to 65535.
No command disassociates globally defined TPID(s) to its relevant interface.
dvlan-tunnel ethertype {802.1Q | vman | custom 1-65535}
no dvlan-tunnel ethertype {802.1Q | vman | custom 1-65535}
Parameters
| 802.1Q | Configure the Ethertype as 0x8100. |
| vman | Commonly used value: 0x88A8. |
| custom 1-65535 | Custom value range: 1 to 65535. |
Default
The default is VMAN.
Command Mode
Interface Config
5-276 dvlan-tunnel ethertype primary-tpid
Create a TPID and associate it with the next available TPID register. A TPID registers slot must be available, otherwise the system returns an error to the user. The command [default-tpid] forces the TPID value as the default TPID at index 0.
No command resets the TPID register to 0. Initialization resets all TPID registers to default.
dvlan-tunnel ethertype {802.1Q | vman | custom 1-65535} [primary-tpid]
no dvlan-tunnel ethertype {802.1Q | vman | custom 1-65535} [primary-tpid]
Parameters
| 802.1Q | Configure the Ethertype as 0x8100. |
| vman | Commonly used value: 0x88A8. |
| custom 1-65535 | Custom tag value range: 1 to 65535. |
| primary-tpid | (Optional) Configure the TPID value to the default TPID at index 0 |
Default
The default is None.
Command Mode
Global Config
5-277 show dot1q-tunnel
Display all interfaces enabled for Double VLAN Tunneling. Any indicated optional parameters allow for the display of detailed information about Double VLAN Tunneling for the specified interface or all interfaces.
show dot1q-tunnel [interface {slot/port | all}]
Parameters
| interface | (Optional) Indicates the interface. |
| slot/port | (Optional) Indicates an interface in slot/port format. |
| all | (Optional) Enter all for all interfaces. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Display Parameters
| Interface | Represents the slot/port identifier. |
| Mode | Enabled or disable the mode, default: disabled. |
| EtherType | The first 16 bits of the DVLAN tunnel are defined by a 2-byte hexEtherType. |
Three different EtherType tags are available: 802.1Q, which represents the commonly used value of 0x8100; vMAN representing the commonly used value of 0x88A8; Custom representing a custom tunnel value with a range of 1 to 65535.
5-278 show dvlan-tunnel
Display all interfaces enabled for Double VLAN Tunneling. Any indicated optional parameters allow for the display of detailed information about Double VLAN Tunneling for the specified interface or all interfaces.
show dvlan-tunnel [interface {slot/port | all | lag}]
Parameters
| interface | (Optional) Indicates an interface. |
| slot/port | (Optional) Indicates an interface in slot/port format. |
| all | (Optional) Enter all for all interfaces. |
| lag | Enter into interface lag mode. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing)#show dvlan-tunnel
Primary TPID.... 0x8100
Secondary TPIDs Configured.... 0x8100
Interfaces Enabled for DVLAN Tunneling.... None
(Routing)#show dvlan-tunnel interface 0/1
Interface Mode EtherType
0/1 Disable 0x88a8
Display Parameters
| Interface | Represents the slot/port identifier. |
| Mode | Enable or disable the mode, default: disabled. |
| EtherType | The first 16 bits of the DVLAN tunnel are defined by a 2-byte hexEtherType.Three different EtherType tags are available: 802.1Q, which represents the commonly used value of 0x8100; vMAN representing the commonly used value of 0x88A8; Custom representing a custom tunnel value with a range of 1 to 65535. |
Provisioning (IEEE 802.1p) Commands
This section describes provisioning (IEEE 802.1p,) configuration for port prioritization.
5-279 vlan port priority all
Configure the port priority for untagged packets for all available ports; The priority range is 0-7.
vlan port priority all priority
Parameters
| priority | Enter a priority value (0-7) for untagged frames received. |
| Default | |
| The default is 0. | |
| Command Mode | |
| Global Config |
5-280 vlan priority
Configures default 802.1p port priority assignments for untagged packets for a specified interface. Priority range is 0-7.
vlan priority priority
Parameters
| priority | Enter a priority value (0-7) for untagged frames received. |
Default
The default is 0.
Command Mode
Interface Config
Protected Ports Commands
This section describes protected port configuration. Protected ports are not designed to forward traffic to each other, even when configured on the same VLAN. However, forwarding to unprotected ports as long as the ports are in the same group. In as much, unprotected ports can forward traffic to both protected and unprotected ports. By default, ports are configured as unprotected.
5-281 switchport protected (Global Config)
Create a protected port group. The groupid parameter identifies the set of protected ports. Provide a name value pair to assign a name to the protected port group. Naming convention can use up to 32 alphanumeric characters, including blanks. The default is undefined.
Note: Port protection occurs within a device. Protected port configuration does not affect traffic between ports on two different switches. Traffic forwarding is not possible between two protected ports.
No command removes a protected port group.
switchport protected groupid name name
no switchport protected groupid name name
Parameters
| groupid Enter Group ID. | |
| name name | Enter a name up to 32 characters in length. |
Default
The default is Unprotected.
Command Mode
Global Config
5-282 switchport protected (Interface Config)
Add an interface to a protected port group. Interfaces can only be configured as protected into a group.
Note: Port protection occurs within a device. Protected port configuration does not affect traffic between ports on two different switches. Traffic forwarding is not possible between two protected ports.
No command configures a port as unprotected.
switchport protected groupid
no switchport protected groupid
Parameters
| groupid | Enter Group ID. |
Default
The default is Unprotected.
Command Mode
Interface Config
5-283 show switchport protected
Display the status of all interfaces both protected and unprotected.
show switchport protected groupid
Parameters
| groupid | Enter Group ID. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing) #show switchport protected 0
Name......
Member Ports :
Display Parameters
| Group ID | Protected port group identifier. |
| Name | Given text string of group can be up to 32 alphanumeric characters including blank characters. The default is blank. |
| List of Physical Ports | List of configured ports as protected for the group identified with groupid. The field is blank if no port is configured as protected. |
5-284 show interfaces switchport
Display the status of the interface (protected/unprotected) under the groupid.
show interfaces switchport slot/port groupid
Parameters
| slot/port | Enter an interface in slot/port format. |
| groupid | Enter Group ID (0 – 2). |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing)#show interfaces switchport 0/1 0
Protected Port: False
Display Parameters
| Name | Text string identifying group, value can be up to 32 alphanumeric characters long, including blanks. The default is blank. This field is optional. |
| Protected | Indicates protected status (TRUE or FALSE). If a group is defined as a multiple groups then it displays TRUE. |
Port-Based Network Access Control Commands
This section describes port-based network access control (IEEE 802.1X) configuration, which allows for network service control for authorized and authenticated devices.
5-285 aaa authentication dot1x default
Configure authentication for port-based access. Authentication function is available when an error has occurred.. Possible authentication methods include:
-ias. Internal authentication server database is used for authentication. This method can be used in conjunction with any one of the existing methods such as local, radius, etc.
- local. Local username database is used for authentication.
- none. No authentication applied.
- radius. RADIUS server is used for authentication.
aaa authentication dot1x default {[ias] | [method1 [method2 [method3]]]}
Parameters
| ias | Select internal as the authentication method. |
| method # | (Optional) Indicates an alternative identification method: local, none, or radius. |
Default
The default is None.
Command Mode
Global Config
Example
The following is an example of the command.
(Routing) #
(Routing) #configure
(Routing) (Config) #aaa authentication dot1x default ias none
(Routing) (Config) #aaa authentication dot1x default ias local radius none
5-286 clear dot1x statistics
Resets the 802.1X statistics for the specified or for all ports.
clear dot1x statistics {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all to specify all ports. |
Default
The default is None.
Command Mode
Privileged EXEC
5-287 clear dot1x authentication-history
Clear the authentication history table of successful and unsuccessful authentication events on all or specified interface.
clear dot1x authentication-history [slot/port]
Parameters
| slot/port | (Optional) Enter an interface in slot/port format. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
5-288 clear radius statistics
Clear all RADIUS statistics.
clear radius statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-289 dot1x eapolflood
Enable EAPOL flood support on the switch.
No command disables EAPOL flooding on the switch.
dot1x eapolflood no dot1x eapolflood
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-290 dot1x dynamic-vlan enable
Enable the creation of VLANs dynamically when a RADIUS-assigned VLAN does not exist in the switch.
No command prevents from the creation of VLANs when a RADIUS-assigned VLAN does not exist in the switch.
dot1x dynamic-vlan enable no dot1x dynamic-vlan enable
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-291 dot1x port-control
Set the authentication mode for the specified interface or range of interfaces. TheForce-unauthorized configures the authenticator PAE sets the controlled port to unauthorized. The force-authorized configures the authenticator PAE unconditionally sets the controlled port to authorized. While the auto parameter specify the authenticator PAE sets the controlled port mode to reflect the outcome of the authentication exchanges between the supplicant, authenticator and the authentication server. If a mac-based option is specified, the MAC-based dot1x authentication is enabled.
No command sets the 802.1X port control mode on the specified port to default.
dot1x port-control {force-unauthorized | force-authorized | auto | mac-based}
no dot1x port-control
Parameters
| force-unauthorized | Enter force-unauthorized to deny all access through the interface. |
| force-authorized | Enter force-authorized to disable authentication check. |
| auto | Enter auto - for default auto mode. |
| mac-based | Enter mac-based to enable MAC-based 802.1X authentication for this interface. |
Default
The default is Auto.
Command Mode
Interface Config
5-292 dot1x port-control all
Set the authentication mode on all ports. TheForce-unauthorized configures the authenticator PAE sets the controlled port to unauthorized. The force-authorized configures the authenticator PAE unconditionally sets the controlled port to authorized. While the auto parameter specify the authenticator PAE sets the controlled port mode to reflect the outcome of the authentication exchanges between the supplicant, authenticator and the authentication server. If mac-based option is specified, then MAC-based dot1x authentication is enabled on the port.
No command sets the authentication mode on all ports todefault.
dot1x port-control all {force-unauthorized | force-authorized | auto | mac-based} no dot1x port-control all
Parameters
| force-unauthorized | Enter force-unauthorized to deny all access through this interface. |
| force-authorized | Enter force-authorized to disable authentication check. |
| auto | Enter auto - for default auto mode. |
| mac-based | Enter mac-based to enable MAC-based 802.1X authentication for this interface. |
Default
The default is Auto.
Command Mode
Global Config
5-293 dot1x system-auth-control
Enable the dot1x authentication support. While disabled, the dot1x configuration is retained and can be configured when disabled.
No command disables the dot1x authentication support.
dot1x system-auth-control
no dot1x system-auth-control
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-294 dot1x system-auth-control monitor
Enable the 802.1X monitor mode to help troubleshoot port-based authentication configuration issues--network access to connected hosts is not disrupted. While in Monitor mode, a host is granted network access to an 802.1X-enabled port even if authentication has failed.
No command disables 802.1X Monitor mode.
dot1x system-auth-control monitor
no dot1x system-auth-control monitor
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-295 dot1x user
Add specific users to the current list providing access to the specified port or all ports. The specified user must be a configured user.
No command removes the user from the list of users.
dot1x user user {slot/port | all}
no dot1x user user {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all for access to all ports. |
Default
The default is None.
Command Mode
Global Config
5-296 show authentication methods
Display the ordered authentication methods for all authentication login lists.
show authentication methods
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an authentication configuration example.
(Routing)#show authentication methods
Login Authentication Method Lists
defaultList : local networkList : local
Enable Authentication Method Lists
---- enableList : enable none
enableNetList : enable deny
Line Login Method List Enable Method List
---- console defaultList enableList
Telnet networkList enableNetList
SSH networkList enableNetList
DOT1X :
Display Parameters
| Authentication Login List | Listname of authentication list. |
| Method 1 | First defined method in the specified authentication login list, if any. |
| Method 2 | Second defined method in the specified authentication login list, if any. |
| Method 3 | Third defined method in the specified authentication login list, if any. |
5-297 show dot1x
Display a summary of the following: global dot1x configuration, the dot1x configuration for a single specified or all ports, the detailed dot1x configuration for a specified port, and the dot1x statistics for a specified port.
show dot1x [{summary {slot/port | all} | detail slot/port | statistics slot/port]
Parameters
| summary slot/port | (Optional) Display the configuration summary for the specified port or all ports. |
| authentication-history | Display the Dot1x authentication history log for the specified port or all ports. |
| detail slot/port | (Optional) Display the details of the configuration for the specified port. |
| clients | Display client information. |
| statistics slot/port | (Optional) Display the statistics for the specified port. |
| users | Display user information for locally configured users. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example for the command show dot1x summary 0/1.
(Routing)#show dot1x summary 0/1
Interface Control Mode Operating Control Mode Port Status
0/1 auto auto Authorized
The following shows example CLI display output for the command.
(Routing)#show dot1x detail 0/1
Port.... 0/1
Protocol Version.... 1
PAE Capabilities.... Supplicant
Control Mode.... auto
Supplicant PAE State.... Initialize
Supplicant Backend Authentication.... Initialize
Maximum Start trails.... 3
Start Period (secs).... 30
Held Period (secs).... 60
Authentication Period (secs).... 30
EAP Method.... MD5-Challenge
Display Parameters
Global dot1x, VLAN Assignment, and Dynamic VLAN Creation mode are displayed if optional slot/port or vlanid parameters are defined.
| Administrative Mode | Display enabled or disabled status. |
| VLAN Assignment Mode | Display enabled or disabled status for an authorized port to a RADIUS-assigned VLAN. |
| Dynamic VLAN Creation Mode | Indicates support for dynamic creation of RADIUS-assigned VLAN. |
| Monitor Mode | Displays Dot1x Monitor mode status: enabled or disabled. |
By using the summary parameter {slot/port | all}, the dot1x configuration for the specified port or all ports is displayed.
| Interface The displayed interface. | |
| Control Mode | Configured control mode, values: force-unauthorized, force-authorized, auto, mac-based, authorized, and unauthorized. |
| Operating Control Mode | Displays operating control mode, values: authorized or unauthorized. |
| Reauthentication Enabled | Indicates reauthentication status: enabled. |
| Port Status | Indicates authorized or unauthorized status, values: authorized or unauthorized. |
The optional parameter 'detail slot/port' provides detailed dot1x configuration for the specified port.
| Port | The identified interface. |
| Protocol Version | The associated protocol version. The only possible value is 1, corresponding to the first version of the dot1x specification. |
| PAE Capabilities | The associated port access entity (PAE) functionality, values: Authenticator or Supplicant. |
| Control Mode | The configured control mode for this port, values: force-unauthorized, force-authorized, auto, or mac-based. |
| Authenticator PAE State | Current state of the authenticator PAE function, possible values include: Initialize, Disconnected, Connecting, Authenticating, Authenticated, Aborting, Held, ForceAuthorized, and ForceUnauthorized. Enabling MAC-based authentication disapproves the parameter on the port. |
| Backend Authentication State | Current state of the backend authentication state machine, values include: Request, Response, Success, Fail, Timeout, Idle, and Initialize. Enabling MAC-based authentication disapproves the parameter. |
| Quiet Period | The defined period of time without a supplicant query. The value is expressed in seconds and will be in the range 0 and 65535. |
| Transmit Period | The defined period of time to determine when to send an EAPOL EAP Request/Identity frame to the supplicant. The value is expressed in seconds and will be in the range of 1 and 65535. |
| Guest-VLAN ID | The guest VLAN identifier. |
| Guest VLAN Peflod | The defined period of time in seconds to authorize and place the port in the Guest VLAN if EAPOL packets are not detected on that port. |
| Supplicant Timeout | The defined period of time before timing out the supplicant. The value is expressed in seconds, range: 1to 65535. |
| Server Timeout | The defined period of time to timeout the authentication server. The value is expressed in seconds, range: 1 to 65535. |
| Maximum Requests | The defined maximum number of times an EAPOL EAP Request/Identity is submitted before timing out the supplicant. The value range: 1 to 10. |
| Configured MAB mode | The dot1x MAC Authentication bypass configuration status. |
| Operational MAB mode | The dot1x MAC Authentication bypass operational status. |
| VLAN ID | The VLAN assigned to the port by the RADIUS server if port control mode is not MAC-based. |
| VLAN Assigned Reason | Identified reason the VLAN is assigned to the port. Possible values include: RADIUS, Unauthenticated VLAN, Guest VLAN, default, and Not Assigned. If a VLAN Assigned Reason is not available, the port has not been assigned to any VLAN by dot1x. This only valid when the port control mode is not MAC-based. |
| Reauthentication Period | The defined period of time to determine when reauthentication of thesupplicant takes place. The value is expressed in seconds, range: 1 to 65535. |
| Reauthentication Enabled | Indicates if reauthentication is enabled on this port. Possible values are “True” or “False”. |
| Key Transmission Enabled | Indicates if the key is transmitted to the supplicant for the specified port. Possible values are True or False. |
| Control Direction | The control direction for the specified port or ports. Possible values: both, in. |
| Maximum Users | The maximum number of clients that can obtain authentication. This value is used only when the port control mode is not MAC-based. |
| Unauthenticated VLAN ID | Indicates if VLAN configuration is authenticated. This value is valid only when the port control mode is not MAC-based. |
| Session Timeout | Indicates the valid period of time for the given session. The time period in seconds is returned by the RADIUS server once authenticated. This value is valid only when the port control mode is not MAC-based. |
| Session Termination Action | This value indicates the proceeding action once the session times out. Possible values: Default, Radius-Request. This value is valid only when the port control mode is not MAC-based. |
For each client authenticated on the port, the show dot1x detail slot/port command displays the following MAC-based dot1x parameters (port-control mode must be MAC-based).
| Supplicant MAC-Address | MAC-address of the supplicant. |
| Authenticator PAE State | Current state. Possible values: Initialize, Disconnected, Connecting, Authenticating, Authenticated, Aborting, Held, ForceAuthorized, and ForceUnauthorized. |
| Backend Authentication State | Current state of the backend. Possible values: Request, Response, Success, Fail, Timeout, Idle, and Initialize. |
| VLAN-Assigned | The VLAN assigned by the RADIUS server to the client. |
| Logical Port | The logical port number associated with the client. |
The optional parameter statistics slot/port provides the following dot1x statistics for a specified port.
| Port | The specified interface. |
| EAPOL Frames Received | The number of valid received EAPOL frames of any type. |
| EAPOL Frames Transmitted | The number of transmitted EAPOL frames of any type. |
| EAPOL Start Frames Received | The number of received EAPOL start frames. |
| EAPOL Logoff Frames Received | The number of received EAPOL logoff frames. |
| Last EAPOL Frame Version | The protocol version number carried by the most recent EAPOL frame. |
| Last EAPOL Frame Source | The source MAC address carried in the most recent EAPOL frame. |
| EAP Response/Id Frames Received | The number of received EAP response/identity frames. |
| EAP Response Frames Received | The number of valid received EAP response frames (other than resp/id frames). |
| EAP Request/Id Frames Transmitted | The number of transmitted EAP request/identity frames that have been transmitted. |
| EAP Request Frames Transmitted | The number of transmitted EAP request frames (other than request/identity frames). |
| Invalid EAPOL Frames Received | The number of received EAPOL frames without a recognized frame type. |
| EAP Length Error Frames Received | The number of received EAPOL frames without a recognized frame type. |
5-298 show dot1x authentication-history
Displays 802.1X authentication events and information during successful and unsuccessful Dot1x authentication attempts for specific or all interfaces.
show dot1x authentication-history {stot/port | all [failed-auth-only | detail]}
Parameters
| stot/port | Enter an interface in slot/port format. |
| all | Enter all to specify all ports. |
| detail | (Optional) Display the details of the Dot1x authentication history log events. |
| failed-auth-only | (Optional) Display the Dot1x failed authentication events from the Dot1x history log. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| Time Stamp | Time stamp for event occurrence |
| Interface | Physical Port of event. |
| Mac-Address | The supplicant/client MAC address. |
| VLAN assigned | The VLAN assigned to the client/port upon authentication. |
| VLAN assigned Reason | The type of VLAN ID assigned, values: Guest VLAN, Unauth, Default,RADIUS Assigned, or Montior Mode VLAN ID. |
| Auth Status | The authentication status. |
| Reason | The specified reason for a successful or failed authentication attempt. |
5-299 show dot1x clients
Display 802.1X client information as well as information regarding the number of clients that are authenticated.
show dot1x clients {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all to specify all ports. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show dot1x clients all
Clients Authenticated using Monitor Mode...... 0
Clients Authenticated using Dot1x...... 0
Display Parameters
| Clients Authenticated using Monitor Mode | The number of the Dot1x authenticated clients using Monitor mode. |
| Clients Authenticated using Dot1x | The number of authenticated Dot1x clients using 802.1X authentication process. |
| Logical Interface | The logical port number. |
| Interface | The physical port associated to the supplicant. |
| User Name | The user name used for authenticate to the server. |
| Supplicant MAC Address | The supplicant device's MAC address. |
| Session Time | The period of time for the logged in session. |
| Filter ID | The Filter ID as defined by the RADIUS server authenticating the client. This is a configured DiffServ policy name on the switch. |
| VLAN ID | The assigned VLAN. |
| VLAN Assigned | The assigned VLAN identified, values include: RADIUS, Unauthenticated VLAN, Monitor Mode, or Default. |
| Session Timeout | The value indicating the valid session time. The time period in seconds is returned by the RADIUS server on authentication of the port. |
| Session Termination Action | Defined action following the timeout period. Possible values are Default and RADIUS -Request. |
5-300 show dot1x users
Display 802.1X port security user information for locally configured users.
show dot1x users slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show dot1x users 0/1
Users
admin
guest
Display Parameters
| Users | Users configured locally with access to the specified port. |
802.1X Supplicant Commands
D-Link OS supports 802.1X (dot1x) supplicant functionality on point-to-point ports. The administrator can configure the user name and password used in authentication and capabilities of the supplicant port.
5-301 dot1x dynamic-vlan
Use this command to enable the switch to create VLANs dynamically when a RADIUS-assigned VLAN does not exist in the switch.
No command sets the dot1x dynamic-vlan to default.
dot1x dynamic-vlan {enable}
no dot1x dynamic-vlan
Parameters
| enable | Enable dot1x dynamic vlan creation configuration. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-302 dot1x eapolflood
Use this command to enable EAPOL flood support on the switch.
dot1x eapolflood
no dot1x eapolflood
Parameters
None
Default
The default is Auto.
Command Mode
Interface Config
5-303 dot1x supplicant max-start
Configure the number of defined attempts before ending authenticator request to find the authenticator.
No command sets the max-start value to default.
dot1x supplicant max-start 1-10
no dot1x supplicant max-start
Parameters
None
Default
The default is 3.
Command Mode
Interface Config
5-304 show dot1x statistics
Displays the dot1x port statistics in detail.
show dot1x statistics slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing)#show dot1x statistics 0/1
Port.... 0/1
EAPOL Frames Received.... 0
EAPOL Frames Transmitted.... 0
EAPOL Start Frames Transmitted.... 3
EAPOL Logoff Frames Received.... 0
EAP Resp/Id frames transmitted....0
EAP Response frames transmitted....0
EAP Req/Id frames transmitted....0
EAP Req Frames transmitted....0
Invalid EAPOL frames received....0
EAP length error frames received....0
Last EAPOL Frame Version....0
Last EAPOL Frame Source....00:00:00:00:02:01
Display Parameters
| EAPOL Frames Received | Displays the number of valid EAPOL frames received on the port. |
| EAPOL Frames Transmitted | Displays the number of EAPOL frames transmitted via the port. |
| EAPOL Start Frames Transmitted | Displays the number of EAPOL Start frames transmitted via the port. |
| EAPOL Logoff Frames Received | Displays the number of EAPOL Log off frames that have been received on the port. |
| EAP Resp/ID Frames Received | Displays the number of EAP Respond ID frames that have been received on the port. |
| EAP Response Frames Received | Displays the number of valid EAP Respond frames received on the port. |
| EAP Req/ID Frames Transmitted | Displays the number of EAP Requested ID frames transmitted via the port. |
| EAP Req Frames Transmitted | Displays the number of EAP Request frames transmitted via the port. |
| Invalid EAPOL Frames Received | Displays the number of unrecognized EAPOL frames received on this port. |
| EAP Length Error Frames Received | Displays the number of EAPOL frames with an invalid Packet Body Length received on this port. |
| Last EAPOL Frames Version | Displays the protocol version number attached to the most recently received EAPOL frame. |
| Last EAPOL Frames Source | Displays the source MAC Address attached to the most recently received EAPOL frame. |
Task-based Authorization
Task-based authorization configures specific permission levels (read, write, execute, debug) at a per-component level. The function defines permission for commands for a given user, locally authenticated through CLI interface
Users are assigned to User Groups which are then associated with Task Groups. Each Task Group is then associated with one or more tasks/components supporting AAA, BGP and OSPF components.
5-305 usergroup
Create a user group with the specified name and enters user group configuration mode.
No command removes the user group with the specified name.
usergroup usergroup-name
no usergroup usergroup-name
Parameters
| usergroup-name | Enter usergroup name. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-306 taskgroup
Create a task group and enter task group configuration mode.
No command removes the task group.
taskgroup taskgroup-name
no taskgroup taskgroup-name
Parameters
| taskgroup-name | Enter taskgroup name. |
Default
The default is None.
Command Mode
Global Config
5-307 username usergroup
Assign the specified user to a user group.
No command removes the specified user from the specified user group.
username username usergroup usergroup-name
no username username usergroup usergroup-name
Parameters
| username | Indicates the username to assign. |
| usergroup-name | Configure participated usergroup. |
Default
The default is None.
Command Mode
Global Config
5-308 description (User Group Mode)
Sets a description for the user group.
No command removes the description from the user group.
description description
no description
Parameters
| description | Enter description for this usergroup. |
Default
The default is None.
Command Mode
User Group
5-309 inherit usergroup (User Group Mode)
Set the parent group for the current user group. The user group acquires the permissions of the parent group.
No command removes the specified user-parent group relationship.
inherit usergroup usergroup-name
no inherit usergroup usergroup-name
Parameters
| usergroup-name | Inherit to this usergroup. |
| Default | |
| The default is None. | |
| Command Mode | |
| User Group |
5-310 taskgroup (User Group Mode)
Associate a user group with a specified task group.
No command removes the user group's relationship with the associated task group.
taskgroup taskgroup-name
no taskgroup taskgroup-name
Parameters
| taskgroup-name | Enter taskgroup name. |
| Default | |
| The default is None. | |
| Command Mode | |
| User Group |
5-311 description (Task Group Mode)
Sets a description for the task group.
No command removes the description from the task group.
description description
no description
Parameters
| description | Enter description for this usergroup. |
Default
The default is None.
Command Mode
Task Group
5-312 inherit taskgroup (Task Group Mode)
Set the parent task group of the current task group. The task group acquires the permissions of the specified parent task group.
No command removes the specified parent-user group relationship.
inherit taskgroup taskgroup-name
no inherit taskgroup taskgroup-name
Parameters
| taskgroup-name | Enter taskgroup name. |
| Default | |
| The default is None. | |
| Command Mode | |
| Task Group |
5-313 task [read] [write] [debug] [execute]
Associate the task group with specified set of task permissions.
No command removes all associated relationships.
task [read] [write] [debug] [execute] {aaa | ospf | bgp}
no task (aaa | ospf | bgp}
Parameters
| read | (Optional) Set read permission. |
| write | (Optional) Set write permission. |
| debug | (Optional) Set debug permission. |
| execute | (Optional) Set execute permission. |
| aaa | Authentication, Authorization and Accounting. |
| ospf | Open Shortest Path First. |
| bgp | Border Gateway Protocol. |
Default
The default is No Permissions.
Command Mode
Task Group
Example
The following example gives all users in the task group tg1 read-only permissions for AAA and read, write, execute, and debug permissions for OSPF.
(Routing) #configure
(Routing) (ConFig) #taskgroup tgl
(Routing) (ConFig-taskgroup) #task read aaa
(Routing) (ConFig-taskgroup) #task read write execute debug ospf
5-314 show aaa usergroup
Displays a list of user groups and their configuration.
show aaa usergroup [usergroup-name]
Parameters
| usergroup-name | (Optional) Enter usergroup name. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show aaa usergroup group1
User group "group1"
Description: "Example"
Parent user groups: ""
Contained task groups:
task group#1: "tgl"
Operational permissions:
Task: aaa : READ WRITE EXECUTE DEBUG
Task: ospf : READ WRITE EXECUTE DEBUG
Task: bgp : READ WRITE EXECUTE DEBUG
5-315 show aaa taskgroup
Display a list of task groups and their configuration.
show aaa taskgroup [taskgroup-name]
Parameters
taskgroup-name
(Optional) Enter taskgroup name.
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show aaa taskgroup
Task group "default-taskgroup-name"
Description: ""
Parent taskgroups: ""
Configured permissions:
Task: aa : READ WRITE EXECUTE DEBUG
Task: ospf : READ WRITE EXECUTE DEBUG
Task: bgp : READ WRITE EXECUTE DEBUG
Operational permission:
Task: aa : READ WRITE EXECUTE DEBUG
Task: ospf : READ WRITE EXECUTE DEBUG
Task: bgp : READ WRITE EXECUTE DEBUG
Task group "task1"
Description: ""
Parent taskgroups: ""
Configured permissions:
Task: aa : READ WRITE EXECUTE DEBUG
Task: ospf : READ
Task: bgp : READ
Operational permission:
Task: aa : READ WRITE EXECUTE DEBUG
Task: ospf : READ
Task: bgp : READ
5-316 show aaa userdb
Display user and group lists a user is participating.
show aaa userdb [username]
Parameters
| username | Enter user name. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC | |
| Example | |
| The following is a CLI display output example. | |
| (Routing)#show aaa userdb admin | |
| User "admin" | |
| Contained user groups: | |
| user group#1:"D-LINK OS-Root" | |
| Operational permissions: | |
| Task:aa :READ WRITE EXECUTE DEBUG | |
| Task:ospf :READ WRITE EXECUTE DEBUG | |
| Task:bgp :READ WRITE EXECUTE DEBUG | |
Asymmetric Flow Control Commands
Configure settings for symmetric, asymmetric or no flow control. Asymmetric flow control allows the switch to respond to received PAUSE frames—port is unable to generate PAUSE frames. Symmetric flow control allows the switch to respond and generate MAC control PAUSE frames.
5-317 flowcontrol
Enable or disable symmetric or asymmetric flow control. Asymmetric disables Tx Pause, enabling only Rx Pause.
No command disables the symmetric and asymmetric flow control.
flowcontrol {symmetric | asymmetric}
no flowcontrol
Parameters
| symmetric | Enable Symmetric flow control. |
| asymmetric | Enable Asymmetric flow control. |
Default
The default is Disabled.
Command Mode
Global Config
5-318 show flowcontrol
Display the IEEE 802.3 Annex 31B flow control settings and status for all or specific interfaces. In addition, it displays 802.3 Tx and Rx pause counts.
show flowcontrol [slot/port]
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show flowcontrol
Admin Flow Control: Symmetric
Port Flow Control Oper RxPause TxPause
0/1 Active 310 611
0/2 Inactive 0 0
--More-- or (q)uit
(Routing)#show flowcontrol interface 0/1
Admin Flow Control: Symmetric
Port Flow Control Oper RxPause TxPause
0/1 Active 310 611
Display Parameters
| Admin Flow Control | The administrative mode of flow control. |
| Port | The port associated with the rest of the data in the row. |
| Flow Control Oper | The operational mode of flow control. |
| RxPause | The received pause frame count. |
| TxPause | The transmitted pause frame count. |
Storm-Control Commands
This section provides storm-control configuration information. When incoming packets flood the LAN, it is defined as a traffic storm condition leading to network performance degradation. Storm-Control features prevents the occurrence of such events.
To configure storm-control, enable the feature for all or specific interfaces. Once enabled the threshold (storm-control level) can be set — this is the limit used to drop broadcast or unicast traffic. The Storm-Control allows for the definition of rate limits of specific types of packets through the switch on a per-port, per-type, basis.
Note: The incoming packet size as well as the hard-coded packet size (512 bytes) is used to calculate the actual rate of ingress traffic required to activate storm-control. As an example, if a configured limit is assumed to be 10%, it can be converted to \~25000 pps. The arrived pps limit is set in the forwarding
plane (hardware). Based on the figure, the approximate desired output when 512bytes packets are used can be calculated.
5-319 storm-control broadcast
Enable broadcast storm recovery mode for all or specific interfaces (Global Config mode/Interface Config mode). If enabled, broadcast storm recovery is active and, if the rate of L2 broadcast traffic ingressing on an interface increases beyond the configured threshold, the traffic will be dropped.
No command disables broadcast storm recovery mode for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode).
storm-control broadcast
no storm-control broadcast
Parameters
None
Default
The default is Disabled.
Command Mode
- Global Config
- Interface Config
5-320 storm-control broadcast action
This command configures the broadcast storm recovery action to either shutdown or trap for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode). If configured to shutdown, the interface that receives the broadcast packets at a rate above the threshold is diagnostically disabled. If set to trap, the interface sends trap messages approximately every 30 seconds until broadcast storm control recovers.
Use the no command to configure the broadcast storm recovery action option to the default value for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode).
storm-control broadcast action {shutdown | trap}
no storm-control broadcast action
Parameters
| shutdown | Enter the storm-control action to shutdown. |
| trap | Enter the storm-control action to trap. |
Default
The default is None.
Command Mode
- Global Config
- Interface Config
5-321 storm-control broadcast level
Use this command to configure the broadcast storm recovery threshold for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode) as a percentage of link speed and enable broadcast storm recovery. If the mode is enabled, broadcast storm recovery is active, and if the rate of L2 broadcast traffic ingressing on an interface increases beyond the configured threshold, the traffic is dropped. Therefore, the rate of broadcast traffic is limited to the configured threshold.
Use the no command to set the broadcast storm recovery threshold to the default value for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode) and disables broadcast storm recovery.
storm control broadcast level 0-100
no storm control broadcast level
Parameters
None
Default
The default is 5.
Command Mode
- Global Config
- Interface Config
5-322 storm-control broadcast rate
Configure the broadcast storm recovery threshold for all or specific interfaces (Global Config mode/Interface Config mode) in packets per second. Enabled the mode to activate broadcast storm recovery. Once the L2 broadcast traffic ingressing rate on an interface surpasses the configured threshold, the traffic is dropped.
No command sets the broadcast storm recovery threshold to the default value for all or specific interfaces (Global Config mode/Interface Config mode) and disables broadcast storm recovery.
storm-control broadcast rate 0-14880000
no storm-control broadcast rate
Parameters
None
Default
The default is 0.
Command Mode
- Global Config
- Interface Config
5-323 storm-control multicast
Enable multicast storm recovery mode for all or specific interfaces (Global Config mode/Interface Config mode). Enable the mode to activate multicast storm recovery. Once the L2 multicast traffic rate ingress surpasses configured threshold, the traffic is dropped.
No command disables multicast storm recovery mode for all or specific interfaces (Global Config mode /Interface Config mode).
storm control multicast
no storm control multicast
Parameters
None.
Default
The default is Disabled.
Command Mode
- Global Config
- Interface Config
5-324 storm-control multicast action
Configure the multicast storm recovery action to shutdown or trap for all or specific interfaces (Global Config mode/Interface Contig mode). The shutdown configuration allows interface that receive multicast packets at a rate above the threshold are diagnostically disabled. While the trap function sends trap messages approximately every 30 seconds until multicast storm control event is over.
No command returns the multicast storm recovery action option to default for all or specific interfaces (Global Config mode/Interface Config mode).
storm-control multicast action {shutdown | trap}
no storm-control multicast action
Parameters
| shutdown | Enter the storm-control action to shutdown. |
| trap | Enter the storm-control action to trap. |
Default
The default is None.
Command Mode
- Global Config
- Interface Config
5-325 storm-control multicast level
Configure the multicast storm recovery threshold for all or specific interfaces (Global Config mode/Interface Config mode) as a percentage of link speed and enables multicast storm recovery mode. Enable the mode to activate multicast storm recovery. If the L2 multicast traffic rate ingressing on an interface surpasses the configured threshold, the traffic is dropped.
No command set the multicast storm recovery threshold to default for all or specific interfaces (Global Config mode/Interface Config mode) and disables multicast storm recovery.
storm-control multicast level 0-100
no storm-control multicast level 0-100
Parameters
None
Default
The default is 5.
Command Mode
- Global Config
- Interface Config
5-326 storm-control multicast rate
Configure the multicast storm recovery threshold for all or specific interfaces (Global Config mode/Interface Config mode) in packets per second. Enable the mode to activate multicast storm recovery. If the L2 broadcast traffic rate ingressing on an interface surpasses the configured threshold, the traffic is dropped.
Use the no command to set the multicast storm recovery threshold to the default value for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode) and disables multicast storm recovery.
storm-control multicast rate 0-14880000
no storm-control multicast rate
Parameters
None
Default
The default is 0.
Command Mode
- Global Config
- Interface Config
5-327 storm-control unicast
Enable unicast storm recovery mode for all or specific interfaces (Global Config mode/Interface Config mode) Enable the mode to activate unicast storm recovery. If the unknown L2 unicast (destination lookup failure) traffic rate ingressing on an interface surpasses the configured threshold, the traffic is dropped.
No command disables unicast storm recovery mode for all or specified interfaces (Global Config mode/Interface Config mode).
storm-control unicast
no storm-control unicast
Parameters
None.
Default
The default is Disabled.
Command Mode
- Global Config
- Interface Config
5-328 storm-control unicast action
Configure the unicast storm recovery action to shutdown or trap for all or specific interfaces (Global Config mode/Interface Config mode) If configured to shutdown, the interface that receives unicast packets exceeding the threshold is diagnostically disabled. The option trap sends trap messages at a rate of every 30 seconds until unicast storm control is recovered.
No command returns the unicast storm recovery action option to default for all or specified interfaces (Global Config mode/Interface Config mode).
storm-control unicast action {shutdown | trap}
no storm-control unicast action
Parameters
| shutdown | Enter the storm-control action to shutdown. |
| trap | Enter the storm-control action to trap. |
Default
The default is None.
Command Mode
- Global Config
- Interface Config
5-329 storm-control unicast level
Configure the unicast storm recovery threshold for all or specific interfaces (Global Config mode/Interface Config mode) as a percentage of link speed, and enables unicast storm recovery. If the mode is enabled, unicast storm recovery is active. If the rate of unknown L2 unicast (destination lookup failure) traffic ingressing on an interface surpasses the configured threshold, the traffic will be dropped. In which case, the rate of unknown unicast traffic is limited to the configured threshold.
No command sets the unicast storm recovery threshold to default for all and specific interfaces (Global Config mode/Interface Config mode) and disables unicast storm recovery.
storm-control unicast level 0-100
no storm-control unicast level
Parameters
None
Default
The default is 5.
Command Mode
- Global Config
- Interface Config
5-330 storm-control unicast rate
Use this command to configure the unicast storm recovery threshold for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode) in packets per second. If the mode is enabled, unicast storm recovery is active, and if the rate of L2 broadcast traffic ingressing on an interface increases beyond the configured threshold, the traffic is dropped. Therefore, trate of unicast traffic is limited to the configured threshold.
Use the no command to set the unicast storm recovery threshold to the default value for all interfaces (Global Config mode) or one or more interfaces (Interface Config mode) and disables unicast storm recovery.
storm-control unicast rate 0-14880000
no storm-control unicast rate
Parameters
None
Default
The default is None.
Command Mode
- Global Config
- Interface Config
5-331 show storm-control
This command displays switch configuration information. If you do not use any of the optional parameters, this command displays global storm control configuration parameters:
- Broadcast Storm Recovery Mode may be enabled or disabled. The factory default is disabled.
- 802.3x Flow Control Mode may be enabled or disabled. The factory default is disabled.
Use the all keyword to display the per-port configuration parameters for all interfaces, or specify the slot/port to display information about a specific interface.
show storm-control [all I slot/port]
Parameters
| all | (Optional) Display storm-control information for all ports. |
| slot/port | (Optional) Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an output example.
(Routing)#show storm-control
Broadcast Storm Control Mode...... Disable
Broadcast Storm Control Level...... 5 percent
Broadcast Storm Control Action...... None
Multicast Storm Control Mode...... Disable
Multicast Storm Control Level...... 5 percent
Multicast Storm Control Action...... None
Unicast Storm Control Mode...... Disable
Unicast Storm Control Level...... 5 percent
Unicast Storm Control Action...... None
The following is an output example.
(Routing)#show storm-control 0/1
Intf Bcast Bcast Bcast Mcast Mcast Mcast Ucast Ucast Ucast
Mode Level Action Mode Level Action Mode Level Action
0/1 Disable 5% None Disable 5% None Disable 5% None
The following is an output example.
(Routing)#show storm-control all
Intf Bcast Bcast Bcast Mcast Mcast Mcast Ucast Ucast Ucast
Mode Level Action Mode Level Action Mode Level Action
0/1 Enable 50 Trap Disable 5% None Disable 5% None
0/2 Enable 50 Trap Disable 5% None Disable 5% None
0/3 Enable 50 Trap Disable 5% None Disable 5% None
0/4 Enable 50 Trap Disable 5% None Disable 5% None
0/5 Enable 50 Trap Disable 5% None Disable 5% None
0/6 Enable 50 Trap Disable 5% None Disable 5% None
0/7 Enable 50 Trap Disable 5% None Disable 5% None
0/8 Enable 50 Trap Disable 5% None Disable 5% None
0/9 Enable 50 Trap Disable 5% None Disable 5% None
0/10 Enable 50 Trap Disable 5% None Disable 5% None
0/11 Enable 50 Trap Disable 5% None Disable 5% None
0/12 Enable 50 Trap Disable 5% None Disable 5% None
0/13 Enable 50 Trap Disable 5% None Disable 5% None
0/14 Enable 50 Trap Disable 5% None Disable 5% None
0/15 Enable 50 Trap Disable 5% None Disable 5% None
0/16 Enable 50 Trap Disable 5% None Disable 5% None
0/17 Enable 50 Trap Disable 5% None Disable 5% None
| 0/18 | Enable | 50 | Trap | Disable | 5% | None | Disable | 5% | None |
| 0/19 | Enable | 50 | Trap | Disable | 5% | None | Disable | 5% | None |
Display Parameters
| Bcast Mode | Displays broadcast storm control mode. The factory default is disabled. |
| Bcast Level | The broadcast storm control level. |
| Bcast Action | Enables broadcast traffic storm control on the interface. |
| Mcast Mode | Displays the multicast storm control mode. |
| Mcast Level | The multicast storm control level. |
| Mcast Action | Enables multicast traffic storm control levels. |
| Ucast Mode | Displays the Unknown Unicast or DLF (Destination Lookup Failure) storm control mode. |
| Ucast Level | Displays the Unknown Unicast or DLF (Destination Lookup Failure) storm control level. |
| Ucast Action | Displays the storm-control action setting for unicast traffic. |
Link Dependency Commands
The following commands configure link dependency. Link dependency allows specified ports to be link-status dependent of selected ports. Consequently, if a port link dependency is lost, the port is equally affected.
5-332 link state group
Indicate whether the downstream interfaces of the group should mirror or invert the status of the upstream interfaces (default configuration for a group is down). The action up option causes the downstream interfaces to be up when no upstream interfaces are down.
No command restores the link state to down for the group.
link state group group-id action {up | down}
no link state group group-id action
Parameters
| group-id | Enter the link dependency group number. |
| action up | Link UP the group downstream interface list when upstream link goes down (link is down otherwise) |
| action down | Link DOWN the group downstream interface list when upstream link goes down (link is up otherwise). |
Default
The default is Down.
Command Mode
Global Config
5-333 link state group downstream
Add interfaces to the downstream interface list. The addition of an interface to a downstream list brings the interface down until an upstream interface is added to the group. To avoid the unexpected disconnection of an interface, enter the upstream command prior to entering the downstream command.
No command removes the selected interface from the downstream list.
link state group group-id downstream
no link state group group-id downstream
Parameters
| group-id | Enter the link dependency group number (1 – 48). |
| Default | |
| The default is None. | |
| Command Mode | |
| Interface Config |
5-334 link state group upstream
Add interfaces to the upstream interface list--interfaces defined as upstream interfaces cannot be defined downstream interfaces in the same link state group or as a downstream interface.
No command removes the selected interfaces from upstream list.
link state group group-id upstream
no link state group group-id upstream
Parameters
| group-id | Enter the link dependency group number (1 – 48). |
Default
The default is None.
Command Mode
Interface Config
5-335 show link state group
Display information for a specified or all configured link-dependency groups.
show link state group group-id
Parameters
| group-id | Enter the link dependency group number (1 – 48). |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a configured link-dependency groups example.
(Switching)#show link-state group
GroupId Downstream Interfaces Upstream Interfaces Link Action Group State
1 0/3-0/7,0/12-0/17 0/12-0/32,3/5 Link Up Up
4 0/18,0/27 0/22-0/33,3/1 Link Up Down
The following is a specified link-dependency groups.
(Switching)#show link-state group 1
GroupId Downstream Interfaces Upstream Interfaces Link Action Group State
1 0/3-0/7,0/12-0/17 0/12-0/32,3/5 Link Up Up
Display Parameters
| GroupID | Indicates the group ID for each displayed set. |
| Downstream Interfaces | Indicates a tracking of the port's inclusion to the Downstream set. |
| Upstream Interfaces | Indicates a tracking of the port's inclusion to the Upstream set. |
| Link Action | Indicates the current state of the specified link-dependency group. |
| Group State | Indicates the current state of the link-dependency group. |
5-336 no link state track
This command is used to disable the link state track feature.
no link state track group-id
Parameters
| group-id | Enter the link dependency group number (1 – 48). |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a configured link-dependency groups example.
(Switching) #configure
(Switching) (Config) #no link state track 1
5-337 show link state group detail
Display detailed information regarding upstream and downstream interface states for selected link-dependency group.
show link state group group-id detail
Parameters
| group-id | Enter the link dependency group number (1 – 48). |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switching)#show link state group 1 detail
GroupId: 1
Link Action: Up
Group State: Up
Downstream Interface State:
Link Up: 0/3
Link Down: 0/4-0/7,0/12-0/17
Upstream Interface State:
Link Up: -
Link Down: 0/12-0/32,3/5
Group Transitions: 0
Last Transition Time: 00:52:35 (UTC+0:00) Jan 1 1970
5-338 show llpf interface all
Display Link Layer Packet Filtering (LLPF) rule status.
show llpf interface [all | slot/port]
Parameters
| all | (Optional) Display link-level protocol filtering complete configuration. |
| slot/port | (Optional) Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show llpf interface all
Intf Block Block Block Block Block Block Block Block
Protocol Protocol Protocol Protocol Protocol Protocol Protocol Protocol
ISDP VTP DTP UDLD PAGP SSTP All
0/1 Enabled Disabled Disabled Enabled Disabled Disabled Disabled
| 0/2 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/3 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/4 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/5 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/6 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/7 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/8 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/9 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/10 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/11 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/12 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/13 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/14 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/15 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/16 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/17 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/18 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/19 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/20 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/21 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/22 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/23 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/24 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/25 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/26 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/27 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/28 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/29 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/30 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/31 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/32 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/33 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/34 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/35 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/36 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/37 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/38 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/39 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/40 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
| 0/41 | Enabled | Disabled | Disabled | Enabled | Disabled | Disabled | Disabled |
Display Parameters
| Block ISDP | Shows whether the port blocks IPTV Service Delivery Platform (ISDP) PDUs. |
| Block VTP | Shows whether the port blocks VLAN Trunking Protocol (VTP) PDUs. |
| Block DTP | Shows whether the port blocks Dynamic Trunking Protocol (DTP) PDUs. |
| Block UDLD | Shows whether the port blocks Unidirectional Link Detection (UDLD)PDUs. |
| Block PAGP | Shows whether the port blocks Port Aggregation Protocol (PAgP) PDUs. |
| Block SSTP | Shows whether the port blocks Secure Socket Tunneling Protocol (SSTP) PDUs. |
| Block All | Shows whether the port blocks all proprietary PDUs available for the LLDP feature. |
MVR Commands
Lists the Multicast VLAN Registration (MVR) commands.
5-339 mvr
Enable MVR, default: disabled.
No command disables MVR.
mvr
no mvr
Parameters
None
Default
The default is Disable.
Command Mode
- Global Config
- Interface Config
5-340 mvr group
Use this command to add an MVR membership group.
Use the no command to disable an MVR membership group.
mvr group no mvr group
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-341 mvr immediate
Enable MVR Immediate Leave mode. When an interface configured as a source ports, MVR immediate cannot be enabled.
No command disables MVR Immediate Leave mode.
mvr immediate
no mvr immediate
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-342 mvr mode
Change the Multicast VLAN Registration (MVR) mode type (default: compatible).
No command sets the MVR mode type to compatible (default).
mvr mode [compatible | dynamic]
no mvr mode
Parameters
| compatible | (Optional) Enable MVR compatible mode.While in compatible mode, multicast data received by MVR hosts is forwarded to all data ports (MVR), regardless of MVR host membership on those ports. The multicast data is forwarded only to receiver ports if MVR hosts have already joined them, either by IGMP reports or by MVR static configuration. |
| dynamic | (Optional) Enable MVR dynamic mode. While in dynamic mode,multicast data received by MVR hosts on the switch is forwarded from only joined, either by IGMP reports or by MVR static configuration, MVR data and client ports. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config | |
5-343 mvr querytime
Set the MVR query response time (1/10 sec.). The query time is the maximum waiting time for an IGMP membership report on a receiver port before removing it from the multicast group.
No command sets the MVR query response time to the default.
mvr querytime 1-100
no mvr querytime
Parameters
None
Default
The default is 5.
Command Mode
Global Config
5-344 mvr type
Set the MVR port type, default is none.
No command resets the MVR port type to None.
mvr type [receiver | source]
no mvr type
Parameters
| receiver | (Optional) Set the MVR Receiver port type. |
| source | (Optional) Set the MVR Source port type. |
Default
The default is None.
Command Mode
Interface Config
5-345 mvr vlan
Set the MVR multicast VLAN.
No command sets the MVR multicast VLAN to default.
mvr vlan 1-4093
no mvr vlan
Parameters
None
Default
The default is 1.
Command Mode
Global Config
5-346 mvr vlan group
Configure a port to participate in a specific MVR group. The default value is None.
No command removes port participation in the specific MVR group.
mvr vlan mvlan group A.B.C.D
no mvr vlan mvlan group A.B.C.D
Parameters
| mvlan | Indicates the multicast VLAN ID (1 – 4093). |
| A.B.C.D | IP multicast address. |
Default
The default is None.
Command Mode
Interface Config
5-347 show mvr
Display global MVR settings.
show mvr
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switching)#show mvr
MVR Disabled.
(Switching)#show mvr
MVR Running.... TRUE
MVR multicast VLAN.... 1
MVR Max Multicast Groups.... 256
MVR Current multicast groups.... 0
MVR Global query response time.... 5 (tenths of sec)
MVR Mode.... compatible
5-348 show mvr members
Display the allocated MVR membership groups.
show mvr members [A.B.C.D]
Parameters
| A.B.C.D | (Optional) Indicates the MVR Group IP. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switching)#show mvr members
MVR Group IP Status Members
(Switching)#show mvr members 224.1.1.1
MVR Group IP Status Members
Display the cgnfiguration of MVR-enabled interfaces.
show mvr interface [interface-id [members [vlan vlan-id]]]
Parameters
| interface-id | (Optional) Enter an interface in slot/port format. |
| members | (Optional) Multicast group members on this port. |
| vlan vlan-id | (Optional) MVR multicast VLAN. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switching)#show mvr interface
Port Type Status Immediate Leave
0/9 RECEIVER ACTIVE/inVLAN DISABLED
(Switching)#show mvr interface 0/4
Type: NONE Status: INACTIVE/InVLAN Immediate Leave: DISABLED
(Switching)#show mvr interface 0/23 members
235.0.0.1 STATIC ACTIVE
(Switching)#show mvr interface 0/23 members vlan 12
235.0.0.1 STATIC ACTIVE
235.1.1.1 STATIC ACTIVE
5-350 show mvr traffic
Display global MVR statistics.
show mvr traffic
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switching)#show mvr traffic
IGMP Query Received.... 0
IGMP Report V1 Received.... 0
IGMP Report V2 Received.... 0
IGMP Leave Received.... 0
IGMP Query Transmitted.... 0
IGMP Report V1 Transmitted.... 0
IGMP Report V2 Transmitted.... 0
IGMP Leave Transmitted.... 0
IGMP Packet Receive Failures.... 0
IGMP Packet Transmit Failures.... 0
5-351 debug mvr trace
Enable MVR debug tracing, default is disabled
No command disables MVR debug tracing.
debug mvr trace
no debug mvr trace
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
5-352 debug mvr packet
Enable MVR receive/transmit packets debug tracing. Without argument specification both receive and transmit packets debugging is enabled (default).
No command disables MVR receive/transmit packet debug tracing.
debug mvr packet [receive | transmit]
no debug mvr packet [receive | transmit]
Parameters
| receive | (Optional) Turn on MVR receive packet debug trace. |
| transmit | (Optional) Turn on MVR transmit packet debug trace. |
Default
The default is Enabled.
Command Mode
Privileged EXEC
Port-Channel/LAG (802.3ad) Commands
This section describes port-channel configuration, also known as link aggregation groups (LAGs). Link aggregation allows multiple full-duplex Ethernet link combinations into a single logical link. Network devices treat the aggregation as a single link allowing for increased fault tolerance and load sharing.
A port-channel (LAG) interface can be designated as static or dynamic. All members within the same port channel are designated same protocols.
Note: Configuring the maximum number of supported dynamic port-channels (LAGs) will configure additional port-channels as static.
5-353 port-channel
Configure a new port-channel (LAG) and generate logical slot/port number for a port-channel. Use the show port-channel command to display the slot/port number for the logical interface.
Note: Set port physical mode before including a port in a port-channel.
Note: Name fields support alphanumeric and characters string, such as dashes “-”.
port-channel {adminmode [all] | linktrap [slot/port | all | lag lag-group-id] | load-balance [1|2|3|4|5|6|7] {slot/port | all} | name [slot/port | lag lag-group-id] name | resilient-hashing | system priority 0-65535}
Parameters
| adminmode | Enable/Disable the port-channel's administrative Mode. |
| linktrap | Enable/Disable Link Up/Down traps for this port. |
| load-balance | Configures port-channel load balance. |
| name | Configure a name for the interface port-channel. |
| resilient-hashing | Enable the resilient hashing in the port-channel. |
| system priority | Configure port channel system priority (LAG). |
Default
The default is None.
Command Mode
Global Config
5-354 port-channel adminmode
This command enables all configured port-channels with the same administrative mode setting.
Use the no command to disable all configured port-channels with the same administrative mode setting.
port-channel adminmode all
no port-channel adminmode all
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-355 port-channel linktrap
This command enables link trap notifications for the port-channel (LAG). The interface is a logical slot/port for a configured port-channel. The option all sets every configured port-channel with the same administrative mode setting.
Use the no command to disable link trap notifications for the port-channel (LAG). The interface is a logical slot/port for a configured port-channel. The option all sets every configured port-channel with the same administrative mode setting.
port-channel linktrap {logical slot/port | all | lag lag-group-id}
no port-channel linktrap {logical slot/port | all | lag lag-group-id}
Parameters
| slot/port | Enter permissible interface. |
| all | Enables/Disables link traps for all configured port-channels. |
| lag lag-group-id | Enter an interface in lag format. |
Default
The default is Enabled.
Command Mode
Global Config
5-356 port-channel load-balance
Select the load-balancing option used on a port-channel (LAG). Select a channel link to transmit balanced traffic on a port-channel (LAG)
Configuration is available for single, a range, or all interfaces.
No command reverts load balancing configuration to default.
port-channel load-balance {1 | 2 | 3 | 4 | 5 | 6 | 7} {slot/port | all}
no port-channel load-balance {slot/port | all}
Parameters
| 1 | Source: MAC, VLAN, EtherType, and incoming port associated with the packet. |
| 2 | Destination: MAC, VLAN, EtherType, and incoming port associated with the packet. |
| 3 | Source/Destination: MAC, VLAN, EtherType, and incoming port associated with the packet. |
| 4 | Source IP and Source TCP/UDP fields of the packet. |
| 5 | Destination IP and Destination TCP/UDP Port fields of the packet. |
| 6 | Source/Destination IP and source/destination TCP/UDP Port fields of the packet. |
| 7 | Enhanced hashing mode. |
| slot/port | all | For Global Config Mode only: The interface is defined as a logical slot/port number of a configured port-channel. All configuration to all currently configured port-channels. |
Default
The default is 3.
Command Mode
- Global Config
- Interface Config
5-357 port-channel min-links
Configures the port-channel's minimum links for lag interfaces.
port-channel min-links 1-32
Parameters
None
Default
The default is 1.
Command Mode
Interface Config
5-358 port-channel name
Define a name for the port-channel (LAG). The interface is defined as a logical slot/port for a configured port-channel. The term name is defined as an alphanumeric string of up to 15 characters.
port-channel name {logical slot/port} name
Parameters
| slot/port | Enter permissible interface. |
| lag | Configure a name for the interface port-channel. |
Default
The default is None.
Command Mode
Global Config
5-359 port-channel system priority
Configure port-channel system prioritis.
No command configures the port-channel system priority to default.
port-channel system priority 0-65535
no port-channel system priority
Parameters
None
Default
The default is 0x8000.
Command Mode
Global Config
5-360 addport (Interface Config)
Add a port to the port-channel (LAG). The first interface is a logical slot/port number of a configured port-channel. To add a port range, specify the range in the Interface Config mode, example: interface 0/1-0/4.
Note: The physical mode of the port must be first set before adding a port to a port-channel.
addport slot/port {lag lag-group-id}
Parameters
| slot/port | Enter permissible interface. |
| lag | Add this port to a port-channel. |
| lag-group-id | Enter a valid LAG group ID. |
Default
The default is None.
Command Mode
Interface Config
5-361 deleteport (Interface Config)
Deletes a port or a range of ports from the port-channel (LAG). The interface is the logical slot/port number of the configured port or range of port channel.
deleteport slot/port
Parameters
| slot/port | Enter permissible interface. |
| lag | Delete this port from a port-channel. |
Default
The default is None.
Command Mode
Interface Config
5-362 deleteport (Global Config)
Delete all configured ports from the port-channel (AG). The interface is the logical slot/port number of the configured port or range of port channel.
deleteport {slot/port | all}
Parameters
| logical slot/port | Enter permissible interface. |
| all | Sets every configured port-channel with the same administrative mode setting. |
Default
The default is None.
Command Mode
Global Config
5-363 interface lag
Enter Interface configuration mode for a specified LAG.
interface lag lag-interface-number
Parameters
| lag-interface-number | Enter LAG interface number. |
Default
The default is None.
Command Mode
Global Config
5-364 ip resilient-hashing
Enable resilient hashing on all ECMP objects (default: enabled).
No command disables resilient hashing on all the ECMP objects.
Note: The device requires a reboot after changes to the configuration.
ip resilient-hashing
no ip resilient-hashing
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-365 port lacpmode
Enable Link Aggregation Control Protocol (LACP) on a port or range of ports.
No command disables Link Aggregation Control Protocol (LACP) on selected port.
port lacpmode
no port lacpmode
Parameters
None
Default
The default is Enabled.
Command Mode
Interface Config
5-366 port lacpmode enable all
Enable Link Aggregation Control Protocol (LACP) on all ports.
No command disables Link Aggregation Control Protocol (LACP) on all ports.
port lacpmode enable all
no port lacpmode enable all
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-367 port lacptimeout (Interface Config)
Set timeout function on a physical interface or range of interfaces of a particular device type (actor or partner) to either long or short timeout.
Use the no command to set the timeout back to its default value on a physical interface of a particular device type (actor or partner).
Note: Both the no portlacptimeout and the no lacp actor admin state commands set the values back to default, regardless of the command used to configure the ports. Consequently, both commands Will display in show running-config.
port lacptimeout {actor} {long | short}
no port lacptimeout {actor}
Parameters
| actor | Enter actor LACP device type. |
| long | Enter long timeout setting (90 seconds). |
| short | Enter short timeout setting (3 seconds). |
Default
The default is Long.
Command Mode
Interface Config
5-368 port lacptimeout (Global Config)
This command sets the timeout for all interfaces of a particular device type (actor or partner) to either long or short timeout.
Use the no command to set the timeout for all physical interfaces of a particular device type (actor or partner) back to their default values.
Note: Both the no portlacptimeout and the no lacp actor admin state commands set the values back to default, regardless of the command used to configure the ports. Consequently, both commands Will display in show running-config.
port lacptimeout {actor} {long | short}
no port lacptimeout {actor}
Parameters
| actor | Enter actor LACP device type. |
| long | Enter long timeout setting (90 seconds). |
| short | Enter short timeout setting (3 seconds). |
Default
The default is Long.
Command Mode
5-369 Global Configshow ip resilient-hashing
Displays the resilient hashing property for the ECMP.
show ip resilient-hashing
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Routing)#show ip resilient-hashing
Resilient Hashing.... Enabled
(Routing)#
Display Parameters
| Resilient Hashing | Resilient hashing mode for the system. |
5-370 show lacp actor
Display the LACP actor attributes.
show lacp actor {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all for all interfaces. |
Default
The default is None.
Command Mode
Global Config
Example
The following shows an example of the command.
| (Routing)#show lacp actor all | ||||||
| Intf | Sys | Priority | Admin Key | Port | Priority | Admin State |
| 0/1 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/2 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/3 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/4 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/5 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/6 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/7 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/8 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/9 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/10 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/11 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/12 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/13 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/14 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/15 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/16 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/17 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/18 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/19 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/20 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/21 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/22 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/23 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/24 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/25 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/26 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/27 | 32768 | 0 | 128 | ACT|AGG|LTO | ||
| 0/28 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/29 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/30 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/31 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/32 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/33 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/34 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/35 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/36 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/37 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/38 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/39 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/40 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/41 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/42 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/43 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/44 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/45 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/46 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/47 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/48 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/49 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/50 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/51 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/52 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/53 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/54 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/55 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/56 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/57 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/58 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/59 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/60 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/61 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/62 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/63 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/64 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/65 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/66 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/67 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/68 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/69 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/70 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/71 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/72 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/73 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/74 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/75 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/76 | 32768 | 0 | 128 | ACT | AGG | LTO |
| 0/77 | 32768 | 0 | 128 | ACT | AGG | LTO |
0/78 32768 0 128 ACT|AGG|LTO
Display Parameters
| System Priority | The value of the system priority Key. |
| Actor Admin Key | The value of the actor administrative Key. |
| Port Priority | The value assigned to the Aggregation (priority) Port. |
| Admin State | The values of the administrative state as transmitted by the Actor in LACPDUs. |
5-371 show lacp partner
Display LACP partner attributes.
show lacp actor (slot/port | all)
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all for all interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
| (Switch)#show lacp partner all | |||||||
| Sys Intf | System Pri ID | Admin Key | Prt Pri | Prt Id | Admin State | ||
| 0/1 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/2 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/3 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/4 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/5 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/6 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/7 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/8 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/9 | 0 | 00:00:00:00:00:00 | 0 | 0 | 0 | ||
| 0/10 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/11 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/12 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/13 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/14 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/15 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/16 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/17 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/18 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/19 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/20 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/21 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/22 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/23 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/24 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/25 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/26 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/27 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/28 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/29 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/30 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/31 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/32 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/33 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/34 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/35 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/36 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/37 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/38 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/39 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/40 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/41 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/42 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/43 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/44 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/45 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/46 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/47 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/48 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/49 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/50 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/51 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/52 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/53 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/54 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/55 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/56 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/57 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/58 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/59 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/60 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/61 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/62 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/63 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/64 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/65 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/66 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/67 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/68 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/69 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/70 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/71 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/72 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/73 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/74 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/75 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/76 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/77 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
| 0/78 | 0 | 00:00:00:00:00:00:00 | 0 | 0 | 0 | PSV|IND|LTO |
Display Parameters
| System Priority | The administrative value of priority associated with the Partner System ID. |
| System-ID | Represents the administrative value of the Aggregation Port's protocol Partner's System ID. |
| Admin Key | The parameter assigned within the LACP packet to group channels containing ports assigned the same admin key. |
| Port Priority | The value assigned to the Aggregation (priority) Port. |
| Port-ID | The value of the administrative port number for the protocol Partner. |
| Admin State | The values of the administrative actor state for the protocol Partner. |
5-372 show port-channel brief
Display the static capability of all port-channel (LAG) interfaces as well as a summary of individual port-channel interfaces.
show port-channel brief
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
| (Routing)#show port-channel brief | |||||||
| Logical Port-Channel Min Link State Trap Type Mbr Ports Active Ports Interface Name Flag | |||||||
| 3/1 | ch1 | 1 | Down | Enabled | Static 0/5,0/6 | ||
| 3/2 | ch2 | 1 | Down | Enabled | Static 0/7,0/8 | ||
| 3/3 | ch3 | 1 | Down | Enabled | Static 0/9,0/10 | ||
| 3/4 | ch4 | 1 | Down | Enabled | Static | ||
| 3/5 | ch4 | 1 | Down | Enabled | Static | ||
| 3/6 | ch4 | 1 | Down | Enabled | Static | ||
| 3/7 | ch4 | 1 | Down | Enabled | Static | ||
| 3/8 | ch4 | 1 | Down | Enabled | Static | ||
| 3/9 | ch4 | 1 | Down | Enabled | Static | ||
| 3/10 | ch4 | 1 | Down | Enabled | Static | ||
| 3/11 | ch4 | 1 | Down | Enabled | Static | ||
| 3/12 | ch4 | 1 | Down | Enabled | Static | ||
| 3/13 | ch4 | 1 | Down | Enabled | Static | ||
| 3/14 | ch4 | 1 | Down | Enabled | Static | ||
| 3/15 | ch4 | 1 | Down | Enabled | Static | ||
| 3/16 | ch4 | 1 | Down | Enabled | Static | ||
| 3/17 | ch4 | 1 | Down | Enabled | Static | ||
| 3/18 | ch4 | 1 | Down | Enabled | Static | ||
| 3/19 | ch4 | 1 | Down | Enabled | Static | ||
| 3/20 | ch4 | 1 | Down | Enabled | Static | ||
| 3/21 | ch4 | 1 | Down | Enabled | Static | ||
| 3/22 | ch4 | 1 | Down | Enabled | Static | ||
| 3/23 | ch4 | 1 | Down | Enabled | Static | ||
| 3/24 | ch4 | 1 | Down | Enabled | Static | ||
| 3/25 | ch4 | 1 | Down | Enabled | Static | ||
| 3/26 | ch4 | 1 | Down | Enabled | Static | ||
| 3/27 | ch4 | 1 | Down | Enabled | Static | ||
| 3/28 | ch4 | 1 | Down | Enabled | Static | ||
| 3/29 | ch4 | 1 | Down | Enabled | Static | ||
| 3/30 | ch4 | 1 | Down | Enabled | Static | ||
| 3/31 | ch4 | 1 | Down | Enabled | Static | ||
| 3/32 | ch4 | 1 | Down | Enabled | Static | ||
| 3/33 | ch4 | 1 | Down | Enabled | Static | ||
| 3/34 | ch4 | 1 | Down | Enabled | Static | ||
| 3/35 | ch4 | 1 | Down | Enabled | Static | ||
| 3/36 | ch4 | 1 | Down | Enabled | Static | ||
| 3/37 | ch4 | 1 | Down | Enabled | Static | ||
| 3/38 | ch4 | 1 | Down | Enabled | Static | ||
| 3/39 | ch4 | 1 | Down | Enabled | Static | ||
| 3/40 | ch4 | 1 | Down | Enabled | Static |
| 3/41 | ch4 | 1 | Down | Enabled | Static |
| 3/42 | ch4 | 1 | Down | Enabled | Static |
| 3/43 | ch4 | 1 | Down | Enabled | Static |
| 3/44 | ch4 | 1 | Down | Enabled | Static |
| 3/45 | ch4 | 1 | Down | Enabled | Static |
| 3/46 | ch4 | 1 | Down | Enabled | Static |
| 3/47 | ch4 | 1 | Down | Enabled | Static |
| 3/48 | ch4 | 1 | Down | Enabled | Static |
| 3/49 | ch4 | 1 | Down | Enabled | Static |
| 3/50 | ch4 | 1 | Down | Enabled | Static |
| 3/51 | ch4 | 1 | Down | Enabled | Static |
| 3/52 | ch4 | 1 | Down | Enabled | Static |
| 3/53 | ch4 | 1 | Down | Enabled | Static |
| 3/54 | ch4 | 1 | Down | Enabled | Static |
| 3/55 | ch4 | 1 | Down | Enabled | Static |
| 3/56 | ch4 | 1 | Down | Enabled | Static |
| 3/57 | ch4 | 1 | Down | Enabled | Static |
| 3/58 | ch4 | 1 | Down | Enabled | Static |
| 3/59 | ch4 | 1 | Down | Enabled | Static |
| 3/60 | ch4 | 1 | Down | Enabled | Static |
| 3/61 | ch4 | 1 | Down | Enabled | Static |
| 3/62 | ch4 | 1 | Down | Enabled | Static |
| 3/63 | ch4 | 1 | Down | Enabled | Static |
| 3/64 | ch4 | 1 | Down | Enabled | Static |
Display Parameters
| Logical Interface | The slot/port of the logical interface. |
| Port-channel Name | The name of port-channel (LAG) interface. |
| Link-State | Shows whether the link is up or down. |
| Trap Flag | Shows whether trap flags are enabled or disabled. |
| Type | Shows whether the port-channel is statically or dynamically maintained. |
| Mbr Ports | The members of this port-channel. |
| Active Ports | The ports that are actively participating in the port-channel. |
5-373 show port-channel
Displays an overview of all port-channels (LAGs). The LAG interface can be specified by through slot/port or lag lag-intf-num. Where lag-intf-num is expressed as a number, lag lag-intf-num can be used to specify the LAG interface.
show port-channel {lag-intf-num | slot/port | all | brief | resilient hashing | system}
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switch)#show port-channel 3/1
Local Interface.... 3/1
Channel Name.... ch1
Link State.... up
Admin Mode.... Enabled
Type.... Static
Load Balance Option.... 3
(Src/Dest MAC, VLAN, EType, incoming port)
Local Preference Mode.... Enabled
Mbr Ports Device/Timeout Port Speed Port Active
0/1 actor/long partner/long Auto True
0/2 actor/long partner/long Auto True
0/3 actor/long partner/long Auto False
0/4 actor/long partner/long Auto False
Display Parameters
| Logical Interface | The valid slot/port number. |
| Port-Channel Name | The name of this port-channel (LAG), supports up to 15 alphanumeric characters. |
| Link State | Indicates the Link status (up or down). |
| Admin Mode | Enabled (default) or disabled, . |
| Type | Designates a port-channel (LAG) status: static or dynamic. |
| Load Balance Option | The load balance option associated with this LAG. |
| Load Preference Mode | Indicates whether the local preference mode is enabled or disabled. |
| Mbr Ports | Listing of member ports of this port-channel (LAG), in slot/port notation.A maximum of eight ports can be assigned to a given port-channel (LAG). |
| Device Timeout | For each port, lists the timeout (long or short) for Device Type (actor or partner). |
| Port Speed | Speed of the port-channel port. |
| Active Ports | This field lists ports that are actively participating in the port-channel (LAG). |
5-374 show port-channel counter
Display port-channel counters for the specified port.
show port-channel slot/port counters
Parameters
| slot/port | Enter permissible interface. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switch)#show port-channel 3/1 counters
Local Interface.... 3/1
Channel Name.... ch1
Link State.... Down
Admin Mode.... Enabled
Port Channel Flap Count.... 0
Mbr Ports Mbr Flap Counters
0/1 0
0/2 0
0/3 1
0/4 0
0/5 0
0/6 0
0/7 0
0/8 0
Display Parameters
| Local Interface | The valid slot/port number. |
| Channel Name | The name of this port-channel (LAG). |
| Link State | Indicates whether the Link is up or down. |
| Admin Mode | May be enabled or disabled. The factory default is enabled. |
| Port Channel Flap Count | The number of times the port-channel was inactive. |
| Mbr Ports | The slot/port for the port member. |
| Mbr Flap Counters | The number of times a port member is inactive, either because the link is down, or the admin state is disabled. |
5-375 show port-channel resilient-hashing
Display the resilient hashing property for the port channel interface
show port-channel resilient-hashing
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Routing)#show port-channel resilient-hashing
Resilient Hashing.... Enabled
(Routing)#
Display Parameters
| Resilient Hashing | Resilient hashing mode for the system. |
5-376 show port-channel system priority
Display the port-channel system priority.
show port-channel system priority
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show port-channel system priority
System Priority.... 32768
Display Parameters
| System Priority | The administrative value of priority associated with the Partner System ID. |
5-377 clear port-channel counters
Clear and reset counters for port-channels and member flaps for the specified interface.
clear port-channel {lag-intf-num | slot/port | all} counters
Parameters
| lag-intf-num | Enter LAG interface number. |
| slot/port | Enter permissible interface. |
| all | Enter 'all' for all interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
5-378 clear port-channel all counters
Clear and reset counters for all port-channels and member flaps for the specified interface.
clear port channel all counters
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
VPC Commands
Virtual private cloud (VPC), also known as MLAG, enables the creation of a LAG to across two independent switches for the purpose of allowing member ports of a VPC to reside on one switch while others can reside on a different switch.
5-379 vpc domain
Enter into VPC configuration mode and create a VPC domain with the specified domain-id. Only a single VPC domain can be created on a given device. The domain-id of the VPC domain must be equal to the one configured on the related VPC peer attempting the VPC pairing. The configured VPC domain-ids are exchanged during role election. If the configuration does not match, the VPC does not become operational.
No command deletes the VPC domain.
vpc domain 1-255
no vpc domain 1-255
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-380 feature vpc
Enable VPC globally which occurs if both VPC and the keepalive state machine are enabled. Peer link must be configured for role election to occur.
No command disables VPC.
feature vpc
no feature vpc
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-381 peer detection enable (VPC Config)
Start the Dual Control Plane Detection Protocol (DCPDP). The peer VPC switch's IP address must be configured for the DCPDP to start.
No command disables the dual control plane (DCPDP) detection protocol on the VPC switch.
peer detection enable
no peer detection enable
Parameters
None
Default
The default is None.
Command Mode
VPC Config
5-382 peer detection interval (VPC Config)
Configure the DCPDP transmission interval and reception timeout.
Configurable interval range: 200 ms – 4000 ms (default: 1000 ms). Configurable reception timeout range: 700 ms – 14000 ms (default: 3500 ms).
No command resets the DCPDP transmission interval and reception timeout to default.
peer detection interval msecs timeout seconds
no peer detection interval msecs timeout seconds
Parameters
| msecs | Enter the transmission interval (200 – 400 in seconds). |
| timeout seconds | Enter the reception timeout (700 – 14000 in seconds). |
Default
The default is as follows:
• Transmission interval: 1000 ms
• Reception timeout: 3500 ms
Command Mode
VPC Config
5-383 peer-keepalive destination (VPC Config)
Configures the IP address of the peer VPC switch, which is the destination IP address of the DCPDP on the peer VPC switch. This configuration is used by the DCPDP on the VPC switches. The source IP address of the DCPDP message is also configured with the function, which is the self IP on the VPC switch.
No command removes the self IP address, peer IP address, and the UDP port configuration (range: port 1 to 65535, default: 60000).
peer-keepalive destination ipaddress source ipaddress [udp-port port]
no peer-keepalive destination ipaddress source ipaddress [udp-port port]
Parameters
| ipaddress | IP address of the peer VPC switch. |
| source ipaddress | Configures DCPDP source parameters. |
Default
The default is None.
Command Mode
VPC Config
5-384 peer-keepalive enable
Start the keepalive state machine on the VPC device, if globally enabled.
No command stops the keepalive state machine of the VPC switch.
peer-keepalive enable
no peer-keepalive enable
Parameters
None
Default
The default is Disabled.
Command Mode
VPC Config
5-385 peer-keepalive timeout
Configure the peer keepalive timeout value (in seconds). If a VPC switch does not receive a keepalive message from the peer for the duration of the timeout value, it transitions its role.
No command resets the keepalive timeout to default (5 seconds).
Note: Keepalive state machine is not restarted if the priority is modified post election.
peer-keepalive timeout 2-15
no peer-keepalive timeout
Parameters
None
Default
The default is 5.
Command Mode
VPC Config
5-386 role priority
Configure VPC switch priority for VPC role election. The priority value is sent to the peer in the VPC keepalive messages. A VPC switch with lowered priority is converted to the Primary while the switch with the higher priority is converted as the Secondary.
No command resets the keepalive priority and timeout to default (100).
role priority 1-255
no role priority
Parameters
None
Default
The default is 100.
Command Mode
VPC Config
5-387 system-mac
Manually configure the MAC address for the VPC domain. The VPC MAC address should carry the same configuration both peer devices.
The specified MAC address must be a unicast MAC address
No command removes the manually configured VPC MAC address for the VPC domain.
system-mac mac-address
no system-mac
Parameters
| mac-address | Enter MAC address. |
| Default | |
| The default is None. | |
| Command Mode | |
| VPC Domain |
5-388 system-priority
Manually configure a system priority for the VPC domain. System-priority configuration must be identical on both VPC peers. If the configured VPC system priority is different on VPC peers, the VPC does not come up.
The system-priority is used in the LACP PDUs sent out on VPC member ports, VPC system priorities must be configured to allow for primary device election.
The configurable range is 1 to 65535 (default: 32767).
No command restores the VPC system priority to default.
system-priority 1-65535
no system-priority
Parameters
None
Default
The default is 32767.
Command Mode
VPC Domain
5-389 vpc
Configure a port-channel (LAG) as part of an VPC. Upon issuing this command, the port-channel is down pending port-channel to VPC peer switch member authentication.
No command removes a port-channel from VPC.
vpc id
no vpc id
Parameters
id
Enter the VPC domain configuration mode.
Default
The default is None.
Command Mode
LAG Interface
5-390 show running-config vpc
Display running configuration information for virtual port channels (VPC).
show running-config vpc
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switching)#show running-config vpc
feature vpc
vpc domain 1
role priority 120
system-mac 00:10:18:82:1A:A0
system-priority 32767
peer-keepalive destination 1.1.1.1 source 1.1.1.2
peer detection interval 2000 timeout 6000
5-391 show vpc
Display information about a VPC. The configuration and operational modes of the VPC are displayed. Once all preconditions are met, the VPC is operationally enabled.
show vpc id
Parameters
id
Display VPC keepalive status and parameters.
Default
The default is None.
Command Mode
User EXEC
Example
The following is a command example.
(Switching)#show vpc 10
VPC id#10
Config mode.... Enabled
Operational mode.... Enabled
Port channel.... 3/1
Local Members Status
0/2 UP
0/6 DOWN
Peer members Status
0/8 UP
5-392 show vpc brief
Display the VPC global status and current VPC operational mode. In addition, peerlink and keepalive status including the number of configured and operational VPCs, and system MAC and roles are also displayed.
show vpc brief
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switching)#show vpc brief
VPC config Mode.... Enabled
Keepalive config mode.... Enabled
VPC operational Mode.... Enabled
Self Role.... Primary
Peer Role.... Secondary
Peer detection.... Disabled
Peer-Link details
Interface.... 3/2
Peer link status.... UP
Peer-link STP Mode.... Disabled
Configured Vlans.... 1
Egress tagging.... none
VPC Details
Number of VPCs configured.... 1
Number of VPCs operational.... 1
VPC id# 1
Interface.... 3/1
Configured Vlans.... 1
VPC Interface State.... Active
Local MemberPorts Status
0/19 UP
0/20 UP
0/21 UP
0/22 UP
Peer MemberPorts Status
0/27 UP
0/28 UP
0/29 UP
0/30 UP
5-393 show vpc consistency-parameters
Display global and LAG interface consistency parameters for virtual port channels (VPC).
show vpc consistency-parameters {global | interface id}
Parameters
| global | Display VPC global consistency parameters. |
| interface id | Display VPC consistency parameters of a lag interface. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Switch)#show vpc consistency-parameters global
Parameter
Name Value
STP Mode Enabled
STP Version IEEE 802.1s
BPDU Filter Mode Enabled
BPDU Guard Mode Enabled
MST Instances 1,2,4
FDB Aging Time 300 seconds
VPC system MAC address <AA:BB:CC:DD:EE:FF>
VPC system priority 32767
VPC Domian ID 1
MST VLAN Configuration
Instance Associated VLANS
7,8,10,20
2 4,5,40-50
4 30,32,34-38
PV(R) STP Configuration:
PV(R) STP Mode Enabled/Disabled
PV(R) STP Version PVST/Rapid-PVST
FastUplinkfast Enabled/Disabled
FastUpLinkfast max-update-rate <0-32000>
FastBackbone Enabled/Disabled
VLAN Mode STP Root Hello Time Forward Time MaximumAge Time Priority
4 Enabled Primary 2 15 15 0
(Switch)#show vpc consistency-parameters interface lag 2
Parameter
Name Value
Port Channel Mode Enabled
STP Mode Enabled
BPDU Filter Mode Enabled
BPDU Flood Mode Enabled
Auto-edge FALSE
TCN Guard True
Port Cost 2
Edge Port True
Root Guard True
Loop Guard True
Hash Mode 3
Minimum Links 1
Channel Type Static
Configured VLANs 4,5,7,8
MTU 1518
Active Port Speed Duplex
0/1 100 Full
0/2 100 Full
MST VLAN Configuration
Instance Associated VLANS
1 7,8
2 4,5
PV(R) STP Configuration:
STP port-priority <0-240>
VLAN port-priority cost
<ID> <0-240> auto | <1-20000000>
5-394 show vpc peer-keepalive
Display the peer VPC switch IP address used by the dual control plane detection protocol. In addition, the command displays enabled peer detection. If enabled, the detection status displays. The DCPDP message transmission interval and reception timeout are also displayed.
show vpc peer-keepalive
Parameters
None
Default
The default is None.
Command Mode
User EXEC
Example
The following is a command example.
(Switching)#show vpc peer-keepalive
Peer IP address.... 10.130.14.55
Source IP address.... 10.130.14.55
UDP port.... 50000
Peer detection admin status.... Enabled
Peer detection operational status.... Down
Peer is detected.... True
Configured Tx interval.... 1000 milliseconds
Configured Rx timeout.... 3500 milliseconds
Operational Tx interval.... 500 milliseconds
Operational Rx timeout.... 2000 milliseconds
5-395 show vpc role
Displays keepalive status and parameter information. The role of the VPC switch as well as the system MAC address and priority are displayed.
show vpc role
Parameters
None
Default
The default is None.
Command Mode
User EXEC
Example
The following is a command example.
(Switching)#show vpc role
Self
VPC domain ID.... 1
Keepalive config mode.... Enabled
Keepalive operational mode.... Enabled
Role Priority.... 100
Configured VPC MAC.... AA:BB:CC:DD:EE:FF>
Operational VPC MAC.... AA:BB:CC:DD:EE:FF>
Configured VPC system priority.... 32767
Operational VPC system priority.... 32767
Local System MAC.... 00:10:18:82:18:63
Timeout.... 5
VPC State.... Primary
VPC Role.... Primary
Peer
----
VPC Domain ID.... 1
Role Priority.... 100
Configured VPC MAC.... AA:BB:CC:DD:EE:FF>
Operational VPC MAC.... AA:BB:CC:DD:EE:FF>
Configured VPC system priority.... 32767
Operational VPC system priority.... 32767
Role.... Secondary
Local System MAC.... 00:10:18:82:1b:ab
5-396 show vpc statistics
Display keepalive message counters transmitted and received by the VPC switch.
show vpc statistics {peer-keepalive | peer-link}
Parameters
| peer-keepalive | Display VPC peer keepalive statistics. |
| peer-link | Display VPC peer link statistics. |
Default
The default is None.
Command Mode
User EXEC
Example
The following is a command example.
(Switching)#show vpc statistics peer-keepalive
| Total transmitted. | 123 |
| Tx successful. | 118 |
| Tx errors. | 5 |
| Total received. | 115 |
| Rx successful. | 108 |
| Rx Errors. | 7 |
| Timeout counter. | 6 |
The following shows examples of the command.
| (Switching)#show vpc statistics peer-link | |
| Peer link control messages transmitted...... | 123 |
| Peer link control messages Tx errors...... | 5 |
| Peer link control messages Tx timeout...... | 4 |
| Peer link control messages ACK transmitted...... | 34 |
| Peer link control messages ACK TX errors...... | 5 |
| Peer link control messages received...... | 115 |
| Peer link data messages transmitted...... | 123 |
| Peer link data messages Tx errors...... | 5 |
| Peer link data messages Tx imeout...... | 4 |
| Peer link data messages ACK transmitted...... | 34 |
| Peer link data messages ACK Tx errors...... | 5 |
| Peer link data messages received...... | 115 |
| Peer link BPDU's transmsitted to peer...... | 123 |
| Peer link BPDU's Tx error...... | 9 |
| Peer link BPDU's received from peer...... | 143 |
| Peer link BPDU's Rx error...... | 1 |
| Peer link LACPDU's transmsitted to peer...... | 123 |
| Peer link LACPDU's Tx error...... | 9 |
| Peer link LACPDU's received from peer...... | 143 |
| Peer link LACPDU's Rx error...... | 1 |
5-397 clear vpc statistics
Clear all the keepalive statistics.
clear vpc statistics {peer-keepalive | peer-link}
Parameters
| peer-keepalive | Clears all VPC peer-keepalive statistics. |
| peer-link | Clears all VPC peer link statistics. |
Default
The default is None.
Command Mode
User EXEC
Example
The following is a command example.
(Switching)#clear vpc statistics peer-keepalive
(Switching)#clear vpc statistics peer-link
5-398 debug vpc peer-keepalive
Enable debug traces of the keepalive state machine transitions.
debug vpc peer-keepalive
Parameters
None
Default
The default is None.
Command Mode
User EXEC
5-399 debug vpc peer-link data-message
Enable debug traces for the control messages exchanged between the VPC devices on the peer link.
debug vpc peer-link data-message
Parameters
None
Default
The default is None.
Command Mode
User EXEC
5-400 debug vpc peer-link control-message async
Enable debug traces for the asynchronous reliable control messages exchanged between the MLAG devices on the peer link. For error, only the communication errors are traced. Exchanged control messages can be traced through msg.
debug vpc peer-link control-message async {error | msg [receive | transmit] | normal | verbose}
Parameters
| error | Error Tracing Level. |
| msg receive | (Optional) Trace Messages exchanged. |
| normal | (Optional) Normal Tracing Level. |
| verbose | Verbose Tracing Level. |
Default
The default is None.
Command Mode
User EXEC
5-401 debug vpc peer-link control-message bulk
Enable debug traces for the periodic control messages exchanged between the MLAG devices on the peer link. . For error, only the communication errors are traced. Exchanged control messages can be traced through msg.
debug vpc peer-link control-message bulk { error | msg | receive [ receive | transmit ] | normal | verbose }
Parameters
| error | Error Tracing Level. |
| msg receive | (Optional) Trace Messages exchanged. |
| receive | Enter trace Received Messages. |
| transmist | Enter trace Transmitted Messages. |
| normal | (Optional) Normal Tracing Level. |
| verbose | Verbose Tracing Level. |
Default
The default is None.
Command Mode
User EXEC
5-402 debug vpc peer-link control-message ckpt
Enable debug traces for the checkpointing control messages exchanged between the MLAG devices on the peer link. . For error, only the communication errors are traced. Exchanged control messages can be traced through msg.
debug vpc peer-link control-message ckpt {error | msg [receive | transmit] | normal | verbose}
Parameters
| error | Error Tracing Level. |
| msg | (Optional) Trace Messages exchanged. |
| receive | Enter trace Received Messages. |
| transmist | Enter trace Transmitted Messages. |
| normal | (Optional) Normal Tracing Level. |
| verbose | Verbose Tracing Level. |
Default
The default is None.
Command Mode
User EXEC
5-403 debug vpc peer detection
Enable debug traces for the dual control plane detection protocol. Traces are available when the DCPDP transmits or receives detection packets to or from the peer VPC switch.
debug vpc peer detection
Parameters
None
Default
The default is None.
Command Mode
User EXEC
Port Mirroring
Port mirroring (port monitoring) selects network traffic that you can analyze with a network analyzer, such as a SwitchProbe device or other Remote Monitoring (RMON) probe.
5-404 monitor session source
Configure the source interface for a selected monitor session. Use the source interface slot/port parameter to specify the interface to monitor. Rx monitors only ingress packets while tx monitors only egress packets. If rx tx options are not specified, the destination port monitors both ingress and egress packets.
Note: The source and destination cannot be configured as remote on the same device.
Note: If an interface is configured as a VLAN and is a LAG member, the VLAN cannot be designated as a source VLAN for a Monitor session. In the same manner, if an interface is configured in a VLAN and assigned as a source VLAN for a monitor session, the interface can be designated as a LAG member.
No command removes the specified mirrored port from the selected port mirroring session.
monitor session session-id source {interface {slot/port | cpu | lag} | vlan vlan-id | remote vlan vlan-id} [{rx | tx}]
no monitor session session-id source {interface {slot/port | cpu | lag} | vlan | remote vlan}
Parameters
| session-id | Indicates the session number. |
| slot/port | Enter an interface in slot/port format. |
| cpu | Monitor CPU port packets. |
| lag | Configure interface. |
| vlan vlan-id | Configure monitoring on the VLAN. |
| remote vlan vlan-id | Configure source as remote. |
| rx | (Optional) Select to monitor only ingress packets. |
| tx | (Optional) Select to monitor only egress packets. |
Default
The default is None.
Command Mode
Global Config
5-405 monitor session destination
Configures the probe interface for a selected monitor session. This command configures a probe port and a monitored port for monitor session (port monitoring). Rx monitors only ingress packets, while tx monitors only egress packets. If not specified rx tx , the destination port monitors both ingress and egress packets.
Note: The source and destination cannot be configured as remote on the same device.
The reflector-port is configured at the source switch along with the destination RSPAN VLAN. The reflector-port forwards the mirrored traffic towards the destination switch.
Note: This port must be configured with RSPAN VLAN membership.
To receive monitored traffic, configure the destination interface slot/port to specify the interface.
A VLAN can also be configured as the source to a session (all the member ports of that VLAN are monitored).
Note: If an interface is configured as a VLAN and is a LAG member, the VLAN cannot be designated as a source VLAN for a Monitor session. In the same manner, , if an interface is configured in a VLAN and assigned as a source VLAN for a monitor session, the interface can designated as a LAG member.
No command removes the specified probe port from the selected port mirroring session.
monitor session session-id destination {interface slot/port | remote vlan vlan-id reflector-port slot/port}
no monitor session session-id destination {interface slot/port | remote vlan vlan-id reflector-port slot/port}
Parameters
| session-id | Indicates the session number. |
| interface slot/port | Enter an interface in slot/port format. |
| remote vlan vlan-id | Enter VLAN ID. |
| reflector-port slot/port | Configure the reflector port. |
Default
The default is None.
Command Mode
Global Config
5-406 monitor session filter
Attach an IP/MAC ACL to a selected monitor session to configure a probe port and a monitored port for monitor session (port monitoring).
An IP/MAC ACL can be attached to a session by giving the access list number/name.
Filtering for a specified access group by IP address or MAC address is also available through the command.
Note: Source and destination cannot be configured as a remote on the same device.
Note: IP/MAC ACL can be attached to a session by providing designated list number/name access. Platforms not supporting both IP and MAC ACLs assignment on the same Monitor session, an error displays during ACL configuration.
No command removes the specified IP/MAC ACL from the selected monitoring session.
monitor session session-id filter {ip access-group acl-id/acName | mac access-group acl-name} no monitor session session-id filter {ip access-group | mac access-group}
Parameters
| session-id | Indicates the session number. |
| ip access-group acl-id/acname | Indicates the IP ACL include in the access group list. Enter an integer specifying an IP ACL number. |
| mac access-group acl-name | Indicates the MAC ACL to include in the access group list. |
| Ip-acl-name acl-name | Enter access-list name up to 31 characters in length. |
Default
The default is None.
Command Mode
Global Config
5-407 monitor session mode
Enable the selected port mirroring session to configure a probe and monitored port for monitor session (port monitoring).
A VLAN can be configured as the source to a session (all member ports of that VLAN are monitored). Remote port mirroring is configured through RSPAN VLAN ID. On the source switch, the destination can be configured as the RSPAN VLAN. On a destination switch, the source is configured as the RSPAN VLAN.
Note: The source and destination cannot be configured as remote on the same device.
The commands described below add a mirrored port (source port) to a session--identified by session-id. The session-id parameter is an integer value used to identify the session. The maximum number of sessions that can be configured stated as L7_MIRRORING_MAX_SESSIONS.
Rx monitors only ingress packets, while tx monitors only egress packets. If not specified rx tx , the destination port monitors both ingress and egress packets.
Note: Interfaces participating in VLAN and also LAG members, the VLAN cannot be assigned as a source VLAN for a Monitor session.
Remote port mirroring is configured through the RSPAN VLAN ID. At the source switch the destination is configured as RSPAN VLAN and at the destination switch the source is configured as RSPAN VLAN.
Note: Source and destination cannot be configured as a remote on the same device.
No command disables the selected port mirroring session.
monitor session session-id mode
no monitor session session-id mode
Parameters
| session-id | Indicates the session ID number (1 - 4). |
Default
The default is None.
Command Mode
Global Config
5-408 no monitor session
Configure the monitor session (port monitoring) designation from the source probe port, the destination monitored port and all VLANs. Once removed from the VLAN, a port must be added manually to the desired VLAN. Use the source interface slot/port parameter or destination interface to remove the specified interface from the port monitoring session. Use the mode parameter to disable the administrative mode of the session.
no monitor session session-id { destination[interface slot/port] | remote vlan} | filter {ip | mac } | mode | source }
Parameters
| session-id | Indicates the session number (1 – 4). |
| destination | Configure the probe interface. |
| interface slot/port | Enter an interface in slot/port format. |
| remote | Configure source as remote. |
| vlan | Configure monitoring on the VLAN. |
| Filter ip / mac | Configure filter. |
| mode | Enable/Disable port mirroring session. |
| source | Configure the source interface. |
Default
The default is None.
Command Mode
Global Config
5-409 no monitor
Removes all the source and destination ports and restores the default for mirroring session mode for all the configured sessions.
no monitor
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-410 remote-span
Identified the VLAN as the RSPAN VLAN.
No command clears the RSPAN information for the VLAN.
remote-span
no remote-span
Parameters
None
Default
The default is None.
Command Mode
VLAN Config
5-411 show monitor session
Display the Port monitoring information for a particular mirroring session.
Note: The session-id parameter is depicted by an integer value, the session-id parameter is always one (1).
show monitor {session session-id | all}
Parameters
| session session-id | Indicates the session ID number. |
| all | Show all sessions. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Switch)#show monitor session 1 | |||||||||||
| Session ID | Admin Mode | Probe Port | Src VLAN | Port | Mirrored Port | Ref RVLAN | Src RVLAN | Dst ACL | Type ACL | IP MAC | |
| 1 | Enable | 0/8 | 0/10 | Rx,Tx | |||||||
| (Switch)#show monitor session all | |||||||||||
| Session ID | Admin Mode | Probe Port | Src Port | Mirrored Port | Ref RVLAN | Src RVLAN | Dst ACL | Type ACL | IP MAC | ||
| 1 | Enable | 0/8 | 0/10 | Rx,Tx | |||||||
| 2 | Disable | 6 | 0/4 | 10 | 4 | ||||||
| 3 | Disable | 0/11 | 10 | 101 | |||||||
| 4 | Enable | 0/11 | 0/7 | Tx | |||||||
| (Switch)#show monitor session all | |||||||||||
| Session ID | Admin Mode | Probe Port | Src Port | Mirrored Port | Ref RVLAN | Src RVLAN | Dst ACL | Type ACL | IP MAC | ||
| 1 | Enable | 0/8 | 0/10 | Rx | |||||||
| 2 | Enable | 6 | Rx | 4 | |||||||
| 3 | Disable | 10 | Tx | ||||||||
| 4 | Disable | 0/11 | 0/7 | Tx | |||||||
(Switch)#show monitor session all
Session Admin Probe Src Mirrored Ref Src Dst Type IP MAC
ID Mode Port VLAN Port Port RVLAN RVLAN ACL ACL
1 Enable 0/15 0/4 11 Tx 4
2 Enable 0/3 0/15 Tx
3 Enable 0/15 0/20 10 Rx
4 Enable 0/11 0/15 Rx 10
(Switch)#show monitor session all
Session Admin Probe Src Mirrored Ref Src Dst Type IP MAC
ID Mode Port VLAN Port Port RRLAN RRLAN ACL ACL
1 Disable
2 Disable
3 Enable 0/16 3
4 Enable 0/11 0/16 Rx,Tx 10
(Switch)#show monitor session all
Session Admin Probe Src Mirrored Ref Src Dst Type IP MAC
ID Mode Port VLAN Port Port RRLAN RRLAN ACL ACL
1 Enable 1 0/4 15 4
2 Enable 0/15 2
3 Enable 3 0/20 10
4 Enable 0/11 0/16 Rx,Tx 10
Display Parameters
| Session ID | Integer identifying the session. |
| Admin Mode | Indicates Port Mirroring status: enabled or disabled for the session identified with session-id. |
| Probe Port | Identified probe port (destination port) for the session-id. |
| Src VLAN | Indicates mirrored status of all member ports |
| Mirrored Port | Identifies configured port as a mirrored (source port) for the session identified with session-id. |
| Ref. Port | Identifies the port carrying all the mirrored traffic at the source switch. |
| Src RVLAN | The configured source VLAN for the destination switch. |
| Dst RVLAN | Identifies the configured destination VLAN for the source switch. |
| Type | The configured direction of the source port for mirroring. |
| IP ACL | The IP access-list ID or name attached to the port mirroring session. |
MAC ACL
The MAC access-list name attached to the port mirroring session.
5-412 show vlan remote-span
Display the configured RSPAN VLAN.
show vlan remote-span
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an output example.
(Switch)#show vlan remote-span
Remote SPAN VLAN
100, 102, 201, 303
Static MAC Filtering
This section describes static MAC filtering configuration. Static MAC filtering allows you to configure destination ports for a static multicast MAC filter irrespective of the platform.
5-413 macfilter
Add a static MAC filter entry for the macaddr (MAC address) on the VLAN vlanid. The value of the macaddr parameter is defined as a 6-byte hexadecimal number with the following format b1:b2:b3:b4:b5:b6. The following are restricted MAC Addresses: 00:00:00:00:00:00, 01:80:C2:00:00:00 to 01:80:C2:00:00:0F, 01:80:C2:00:00:20 to 01:80:C2:00:00:21, and FF:FF:FF:FF:FF:FF. The vlanid parameter must identify a valid VLAN.
For current platforms, the following configurations are supported:
- Unicast MAC and source port
• Multicast MAC and source port
• Multicast MAC and destination port (only)
• Multicast MAC and source ports and destination ports
No command removes all filtering restriction and the static MAC filter entry for the MAC address macaddr on the VLAN vlanid. The macaddr parameter must be specified as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify a valid VLAN.
macfilter macaddr vlanid
no macfilter macaddr vlanid
Parameters
| macaddr | Indicates the MAC address. |
| vlanid | Enter a VLAN ID. (1-4093) |
Default
The default is None.
Command Mode
Global Config
5-414 macfilter adddest
Add a single or range of interfaces to the destination filter with macaddr (MAC filter) and vlanid (VLAN). The macaddr parameter must be specified as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify a valid VLAN.
Note: Configuring a destination port list is only valid for multicast MAC addresses.
No command removes a port from the destination filter set for the MAC filter with the given macaddr and VLAN of vlanid. The macaddr parameter must be specified as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify a valid VLAN.
macfilter adddest macaddr vlanid
no macfilter adddest macaddr vlanid
Parameters
| macaddr | Enter MAC address. |
| vlanid | Enter a VLAN ID (1-4093). |
Default
The default is None.
Command Mode
Interface Config
5-415 macfilter adddest all
Add all interfaces to the destination filter with macaddr (MAC filter) and vlanid (VLAN). The macaddr parameter must be specified as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify as a valid VLAN.
No command removes all ports defined by macaddr and vlanid from the destination filter. The macaddr parameter must be specified as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify as a valid VLAN.
macfilter adddest all macaddr vlanid
no macfilter adddest all macaddr vlanid
Parameters
| macaddr | Enter MAC address. |
| vlanid | Enter a VLAN ID (1-4093). |
Default
The default is None.
Command Mode
Global Config
5-416 macfilter addsrc
Add a single or range of interfaces to the source destination filter with macaddr (MAC filter) and vlanid (VLAN).. The macaddr parameter is defined by a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify as a valid VLAN.
No command removes a port from the source destination filter with macaddr (MAC filter) and vlanid (VLAN).. The macaddr parameter is defined by a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify as a valid VLAN.
macfilter addsrc macaddr vlanid
no macfilter addsrc macaddr vlanid
Parameters
| macaddr | Enter MAC address. |
| vlanid | Enter a VLAN ID (1-4093). |
| Default | |
| The default is None. | |
| Command Mode | |
| Interface Config | |
5-417 macfilter addsrc all
Add all interfaces using macaddr and vlanid to the source filter. The macaddr parameter must be defined as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must be identified as a valid VLAN.
No command removes all interfaces from the source filter as set by the MAC filter using the MAC address (macaddr) and VLAN (vlanid). You must specify the macaddr parameter as a 6-byte hexadecimal number in the format of b1:b2:b3:b4:b5:b6. The vlanid parameter must identify a valid VLAN.
macfilter addsrc all macaddr vlanid
no macfilter addsrc all macaddr vlanid
Parameters
| macaddr | Enter MAC address. |
| vlanid | Enter a VLAN ID (1-4093). |
Default
The default is None.
Command Mode
Global Config
5-418 show mac-address-table static
Display the Static MAC Filtering information for all Static MAC Filters. By specifying all, all Static MAC Filters in the system are displayed. Both macaddr and vlanid require a specified value for the system to display Static MAC Filter information only for that MAC address and VLAN.
Note: Only multicast address filters have destination port lists.
show mac-address-table static {macaddr vlanid | all}
Parameters
| macaddr | Enter MAC address. |
| vlanid | Enter a VLAN ID (1-4093). |
| all | Enter all for all Static MAC Filter entries. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch) (Interface 0/2)#show mac-address-table static all
MAC Address VLAN ID Source Port(s) Destination Port(s)
01:00:5E:00:00:01 1 0/1
01:00:5E:00:00:02 1 0/2
AA:BB:CC:DD:EE:FF 1
Display Parameters
| MAC Address | The static MAC filter entry address. |
| VLAN ID | The static MAC filter entry VLAN ID. |
| Source Port(s) | Displays the defined slot and port(s) for the source port filter sets. |
| Destination Port(s) | Displays the defined slot and port(s) for the destination port for this rule. |
5-419 show mac-address-table staticfiltering
Display the Static Filtering entries in the Multicast Forwarding Database (MFDB) table.
show mac-address-table staticfiltering
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch)#show mac-address-table staticfiltering
VLAN ID MAC Address Type Description Interfaces
00:01:01:00:5E:00:00:01 Static Mgmt Config Fwd: 0/1
00:01:01:00:5E:00:00:02 Static Mgmt Config
Display Parameters
| VLAN ID | The identifier for the VLAN for obtaining the MAC address. |
| MAC Address | The unicast MAC address designated for forwarding and or filtering information. The format is identified as 6 two-digit hexadecimal numbers separated by colons. |
| Type | Describes the type of entry: Static or Dynamic.Static entries are configured by the end user, while dynamic entries are added to the table as a result of a learned process or protocol. |
| Description | The text description of this multicast table entry. |
| Interfaces | The list of interfaces designated for forwarding (Fwd:) and filtering (Flt:). |
DHCP L2 Relay Agent Commands
Enable operation as a DHCP Layer 2 relay agent to relay DHCP requests from clients to a Layer 3 relay agent or server.
5-420 dhcp I2relay
Enable the DHCP Layer 2 Relay agent for a single or interface a range of interfaces in, or all interfaces. The function is only available if the DHCP L2 relay is enabled.
No command disables DHCP Layer 2 relay agent for an interface or range of interfaces.
dhcp I2relay
no dhcp I2relay
Parameters
None
Default
The default is None.
Command Mode
- Global Config
- Interface Config
5-421 dhcp l2relay trust
Configure a single or range of interfaces as trusted for Option-82 reception.
No command configures an interface to default (untrusted for Option-82 reception).
dhcp l2relay trust no dhcp l2relay trust
Parameters
None
Default
The default is Untrusted.
Command Mode
Interface Config
5-422 show dhcp l2relay all
Display the DHCP L2 Relay configuration summary.
show dhcp l2relay all
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switching)#show dhcp l2relay all
DHCP L2 Relay is Enabled.
Interface L2RelayMode TrustMode
0/1 Enabled untrusted
0/2 Enabled untrusted
0/4 Disabled trusted
...
3/64 Enabled untrusted
VLAN Id L2 Relay CircuitId Remoteld
5-423 show dhcp I2relay circuit-id vlan
Display DHCP circuit-id vlan configuration.
show dhcp l2relay circuit-id vlan vlan-list
Parameters
| vlan-list | Enter a VLAN ID identifier, range: 1-4093. A dash (-)specifies a range while a comma (,)separates VLAN IDs within a list. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch)#show dhcp 12relay circuit-id vlan 1
DHCP L2 Relay is Enabled.
DHCP Circuit-Id option is enabled on the following VLANs: 1
5-424 show dhcp l2relay interface
Displays DHCP L2 relay configuration specific to interfaces.
show dhcp l2relay interface {all | slot/port}
Parameters
| all | Display DHCP L2 Relay configuration for all interfaces. |
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switching)#show dhcp L2relay interface all
DHCP L2 Relay is Enabled.
Interface L2RelayMode TrustMode
0/2 Enabled untrusted
0/4 Disabled trusted
5-425 show dhcp l2relay remote-id vlan
Displays DHCP Remote-id vlan configuration.
show dhcp l2relay remote-id vlan vlan-list
Parameters
| vlan-list | Enter VLAN ID identifiers, range: 1 to 4093. A dash (-) specifies a range while a comma (,) separates VLAN IDs within a list. |
Default
The default is None.
Command Mode
Privileged EXEC
5-426 show dhcp l2relay stats interface
Display statistics specific to DHCP L2 Relay configured interface.
show dhcp l2relay stats interface {all | slot/port}
Parameters
| all | Display DHCP L2 Relay statistics for all interfaces. |
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switching)#show dhcp 12relay stats interface all
DHCP L2 Relay is Enabled.
Interface UntrustedServer UntrustedClient TrustedServer TrustedClient
MsgsWithOpt82 MsgsWithOpt82 MsgsWithOpt82 MsgsWithOpt82
0/1 0 0 0 0
0/2 0 0 3 7
0/3 0 0 0 0
0/4 0 12 0 0
0/5 0 0 0 0
0/6 3 0 0 0
0/7 0 0 0 0
0/8 0 0 0 0
0/9 0 0 0 0
0/10 0 0 0 0
5-427 show dhcp l2relay agent-option vlan
Display the DHCP L2 Relay Option-82 configuration for a specific VLAN.
show dhcp l2relay agent-option vlan vlan-range
Parameters
| vlan-range | Display configuration for DHCP circuit-id VLAN range. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switching)#show dhcp 12relay agent-option vlan 5-10
DHCP L2 Relay is Enabled.
VLAN Id L2 Relay CircuitId RemoteID
5 Enabled Enabled --NULL--
6 Enabled Enabled --NULL--
7 Enabled Disabled --NULL--
8 Enabled Disabled --NULL--
9 Enabled Disabled --NULL--
10 Enabled Disabled --NULL--
5-428 show dhcp l2relay vlan
Displays DHCP vlan configuration.
show dhcp l2relay vlan vlan-list
Parameters
| vlan-list | Enter VLAN ID identifier, range: 1 to 4093. A dash (-)specifies a range while a comma (,)separates VLAN IDs within a list. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch)#show dhcp 12relay vlan 2
DHCP L2 Relay is Enabled.
DHCP L2 Relay is enabled on the following VLANs: 2
5-429 clear dhcp l2relay statistics interface
Reset the DHCP L2 relay counters to zero. Specify a single or all port counters to clear.
clear dhcp I2relay statistics interface {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Clears DHCP L2 Relay statistics for all enabled interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
DHCP Client Commands
5-430 dhcp client vendor-id-option
Enable the inclusion of DHCP Option-60 and Vendor Class Identifier in the DHCP server transmitted requests.
No command disables the inclusion of DHCP Option-60 and Vendor Class Identifier in DHCP server.
dhcp client vendor-id-option string
no dhcp client vendor-id-option
Parameters
| string | Vendor-id suboption string of length <0 - 128> characters. |
Default
The default is None.
Command Mode
Global Config
5-431 dhcp client vendor-id-option-string
Set the DHCP Vendor Option-60 string to include requests transmitted to the DHCP server by the DHCP client.
No command clears DHCP Vendor Option-60 string.
dhcp client vendor-id-option-string string
no dhcp client vendor-id-option-string
Parameters
string
Vendor-id suboption string of length <0 - 128> characters.
Default
The default is None.
Command Mode
Global Config
5-432 show dhcp client vendor-id-option
Display the configured administration mode of the vendor-id-option and the vendor-id string to be included in Option-43 in DHCP requests.
show dhcp client vendor-id-option
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Switching)#show dhcp client vendor-id-option
DHCP Client Vendor Identifier Option.... Enabled DHCP Client Vendor Identifier Option String..... D-LINK OSClient.
DHCP Snooping Configuration Commands
This section describes DHCP Snooping configuration.
5-433 ip dhcp snooping
Enable DHCP Snooping globally.
No command to disable DHCP Snooping globally.
ip dhcp snooping no ip dhcp snooping
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-434 ip dhcp snooping vlan
Enable DHCP Snooping on a list of comma-separated VLAN ranges.
No command disables DHCP Snooping on VLANs.
ip dhcp snooping vlan vlan-list no ip dhcp snooping vlan vlan-list
Parameters
vlan-list
Indicates the VLAN list or list range.
Default
The default is Disabled.
Command Mode
Global Config
5-435 ip dhcp snooping verify mac-address
Enable verification of the source MAC address with the client hardware address in the received DCHP message.
No command disables verification of the source MAC address with the client hardware address.
ip dhcp snooping verify mac-address
no ip dhcp snooping verify mac-address
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-436 ip dhcp snooping database
Use this command to configure the persistent location of the DHCP Snooping database. This can be local or a remote file on a given IP machine.
ip dhcp snooping database {local | tftp://hostIP/filename | write delay}
Parameters
| local | Configure DHCP snooping binding URL in the form local. |
| tftp://hostIP/filename | Configure DHCP snooping binding URL in the form tftp://host/filename. |
| write delay | Configure DHCP snooping bindings store interval in <15> to <86400> seconds range. |
Default
The default is Local.
Command Mode
Global Config
5-437 ip dhcp snooping database write-delay
Use this command to configure the interval in seconds at which the DHCP Snooping database will be persisted. The interval value ranges from 15 to 86400 seconds.
Use the no command to set the write delay value to the default value.
ip dhcp snooping database write-delay 15-86400
no ip dhcp snooping database write-delay
Parameters
None.
Default
The default is 300 seconds.
Command Mode
Global Config
5-438 ip dhcp snooping binding
Use this command to configure static DHCP Snooping binding.
Use the no command to remove the DHCP static entry from the DHCP Snooping database.
ip dhcp snooping binding mac-address vlan vlan-id ip address interface interface-id no ip dhcp snooping binding mac-address vlan vlan-id ip address interface interface-id
Parameters
| mac-address | Enter MAC address. |
| vlan vlan-id | Indicates the VLAN ID. |
| ip address | Indicates the IP address for the location. |
| interface interface-id | Indicates the interface to specify. |
Default
The default is None.
Command Mode
Global Config
5-439 ip verify binding
Use this command to configure static IP source guard (IPSG) entries.
Use the no command to remove the IPSG static entry from the IPSG database.
ip verify binding mac-address vlan vlan-id ip address interface interface-id no ip verify binding mac-address vlan vlan-id ip address interface interface-id
Parameters
| mac-address | Enter MAC address. |
| vlan vlan-id | Indicates the VLAN ID. |
| ip address | Indicates the IP address for the location. |
| interface interface-id | Indicates the interface to specify. |
Default
The default is None.
Command Mode
Global Config
5-440 ip dhcp snooping limit
Use this command to control the rate at which the DHCP Snooping messages come on an interface or range of interfaces. By default, rate limiting is disabled. When enabled, the rate can range from 0 to 300 packets per second. The burst level range is 1 to 15 seconds.
Use the no command to set the rate at which the DHCP Snooping messages come, and the burst level, to the defaults.
ip dhcp snooping limit {rate pps [burst interval seconds]} no ip dhcp snooping limit
Parameters
| pps | Enter rate in the range <0-300> pps. |
| seconds | (Optional) Enter burst interval in the range <1-15> seconds. |
Default
The default is Disabled (no limit).
Command Mode
Interface Config
5-441 ip dhcp snooping log-invalid
Use this command to control the logging DHCP messages filtration by the DHCP Snooping application.
This command can be used to configure a single interface or a range of interfaces.
Use the no command to disable the logging DHCP messages filtration by the DHCP Snooping application.
ip dhcp snooping log-invalid
no ip dhcp snooping log-invalid
Parameters
None.
Default
The default is Disabled.
Command Mode
Interface Config
5-442 ip dhcp snooping trust
Use this command to configure an interface or range of interfaces as trusted.
Use the no command to configure the port as untrusted.
ip dhcp snooping trust
no ip dhcp snooping trust
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-443 ip verify source
Use this command to configure the IPSG source ID attribute to filter the data traffic in the hardware. Source ID is the combination of IP address and MAC address. Normal command allows data traffic filtration based on the IP address. With the “port-security” option, the data traffic will be filtered based on the IP and MAC addresses.
This command can be used to configure a single interface or a range of interfaces.
Use the no command to disable the IPSG configuration in the hardware. You cannot disable port-security alone if it is configured.
ip verify source {port-security}
no ip verify source
Parameters
| port-security | Filter incoming packets by source MAC address. |
| Default | |
| The default is None. | |
| Command Mode | |
| Interface Config |
5-444 show ip dhcp snooping
Use this command to display the DHCP Snooping global configurations and per port configurations.
show ip dhcp snooping
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip dhcp snooping
DHCP snooping is Enabled
DHCP snooping source MAC verification is enabled
DHCP snooping is enabled on the following VLANs:
11 - 30, 40
Interface Trusted Log Invalid Pkts
0/1 Yes No
0/2 No Yes
0/3 No Yes
0/4 No No
Display Parameters
| Interface | The interface for which data is displayed. |
| Trusted | If it is enabled, DHCP Snooping considers the port as trusted. The factory default is disabled. |
| Log Invalid Pkts | If it is enabled, DHCP Snooping application logs invalid packets on the specified interface. |
5-445 show ip dhcp snooping binding
Use this command to display the DHCP Snooping binding entries. To restrict the output, use the following options:
- Dynamic: Restrict the output based on DCHP snooping.
• Interface: Restrict the output based on a specific interface.
• Static: Restrict the output based on static entries.
• VLAN: Restrict the output based on VLAN.
show ip dhcp snooping binding [{static | dynamic}] [interface slot/port] [vlan id]
Parameters
| static | (Optional) Restrict the output based on static entries. |
| dynamic | (Optional) Restrict the output based on DHCP snooping. |
| interface slot/port | (Optional) Restrict the output based on a specific interface. |
| vlan id | (Optional) Restrict the output based on VLAN. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip dhcp snooping binding
Total number of bindings: 2
MAC Address IP Address VLAN Interface Type Lease time (Secs)
00:02:B3:06:60:80 210.1.1.3 10 0/1 86400
00:0F:FE:00:13:04 210.1.1.4 10 0/1 86400
Display Parameters
| MAC Address | Displays the MAC address for the binding that was added. The MAC address is the key to the binding database. |
| IP Address | Displays the valid IP address for the binding rule. |
| VLAN | The VLAN for the binding rule. |
| Interface | The interface to add a binding into the DHCP snooping interface. |
| Type | Binding type; statically configured from the CLI or dynamically learned. |
| Lease time (sec) | The remaining lease time for the entry. |
5-446 show ip dhcp snooping database
Use this command to display the DHCP Snooping configuration related to the database persistency.
show ip dhcp snooping database
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip dhcp snooping database
agent url: /10.131.13.79:/sail.txt
write-delay: 5000
Display Parameters
| Agent URL | Bindings database agent URL. |
| Write Delay | The maximum waiting period in seconds before writing to the DHCP Snooping database. The value range: 15 – 86400 seconds (default: 300). |
5-447 show ip dhcp snooping interfaces
Use this command to show the DHCP Snooping status of the interfaces.
show ip dhcp snooping interfaces
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip dhcp snooping interfaces
Interface Trust State Rate Limit (pps) Burst Interval (seconds)
0/1 No 15 1
0/2 No 15 1
0/3 No 15 1
(Routing)#show ip dhcp snooping interfaces ethernet 0/15
Interface Trust State Rate Limit (pps) Burst Interval (seconds)
0/15 Yes 15 1
5-448 show ip dhcp snooping statistics
Use this command to list statistics for DHCP Snooping security violations on untrusted ports.
show ip dhcp snooping statistics
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip dhcp snooping statistics
Interface MAC Verify Failures Client Ifc Mismatch DHCP Server Msgs Rec'd
0/2 0 0 0
0/3 0 0 0
0/4 0 0 0
0/5 0 0 0
0/6 0 0 0
0/7 0 0 0
0/8 0 0 0
0/9 0 0 0
0/10 0 0 0
0/11 0 0 0
0/12 0 0 0
0/13 0 0 0
0/14 0 0 0
0/15 0 0 0
0/16 0 0 0
0/17 0 0 0
0/18 0 0 0
0/19 0 0 0
0/20 0 0 0
Display Parameters
| Interface | The IP address identifier for the interface (slot/port). |
| MAC Verify Failures | Failed message list for MAC and client HW address mismatch. |
| Client Ifc Mismatch | List of DHCP release and denial messages from varying ports. |
| DHCP Server Msgs Rec‘d | List of DHCP server messages from untrusted ports. |
5-449 clear ip dhcp snooping binding
Clear all DHCP Snooping bindings on a single or all interfaces.
clear ip dhcp snooping binding [interface slot/port]
Parameters
| interface slot/port | (Optional) Restrict clear to a specific interface. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
5-450 clear ip dhcp snooping statistics
Clear all DHCP Snooping statistics.
clear ip dhcp snooping statistics
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
5-451 show ip verify source
Display IPSG configurations on all ports.
show ip verify source
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing)#show ip verify source
Interface Filter Type IP Address MAC Address Vlan
0/1 ip-mac 210.1.1.3 00:02:B3:06:60:80 10
0/1 ip-mac 210.1.1.4 00:0F:FE:00:13:04 10
Display Parameters
| Interface | Interface address in slot/port format. |
| Filter Type | List one of two value types:ip-mac:User has configured MAC address filtering on this interface.ip:Only IP address filtering on this interface. |
| IP Address | IP address of the interface. |
| MAC Address | Configure MAC address filtering to display the parameter. Disabling port security sets MAC Address to “permit-all” setting. |
| VLAN | The VLAN for the binding rule. |
5-452 show ip verify interface
Display the IPSG filter type for a specific interface.
show ip verify interface slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Routing)#show ip verify interface 0/1
Interface Filter Type
0/1 N/A
Display Parameters
| Interface | Interface address identifier (slot/port format) |
| Filter Type | Two values are available:ip-mac:User has configured MAC address filtering on this interface.ip:Only IP address filtering on this interface. |
5-453 show ip source binding
Display the IPSG bindings.
show ip source binding [{static | dynamic}] [interface slot/port] [vlan id]
Parameters
| static | Restrict the output based on static entries. |
| dhcp-snooping | Restrict the output based on DHCP snooping. |
| interface slot/port | Restrict the output based on a specific interface. |
| vlan id | Restrict the output based on VLAN. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing)#show ip source binding
MAC Address IP Address Type Vlan Interface
00:00:00:00:00:08 1.2.3.4 dhcp-snooping 2 0/1
00:00:00:00:00:09 1.2.3.4 dhcp-snooping 3 0/1
00:00:00:00:00:0A 1.2.3.4 dhcp-snooping 4 0/1
Display Parameters
| MAC Address | The MAC address for the added entry. |
| IP Address | The IP address of the added entry. |
| Type | Entry type definition, static or dynamic. |
| VLAN | List entry VLAN identifier. |
| Interface | IP address identifier (slot/port format). |
Dynamic ARP Inspection Commands
The Dynamic ARP Inspection (DAI) feature is designed to reject invalid and malicious ARP packets. The DAI function prevents class of man-in-the-middle attacks.
DAI relies on DHCP snooping, which relies on DHCP message exchanges and builds a binding database of settings ( MAC address, IP address, VLAN, and interface .
When enabled, the MAC and sender IP addresses of ARP packets not matching entry in the DHCP snooping bindings database are dropped.
5-454 ip arp inspection vlan
Enable Dynamic ARP Inspection on a list of comma-separated VLAN ranges.
No command disables Dynamic ARP Inspection on a list of comma-separated VLAN ranges.
ip arp inspection vlan vlan-list
no ip arp inspection vlan vlan-list
Parameters
| vlan-list | Enter VLAN IDs in range <1-4093>. Use '-' to specify a range, or ',' to separate VLAN IDs in a list. Spaces and zeros are not permitted. |
Default
The default is Disabled.
Command Mode
Global Config
5-455 ip arp inspection vlan logging
Enable logging of invalid ARP packets on a list of comma-separated VLAN ranges.
No command disables logging of invalid ARP packets on a list of comma-separated VLAN ranges.
ip arp inspection vlan vlan-list {logging}
no ip arp inspection vlan vlan-list {logging}
Parameters
| vlan-list | Enter VLAN IDs in range <1-4093>. Use '-' to specify a range, or ',' to separate VLAN IDs in a list. Spaces and zeros are not permitted. |
| logging | Enable Logging of invalid ARP packets. |
Default
The default is Disabled.
Command Mode
Global Config
5-456 ip arp inspection validate
Enable additional validation checks, such as source-mac validation, destination-mac validation, and ip address validation on the received ARP packets.
The latest command settings override current configuration.
No command disables the additional validation checks on the received ARP packets.
ip arp inspection validate {{src-mac} [dst-mac] [ip]}
no ip arp inspection validate {[src-mac] [dst-mac] [ip]}
Parameters
| src-mac | (Optional) Configure Source MAC validation. |
| dst-mac | (Optional) Configure Destination MAC validation. |
| ip | (Optional) Configure IP address validation. |
Default
The default is Disabled.
Command Mode
Global Config
5-457 ip arp inspection trust
Configure a single or range of interfaces as trusted for Dynamic ARP Inspection.
No command configures an interface as untrusted for Dynamic ARP Inspection.
ip arp inspection trust
no ip arp inspection trust
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-458 ip arp inspection filter
Configure the ARP ACL used to filter invalid ARP packets on a list of comma-separated VLAN ranges. If the static setting is identified, no matching packets a permit statement are dropped without consulting the DHCP snooping bindings.
No command unconfigures the ARP ACL used to filter invalid ARP packets on a list of comma-separated VLAN ranges.
ip arp inspection filter name vlan vlan-list [static]
no ip arp inspection filter name vlan vlan-list [static]
Parameters
| name | Enter arp access-list name <1-31> alphanumeric characters in length. |
| vlan vlan-list | Configure ARP ACL filter for a VLAN List. |
| static | (Optional) Configure if ARP ACL filter is static on a VLAN. |
Default
The default is None.
Command Mode
Global Config
5-459 arp access-list
Create an ARP ACL.
No command deletes a configured ARP ACL.
arp access-list name
no arp access-list name
Parameters
| name | Enter arp access-list name <1-31> alphanumeric characters in length. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
5-460 permit ip host mac host (ARP Access-list Config)
Configure valid IP and MAC address combination rules used in ARP packet validation. No command deletes a rule for a valid IP and MAC combination.
permit ip host sender-ip mac host sender-mac no permit ip host sender-ip mac host sender-mac
Parameters
| sender-ip | Enter IP address in the ARP ACL rule. |
| sender-mac | Enter MAC address in the ARP ACL rule. |
Default
The default is None.
Command Mode
ARP Access-list Config
5-461 show ip arp inspection
Display the Dynamic ARP Inspection global configuration and configuration on all the VLANs. To display the global and VLAN configuration the VLAN-list can be designated. The global configuration includes the source mac validation, destination mac validation and invalid IP validation information.
show ip arp inspection [interfaces slot/port | statistics | vlan vlan-list]
Parameters
| interfaces slot/port | Display Dynamic ARP Inspection Interface configuration. |
| statistics | Display Dynamic ARP Inspection Statistics. |
| vlan vlan-list | Display Dynamic ARP Inspection VLAN configuration. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing) #show ip arp inspection vlan 10-12
Source Mac Validation : Disabled
Destination Mac Validation : Disabled
IP Address Validation : Disabled
Vlan Configuration Log Invalid ACL Name Static Flag
---- ---- ---- ---- ----
10 Enabled Enabled H2 Enabled
11 Disabled Enabled
12 Enabled Disabled
Display Parameters
| Source MAC Validation | Displays status of Source MAC Validation of ARP frame: enabled or disabled. |
| Destination MAC Validation | Displays status of Destination MAC Validation: enabled or disabled. |
| IP Address Validation | Displays status of IP Address Validation: enabled or disabled. |
| VLAN | The VLAN ID for each displayed row. |
| Configuration | Displays whether DAI is enabled or disabled on the VLAN. |
| Log Invalid | Displays whether logging of invalid ARP packet is enabled on the VLAN. |
| ACL Name | The ARP ACL Name, if configured on the VLAN. |
| Static Flag | If the ARP ACL is configured static on the VLAN. |
5-462 show ip arp inspection statistics
Display the statistics of the ARP packets processed by Dynamic ARP Inspection.
show ip arp inspection statistics [vlan vlan-list]
Parameters
| vlan vlan-list | (Optional) Display Dynamic ARP Inspection Statistics on a VLAN List. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example for the command show ip arp inspection statistics which lists the summary of forward and dropped ARP packets on all DAI-enabled VLANs.
(Routing)#show ip arp inspection statistics
VLAN Forwarded Dropped
10 90 14
20 10 3
The following is a CLI display output example for the command show ip arp inspection statistics vlan vlan-list.
(Routing)#show ip arp inspection statistics vlan 1
| VLAN | DHCP | ACL | DHCP | ACL | Bad | Src | Bad | Dest | Invalid |
| Drops | Drops | Permits | Permits | MAC | MAC | IP | |||
| ---- | ---- | ---- | ---- | ---- | |||||
| 10 | 11 | 1 | 65 | 25 | 1 | 1 | 0 | ||
| 20 | 1 | 0 | 8 | 2 | 0 | 1 | |||
Display Parameters
| VLAN | The VLAN ID identifier. |
| Forwarded | The total number of valid ARP packets forwarded through VLAN. |
| Dropped | The total number of not valid ARP packets dropped in this VLAN. |
| DHCP Drops | The number of packets dropped resulting from DHCP snooping binding database match failure. |
| ACL Drops | The number of packets dropped resulting from ARP ACL rule match failure. |
| DHCP Permits | The number of packets permitted resulting from DHCP snooping binding database match. |
| ACL Permits | The number of packets permitted resulting from ARP ACL rule match. |
| Bad Src MAC | The number of packets dropped resulting from Source MAC validation failure. |
| Bad Dest MAC | The number of packets dropped resulting from Destination MAC validation failure. |
| Invalid IP | The number of packets dropped resulting from invalid IP checks. |
5-463 clear ip arp inspection statistics
Reset Dynamic ARP Inspection statistics for all VLANs.
clear ip arp inspection statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-464 show ip arp inspection interfaces
Display the Dynamic ARP Inspection configuration on all the DAI-enabled interfaces. An enabled interface is defined as having at least one DAI enabled VLAN. Given a slot/port interface argument, the command displays the values for that interface.
show ip arp inspection interfaces [slot/port]
Parameters
| slot/port | (Optional) Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing)#show ip arp inspection interfaces
Interface Trust State Rate Limit Burst Interval
0/1 Untrusted 15 1
0/2 Untrusted 10 10
Display Parameters
| Interface | The interface identifier. |
| Trust State | Displays state: trusted or untrusted for DAI. |
| Rate Limit | The configured rate limit value in packets per second. |
| Burst Interval | The configured burst interval value in seconds. |
5-465 show arp access-list
Display the configured ARP ACLs - the rules name ARP ACL.
show arp access-list [acl-name]
Parameters
acl-name
(Optional) Display ARP Access list configuration.
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is a CLI display output example.
(Routing)#show arp access-list
ARP access list H2
permit ip host 1.1.1.1 mac host 00:01:02:03:04:05
permit ip host 1.1.1.2 mac host 00:03:04:05:06:07
ARP access list H3
ARP access list H4
permit ip host 2.1.1.2 mac host 00:03:04:05:06:08
IGMP Snooping Configuration Commands
This section IGMP snooping configuration. The supported IGMP Versions are 1, 2, and 3. The feature conserves bandwidth allowing IP multicast traffic forwarding to connected hosts that request multicast traffic.
5-466 set igmp
Enable IGMP Snooping on the system (Global Config Mode), a single or a range of interfaces. Configuration is also available to enable IGMP snooping on a single or all part participating VLANs.
The IGMP application supports the following:
- Validation of the IP header checksum (as well as the IGMP header checksum) and discarding of the frame upon checksum error.
- Maintain forwarding table, MAC address to the IP address.
- Flooding of unregistered multicast data packets to all ports in the VLAN.
No command disables IGMP Snooping, a single or a range of interfaces, or a VLAN.
set igmp [vlan_id]
no set igmp [vlan_id]
Parameters
| vlan_id | (Optional) Indicates the VLAN identifier. |
| Default | |
| The default is Disabled. | |
| Command Mode | |
| VLAN Config | |
5-467 set igmp header-validation
Enable header validation for IGMP messages.
When header validation is enabled, IGMP Snooping scans:
- The time-to-live (TTL) field in the IGMP header and drops packets where TTL does not equal 1. The TTL field should always be set to 1 in the headers of IGMP reports and queries.
- Router alert option (9404) in the IP packet header of the IGMPv2 message and drops packets that do not include this option.
- Router alert option (9404) and ToS Byte = 0xC0 (Internet Control) in the IP packet header of IGMPv3 message and drops packets that do not include these options.
No command disables header validation for IGMP messages.
set igmp header-validation
no set igmp header-validation
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-468 set igmp interfacemode
Enable IGMP Snooping on all interfaces. When IGMP Snooping is enabled and the interface routing is enabled or if it is a member of a port-channel (LAG) the IGMP Snooping functionality is disabled.
No command disables IGMP Snooping on all interfaces.
set igmp interfacemode
no set igmp interfacemode
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-469 set igmp fast-leave
Enable or disable IGMP Snooping fast-leave admin mode on a single or range interfaces or a VLAN. Enable fast-leave to allow for the immediate remove the layer 2 LAN interface from its forwarding table entry upon receiving an IGMP leave message for that multicast group without first sending out MAC-based general queries to the interface.
No command disables IGMP Snooping fast-leave admin mode on selected interfaces.
set igmp fast-leave [vlan_id]
no set igmp fast-leave [vlan_id]
Parameters
vlan_id
(Optional) Indicates the VLAN identifiations.
Default
The default is Disabled.
Command Mode
- Interface Config
- VLAN Config
5-470 set igmp groupmembership-interval
Set the IGMP Group Membership Interval time on a VLAN, one interface, a range of interfaces, or all interfaces. The Group Membership Interval time is the amount of time in seconds for a report from a group on a particular interface before deleting the interface from the entry. The value must be greater than the IGMPv3 Maximum Response time value, range: 2 to 3600 seconds.
No command sets the IGMPv3 Group Membership Interval time to the default value.
set igmp groupmembership-interval [vlan_id] 2-3600
no set igmp groupmembership-interval [vlan_id]
Parameters
| vlan_id | (Optional) Indicates the VLAN identifiations. |
Default
The default is 260 seconds.
Command Mode
- Interface Config
- Global Config
- VLAN Config
5-471 set igmp maxresponse
Sets the IGMP Maximum Response time for the system, on a particular interface or VLAN, or on a range of interfaces. The Maximum Response time is the waiting period in seconds after sending a query on an interface because it did not receive a report for a particular group in that interface. This value must be less than the IGMP Query Interval time value. The range is 1 to 25 seconds.
No command sets the max response time (on the interface or VLAN) to the default value.
set igmp maxresponse [vlan_id] 1-25
no set igmp maxresponse [vlan_id]
Parameters
| vlan_id | (Optional) Indicates the VLAN identification. |
Default
The default is 10 seconds.
Command Mode
- Interface Config
- Global Config
- VLAN Config
5-472 set igmp mcrtrexpiretime
Set the Multicast Router Present Expiration time. The time is set for the system, on a particular interface or VLAN, or on a range of interfaces. The range is 0 to 3600 seconds, whereas a value of 0 indicates no expiration time.
No command sets the Multicast Router Present Expiration time to 0. The time is set for the system, on a particular interface or a VLAN.
set igmp mcrtrexpiretime [vlan_id] 0-3600
no set igmp mcrtrexpiretime [vlan_id]
Parameters
| vlan_id | (Optional) Indicates the VLAN identification. |
| Default | |
| The default is 0. | |
| Command Mode | |
| • Interface Config• Global Config• VLAN Config | |
5-473 set igmp mrouter
Configures the VLAN ID (vlan_id) that has the multicast router mode enabled.
No command disables multicast router mode for a particular VLAN ID (vlan_id).
set igmp mrouter vlan_id
no set igmp mrouter vlan_id
Parameters
| vlan_id | (Optional) Indicates the VLAN identification. |
| Default | |
| The default is None. | |
| Command Mode | |
| Interface Config |
5-474 set igmp mrouter interface
Configures the interface or range of interfaces as a multicast router interface. When configured as a multicast router interface, the interface is treated as a multicast router interface in all VLANs.
No command disables the status of the interface as a statically configured multicast router interface.
set igmp mrouter interface
no set igmp mrouter interface
Parameters
None.
Default
The default is Disabled.
Command Mode
Interface Config
5-475 set igmp report-suppression
Suppress the IGMP reports on a given VLAN ID. In order to optimize the number of reports traversing the network with no added benefits, a Report Suppression mechanism is implemented. When more than one client responds to an MGMD query for the same Multicast Group address within the max-response-time, only the first response is forwarded to the query and others are suppressed at the switch.
No command returns the system to default.
set igmp report-suppression vlan_id
no set igmp report-suppression
Parameters
| vlan_id | (Optional) Indicates the VLAN identification. Range is 1 to 4093. |
Default
The default is Disabled.
Command Mode
VLAN Config
Example
The following is a command example.
(Routing)#vlan database
(Routing)(Vlan)#set igmp report-suppression 1
5-476 show igmpsnooping
Display IGMP Snooping information for a given slot/port or VLAN. Configured information is displayed whether or not IGMP Snooping is enabled.
show igmpsnooping [slot/port | vlan_id]
Parameters
| slot/port | Enter an interface in slot/port format. |
| vlan_id | (Optional) Indicates the VLAN identification. Range is 1 to 4093. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a CLI display output example.
(Routing)#show igmpsnooping 1
VLAN ID.... 1
IGMP Snooping Admin Mode.... Enabled
Fast Leave Mode.... Disabled
Group Membership Interval (secs).... 260
Maximum Response Time (secs).... 10
Multicast Router Expiry Time (secs).... 0
Report Suppression Mode.... Enabled
Display Parameters
When the optional argument slot/port or vlan_id are not used, the command displays the following information:
| Admin Mode | Indicates active status for IGMP Snooping. |
| Multicast Control Frame Count | The number of multicast control frames processed by the CPU. |
| Interface Enabled for IGMP Snooping | The list of enabled interfaces on IGMP Snooping. |
| VLANS Enabled for IGMP Snooping | The list of enabled VLANs on IGMP Snooping. |
When you specify the slot/port values, the following information appears:
| IGMP Snooping Admin Mode | Indicates active status of IGMP Snooping. |
| Fast Leave Mode | Indicates active status of IGMP Snooping Fast-leave. |
| Group Membership Interval | The waiting period in seconds a report from a particular group on a particular interface before deleting the interface from the entry. This value may be configured. |
| Maximum Response Time | The waiting period after it sends a query on an interface because it did not receive a report for a particular group on that interface. The value is configurable. |
| Multicast Router Expiry Time | The waiting period before removing an interface from the list of interfaces with multicast routers attached. The interface is removed if a query is not received. The value is configurable. |
When you specify a value for vlan_id, the following information appears:
| VLAN ID | The VLAN ID. |
| IGMP Snooping Admin Mode | Indicates whether IGMP Snooping is active on the VLAN. |
| Fast Leave Mode | Indicates whether IGMP Snooping Fast-leave is active on the VLAN. |
| Group Membership Interval (secs) | The waiting period for a report from a particular group on a particular interface, which is participating in the VLAN, before deleting the interface from the entry. This value may be configured. |
| Maximum Response Time (secs) | The waiting period after it sends a query on an interface, participating in the VLAN, because it did not receive a report for a particular group on that interface. This value may be configured. |
| Multicast Router Expiry Time (secs) | The waiting period before removing an interface that is participating in the VLAN from the list of interface with multicast routers attached. The interface is removed if a query is not received. This value may be configured. |
| Report Suppression Mode | Indicates whether IGMP reports (set by the command “set igmp report-suppression”) in enabled or not. |
5-477 show igmpsnooping mrouter interface
Display information about statically configured ports
show igmpsnooping mrouter interface slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show igmpsnooping mrouter interface 0/1
Slot/Port.... 0/1
Multicast Router Attached.... Disable
Display Parameters
| Interface | The port on which multicast router information is being displayed. |
| Multicast Router Attached | Indicates whether multicast router is statically enabled on the interface. |
| VLAN ID | The list of VLANs of which the interface is a member. |
5-478 show igmpsnooping mrouter vlan
Display statically configured port information.
show igmpsnooping mrouter vlan slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show igmpsnooping mrouter vlan 0/1
Slot/Port.... 0/1
VLAN ID.... 1
Display Parameters
| Interface | The port on which multicast router information is being displayed. |
| VLAN ID | The list of VLANs of which the interface is a member. |
5-479 show igmpsnooping ssm
Display information about Source Specific Multicasting (SSM) by entry, group, or statistics. SSM delivers multicast packets to receivers that originated from a source address specified by the receiver SSM is only available with IGMPv3 and MLDv2.
show igmpsnooping ssm {entries | groups I stats}
Parameters
| entries | Display source specific multicast forwarding database. |
| groups | Display IGMP SSM group membership information. |
| stats | Display statistics of IGMP snooping SSMFDB. |
Default
The default is None.
Command Mode
Privileged EXEC
5-480 show mac-address-table igmpsnooping
Displays the IGMP Snooping entries in the MFDB table.
show mac-address-table igmpsnooping
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| VLAN ID | The VLAN identified as the source of the MAC address. |
| MAC Address | A multicast MAC address for which the switch has forwarding or filtering information The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 01:23:45:67:89:AB. |
| Type | The type of the entry, static or dynamic. |
| Description | The text description of this multicast table entry. |
| Interfaces | The list of interfaces that are designated for forwarding (Fwd:) and filtering (Flt:). |
IGMP Snooping Querier Commands
The IGMP Querier requires the central switch or router that periodically queries all end-devices on the network to announce their multicast memberships. Essentially, the responses, known as IGMP reports, maintains updates with the current multicast group membership on a port-by-port basis.
5-481 set igmp querier
Enable IGMP Snooping Querier on the system, using Global Config mode, or on a VLAN. The function allows you to specify the IP Address that the Snooping Querier switch should use as a source address while generating periodic queries.
Note: Querier IP Addresses assigned as a VLAN take preference over global configuration.
IGMP Snooping Querier supports sending periodic general queries on the VLAN to solicit membership reports.
No command disables IGMP Snooping Querier on the system. Use the optional address parameter to reset the querier address to 0.0.0.0.
set igmp querier [address ipv4_address]
no set igmp querier [address ipv4_address]
Parameters
| address ipv4_address | (Optional) Indicates the Querier IPv4 address. |
| DefaultThe default is Disabled. | |
| Command ModeGlobal ConfigVLAN Mode | |
5-482 set igmp querier query-interval
Set the IGMP Querier Query Interval time. It is the amount of time in seconds that the switch waits before sending another general query.
No command sets the IGMP Querier Query Interval time to default.
set igmp querier query-interval 1-1800
no set igmp querier query-interval
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-483 set igmp querier timer expiry
Set the IGMP Querier timer expiration period. It is the time period that the switch remains in Non-Querier mode once it has discovered that there is a Multicast Querier in the network.
No command sets the IGMP Querier timer expiration period to default.
set igmp querier timer expiry 60-300
no set igmp querier timer expiry
Parameters
None
Default
The default is 60 seconds.
Command Mode
Global Config
5-484 set igmp querier version
Set the IGMP version of the query that the snooping switch is going to send periodically.
No command sets the IGMP Querier version to its default value.
set igmp querier version 1-2
no set igmp querier version
Parameters
None
Default
The default is 1.
Command Mode
Global Config
5-485 set igmp querier election participate
Use this command to enable the Snooping Querier to participate in the Querier Election process when it discovers the presence of another Querier in the VLAN. When this mode is enabled, if the Snooping Querier finds that the other Querier's source address is better (less) than the Snooping Querier's address, it stops sending periodic queries. If the Snooping Querier wins the election, then it will continue sending periodic queries.
Use the no command to set the Snooping Querier not to participate in querier election but go into non-querier mode as soon as it discovers the presence of another querier in the same VLAN.
set igmp querier election participate
no set igmp querier election participate
Parameters
None
Default
The default is Disabled.
Command Mode
VLAN Config
5-486 show igmpsnooping querier
Display IGMP Snooping Querier information. Configured information is displayed whether or not IGMP Snooping Querier is enabled.
show igmpsnooping querier [{detail | vlan vlanid}]
Parameters
| detail | (Optional) Display IGMP Snooping Querier detailed information. |
| vlan vlanid | (Optional) Display IGMP Snooping Querier VLAN information. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show igmpsnooping querier
Global IGMP Snooping querier status
IGMP Snooping Querier Mode..... Enable
Querier Address..... 0.0.0.0
IGMP Version..... 2
Querier Query Interval..... 60
Querier Expiry Interval..... 125
Display Parameters
When the optional argument vlanid is not used, the command displays the following information
| Admin Mode | Indicates whether or not IGMP Snooping Querier is active on the switch. |
| Admin Version | The version of IGMP that will be used while sending out the queries. |
| Querier Address | The IP Address which will be used in the IPv4 header while sending out IGMP queries. It can be configured using the appropriate command. |
| Query Interval | The amount of time in seconds that a Snooping Querier waits before sending out the periodic general query. |
| Querier Timeout | The amount of time to wait in the Non-Querier operational state before moving to a Querier state. |
When you specify a value for vlanid, the following additional information appears.
| VLAN Admin Mode | Indicates whether IGMP Snooping Querier is active on the VLAN. |
| VLAN Operational State | Indicates whether IGMP Snooping Querier is in “Querier” or “Non-Querier” state. When the switch is in Querier state, it will send out periodic general queries. When in Non-Querier state, it will wait for moving to Querier state and does not send out any queries. |
| VLAN Operational Max Response Time | Indicates the time to wait before removing a Leave from a host upon receiving a Leave request. This value is calculated dynamically from the Queries received from the network. If the Snooping Switch is in Querierstate, then it is equal to the configured value. |
| Querier Election Participation | Indicates whether the IGMP Snooping Querier participates in querier election if it discovers the presence of a querier in the VLAN. |
| Querier VLAN Address | The IP address will be used in the IPv4 header while sending out IGMP queries on this VLAN. It can be configured using the appropriate command. |
| Operational Version | The version of IPv4 will be used while sending out IGMP queries on this VLAN. |
| Last Querier Address | Indicates the IP address of the most recent Querier from which a Query was received |
| Last Querier Version | Indicates the IGMP version of the most recent Querier from which a Query was received on this VLAN. |
When the optional argument detail is used, the command shows the global information and the information for all Querier-enabled VLANs
MLD Snooping Commands
This section describes commands used for MLD Snooping. In IPv4, Layer 2 switches can use IGMP Snooping to limit the flooding of multicast traffic by dynamically configuring Layer 2 interfaces so that multicast traffic is forwarded only to those interfaces associated with IP multicast addresses. In IPv6, MLD Snooping performs a similar function. With MLD Snooping, IPv6 multicast data is selectively forwarded to a list of ports that want to receive the data, instead of being flooded to all ports in a VLAN. This list is constructed by snooping IPv6 multicast control packets.
5-487 set mld
This command enables MLD Snooping on the system (Global Config Mode) or an Interface (Interface Config Mode). This command also enables MLD Snooping on a particular VLAN and enables MLD Snooping on all interfaces participating in a VLAN.
If an interface has MLD Snooping enabled and you enable this interface for routing or enlist it as a member of a port-channel (LAG), MLD Snooping functionality is disabled on that interface. MLD Snooping functionality is re-enabled if you disable routing or remove port channel (LAG) membership from an interface that has MLD Snooping enabled.
No command disables MLD Snooping on the system.
set mld vlanid
no set mld vlanid
Parameters
| vlanid | Display MLD VLAN information. |
Default
The default is Disabled.
Command Mode
- Global Config
- Interface Config
- VLAN Mode
5-488 set mld interfacemode
Enable MLD Snooping on all interfaces. When the interface is enabled for MLD Snooping and routing or it is enlisted as a member of a port-channel (LAG), MLD Snooping functionality is disabled.
No command disables MLD Snooping on all interfaces.
set mld interfacemode
no set mld interfacemode
Parameters
None.
Default
The default is Disabled.
Command Mode
Global Config
5-489 set mld fast-leave
Use this command to enable MLD Snooping fast-leave admin mode on a selected interface or VLAN. Enabling fast-leave allows the switch to immediately remove the Layer 2 LAN interface from its forwarding table entry upon receiving and MLD done message for that multicast group without first sending out MAC-based general queries to the interface.
Note: You should enable fast-leave admin mode only on VLANs where only one host is connected to each Layer 2 LAN port. This prevents the inadvertent dropping of the other hosts that were connected to the same layer 2 LAN port but were still interested in receiving multicast traffic directed to that group.
Note: Fast-leave processing is supported only with MLD version 1 hosts.
Use the no command to disable MLD Snooping fast-leave admin mode on a selected interface.
set mld fast-leave vlanid
no set mld fast-leave vlanid
Parameters
| vlanid | Display MLD VLAN information |
| DefaultThe default is Disable. | |
| Command ModeInterface ConfigVLAN Mode | |
5-490 set mld groupmembership-interval
Use this command to set the MLD Group Membership Interval time on a VLAN, one interface or all interfaces. The Group Membership Interval time is the amount of time in seconds that a switch waits for a report from a particular group on a particular interface before deleting the interface from the entry. This value must be greater than the MLDv2 Maximum Response time value. The range is 2 to 3600 seconds.
Use the no command to set the MLDv2 Group Membership Interval time to the default value.
set mld groupmembership-interval vlanid 2-3600
no set mld groupmembership-interval
Parameters
| vlanid | Display MLD group membership VLAN information |
| Default | |
| The default is 260. | |
| Command Mode | |
| • Global Config• Interface Config• VLAN Mode | |
5-491 set mld maxresponse
Use this command to set the MLD Maximum Response time for the system, on a particular interface or VLAN. The Maximum Response time is the amount of time in seconds that a switch will wait after sending a query on an interface because it did not receive a report for a particular group in that interface. This value must be less than the MLD Query Interval time value. The range is 1 to 65 seconds.
Use the no command to set the max response time (on the interface or VLAN) to the default value.
set mld maxresponse 1-65
no set mld maxresponse
Parameters
None
Default
The default is 10.
Command Mode
- Global Config
- Interface Config
- VLAN Mode
5-492 set mld mcrtexpiretime
Use this command to set the Multicast Router Present Expiration time. The time is set for the system, on a particular interface or VLAN. This is the amount of time in seconds that a switch waits for a query to be received on an interface before the interface is removed from the list of interfaces with multicast routers attached. The range is 0 to 3600 seconds. A value of 0 indicates an infinite timeout, i.e. no expiration.
Use the no command to set the Multicast Router Present Expiration time to 0. The time is set for the system, on a particular interface or a VLAN.
set mld mcrtexpiretime 0-3600
no set mld mcrtexpiretime
Parameters
Enter 0 to 3600 seconds.
Default
The default is 0.
Command Mode
- Global Config
- Interface Config
5-493 set mld mrouter
Use this command to configure the VLAN ID for the VLAN that has the multicast router attached mode enabled.
Use the no command to disable multicast router attached mode for a VLAN with a particular VLAN ID.
set mld mrouter vlanid
no set mld mrouter vlanid
Parameters
| vlanid | Enter a VLAN ID. |
| interface | Configure port as a static Multicast Router. |
Default
The default is None.
Command Mode
Interface Config
5-494 set mld mrouter interface
Use this command to configure the interface as a multicast router-attached interface. When configured as a multicast router interface, the interface is treated as a multicast router-attached interface in all VLANs.
Use the no command to disable the status of the interface as a statically configured multicast router-attached interface.
set mld mrouter interface
no set mld mrouter interface
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-495 show mldsnooping
Use this command to display MLD Snooping information. Configured information is displayed whether or not MLD Snooping is enabled.
show mldsnooping [slot/port | vlanid]
Parameters
| slot/port | (Optional) Enter an interface in slot/port format. |
| vlanid | (Optional) Display MLD Snooping valid VLAN ID information. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
When the optional arguments slot/port or vlanid are not used, the command displays the following information.
| Admin Mode | Indicates whether or not MLD Snooping is active on the switch. |
| Interfaces Enabled for MLD Snooping | Interfaces on which MLD Snooping is enabled. |
| MLD Control Frame Count | Displays the number of MLD Control frames that are processed by the CPU. |
| VLANs Enabled for MLD Snooping | VLANs on which MLD Snooping is enabled. |
When you specify the slot/port values, the following information displays.
| MLD Snooping Admin Mode | Indicates whether MLD Snooping is active on the interface. |
| Fast Leave Mode | Indicates whether MLD Snooping Fast Leave is active on the VLAN. |
| Group Membership Interval | Shows the amount of time in seconds that a switch will wait for a report from a particular group on a particular interface, which is participating in the VLAN, before deleting the interface from the entry. This value may be configured. |
| Max Response Time | Displays the amount of time the switch waits after it sends a query on an interface, participating in the VLAN, because it did not receive a report for a particular group on that interface. This value may be configured. |
| Multicast Router Present Expiration Time | Displays the amount of time to wait before removing an interface that is participating in the VLAN from the list of interfaces with multicast routers attached. The interface is removed if a query is not received. This value may be configured. |
When you specify a value for vlanid, the following information appears.
| VLAN Admin Mode | Indicates whether MLD Snooping is active on the VLAN. |
5-496 show mldsnooping mrouter interface
Use this command to display information about statically configured multicast router attached interfaces.
show mldsnooping mrouter interface slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
| DefaultThe default is None. | |
| Command ModePrivileged EXEC | |
| Display Parameters | |
| Interface | Shows the interface on which multicast router information is being displayed. |
| Multicast Router Attached | Indicates whether multicast router is statically enabled on the interface. |
| VLAN ID | Displays the list of VLANs of which the interface is a member. |
5-497 show mldsnooping mrouter vlan
Use this command to display information about statically configured multicast router-attached interfaces.
show mldsnooping mrouter vlan slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC | |
| Display Parameters | |
| Interface | Shows the interface on which multicast router information is being displayed. |
| VLAN ID | Displays the list of VLANs of which the interface is a member. |
5-498 show mldsnooping ssm entries
Use this command to display the source specific multicast forwarding database built by MLD snooping.
show mldsnooping ssm entries
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| VLAN | The VLAN on which the entry is learned. |
| Group | The IPv6 multicast group address. |
| Source | The IPv6 source address. |
| Source Filter Mode | The source filter mode (Include/Exclude) for the specified group. |
| Interfaces | 1. If Source Filter Mode is “include,” specifies the list of interfaces on which an incoming packet is forwarded. If it's source IP address is equal to the current entry's Source, the destination IP address is equal to the current entry's Group and the VLAN ID on which it arrived is current entry's VLAN.2. If Source Filter Mode is “Exclude,” specifies the list of interfaces on which an incoming packet is forwarded. If it's source IP address is *not* equal to the current entry's Source, the destination IP address is equal to current entry's Group and VLAN ID on which it arrived is current entry's VLAN. |
5-499 show mldsnooping ssm stats
Use this command to display the statistics of MLD snooping's SSMFDB. This command takes no options.
show mldsnooping ssm stats
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show mldsnooping ssm stats
Total Entries.... 508
Most SSM FDB Entries Ever Used.... 0
Current Entries.... 0
Display Parameters
| Total Entries | The total number of entries that can possibly be in the MLD snooping's SSMFDB. |
| Most SSMFDB Entries Ever Used | The largest number of entries that have been present in the MLD snooping's SSMFDB. |
| Current Entries | The current number of entries in the MLD snooping's SSMFDB. |
5-500 show mldsnooping ssm groups
Use this command to display the MLD SSM group membership information.
show mldsnooping ssm groups
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| VLAN | VLAN on which the MLD v2 report is received. |
| Group | The IPv6 multicast group address. |
| Interface | The interface on which the MLD v2 report is received. |
| Reporter | The IPv6 address of the host that sent the MLDv2 report. |
| Source Filter Mode | The source filter mode (Include/Exclude) for the specified group. |
| Source Address List | List of source IP addresses for which source filtering is requested. |
5-501 show mac-address-table mldsnooping
Use this command to display the MLD Snooping entries in the Multicast Forwarding Database (MFDB) table.
show mac-address-table mldsnooping
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| VLAN ID | The VLAN in which the MAC address is learned |
| MAC Address | A multicast MAC address for which the switch has forwarding or filtering information. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 01:23:45:67:89:AB. |
| Type | The type of entry, which is either static (added by the user) or dynamic (added to the table as a result of a learning process or protocol.) |
| Description | The text description of this multicast table entry. |
| Interfaces | The list of interfaces that are designated for forwarding (Fwd:) and filtering (Flt:). |
5-502 clear mldsnooping
Use this command to delete all MLD snooping entries from the MFDB table.
clear mldsnooping
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
MLD Snooping Querier Commands
In an IPv6 environment, MLD Snooping requires that one central switch or router periodically query all end-devices on the network to announce their multicast memberships. This central device is the MLD Querier. The MLD query responses, known as MLD reports, keep the switch updated with the current multicast group membership on a port-by-port basis. If the switch does not receive updated membership information in a timely fashion, it will stop forwarding multicasts to the port where the end device is located.
This section describes the commands you use to configure and display information on MLD Snooping queries on the network and, separately, on VLANs.
Note: This note clarifies the prioritization of Multicast Group Membership Discovery (MGMD) Snooping Configurations. Many of the IGMP/MLD Snooping commands are available both in the Interface and VLAN modes. Operationally the system chooses or prefers the VLAN configured values over the Interface configured values for most configurations when the interface participates in the VLAN.
5-503 set mld querier
Use this command to enable MLD Snooping Querier on the system(Global Config Mode) or on a VLAN. Using this command, you can specify the IP address that the snooping querier switch should use as a source address while generating periodic queries.
If a VLAN has MLD Snooping Querier enabled and MLD Snooping is operationally disabled on it, MLD Snooping Querier functionality is disabled on that VLAN. MLD Snooping functionality is re-enabled if MLD Snooping is operational on the VLAN.
The MLD Snooping Querier sends periodic general queries on the VLAN to solicit membership reports.
Use the no command to disable MLDSnooping Querier on the system. Use the optional parameter address to reset the querier address.
set mld querier [vlan-id] {address ipv6_address | query-interval interval | timer [expiry interval]} no set mld querier [vlan-id] [address]
Parameters
| vlan-id | (Optional) Display MLD Snooping querier VLAN ID information. |
| address ipv6_address | (Optional) Configure Querier IPv6 address. |
| query-interval 1-1800 | Configure Querier Query interval. |
| timer | Configure Querier Expiry interval. |
| expiry 60-300 | Enter Querier Expiry Interval. |
Default
The default is Disabled.
Command Mode
- Global Config
- VLAN Mode
5-504 set mld querier query\_interval
Use this command to set the MLD Querier Query Interval time. It is the amount of time in seconds that the switch waits before sending another general query.
Use the no command to set the MLD Querier Query Interval time to its default value.
set mld querier query_interval 1-1800
no set mld querier query_interval
Parameters
None
Default
The default is 60 seconds.
Command Mode
Global Config
5-505 set mld querier timer expiry
Use this command to set the MLD Querier timer expiration period. It is the time period that the switch remains in Non-Querier mode once it has discovered that there is a Multicast Querier in the network.
Use the no command to set the MLD Querier timer expiration period to its default value.
set mld querier timer expiry 60-300
no set mld querier timer expiry
Parameters
None
Default
The default is 60 seconds.
Command Mode
Global Config
5-506 set mld querier election participate
Use this command to enable Snooping Querier to participate in the Querier Election process when it discovers the presence of another Querier in the VLAN. When this mode is enabled, if the Snooping Querier finds that the other Querier's source address is better (less) than the Snooping Querier's address, it stops sending periodic queries. If the Snooping Querier wins the election, then it will continue sending periodic queries.
Use the no command to set the snooping querier not to participate in querier election but go into a non-querier mode as soon as it discovers the presence of another querier in the same VLAN.
set mld querier election participate
no set mld querier election participate
Parameters
None
Default
The default is Disabled.
Command Mode
VLAN Config
5-507 show mldsnooping querier
Use this command to display MLD Snooping Querier information. Configured information is displayed whether or not MLD Snooping Querier is enabled.
show mldsnooping querier [{detail | vlan vlanid}]
Parameters
| detail | (Optional) Display MLD Snooping Querier detailed information. |
| vlan vlanid | (Optional) Display MLD Snooping Querier VLAN information. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
When the optional argument vlanid is not used, the command displays the following information
| Admin Mode | Indicates whether or not MLD Snooping Querier is active on the switch. |
| Admin Version | Indicates the version of MLD that will be used while sending out the queries. This is defaulted to MLD v1 and it cannot be changed |
| Querier Address | Shows the IP address which will be used in the IPv6 header while sending out MLD queries. it can be configured using the appropriate command. |
| Query Interval | Shows the amount of time in seconds that a Snooping Querier waits before sending out the periodic general query. |
| Querier Timeout | Displays the amount of time to wait in the Non-Querier operational state before moving to a Querier state. |
When you specify a value for vlanid, the following information appears
| VLAN Admin Mode | Indicates whether MLD Snooping Querier is active on the VLAN. |
| VLAN Operational State | Indicates whether MLD Snooping Querier is in "Querier" or "Non-Querier" state. When the switch is in Querier state, it will send out periodic general queries. When in Non-Querier state, it will wait for moving to Querier state and does not send out any queries. |
| VLAN Operational Max Response Time | Indicates the time to wait before removing a Leave from a host upon receiving a Leave request. This value is calculated dynamically from the Queries received from the network. If the Snooping Switch is in Querier state, then it is equal to the configured value. |
| Querier Election Participate | Indicates whether the MLD Snooping Querier participates in querier election if it discovers the presence of a querier in the VLAN. |
| Querier VLAN Address | The IP address will be used in the IPv6 header while sending out MLD queries on this VLAN. It can be configured using the appropriate command. |
| Operational Version | This version of IPv6 will be used while sending out MLD queries on this VLAN. |
| Last Querier Address | Indicates the IP address of the most recent Querier from which a Query was received. |
| Last Querier Version | Indicates the MLD version of the most recent Querier from which a Query was received on this VLAN. |
When the optional argument detail is used, the command shows the global information and the information for all Querier-enabled VLANs.
Port Security Commands
This section describes the command you use to configure Port Security on the switch. Port security, which is also known as port MAC locking, allows you to secure the network by locking allowable MAC addresses on a given port. Packets with a matching source MAC address are forwarded normally, and all other packets are discarded.
Note: To enable the SNMP trap specific to port security, see "snmp-server enable traps violation".
5-508 port-security
This command enables port locking on an interface, a range of interfaces, or at the system level.
Use the no command to disable port locking for one (Interface Config) or all (Global Config) ports.
port-security
no port-security
Parameters
None
Default
The default is Disabled.
Command Mode
- Global Config (to enable port locking globally)
• Interface Config (to enable port locking on an interface or range of interfaces)
5-509 port-security max-dynamic
This command sets the maximum number of dynamically locked MAC addresses allowed on a specific port.
Use the no command to reset the maximum number of dynamically locked MAC addresses allowed on a specific port to its default value.
port-security max-dynamic maxvalue
no port-security max-dynqmic
Parameters
maxvalue
Set Dynamic Limit for the interface (0-600).
Default
The default is 600.
Command Mode
Interface Config
5-510 port-security max-static
This command sets the maximum number of statically locked MAC addresses allowed on a port. Use the no command to set maximum number of statically locked MAC addresses to the default value.
port-security max-static maxvalue
no port-security max-static
Parameters
| maxvalue | Set Dynamic Limit for the interface (0-20). |
Default
The default is 1.
Command Mode
Interface Config
5-511 port-security mac-address
This command adds a MAC address to the list of statically locked MAC addresses for an interface or range of interfaces. The vid is the VLAN ID.
Use the no command to remove a MAC address from the list of statically locked MAC addresses.
port-security mac-address mac-address vid
no port-security mac-address mac-address vid
Parameters
| mac-address | Add Static MAC address to the interface. |
| vid | Enter a VLAN ID (1-4093). |
Default
The default is None.
Command Mode
Interface Config
5-512 port-security mac-address move
This command converts dynamically locked MAC addresses to statically locked addresses for an interface or range of interfaces.
port-security mac-address move
Parameters
None
Default
The default is None.
Command Mode
Interface Config
5-513 port-security mac-address sticky
This command enables sticky mode Port MAC Locking on a port. If accompanied by a MAC address and a VLAN ID (for Interface Config mode only), it adds a sticky MAC address to the list of statically locked MAC addresses. These sticky addresses are converted back to dynamically locked addresses if sticky mode is disabled on the port. The
Sticky addresses that are dynamically learned will appear in show running config as "port-security mac-address sticky
Use the no command to remove the sticky mode. The sticky MAC address can be deleted by using the command "no port-security mac-address
port-security mac-address sticky [
no port-security mac-address sticky [
Parameters
| Add Static MAC address to the interface. | |
| Enter a VLAN ID (1-4093). |
Default
The default is None.
Command Mode
- Global Config
- Interface Config
Example
The following is a command example.
(Routing)(ConFig)#port-security mac-address sticky
(Routing)(Interface 0/1)#port-security mac-address sticky
00:00:00:00:00:01 2
5-514 mac-address-table limit
This command enables VLAN port security. VLAN MAC locking allows you to secure the network by locking down allowable MAC addresses on a given VLAN. Packets with a matching source MAC address can be forwarded normally. All other packets will be discarded. VLAN MAC locking will lock the dynamic MAC entries.
If VLAN and port MAC locking are enabled, VLAN MAC locking will be given precedence over port MAC locking.
Use the no command to disable VLAN port security on the specified VLAN.
mac-address-table limit [action shutdown] [notification trap] [maximum-num] [vlan vlan-id] no mac-address-table limit [action shutdown] [notification trap] [maximum-num] [vlan vlan-id]
Parameters
| action shutdown | (Optional) After the MAC limit has been reached, the action will shut down the ports participating in the VLAN. |
| notification trap | (Optional) Enables snmp-server enable traps violation on the ports participating in the VLAN. After the MAC limit has been reached, log message will be generated with the violation MAC address details. |
| maximum-num | (Optional) MAC limit to be configured. |
| vlan vlan-id | (Optional) VLAN on which the MAC limit is to be applied. |
Default
The default is Disabled.
Command Mode
Global Config
Example
The following is a command example.
(Routing) (Config)#mac-address-table limit 3 vlan 10
(Routing)(Config)#mac-address-table limit action shutdown 5 vlan 20
(Routing) (Config)#mac-address-table limit notification trap 4 vlan 30
(Routing) (Config)#mac-address-table limit action shutdown notification trap 6 vlan 100
5-515 show port-security
This command displays the port-security settings for the port(s). If you do not use a parameter, the command displays the Port Security Administrative mode. Use the optional parameters to display the settings on a specific interface, LAG, or on all interfaces.
show port-security [{slot/port | lag lag-id | all}]
Parameters
| slot/port | (Optional) Display port security information for a specific interface. |
| lag lag-id | (Optional) Enter into interface lag mode. |
| all | (Optional) Display port-security information for all interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing) #show port-security 0/1
Intf Admin Mode Dynamic Limit Static Limit Violation Trap Mode Sticky Mode
0/1 Disabled 1 1 Disabled Enabled
Display Parameters
| Admin Mode | Port Locking mode for the entire system. This field displays if you do not supply any parameters. |
For each interface, or for the interface you specify, the following information appears:
| Admin Mode | Port Locking mode for the Interface. |
| Dynamic Limit | Maximum dynamically allocated MAC Addresses. |
| Static Limit | Maximum statically allocated MAC Addresses. |
| Violation Trap Mode | Whether violation traps are enabled. |
| Sticky Mode | Displays whether or not mode is enabled. |
5-516 show port-security dynamic
This command displays the dynamically locked MAC addresses for the port.
show port-security dynamic {slot/port | lag lag-id}
Parameters
| slot/port | (Optional) Display port security information for a specific interface. |
| lag lag-id | (Optional) Enter into interface lag mode. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| MAC Address | MAC Address of dynamically locked MAC. |
5-517 show port-security static
This command displays the statically locked MAC addresses for port. Instead of slot/port, lag lag-id can be used as an alternate way to specify the LAG interface. lag lag-id can also be used to specify the LAG interface where lag-id is the LAG port number.
show port-security static {slot/port | lag lag-id}
Parameters
| slot/port | (Optional) Display port security information for a specific interface. |
| lag lag-id | (Optional) Enter into interface lag mode. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show port-security static 0/1
Number of static MAC addresses configured: 2
Statically configured MAC Address VLAN ID Sticky
00:00:00:00:00:01 2 Yes
00:00:00:00:00:02 2 No
Display Parameters
| Statically Configured MAC Address | The statically configured MAC address. |
| VLAN ID | The ID of the VLAN that includes the host with the specified MAC address. |
| Sticky | Indicates whether the static MAC address entry is added in sticky mode. |
5-518 show port-security violation
This command displays the source MAC address of the last packet discarded on a locked port. Instead of slot/port, lag lag-id can be used as an alternate way to specify the LAG interface. lag lag-id can also be used to specify the LAG interface where lag-id is the LAG port number.
show port-security violation {slot/port | lag lag-id}
Parameters
| slot/port | Enter an interface in slot/port format. |
| lag lag-id | Enter into interface lag mode. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| MAC Address | The source MAC address of the last frame that was discarded at a locked port. |
| VLAN ID | The VLAN ID, if applicable, associated with the MAC address of the last frame that was discarded at a locked port. |
5-519 show mac-address-table limit
This command displays the VLAN port security configuration
show mac-address-table limit [vlan-id]
Parameters
| vlan-id | The VLAN ID on which MAC locking has been configured. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing)#show mac-address-table limit | ||
| Vlan MAC Locking Administration Mode: Enabled | ||
| For Vlan 10 | ||
| Configured mac limit 3 | ||
| Operational mac limit 3 | ||
| Violation trap mode Enabled | ||
| Violation shutdown mode Disabled | ||
| vlan Interface Mac-Address | ||
| 10 0/2 | 00:00:00:00:44:44 | |
| 10 0/2 | 00:00:00:00:44:45 | |
| 10 0/2 | 00:00:00:00:44:46 | |
| For Vlan 20 | ||
| Configured mac limit 3 | ||
| Operational mac limit 3 | ||
| Violation trap mode Enabled | ||
| Violation shutdown mode Disabled | ||
vlan Interface Mac-Address
20 0/28 00:00:00:00:00:11
20 0/28 00:00:00:00:00:12
20 0/28 00:00:00:00:00:13
(Routing)#show mac-address-table limit 10
Vlan MAC Locking Administration Mode: Enabled
For Vlan 10
Configured mac limit 3
Operational mac limit 3
vlan Interface Mac-Address
10 0/2 00:00:00:00:44:44
10 0/2 00:00:00:00:44:45
10 0/2 00:00:00:00:44:46
LLDP (802.1AB) Commands
This section describes the command you use to configure Link Layer Discovery Protocol (LLDP). Which is defined in the IEEE 802.1AB specification. LLDP allows stations on an 802 LAN to advertise major capabilities and physical descriptions. The advertisements allow a network management system (NMS) to access and display this information.
5-520 lldp transmit
Use this command to enable the LLDP advertise capability on an interface or a range of interfaces.
Use the no command to return the local data transmission capability to the default.
Ildp transmit
no lldp transmit
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-521 lldp receive
Use this command to enable the LLDP receive capability on an interface or a range of interfaces.
Use the no command to return the reception of LLDPDUs to the default value.
Ildp receive
no lldp receive
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-522 lldp timers
Use this command to set the timing parameters for local data transmission on ports enabled for LLDP. The interval-seconds determines the number of seconds to wait between transmitting local data LLDPDUs. The range is 1-32768 seconds. The hold-value is the multiplier on the transmit interval that sets the TTL in local data LLDPDUs. The multiplier range is 2-10. The reinit-seconds is the delay before reinitialization, and the range is 1-0 seconds.
Use the no command to return any or all timing parameters for local data transmission on ports enabled for LLDP to the default values.
Ildp timers [interval interval-seconds] [hold hold-value] [reinit reinit-seconds] no lldp timers [interval] [hold] [reinit]
Parameters
| interval interval-seconds | (Optional) The interval in seconds to transmit local LLDP data. |
| hold hold-value | (Optional) The interval multiplier to set local LLDP data TTL. |
| reinit reinit-seconds | (Optional) The delay before re-initialization. |
Default
The default is as follows:
- Interval – 30 seconds
- hold - 4
- reinit - 2 seconds
Command Mode
Global Config
5-523 lldp transmit-tlv
Use this command to specify which optional type length values (TLVs) in the 802.1AB basic management set are transmitted in the LLDPDUs from an interface or range of interfaces. Use sys-name to transmit the system name TLV. To configure the system name, see "snmp-server". Use sys-desc to transmit the system description TLV. Use sys-cap to transmit the system capabilities TLV. Use port-desc to transmit the port description TLV.
Use the no command to remove an optional TLV from the LLDPDUs. Use the command without parameters to remove all optional TLVs from the LLDPDU.
Ildp transmit-tlv [sys-desc] [sys-name] [sys-cap] [port-desc]
no lldp transmit-tlv [sys-desc] [sys-name] [sys-cap] [port-desc]
Parameters
| sys-desc | (Optional) Include/Exclude LLDP system description TLV. |
| sys-name | (Optional) Include/Exclude LLDP system name TLV. |
| sys-cap | (Optional) Include/Exclude LLDP system capabilities TLV. |
| port-desc | (Optional) Include/Exclude LLDP port description TLV. |
Default
The default is is as follows: No optional TLVs are included.
Command Mode
Interface Config
5-524 lldp transmit-mgmt
Use this command to include transmission of the local system management address information in the LLDPDUs. This command can be used to configure a single interface or a range of interfaces.
Use the no command to include transmission of the local system management address information in the LLDPDUs. Use this command to cancel inclusion of the management information in LLDPDUs.
Ildp transmit-mgmt
no lldp transmit-mgmt
Parameters
None
Default
The default is None.
Command Mode
Interface Config
5-525 Ildp notification
Use this command to enable remote data change notifications on an interface or a range of interfaces.
Use the no command to disable notifications.
Ildp notification
no lldp notification
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-526 Ildp notification-interval
Use this command to configure how frequently the system sends remote data change notifications. The interval parameter is the number of seconds to wait between sending notifications.
Use the no command to return the notification interval to the default value.
Ildp notification-interval 5-3600
no lldp notification-interval
Parameters
None
Default
The default is 5 seconds.
Command Mode
Global Config
5-527 clear lldp statistics
Use this command to reset all LLDP statistics, including MED-related information.
clear lldp statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-528 clear lldp remote-data
Use this command to delete all information from the LLDP remote data table, including MED-related information.
clear lldp remote-data
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-529 show lldp
Use this command to display a summary of the current LLDP configuration.
show lldp
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show lldp
LLDP Global Configuration
Transmit Interval.... 30 seconds
Transmit Hold Multiplier.... 4
Reinit Delay.... 2 seconds
Notification Interval.... 5 seconds
Display Parameters
| Transmit Interval | How frequently the system transmits local data LLDPDUs. in seconds. |
| Transmit Hold Multiplier | The multiplier on the transmit interval that sets the TTL in local data LLDPDUs. |
| Re-initialization Delay | The delay before reinitialization, in seconds. |
| Notification Interval | How frequently the system sends remote data change notifications, in seconds. |
5-530 show lldp interface
Use this command to display a summary of the current LLDP configuration for a specific interface or for all interfaces.
show lldp interface {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all for all interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show lldp interface all
LLDP Interface Configuration
Interface Link Transmit Receive Notify TLVs Mgmt
0/1 Up Disabled Disabled Disabled N
0/2 Up Disabled Disabled Disabled N
0/3 Down Disabled Disabled Disabled N
0/4 Down Disabled Disabled Disabled N
0/5 Down Disabled Disabled Disabled N
0/6 Down Disabled Disabled Disabled N
0/7 Down Disabled Disabled Disabled N
0/8 Down Disabled Disabled Disabled N
0/9 Down Disabled Disabled Disabled N
0/10 Down Disabled Disabled Disabled N
0/11 Down Disabled Disabled Disabled N
0/12 Down Disabled Disabled Disabled N
0/13 Down Disabled Disabled Disabled N
0/14 Down Disabled Disabled Disabled N
0/15 Down Disabled Disabled Disabled N
0/16 Down Disabled Disabled Disabled N
0/17 Down Disabled Disabled Disabled N
0/18 Down Disabled Disabled Disabled N
0/19 Down Disabled Disabled Disabled N
0/20 Down Disabled Disabled Disabled N
0/21 Down Disabled Disabled Disabled N
0/22 Down Disabled Disabled Disabled N
0/23 Down Disabled Disabled Disabled N
0/24 Down Disabled Disabled Disabled N
0/25 Down Disabled Disabled Disabled N
0/26 Down Disabled Disabled Disabled N
0/27 Down Disabled Disabled Disabled N
0/28 Down Disabled Disabled Disabled N
0/29 Down Disabled Disabled Disabled N
0/30 Down Disabled Disabled Disabled N
0/31 Down Disabled Disabled Disabled N
0/32 Down Disabled Disabled Disabled N
0/33 Down Disabled Disabled Disabled N
0/34 Down Disabled Disabled Disabled N
0/35 Down Disabled Disabled Disabled N
0/36 Down Disabled Disabled Disabled N
0/37 Down Disabled Disabled Disabled N
0/38 Down Disabled Disabled Disabled N
| 0/39 | Down | Disabled | Disabled | Disabled | N |
| 0/40 | Down | Disabled | Disabled | Disabled | N |
| 0/41 | Down | Disabled | Disabled | Disabled | N |
| 0/42 | Down | Disabled | Disabled | Disabled | N |
| 0/43 | Down | Disabled | Disabled | Disabled | N |
| 0/44 | Down | Disabled | Disabled | Disabled | N |
| 0/45 | Down | Disabled | Disabled | Disabled | N |
| 0/46 | Down | Disabled | Disabled | Disabled | N |
| 0/47 | Down | Disabled | Disabled | Disabled | N |
| 0/48 | Down | Disabled | Disabled | Disabled | N |
| 0/49 | Down | Enabled | Enabled | Disabled | N |
| 0/50 | Down | Disabled | Disabled | Disabled | N |
| 0/51 | Down | Disabled | Disabled | Disabled | N |
| 0/52 | Down | Disabled | Disabled | Disabled | N |
| 0/53 | Down | Disabled | Disabled | Disabled | N |
| 0/54 | Down | Disabled | Disabled | Disabled | N |
| 0/55 | Detach | Disabled | Disabled | Disabled | N |
| 0/56 | Detach | Disabled | Disabled | Disabled | N |
| 0/57 | Detach | Disabled | Disabled | Disabled | N |
| 0/58 | Detach | Disabled | Disabled | Disabled | N |
| 0/59 | Detach | Disabled | Disabled | Disabled | N |
| 0/60 | Detach | Disabled | Disabled | Disabled | N |
| 0/61 | Detach | Disabled | Disabled | Disabled | N |
| 0/62 | Detach | Disabled | Disabled | Disabled | N |
| 0/63 | Detach | Disabled | Disabled | Disabled | N |
| 0/64 | Detach | Disabled | Disabled | Disabled | N |
| 0/65 | Detach | Disabled | Disabled | Disabled | N |
| 0/66 | Detach | Disabled | Disabled | Disabled | N |
| 0/67 | Detach | Disabled | Disabled | Disabled | N |
| 0/68 | Detach | Disabled | Disabled | Disabled | N |
| 0/69 | Detach | Disabled | Disabled | Disabled | N |
| 0/70 | Detach | Disabled | Disabled | Disabled | N |
| 0/71 | Detach | Disabled | Disabled | Disabled | N |
| 0/72 | Detach | Disabled | Disabled | Disabled | N |
| 0/73 | Detach | Disabled | Disabled | Disabled | N |
| 0/74 | Detach | Disabled | Disabled | Disabled | N |
| 0/75 | Detach | Disabled | Disabled | Disabled | N |
| 0/76 | Detach | Disabled | Disabled | Disabled | N |
| 0/77 | Detach | Disabled | Disabled | Disabled | N |
| 0/78 | Detach | Disabled | Disabled | Disabled | N |
TLV Codes: 0- Port Description, 1- System Name 2- System Description, 3- System Capabilities
Display Parameters
| Interface | The interface in a slot/port format. |
| Link | Shows whether the link is up or down. |
| Transmit | Shows whether the interface transmits LLDPDUs. |
| Receive | Shows whether the interface receives LLDPDUs. |
| Notify | Shows whether the interface sends remote data change notifications. |
| TLVs | Shows whether the interface sends optional TLVs in the LLDPDUs. The TLV codes can be 0 (Port Description), 1 (System Name), 2 (System Description), or 3 (System Capability). |
| Mgmt | Shows whether the interface transmits system management address information in the LLDPDUs. |
5-531 show lldp statistics
Use this command to display the current LLDP traffic and remote table statistics for a specific interface or for all interfaces.
show lldp statistics {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all for all interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show lldp statistics all
LLDP Device Statistics
Last Update.... 0 days 00:00:00
Total Inserts.... 0
Total Deletes.... 0
Total Drops.... 0
Total Ageouts.... 0
Interface Tx Rx Discards Errors Ageout TLV TLV TLV TLV TLV
Total Total Discards Unknowns MED 802.1 802.3
0/49 0 0 0 0 0 0 0 0 0
Display Parameters
| Last Update | The amount of time since the last update to the remote table in days, hours, minutes, and seconds. |
| Total Inserts | Total number of inserts to the remote data table. |
| Total Deletes | Total number of deletes from the remote data table. |
| Total Drops | Total number of times the complete remote data received was not inserted due to insufficient resources. |
| Total Ageouts | Total number of times a complete remote data entry was deleted because the Time to Live interval expired. |
The table contains the following column headings:
| Interface | The interface in slot/port format. |
| TX Total | Total number of LLDP packets transmitted on the port. |
| RX Total | Total number of LLDP packets received on the port. |
| Discards | Total number of LLDP frames discarded on the port for any reason. |
| Errors | The number of invalid LLDP frames received on the port. |
| Ageouts | Total number of times a complete remote data entry was deleted for the port because the Time to Live interval expired. |
| TVL Discards | The number of TLVs discarded. |
| TVL Unknowns | Total number of LLDP TLVs received on the port where the type value is in the reserved range, and not recognized. |
| TLV MED | The total number of LLDP-MED TLVs received on the interface. |
| TLV 802.1 | The total number of LLDP TLVs received on the interface which are of type 802.1. |
| TLV 802.3 | The total number of LLDP TLVs received on the interface which are of type 802.3. |
5-532 show lldp remote-device
Use this command to display summary information about remote devices that transmit current LLDP data to the system. You can show information about LLDP remote data received on all ports or on a specific port.
show lldp remote-device {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all for all interfaces. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Switching)#show lldp remote-device all
LLDP Remote Device Summary
Local Interface RemID Chassis ID Port ID System Name
0/1
0/2
0/3
0/4
0/5
0/6
0/7 2 00:FC:E3:90:01:0F 00:FC:E3:90:01:11
0/7 3 00:FC:E3:90:01:0F 00:FC:E3:90:01:12
0/7 4 00:FC:E3:90:01:0F 00:FC:E3:90:01:13
0/7 5 00:FC:E3:90:01:0F 00:FC:E3:90:01:14
0/7 1 00:FC:E3:90:01:0F 00:FC:E3:90:03:11
0/7 6 00:FC:E3:90:01:0F 00:FC:E3:90:04:11
0/8
0/9
0/10
0/11
0/12
--More-- or (q)uit
Display Parameters
| Local Interface | The interface that received the LIRDPDU from the remote device. |
| RemID | An internal identifier to the switch to mark each remote device to the system. |
| Chassis ID | The ID that is sent by a remote device as part of the LLDP message, it is usually a MAC address of the device. |
| Port ID | The port number that transmitted the LLDPDU. |
| System Name | The system name of the remote device. |
5-533 show lldp remote-device detail
Use this command to display detailed information about remote devices that transmit current LLDP data to an interface on the system.
show lldp remote-device detail slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Switching)#show lldp remote-device detail 0/7
LLDP Remo Device Detail
Local Interface: 0/7
Remote Identifier: 2
Chassis ID Subtype: MAC Address
Chassis ID: 00:FC:E3:90:01:0F
Port ID Subtype: MAC Address
Port ID: 00:FC:E3:90:01:11
System Name:
System Description:
Port Description:
System Capabilities Supported:
System Capabilities Enabled:
Time to Live: 24 seconds
Display Parameters
| Local Interface | The interface that received the LLDPDU from the remote device. |
| Remote Identifier | An internal identifier to the switch to mark each remote device to the system. |
| Chassis ID Subtype | The type of identification used in the Chassis ID field. |
| Chassis ID | The chassis of the remote device. |
| Port ID Subtype | The type of port on the remote device. |
| Port ID | The port number that transmitted the LLDPDU. |
| System Name | The system name of the remote device. |
| System Description | Describes the remote system by identifying the system name and versions of hardware, operating system, and networking software supported in the device. |
| Port Description | Describes the port in an alpha-numeric format. The port description is configurable. |
| System Capabilities Supported | Indicates the primary function(s) of the device. |
| System Capabilities Enabled | Shows which of the supported system capabilities are enabled. |
| Management Address | For each interface on the remote device with an LLDP agent, lists the type of address the remote LLDP agent uses and specifies the address used to obtain information related to the device. |
| Time To Live | The amount of time (in seconds) the remote device's information received in the LLDPDU should be treated as valid information. |
5-534 show lldp local-device
Use this command to display summary information about the advertised LLDP local data. This command can display summary information or detail for each interface.
show lldp local-device {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Enter all for all interfaces. |
Default
The default is DHCP.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show lldp local-device all
LLDP Local Device Summary
Interface Port ID Port Description
0/49 00:05:64:2F:0F:82
Display Parameters
| Interface | The interface in a slot/port format. |
| Port ID | The port ID associated with this interface. |
| Port Description | The port description associated with the interface. |
5-535 show lldp local-device detail
Use this command to display detailed information about the LLDP data a specific interface transmits.
show lldp local-device detail slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| Interface | The interface that sends the LLDPDU. |
| Chassis ID Subtype | The type of identification used in the Chassis ID field. |
| Chassis ID | The chassis of the local device. |
| Port ID Subtype | The type of port on the local device. |
| Port ID | The port number that transmitted the LLDPDU. |
| System Name | The system name of the local device. |
| System Description | Describes the local system by identifying the system name and versions of hardware, operating system, and networking software supported in the device. |
| Port Description | Describes the port in an alpha-numeric format. |
| System Capabilities Supported | Indicates the primary function(s) of the device. |
| System Capabilities Enabled | Shows which of the supported system capabilities are enabled. |
| Management Address | The type of address and the specific address the local LLDP agent uses to send and receive information. |
LLDP-MED Commands
Link Layer Discovery Protocol - Media Endpoint Discovery (LLDP-MED) (ANSI-TIA-1057) provides an extension to the LLDP standard. Specifically, LLDP-MED provides extensions for network configuration and policy, device location, Power over Ethernet (PoE) management, and inventory management.
5-536 Ildp med
Use this command to enable MED on an interface or a range of interfaces. By enabling MED, you will be effectively enabling the transmit and receive function of LLDP.
Use the no command to disable MED.
Ildp med
no lldp med
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-537 Ildp med confignotification
Use this command to configure an interface or a range of interfaces to send the topology change notification.
Use the no command to disable notifications.
Ildp med confignotification
no lldp med confignotification
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-538 lldp med transmit-tlv
Use this command to specify which optional Type Length Values (TLVs) in the LLDP MED set will be transmitted in the Link Layer Discovery Protocol Data Units (LLDPDUs) from this interface or a range of interfaces.
Use the no command to remove a TLV.
lldp med transmit-tlv [capabilities] [ex-pd] [ex-pse] [inventory] [location] [network-policy] no lldp med transmit-tlv [capabilities] [ex-pd] [ex-pse] [inventory] [location] [network-policy]
Parameters
| capabilities | (Optional) Transmit the LLDP capabilities TLV. |
| ex-pd | (Optional) Transmit the LLDP extended PD TLV. |
| ex-pse | (Optional) Transmit the LLDP extended PSE TLV. |
| inventory | (Optional) Transmit the LLDP inventory TLV. |
| location | (Optional) Transmit the LLDP location TLV. |
| network-policy | (Optional) Transmit the LLDP network policy TLV. |
Default
The default is as follows: capabilities and network policy TLVs included.
Command Mode
Interface Config
5-539 lldp med all
Use this command to configure LLDP-MED on all the ports.
Ildp med all
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-540 lldp med confignotification all
Use this command to configure all the ports to send the topology change notification
Ildp med confignotification all
Parameters
None
Default
The default is None.
Command Mode
Global Config
5-541 lldp med faststartrepeatcount
Use this command to set the value of the fast start repeat count. count is the number of LLDP PDUs that will be transmitted when the product is enabled. The range is 1 to 10.
Use the no command to return to the factory default value.
Ildp med faststartrepeatcount [count]
no lldp med faststartrepeatcount
Parameters
| count | (Optional) The number of LLDP PDUs that will be sent when enabled. |
Default
The default is 3.
Command Mode
Global Config
5-542 lldp med transmit-tlv all
Use this command to specify which optional Type Length Values (TLVs) in the LLDP MED set will be transmitted in the Link Layer Discovery Protocol Data Units (LLDPDUs).
Use the no command to remove a TLV.
Ildp med transmit-tlv all [capabilities] [ex-pd] [ex-pse] [inventory] [location] [network-policy] no Ildp med transmit-tlv all [capabilities] [ex-pd] [ex-pse] [inventory] [location] [network-policy]
Parameters
| capabilities | Transmit the LLDP capabilities TLV. |
| ex-pd | Transmit the LLDP extended PD TLV. |
| ex-pse | Transmit the LLDP extended PSE TLV. |
| inventory | Transmit the LLDP inventory TLV. |
| location | Transmit the LLDP location TLV. |
| network-policy | Transmit the LLDP network policy TLV. |
Default
The default is as follows: Capabilities and network policy TLVs included.
Command Mode
Global Config
5-543 show lldp med
Use this command to display a summary of the current LLDP MED configuration
show lldp med
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show lldp med
LLDP MED Global Configuration
Fast Start Repeat Count: 3
Device Class: Network Connectivity
(Routing)#
5-544 show lldp med interface
Use this command to display a summary of the current LLDP MED configuration for a specific interface sot/port indicates a specific physical interface. all indicates all valid LLDP interfaces.
show lldp med interface {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Display LLDP MED configuration for an interface. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show lldp med interface all
Interface Link configMED operMED ConfigNotify TLVsTx
0/1 Down Disabled Disabled Disabled 0,1
0/2 up Disabled Disabled Disabled 0,1
0/3 Down Disabled Disabled Disabled 0,1
0/4 Down Disabled Disabled Disabled 0,1
0/5 Down Disabled Disabled Disabled 0,1
0/6 Down Disabled Disabled Disabled 0,1
0/7 Down Disabled Disabled Disabled 0,1
0/8 Down Disabled Disabled Disabled 0,1
0/9 Down Disabled Disabled Disabled 0,1
0/10 Down Disabled Disabled Disabled 0,1
0/11 Down Disabled Disabled Disabled 0,1
0/12 Down Disabled Disabled Disabled 0,1
0/13 Down Disabled Disabled Disabled 0,1
0/14 Down Disabled Disabled Disabled 0,1
TLV Codes: 0- Capabilities, 1- Network Policy
2- Location, 3- Extended PSE
4- Extended Pd, 5- Inventory
--More-- or (q)uit
(Routing)#show 1ldp med interface 0/2
Interface Link configMED operMED ConfigNotify TLVsTx
0/2 Up Disabled Disabled Disabled 0,1
TLV Codes: 0- Capabilities, 1- Network Policy
2- Location, 3- Extended PSE
4- Extended Pd, 5- Inventory
--More-- or (q)uit
(Routing)#
5-545 show lldp med local-device detail
Use this command to display detailed information about the LLDP MED data that a specific interface transmits. slot/port indicates a specific physical interface.
show lldp med local-device detail slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC | |
| Example | |
| The following shows example CLI display output for the command. | |
| (Routing)#show lldp med local-device detail 0/8 | |
| LLDP MED Local Device Detail | |
| Interface: 0/8 | |
| Network Policies | |
| Media Policy Application Type : voice | |
| Vlan ID: 10 | |
| Priority: 5 | |
| DSCP: 1 | |
| Unknown: False | |
| Tagged: True | |
Media Policy Application Type : streamin
Vlan ID: 20
Priority: 1
DSCP: 2
Unknown: False
Tagged: True
Inventory
Hardware Rev: xxx xxx xxx
Firmware Rev: xxx xxx xxx
Software Rev: xxx xxx xxx
Serial Num: xxx xxx xxx
Mfg Name: xxx xxx xxx
Model Name: xxx xxx xxx
Asset ID: xxx xxx xxx
Location
Subtype: elin
Info: xxx xxx xxx
Extended POE
Device Type: pseDevice
Extended POE PSE
Available: 0.3 watts
Source: primary
Priority: critical
Extended POE PD
Required: 0.2 watts
Source: local
Priority: low
5-546 show lldp med remote-device
Use this command to display the summary information about remote devices that transmit current LLDP MED data to the system. You can show information about LLDP MED remote data received on all valid LLDP interfaces or on a specific physical interface.
show lldp med remote-device {slot/port | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| all | Display LLDP MED configuration for an interface. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show lldp med remote-device all
LLDP MED Remote Device Summary
Local Interface Remote ID Device Class
0/8 1 Class I
0/9 2 Not Defined
0/10 3 Class II
0/11 4 Class III
0/12 5 Network Con
Display Parameters
| Local Interface | The interface that received the LLDPDU from the remote device. |
| Remote ID | An internal identifier to the switch to mark each remote device to the system. |
| Device Class | Device classification of the remote device. |
5-547 show lldp med remote-device detail
Use this command to display detailed information about remote devices that transmit current LLDP MED data to an interface on the system.
show lldp med remote-device detail slot/port
Parameters
| slot/port | Enter an interface in slot/port format. |
| Default | |
| The default is None. | |
| Command Mode | |
| Privileged EXEC |
Example
The following shows example CLI display output for the command.
(Routing)#show lldp med remote-device detail 0/8
LLDP MED Remote Device Detail
Local Interface: 0/42
MED Capabilities Supported:
MED Capabilities Enabled:
Network Policies
Denial of Service Commands
This section describes the commands you use to configure Denial of Service (DoS) Control. D-LINK OS software provides support for classifying and blocking specific types of Denial of Service attacks. You can configure your system to monitor and block these types of attacks:
- SIP = DIP: Source IP address = Destination IP address.
- First Fragment: TCP Header size smaller then configured value.
- TCP Fragment: Allows the device to drop packets that have a TCP payload where the IP payload length minus the IP header size is less than the minimum allowed TCP header size.
- TCP Flag: TCP Flag SYN set and Source Port < 1024 or TCP Control Flags = 0 and TCP Sequence Number = 0 or TCP Flags FIN, URG, and PSH set and TCP Sequence Number = 0 or TCP Flags SYN and FIN set.
• L4 Port: Source TCP/UDP Port = Destination TCP/UDP Port.
• ICMP: Limiting the size of ICMP Ping packets. - SMAC = DMAC: Source MAC address = Destination MAC address.
• TCP Port: Source TCP Port = Destination TCP Port.
• UDP Port: Source UDP Port = Destination UDP Port. - TCP Flag & Sequence: TCP Flag SYN set and Source Port < 1024 or TCP Control Flags = 0 and TCP Sequence Number = 0 or TCP Flags FIN, URG, and PSH set and TCP Sequence Number = 0 or TCP Flags SYN and FIN set.
- TCP Offset: Allows the device to drop packets that have a TCP header Offset set to 1.
- TCP SYN: TCP Flag SYN set.
• TCP SYN &. FIN: TCP Flags SYN and FIN set. - TCP FIN & URG & PSH: TCP Flags FIN and URG and PSH set and TCP Sequence Number = 0.
• ICMP V6: Limiting the size of ICMPv6 Ping packets. - ICMP Fragment: Checks for fragmented ICMP packets.
5-548 dos-control all
This command enables Denial of Service protection checks globally.
Use the no command to disable Denial of Service prevention checks globally.
dos-control all no dos-control all
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-549 dos-control sipdip
This command enables Source IP address = Destination IP address (SIP = DIP) Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress with SIP = DIP, the packets will be dropped if the mode is enabled.
Use the no command to disable Source IP address = Destination IP address SIP = DIP) Denial of Service prevention.
dos-control sipdip no dos-control sipdip
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-550 dos-control firstfrag
This command enables Minimum TCP Header Size Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress having a TCP Header Size smaller than the configured value, the packets will be dropped if the mode is enabled. The default is disabled. If you enable dos-control firstfrag, but do not provide a Minimum TCP Header Size, the system sets that value to 20.
Use the no command to set Minimum TCP Header Size Denial of Service protection to the default value of disabled.
dos-control firstfrag [0-255]
no dos-control firstfrag
Parameters
None
Default
The default is Disabled (20).
Command Mode
Global Config
5-551 dos-control tcpfrag
This command enables TCP Fragment Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack and packets that have a TCP payload in which the IP payload length minus the IP header size is less than the minimum allowed TCP header size are dropped.
Use the no command to disable TCP Fragment Denial of Service protection.
dos-control tcpfrag
no dos-control tcpfrag
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-552 dos-control tcpflag
This command enables TCP Flag Denial of Service protections. If the mode is enabled, Denial of Service prevention is active for this type of attacks and packets will be dropped, as follows:
• Packets ingress have the TCP Flag SYN set and a source port less than 1024.
• The TCP Control Flags are set to 0 and the TCP Sequence Number is set to 0.
• The TCP Flags FIN, URG, and PSH are set and the TCP Sequence Number is set to 0.
- The TCP Flags SYN and FIN are both set.
Use the no command to set disables TCP Flag Denial of Service protections.
dos-control tcpflag
no dos-control tcpflag
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-553 dos-control I4port
This command enables L4 Port Denial of Service protections. If the mode is enabled. Denial of Service prevention is active for this type of attack. If packets ingress having Source TCP/UDP Port Number equal to Destination TCP/UDP Port Number, the packets will be dropped if the mode is enabled.
Use the no command to disable L4 Port Denial of Service protections.
Note: Some applications mirror source and destination L4 ports.
dos-control I4port
no dos-control l4port
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-554 dos-control icmp
This command enables Maximum ICMP Packet Size Denial of Service protections. If the mode is enabled, Denial of Service prevention is active for this type of attack If ICMP Echo Request (PING) packets ingress having a size greater than the configured value, the packets will be dropped if the mode is enabled.
Use the no command to disable Maximum ICMP Packet Size Denial of Service protections.
dos-control icmp 0-1023
no dos-control icmp
Parameters
None
Default
The default is Disabled (512).
Command Mode
Global Config
5-555 dos-control smacdmac
This command enables Source MAC address = Destination MAC address (SMAC = DMAC) Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress with SMAC = DMAC, the packets will be dropped if the mode is enabled.
Use the no command to disable Source MAC address = Destination MAC address (SMAC = DMAC) DoS protection.
dos-control smacdmac
no dos-control smacdmac
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-556 dos-control tcpport
This command enables TCP L4 source = destination port number (Source TCP Port = Destination TCP Port) Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress with Source TCP Port = Destination TCP Port, the packets will be dropped if the mode is enabled.
Use the no command to disable TCP L4 source = destination port number (Source TCP Port = Destination TCP Port) Denial of Service protection.
dos-control tcpport
no dos-control tcpport
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-557 dos-control udpport
This command enables UDP L4 source = destination port number (Source UDP Port = Destination UDP Port) DoS protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress with Source UDP Port = Destination UDP Port, the packets will be dropped if the mode is enabled.
Use the no command to disable UDP L4 source = destination port number (Source UDP Port = Destination UDP Port) Denial of Service protection.
dos-control udpport
no dos-control udpport
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-558 dos-control tcpflagseq
This command enables TCP Flag and Sequence Denial of Service protections. If the mode is enabled, Denial of Service prevention is active for this type of attack and packets will be dropped if the TCP Control Flags are set to 0 and the TCP Sequence Number is set to 0.
Use the no command to set disables TCP Flag and Sequence Denial of Service protection.
dos-control tcpflagseq
no dos-control tcpflagseq
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-559 dos-control tcpoffset
This command enables TCP Offset Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress having TCP Header Offset equal to one (1), the packets will be dropped if the mode is enabled.
Use the no command to disable TCP Offset Denial of Service protection.
dos-control tcpoffset
no dos-control tcpoffset
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-560 dos-control tcpsyn
This command enables TCP SYN and L4 source = 0-1023 Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress having TCP flag SYN set and an L4 source port from 0 to 1023, the packets will be dropped if the mode is enabled.
Use the no command to set disables TCP SYN and L4 source = 0-1023 Denial of Service protection.
dos-control tcpsyn no dos-control tcpsyn
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-561 dos-control tcpsynfin
This command enables TCP SYN and FIN Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress having TCP flags SYN and FIN set, the packets will be dropped if the mode is enabled.
Use the no command to set disables TCP SYN & FIN Denial of Sen/ice protection.
dos-control tcpsynfin no dos-control tcpsynfin
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-562 dos-control tcpfinurgpsh
This command enables TCP FIN and URG and PSH and SEQ = 0 checking Denial of Service protections. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress
having TCP FIN, URG, and PSH all set and TCP Sequence Number set to 0, the packets will be dropped if the mode is enabled.
Use the no command to set disables TCP FIN and URG and PSH and SEQ = 0 checking Denial of Service protections.
dos-control tcpfinurgpsh
no dos-control tcpfinurgpsh
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-563 dos-control icmpv6
This command enables Maximum ICMPv6 Packet Size Denial of Service protections. If the mode is enabled, Denial of Service prevention is active for this type of attack. If ICMPv6 Echo Request (PING) packets ingress having a size greater than the configured value, the packets will be dropped if the mode is enabled.
Use the no command to disable Maximum ICMP Packet Size Denial of Service protections.
dos-control icmpv6 0-16376
no dos-control icmpv6
Parameters
None
Default
The default is Disabled (512).
Command Mode
Global Config
5-564 dos-control icmpfrag
This command enables ICMP Fragment Denial of Service protection. If the mode is enabled, Denial of Service prevention is active for this type of attack. If packets ingress having fragmented ICMP packets, the packets will be dropped if the mode is enabled.
Use the no command to disable ICMP Fragment Denial of Service protection.
dos-control icmpfrag
no dos-control icmpfrag
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
5-565 show dos-control
This command displays Denial of Service configuration information.
show dos-control
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show dos-control
Port D-disable mode....Disable
First Fragment Mode....Disable
Min TCP Hdr Size....20
ICMPv4 Mode....Disable
Max ICMPv4 Payload Size....512
ICMPv6 Mode....Disable
Max ICMPv6 Payload Size....512
ICMPv4 Fragment Mode....Disable
L4 Port Mode....Disable
TCP Port Mode....Disable
| UDP Port Mode...... | Disable |
| SIPDIP Mode...... | Disable |
| SMACDMAC Mode...... | Disable |
| TCP FIN&URG&PSH Mode...... | Disable |
| TCP Flag & Sequence Mode...... | Disable |
| TCP SYN Mode...... | Disable |
| TCP SYN&FIN Mode...... | Disable |
| TCP Fragment Mode...... | Disable |
| TCP Offset Mode...... | Disable |
Display Parameters
| First Fragment Mode | May be enabled or disabled. The factory default is disabled. |
| Min TCP Hdr Size | The factory default is 20. |
| ICMP Mode | May be enabled or disabled. The factory default is disabled. |
| Max ICMPv4 Pkt Size | The range is 0-16376. The factory default is 512. |
| Max ICMPv6 Pkt Size | The range is 0-16376. The factory default is 512. |
| ICMP Fragment Mode | May be enabled or disabled. The factory default is disabled. |
| L4 Port Mode | May be enabled or disabled. The factory default is disabled. |
| TCP Port Mode | May be enabled or disabled. The factory default is disabled. |
| UDP Port Mode | May be enabled or disabled. The factory default is disabled. |
| SIPDIP Mode | May be enabled or disabled. The factory default is disabled. |
| SMACDMAC Mode | May be enabled or disabled. The factory default is disabled. |
| TCP Flag Mode | May be enabled or disabled. The factory default is disabled. |
| TCP FIN&URG& PSH Mode | May be enabled or disabled. The factory default is disabled. |
| TCP Flag & Sequence Mode | May be enabled or disabled. The factory default is disabled. |
| TCP SYN Mode | May be enabled or disabled. The factory default is disabled. |
| TCP SYN & FIN Mode | May be enabled or disabled. The factory default is disabled. |
| TCP Fragment Mode | May be enabled or disabled. The factory default is disabled. |
| TCP Offset Mode | May be enabled or disabled. The factory default is disabled. |
MAC Database Commands
This section describes the commands you use to configure and view information about the MAC databases.
5-566 bridge aging-time
This command configures the forwarding database address aging timeout in seconds. The range is 10 to 1,000,000 seconds.
Use the no command to set the forwarding database address aging timeout to the default value.
bridge aging-time 10-1000000
no bridge aging-time
Parameters
None
Default
The default is 300.
Command Mode
Global Config
5-567 show forwardingdb agetime
This command displays the timeout for address aging.
show forwardingdb agetime
Parameters
None
Default
The default is All.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show forwardingdb agetime
Address Aging Timeout: 300
Display Parameters
Address Aging Timeout
Displays the system's address aging timeout value in seconds.
5-568 show mac-address-table multicast
This command displays the Multicast Forwarding Database (MFDB) information. If you enter the command with no parameter, the entire table is displayed. You can display the table entry for one MAC Address by specifying the MAC address as an optional parameter.
show mac-address-table multicast macaddr
Parameters
| macaddr | Enter a 6 byte MAC Address. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
If one or more entries exist in the multicast forwarding table, the command output looks similar to the following.
| (Routing)#show mac-address-table multicast | |||||||
| VLAN ID MAC Address Source Type Description Interface Fwd Interface | |||||||
| 1 01:00:5E:01:02:03 Filter Static Mgmt Config Fwd: | Fwd: | ||||||
| 0/1, | 0/1, | ||||||
| 0/2, | 0/2, | ||||||
| 0/3, | 0/3, | ||||||
| 0/4, | 0/4, | ||||||
| 0/5, | 0/5, | ||||||
| 0/6, | 0/6, | ||||||
| 0/7, | 0/7, | ||||||
| 0/8, | 0/8, | ||||||
| 0/9, | 0/9, | ||||||
| 0/10, | 0/10, | ||||||
| --More-- or (q)uit | |||||||
Display Parameters
| VLAN ID | The VLAN in which the MAC address is learned. |
| MAC Address | A multicast MAC address for which the switch has forwarding or filtering information. The format is 6 two-digit hexadecimal numbers that are separated by colons, for example 01:23:45:67:89:AB. |
| Source | The component that is responsible for this entry in the Multicast Forwarding Database. The source can be IGMP Snooping, GMRP, and Static Filtering. |
| Type | The type of the entry. Static entries are those that are configured by the end user. Dynamic entries are added to the table as a result of a learning process or protocol. |
| Description | The text description of this multicast table entry. |
| Interfaces | The list of interfaces that are designated for forwarding (Fwd:) and filtering (Flt:). |
| Fwd Interface | The resultant forwarding list is derived from combining all the component's forwarding interfaces and removing the interfaces that are listed as the static filtering interfaces. |
5-569 show mac-address-table stats
This command displays the Multicast Forwarding Database (MFDB) statistics.
show mac-address-table stats
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show mac-address-table stats
Max MFDB Table Entries.... 2048
Most MFDB Entries Since Last Reset.... 0
Current Entries.... 0
Display Parameters
| Total Entries | The total number of entries that can possibly be in the Multicast Forwarding Database table. |
| Most MFDB Entries Ever Used | The largest number of entries that have been present in the Multicast Forwarding Database table. This value is also known as the MFDB high-water mark. |
| Current Entries | The current number of entries in the MFDB. |
ISDP Commands
This section describes the commands you use to configure the industry standard Discovery Protocol (ISDP).
5-570 isdp run
This command enables ISDP on the switch.
Use the no command to disable ISDP on the switch.
isdp run
no isdp run
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-571 isdp holdtime
This command configures the hold time for ISDP packets that the switch transmits. The hold time specifies how long a receiving device should store information sent in the ISDP packet before discarding it. The range is given in seconds.
isdp holdtime 10-255
Parameters
None
Default
The default is 180.
Command Mode
Global Config
5-572 isdp timer
This command sets the period of time between sending new ISDP packets. The range is given in seconds.
isdp timer 5-254
Parameters
None
Default
The default is 30.
Command Mode
Global Config
5-573 isdp advertise-v2
This command enables the sending of ISDP version 2 packets from the device.
Use the no command to disable the sending of ISDP version 2 packets from the device.
isdp advertise-v2
no isdp advertise-v2
Parameters
None
Default
The default is Enabled.
Command Mode
Global Config
5-574 isdp enable
This command enables ISDP on an interface or range of interfaces.
Use the no command to disable ISDP on the interface.
Note: ISDP must be enabled both globally and on the interface in order for the interface to transmit ISDP packets. If ISDP is globally disabled on the switch, the interface will not transmit ISDP packets, regardless of the ISDP status on the interface. To enable ISDP globally, use the command "isdp run".
isdp enable
no isdp enable
Parameters
None
Default
The default is Enabled.
Command Mode
Interface Config
5-575 clear isdp counters
This command clears ISDP counters.
clear isdp counters
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-576 clear isdp table
This command clears entries in the ISDP table.
clear isdp table
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-577 show isdp
This command displays global ISDP settings.
show isdp
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch)#show isdp
Timer.... 30
Hold Time.... 180
Version 2 Advertisements.... Enabled
Neighbors table time since last change.... 0 days 00:00:00
Device ID.... 2S41J000253
Device ID format capability.... Serial Number, Host Name
Device ID format.... Serial Number
Display Parameters
| Timer | The frequency with which this device sends ISDP packets. This value is given in seconds. |
| Hold Time | The length of time the receiving device should save information sent by this device. This value is given in seconds. |
| ISDPv2 Advertisements | The setting for sending ISDPv2 packets. If disabled, version 1 packets are transmitted. |
| Device ID | The Device ID advertised by this device. The format of this Device ID is characterized by the value of the Device ID Format object. |
| Device ID Format Capability | Indicates the Device ID format capability of the device.• serialNumber indicates that the device uses a serial number as the format for its Device ID.macAddressindicates that the device uses a Layer 2 MAC address as the format for its Device ID.otherindicates that the device uses its platform-specific format as the format for its Device ID. |
| Device ID Format | Indicates the Device ID format of the device.serialNumberindicates that the value is in the form of an ASCII string containing the device serial number.macAddressindicates that the value is in the form of a Layer 2 MAC address.otherindicates that the value is in the form of a platform specific ASCII string containing info that identifies the device. For example, ASCII string contains serialNumber appended/prepended with system name. |
5-578 show isdp interface
This command displays ISDP settings for the specified interface.
show isdp interface {all | slot/port}
Parameters
| all | Display ISDP mode for all available interfaces. |
| slot/port | Enter an interface in slot/port format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Switch)#show isdp interface 0/1
Interface Mode
0/1 Enabled
Display Parameters
| Mode | ISDP mode enabled/disabled status for the interface(s). |
5-579 show isdp entry
This command displays ISDP entries. If the device ID is specified, then only entries for that device are shown.
show isdp entry {all | deviceid}
Parameters
| all | Display ISDP entries for all available devices. |
| deviceid | Display ISDP entry information for device ID. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| Device ID | The device ID associated with the neighbor which advertised the information. |
| IP Addresses | The IP address(es) associated with the neighbor. |
| Platform | The hardware platform advertised by the neighbor. |
| Interface | The interface (slot/port) on which the neighbor's advertisement was received. |
| Port ID | The port ID of the interface from which the neighbor sent the advertisement. |
| Hold Time | The hold time advertised by the neighbor. |
| Version | The software version that the neighbor is running. |
| Advertisement Version | The version of the advertisement packet received from the neighbor. |
| Capability | ISDP Functional Capabilities advertised by the neighbor. |
5-580 show isdp neighbors
This command displays the list of neighboring devices.
show isdp neighbors [{slot/port | detail}]
Parameters
| slot/port | Enter an interface in slot/port format. |
| detail | Display ISDP neighbors detail table. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Switching)#show isdp neighbors detail
(Routing)#show isdp neighbors detail
Device ID 0001f52f2bc1
Address(es):
Capability Router
Platform DXS-5000-54S
Interface 0/33
Port ID 0/37
Holdtime 180
Advertisement Version 2
Time when last changed 2 days 05:47:33
Version:
1.2.0.3
Display Parameters
| Device ID | The device ID associated with the neighbor which advertised the information. |
| IP Address(es) | The IP addresses associated with the neighbor. |
| Capability | ISDP functional capabilities advertised by the neighbor. |
| Platform | The hardware platform advertised by the neighbor. |
| Interface | The interface (slot/port) on which the neighbor's advertisement was received. |
| Port ID | The port ID of the interface from which the neighbor sent the advertisement. |
| Hold Time | The hold time advertised by the neighbor. |
| Advertisement Version | The version of the advertisement packet received from the neighbor. |
| Time when last changed | Displays when the entry was last modified. |
| Version | The software version that the neighbor is running. |
5-581 show isdp traffic
This command displays ISDP statistics.
show isdp traffic
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| ISDP Packets Received | Total number of ISDP packets received. |
| ISDP Packets Transmitted | Total number of ISDP packets transmitted. |
| ISDPv1 Packets Received | Total number of ISDPv1 packets received. |
| ISDPv1 Packets Transmitted | Total number of ISDPv1 packets transmitted. |
| ISDPv2 Packets Received | Total number of ISDPv2 packets received. |
| ISDPv2 Packets Transmitted | Total number of ISDPv2 packets transmitted. |
| ISDP Bad Header | Number of packets received with a bad header. |
| ISDP Checksum Error | Number of packets received with a checksum error. |
| ISDP Transmission Failure | Number of packets which failed to transmit. |
| ISDP invalid Format | Number of invalid packets received. |
| ISDP Table Full | Number of times a neighbor entry was not added to the table due to a full database. |
| ISDP IP Address Table Full | Displays the number of times a neighbor entry was added to the table without an IP address. |
Unidirectional Link Detection Commands
The Unidirectional Link Detection (UDLD) feature detects unidirectional links' physical ports. UDLD must be enabled on both sides of the link in order to detect a unidirectional link. The UDLD protocol operates by exchanging packets containing information about neighboring devices.
The purpose of the UDLD feature is to detect and avoid unidirectional links. A unidirectional link is a forwarding anomaly in a Layer 2 communication channel in which a bi-directional link stops passing traffic in one direction.
5-582 udld enable (Global Config)
Use the udld enable command in Global Config mode to enable UDLD globally on the switch.
Use the no command in Global Config mode to disable UDLD globally on the switch.
udld enable
no udd enable
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
Use the udld message time command in Global Config mode to configure the interval between UDLD probe messages on ports that are in the advertisement phase.
Use the no command to remove.
udld message time 7-90
Parameters
None
Default
The default is 15 seconds.
Command Mode
Global Config
5-584 udld timeout interval
Use the udld timeout interval command in Global Config mode to configure the time interval after which the UDLD link is considered to be unidirectional. The interval range is from 5 to 60 seconds.
Use the no command to remove.
udld timeout interval 5-60
Parameters
None
Default
The default is 5 seconds.
Command Mode
Global Config
5-585 udld enable (Interface Config)
Use the udld enable command in Interface Config mode to enable UDLD on the specified interface. Use the no command to in Interface Config mode to disable UDLD on the specified interface.
udld enable
no udld enable
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
5-586 udld port
Use the udld port command in Interface Config mode to select the UDLD mode operating on this interface. If the keyword aggressive is not entered, the port operates in normal mode.
udld port [aggressive]
Parameters
| aggressive | Set aggressive mode on the interface. |
| Default | |
| The default is Normal. | |
| Command Mode | |
| Interface Config |
5-587 udld reset
Use the udld reset command in Privileged EXEC mode to reset all interfaces that have been shut down by UDLD.
udld reset
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
5-588 show uld
Use the show udld command in Privileged EXEC or User EXEC modes to display the global settings of UDLD.
show uld
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show udd
Admin Mode.... Enabled
Message Interval.... 15 seconds
Timeout Interval.... 5 seconds
Display Parameters
| Admin Mode | The global administrative mode of UDLD. |
| Message Interval | The time period (in seconds) between the transmission of UDLD probe packets. |
| Timeout Interval | The time period (in seconds) before making the decision that the link is unidirectional. |
5-589 show udld slot/port
Use the show udld slot/port command in Privileged EXEC or User EXEC modes to display the UDLD settings for the specified slot/port.
| slot/port | Enter an interface in slot/port format. |
| all | Display UDLD mode for all available interfaces. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show udld 0/2
Port Admin Mode UDLD Mode UDLD Status
0/2 Enabled Aggressive Bidirectional
Display Parameters
| Port | The identifying port of the interface. |
| Admin Mode | The administrative mode of UDLD configured on this interface. The mode is either Enabled or Disabled. |
| UDLD Mode | The UDLD mode configured on this interface. The mode is either Normal or Aggressive. |
| UDLD Status | The status of the link as determined by UniDirectional Link Detection (UDLD) protocol. The options are:Undetermined – mode has not collected enough information to determine the state of the link.Not applicable – mode is disabled, either globally or on the port.Shutdown – mode has detected a unidirectional link and shutdown the port. That is, the port is in an errDisabled state.Bidirectional – mode has detected a bidirectional link.Undetermined (Link Down) – mode shuts down a port if it can explicitly determine that the associated link has been faulty for an extended period of time. |
Interface Error Disable and Auto Recovery
Interface error disable automatically disables an interface when an error is detected; no traffic is allowed until the interface is either manually re-enabled or, if auto recovery is configured, the configured auto recovery time interval has passed.
For interface error disable and auto recovery, an error condition is detected for an interface, the interface is placed in a diagnostic disabled state by shutting down the interface. The error disabled interface does not allow any traffic until the interface is re-enabled. The error disabled interface can be manually enabled. Alternatively administrator can enable auto recovery feature. D-LINK OS Auto Recovery re-enables the interface after the expiry of configured time interval.
5-590 errdisable recovery cause
Use this command to enable auto recovery for a specified cause or all causes. When auto recovery is enabled, ports in the diag-disable state are recovered (link up) when the recovery interval expires. If the interface continues to experience errors, the interface may be placed back in the diag-disable state and disabled (link down). Interfaces in the diag-disable state can be manually recovered by entering the no shutdown command for the interface.
Use the no command to disable auto recovery for a specific cause. When disabled, auto recovery will not occur for interfaces in a diag-disable state due to that cause.
errdisable recovery cause {all | udld | storm-control | bpdu | mac-flap | link-flap} no errdisable recovery cause {all | udld | storm-control | bpdu | mac-flap | link-flap}
Parameters
| all | Enable/Disable timer to recover from all error disable state. |
| bpdu | Enable/Disable timer to recover from spanning-tree error disable state. |
| mac-flap | Enable/Disable timer to recover from mac flapping error disable state. |
| storm-control | Enable/Disable timer to recover from storm-control error disable state. |
| udld | Enable/Disable timer to recover from udld error disable state. |
| link-flap | Enable/Disable timer to recover from link flapping error disable state. |
Default
The default is None.
Command Mode
Global Config
5-591 errdisable recovery interval
Use this command to configure the auto recovery time interval. The auto recovery time interval is common for all causes. The time can be any value from 30 to 86400 seconds. When the recovery interval expires, the system attempts to bring interfaces in the diag-disable state back into service (link up).
Use the no command to reset the auto recovery interval to the factory default value of 300.
errdisable recovery interval 30-86400
no errdisable recovery interval
Parameters
None
Default
The default is 300.
Command Mode
Global Config
5-592 show errdisable recovery
Use this command to display the error-disabled auto-recovery configuration status of all configurable causes.
show errdisable recovery
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Routing)#show errdisable recovery
Errdisable Reason Auto-recovery Status
dhcp-rate-limit Disabled
arp-inspection Disabled
udld Disabled
bpduguard Disabled
bpdustorm Disabled
sfp-mismatch Disabled
keepalive Disabled
mac-locking Disabled
denial-of-service Disabled
Timeout for Auto-recovery from D-Disable state 300
Display Parameters
| arp-inspection | Enable/Disable status of arp-inspection auto recovery. |
| bpduguard | Enable/Disable status of bpduguard auto recovery. |
| dhcp-rate-limit | Enable/Disable status of dhcp-rate-limit auto recovery. |
| sfp-mismatch | Enable/Disable status of sfp-mismatch auto recovery. |
| udld | Enable/Disable status of UDLD auto recovery. |
| bpdustorm | Enable/Disable status of bpdustorm auto recovery. |
| keepalive | Enable/Disable status of keepalive auto recovery. |
| mac-locking | Enable/Disable status of MAC locking auto recovery. |
| denial-of-service | Enable/Disable status of DoS auto recovery. |
| time interval | Time interval for auto recovery in seconds. |
6. Data Center Commands
This chapter describes the commands to configure the data center features available in the D-LINK OS CLI. The Data Center Commands section includes the following commands:
Data Center Bridging Exchange Protocol Commands
The Data Center Bridging Exchange Protocol (DCBX) is used by DCB devices to exchange configuration information with directly-connected peers. The protocol is also used to detect misconfiguration of the peer DCB devices and, optionally, for configuration of peer DCB devices.
6-1 Ildp dcbx version
Use the Ildp dcbx version command in Global Configuration mode to configure the administrative version for the Data Center Bridging Capability Exchange (DCBX) protocol. This command enables the switch to support a specific version of the DCBX protocol or to detect the peer version and match it. DCBX can be configured to operate in IEEE mode or CEE mode or CIN. In auto mode, version detection is based on the peer device DCBX version. The switch operates in either IEEE or one legacy modes on each interface.
In auto mode, the switch will attempt to jump start the exchange by sending an IEEE frame, followed by a CEE frame followed by a CIN frame. The switch will parse the received response and immediately switch to the peer version.
Note: CIN is Cisco Intel Nuova DCBX (version 1.0). CEE is converged enhanced ethernet DCBX (version 1.06).
Use the no command to reset the DCBX version to the default value of auto.
lldp dcbx version {auto | cin | cee | ieee}
no lldp dcbx version
Parameters
| auto | Automatically select the version based on the peer response. |
| cin | Force the mode to Cisco-Intel-Nuova. (DCBX 1.0) |
| cee | Force the mode to CEE. (DCBX 1.06) |
| ieee | Force the mode to IEEE 802.1Qaz. |
Default
The default is Auto.
Command Mode
Global Config
Example
The following example configures the switch to use CEE DCBX.
(Routing)(config)#lldp dcbx version cee
6-2 lldp tlv-select dcbxp
Use the lldp tlv-select dcbxp command in Interface Configuration or Global Configuration mode to send specific DCBX TLVs if LLDP is enabled to transmit on the given interface. If no parameter is given, all DCBX TLVs are enabled for transmission. The default is all DCBX TLVs are enabled for transmission. If executed in Interface mode, the interface configuration overrides the global configuration on the designated interface. Entering the command with no parameters enables transmission of all TLVs.
Use the no command to disable LLDP from sending all or individual DCBX TLVs, even if LLDP is enabled for transmission on the given interface.
lldp tlv-select dcbxp [ets-config | ets-recommend | pfc | application-priority] no lldp tlv-select dcbxp [ets-config | ets-recommend | pfc | application-priority]
Parameters
| ets-config | (Optional) Transmit the Enhanced Transmission Selection (ETS) configuration TLV. |
| ets-recommend | (Optional) Transmit the ETS recommendation TLV. |
| pfc | (Optional) Transmit the PFC configuration TLV. |
| application-priority | (Optional) Transmit the application priority TLV. |
Default
The default is as follows: Transmission of all TLVs is enabled.
Command Mode
- Global Config
- Interface Config
Example
The following example configures the port to transmit all TLVs.
(Routing) (Config) #no lldp tlv-select dcbxp
6-3 Ildp dcbx port-role
Use the lldp dcbx port-role command in Interface Configuration mode to configure the port role to manual, auto-upstream, auto-downstream and configuration source. In order to reduce configuration flapping, ports that obtain configuration information from a configuration source port will maintain that configuration for 2x the LLDP timeout, even if the configuration source port becomes operationally disabled.
Use the no command in Interface Configuration mode to configure the port role to manual.
Ildp dcbx port-role {auto-up | auto-down | manual | configuration-source}
no lldp dcbx port-role
Parameters
| auto-up | Advertises a configuration, but is also willing to accept a configuration from the link-partner and propagate it internally to the auto-downstream ports as well as receive configuration propagated internally by other auto-upstr ports. These ports have the willing bit enabled. These ports should be connected to FCFs. |
| auto-down | Advertises a configuration but is not willing to accept one from the link partner. However, the port will accept a configuration propagated internally by the configuration source. These ports have the willing bit set to disabled. Selection of a port based upon compatibility of the received configuration is suppressed. These ports should be connected to a trusted FCF. |
| manual | Ports operating in theManualrole do not have their configuration affected by peer devices or by internal propagation of configuration. These ports will advertise their configuration to their peer if DCBX is enabled on that port. The willing bit is set to disabled on manual role ports. |
| configuration-source | In this role, the port has been manually selected to be the configuration source. Configuration received over this port is propagated to the other auto-configuration ports. Selection of a port based upon compatibility of the received configuration is suppressed. These ports should be connected to a trusted FCF. These ports have the willing bit enabled. |
Default
The default is Manual.
Command Mode
Interface Config
Example
The following example configures an FCF facing port.
(Routing)(Interface 0/1)#1ldp dcbx port-role auto-up
The following example configures an FCoE host facing port.
(Routing)(Interface 0/1)#lldp dcbx port-role auto-down
6-4 show lldp tlv-select
Use the show lldp tlv-select command in Privileged EXEC mode to display the per interface TLV configuration
show lldp tlv-select {interface all | slot/port}
Parameters
| all | All interfaces. |
| slot/port | A valid physical interface specifier. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following command shows the TLVs selected for transmission on multiple interfaces.
(Routing)#show lldp tlv-select interface all
Interface ETS Config ETS Recommend PFC App Priority QCN
0/1 Yes No Yes No Yes
0/2 No No Yes No Yes 4.1.3.2
Display Parameters
| Interfaces | Specifies all the ports on which DCBX TLV can be configured. |
| ETS Config | Specifies the DCBX ets-configuration TLV status of the interfaces. |
| ETS Recommend | Specifies the DCBX DCBX ets-recommendation TLV on the interfaces. |
| PFC | Specifies the DCBX priority flow control TLV on the interfaces. |
| App | Displays App priority Specifies the DCBX application-priority TLV on the interfaces. |
| Priority | App priority Specifies the DCBX application-priority TLV on the interfaces. |
| QCN | Displays the Quantized Congestion Notification (QCN) management point. |
6-5 show lldp dcbx interface
Use the show lldp dcbx interface command in Privileged EXEC mode to display the local DCBX control status of an interface.
show lldp dcbx {interface all | slot/port} [detail | status]
Parameters
| all | All interfaces. |
| slot/port | A valid physical interface specifier. |
| detail | Display detailed DCBX information. |
| status | Displays a status summary. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows DCBX status.
(Routing)#show lldp dcbx interface all
Is configuration source selected....False
Interface Status Role Version DCBX Tx DCBX Rx DCBX Errors unknown TLV
0/1 Disabled Manual Auto 0 0 0 0
0/2 Disabled Manual Auto 0 0 0 0
0/3 Disabled Manual Auto 0 0 0 0
0/4 Disabled Manual Auto 0 0 0 0
0/5 Disabled Manual Auto 0 0 0 0
0/6 Disabled Manual Auto 0 0 0 0
0/7 Disabled Manual Auto 0 0 0 0
0/8 Disabled Manual Auto 0 0 0 0
In the following example, DCBX is not enabled.
(Routing)#show lldp dcbx interface 0/1
DCBX operational status:...... Disabled (Reason: LLDP TX/RX is disabled.)
Configured DCBX version:...... Auto
Peer DCBX version:......
Peer MAC:......
Peer Description:......
Auto-configuration Port Role:...... Manual
Peer Is configuration Source:...... False
Error counters:
ETS incompatible configuration.... 0
PFC incompatible configuration.... 0
Disappearing neighbor.... 0
Multiple neighbors detected.... 0
The following example displays details.
(Routing)#show lldp dcbx interface 0/1 detail
DCBX operational status.... Disabled (Reason: LLDP Tx/Rx is disabled.)
Configured DCBX version:.... Auto
Peer DCBX version:.....
Peer MAC:.....
Peer Description:.....
Auto-configuration Port Role:.... Manual
Peer Is configuration Source:.... False
Error counters:
ETS incompatible configuration.... 0
PFC incompatible configuration.... 0
Disappearing neighbor.... 0
Multiple neighbors detected.... 0
Local configuration:
PFC configuration (Tx enabled)
willing: False MBC: False Max PFC classes supported: 8
PFC enable vector: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
ETS configuration (Tx enabled)
Quantized Congestion Notification Commands
The Quantized Congestion Notification (QCN) feature is an aspect of the Data Center Package.
6-6 qcn enable
The qcn enable command is used in the Global Configuration mode in order to enable QCN on all of the ports of the system, that is, the command is a master enable control. Once QCN has been enabled, the system will recognize the CN-TAG in any received frames, such that the Congestion algorithm will run on the configured Congestion Points (CP) while Congestion Notification Messages (CNMs) will be transmitted in the event that congestion is detected on a CP.
The no command is used in the Global Configuration mode in order to disable QCN on all of the ports of the system. Once QCN has been disabled, the received frames with CN-TAGs will be treated as normal data frames and no CNMs will ever be generated.
qcn enable
no qcn enable
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
6-7 qcn cnm-transmit-priority
The qcn cnm-transmit-priority command is used in the Global Configuration mode in order to globally configure the dot1p priority value for the congestion notification messages (CNM) that are sent by the system. By default, CNMs are sent with a dot1p priority value of zero.
The no command is used in the Global Configuration mode in order to reset the dot1p priority value for the CNMs transmitted by the system back to the default value.
qcn cnm-transmit-priority dot1p-priority
no qcn cnm-transmit-priority
Parameters
| dot1p-priority | Enter dot1p priority, range 0-7. |
| Default | |
| The default is 0. | |
| Command Mode | |
| Global Config |
6-8 qcn cnpv-priority (datacenter bridging config)
The qcn cnpv-priority command is used in the Data Center Bridging Configuration mode in order to globally configure a CP (port-queue) that has been mapped to the specified dot1p priority as a congestion enabled (interior), congestion disabled (disable), or edge congestion point (edge) for all the ports that have the defense mode configured as component.
qcn cnpv-priority cnpv-priority {interior | edge | disable}
Parameters
| cnpv-priority | The range is 0-7. |
| interior | Interior congestion point (ICP). Used when a flow with the specified dot1p priority needs to be congestion aware. This setting enables detection of congestion of the selected priority. |
| edge | Edge congestion point (ECP). Used when the congestion point(CP) is on the edge of the congestion notification domain (CND). |
| disable | Disabled for QCN. Used when it is desired that the priority be |
congestion unaware. This setting disables detection of congestion on the priority.
Default
The default is Disabled QCN Priorities.
Command Mode
Data Center Bridging Config
6-9 qcn cnpv-priority alternate-priority
The qcn cnpv-priority alternate-priority command is used in the Global Configuration mode in order to globally configure the alternate priority of the selected cnpv-priority, such that when a frame with a dot1p priority equal to the congestion notification priority value is received, the priority value in the frame will be remarked with the alternate priority. The alternate priority is only applied to incoming frames if the dot1p priority of the incoming frame is equal to the Congestion Notification Priority Value (CNPV) priority of the CP and the CP is configured as Edge.
The alternate priority setting is used to steer away any traffic that is sent from CN-unaware sources. When entering the Congestion Notification Domain (CND) domain, traffic from non-congestion aware sources is remarked so that those resources granted to the congestion-enabled queues will not be exhausted with traffic from QCN unaware sources. Since those frames are being sent from non-QCN sources, they will not have a CN-TAG. As such, if the frames are mapped to the congestion-enabled queue, they may contribute to congestion and, as a result, trigger the generation of CNMs. This is not helpful for sources that are QCN-unaware.
This configuration will be applied to all the ports for which the defense-mode-choice is configured as component.
The no command is used in the Global Configuration mode to reset the alternate priority back to the default value.
qcn cnpv-priority cnpv-priority alternate-priority non-cnpv-priority no qcn cnpv-priority cnpv-priority alternate-priority
Parameters
| cnpv-priority | The range is 0-7. |
| non-cnpv-priority | The range of alternate priority is 0-7. |
Default
The default is None.
Command Mode
Global Config
6-10 qcn cnpv-priority cp-creation
The qcn cnpv-priority cp-creation command is used in the Global Configuration mode to globally configure the default scope of the per port-priority defense mode choice that is made whenever a CP is newly created. The default scope in question can be admin or component.
qcn cnpv-priority cnpv-priority cp-creation {enable | disable}
Parameters
| cnpv-priority | The range is 0-7. |
| enable | If cp-creation is enabled, the per-port defense mode choice is set to component |
| disable | If cp-creation is disabled, the per-port defense mode choice is set to admin. |
Default
The default is Enabled for qcn cp-creation.
Command Mode
Global Config
6-11 qcn cnpv-priority defense-mode-choice
The qcn cnpv-priority defense-mode-choice command is used in the Interface Configuration mode to choose admin or component as the defense mode of an interface, that is, to choose whether the interior/edge/disable and alternate priorities will use the per-priority configuration or per-port-priority configuration.
qcn cnpv-priority cnpv-priority defense-mode-choice {admin | component}
Parameters
| cnpv-priority | The range is 0-7. |
| admin | Per priority. |
| component | Per priority level configuration. |
Default
The default is Enabled.
Command Mode
Interface Config
6-12 qcn cnpv-priority
The qcn cnpv-priority command is used in the Interface Config mode in order to configure a CP (port-queue) that has been mapped to the specified dot1p priority as a congestion enabled (interior), congestion disabled (disabled), or edge congestion point (edge) for a given interface that has the defense mode configured as component and a defense mode of Admin.
This configuration is only applied in the event that the defense mode choice is configured as Admin.
qcn cnpv-priority cnpv-priority {interior | edge | disable}
Parameters
| cnpv-priority | The range is 0-7. |
| interior | Interior congestion point (ICP). Used when a flow with the specified dot1p priority needs to be congestion aware. This setting enables detection of congestion of the selected priority. |
| edge | Edge congestion point (ECP). Used when the congestion point (CP) is on the edge of the congestion notification domain (CND). |
| disable | Disabled for QCN. Used when it is desired that the priority be congestion unaware. This setting disables detection of congestion on the priority. |
Default
The default is Disabled for all QCN priority.
Command Mode
Interface Config
6-13 qcn cnpv-priority alternate-priority
The qcn cnpv-priority alternate-priority command is used in the Interface Configuration mode in order to configure the alternate priority on an interface for a specified incoming ICP priority. This alternate-priority will override the alternate-priority that has been set in the global mode for this incoming ICP priority on the given port. This configuration is only applied in the event that the defense mode is configured as Admin.
The no command is used in the Interface Configuration mode to reset the alternate priority value of the given port-priority back to the default value. In the event that a global alternate priority value has been configured, it will be used.
qcn cnpv-priority cnpv-priority alternate-priority alternate-priority
no qcn cnpv-priority cnpv-priority alternate-priority
Parameters
| cnpv-priority | Enter dot1p priority, range 0-7. |
| alternate-priority | Configure priority to remark the traffic when defense-mode is edge. |
Default
The default is Globally configured alternative-priority.
Command Mode
Interface Config
6-14 qcn transmit-tlv enable
The qcn transmit-tlv enable command is used in the Interface Configuration mode in order to enable the transmission of QCN TLVs via LLDP.
The no command is used in the Interface Configuration mode in order to configure the mode of the QCN TLV transmission to disabled. QCN TLVs transmissions are propagated via LLDP.
qcn transmit-tlv enable
no qcn transmit-tlv enable
Parameters
None
Default
The default is Disabled QCN TLVs transmission.
Command Mode
Interface Config
6-15 clear qcn statistics
The clear qcn statistics command is used in the Privileged EXEC mode in order to clear the CNM transmitted counters for the given CP. In the event that a specific interface and CP are not mentioned, then the command will clear all the CNM counters for all of the CPs in the system. If an interface number only is specified, then only all of the CNM transmit counters on that interface will be cleared.
clear qcn statistics [slot/port] [cp cp-index]
Parameters
| slot/port | (Optional) If only the interface number is specified, then all the CNM transmit counters on that interface are cleared. |
| cp-index | (Optional) If only the cp index is specified, then CNM transmit counters for that cp index on all interfaces are cleared. |
Default
The default is None.
Command Mode
Privileged EXEC
6-16 show qcn priority
The show qcn priority command is used in the Privileged EXEC mode to show the QCN configuration
show qcn priority [priority] [interface slot/port | all]
Parameters
| priority | If only priority is specified, then per-priority configuration is displayed. |
| slot/port | If the interface number is also specified, then the command displays the configuration per-port-priority for the given priority. |
| all | If all is specified, then per priority information for all dot1p priorities is displayed. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show qcn priority 1
Global Configuration:
QCN status (Master enable) : Enabled
CNM transmit priority : 0
Per-priority configuration:
Defense mode: interior
Alternate priority: 2
cp-creation: disabled
Errored port list: 0/1,0/8
LLDP mismatch port list: 0/5-8
Configured as CNPV on ports: 0/1,0/7-12
The following is an example of the CLI display output for the command.
(Routing)#show qcn priority
Global Configuration:
QCN status (Master enable) : Enabled
CNM transmit priority : 0
Per-priority configuration:
dot1p- Defense- Alternate- cp- Errored LLDP Configured as
priority mode priority creation Port List mismatch list cnpv on ports
----
0 disabled - - - - -
1 interior 0 enable 0/1,0/8 0/5-7 0/1-10
2 edge 0 disable 0/1 0/5-7 0/1-10
3 disabled - - - - -
4 disabled - - - - -
5 disabled - - - - -
6 disabled - - - - -
7 disabled - - - - -
The following is an example of the CLI display output for the command.
(Routing)#show qcn priority 1 interface 0/1
Global Configuration:
QCN status (Master enable) : Enabled
CNM transmit priority : 0
Per-port-priority configuration:
Defense mode choice: admin
Defense mode: interior
Alternate priority: 2
The following shows example CLI display output for the command.
(Routing) #show qcn priority 1 interface all
Global Configuration:
QCN status (Master enable) : Enabled
CNM transmit priority : 0
Per-port-priority configuration
Interface Number Defense-mode Choice Defense Mode Alternate Priority
0/1 admin disabled -
0/2 admin interior 2
0/3 admin edge -
0/4 component interior 3
6-17 show qcn active priority
The show qcn active priority command is used in the Privileged EXEC mode to show the operational QCN configuration for the dot1p priority specified.
show qcn active priority 0-7
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
(Routing)#
Interface Number Defense mode Alternate priority
0/1 interior 2
0/2 edge -
0/3 interior 0
0/4 disabled -
0/5 interior -
The following is an example of the CLI display output for the command.
(Routing)#show qcn active priority 1
Port Defense mode Alternate priority
0/1 disable 0
0/2 disable 0
0/3 disable 0
0/4 disable 0
0/5 disable 0
0/6 disable 0
0/7 disable 0
0/8 disable 0
0/9 disable 0
--More-- or (q)uit
6-18 show qcn interface
The show qcn interface command is used in the Privileged EXEC mode to show the Congestion Point information for the port specified.
show qcn interface slot/port [cp-index cp-index]
Parameters
| slot/port | Indicates the slot/port interface. |
| cp-index cp-index | (Optional) Enter the congestion point index |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show qcn interface 0/1 cp-index 1
Interface 0/1
cp-index 1
MAC-Address 00:10:18:00:00:FF
CP-Identifier : 00012610071005
CNM-transmit-Priority 0
Congestion queue weight
Sample-base
Cp-Sizesetpoint
Min-HeaderOctets
Note: CPID can be deciphered as mentioned below 000126 : Last 3 bytes of system MAC Address
1 - unit number on which congestion is detected
0 - slot number on which congestion is detected
07 - port number on which congestion is detected
1 - unit number from which CNM is transmitted
0 - slot number from which CNM is transmitted
05 - port number on which CNM is transmitted
6-19 show qcn statistics
The show qcn statistics command is used in the Privileged EXEC mode to show the statistics of the CNM and the data frames of all the ports or of a specific CP of the given port.
show qcn statistics {slot/port cp-index cp-index}
Parameters
| interface slot/port | Display CP information for interface in slot/port format. |
| cp-index cp-index | Display the CP index for the interface. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following data is shown in a tabular format as the output for this command.
(Routing)#show qcn statistics interface 0/1 cp-index 1
Interfax Cp Index CNMs transmitted
0/1 1 1230
FIP Snooping Commands
The Fibre Channel over Ethernet (FCoE) Initialization Protocol (FIP) is utilized in order to perform the functions of FC_BB_E device discovery, initialization, and maintenance. The FIP uses a separate EtherType from FCoE in order to enable the capacity to distinguish discovery, initialization, and maintenance traffic from other types of FCoE traffic. With only one exception, FIP frames are of the standard Ethernet size (that is, 1518 Byte 802.1q frame), while FCoE frames have a maximum size of 2240 bytes.
This document describes FIP snooping. FIP snooping is a frame inspection method that is used by FIP Snooping Bridges in order to monitor FIP frames and to apply policies based upon the L2 header information included in those frames, following the recommendations in Annex C of FC_BB_5 Rev 2.00. This makes the following actions possible:
- The auto-configuration of Ethernet ACLs according to information included in the Ethernet headers of FIP frames.
- The emulation of FC point-to-point links within the DCB Ethernet network.
- The enhancement of FCoE security/robustness through the prevention of FCoE MAC spoofing.
In D-LINK OS, the FIP Snooping Bridge solution supports configuration-only of the perimeter port role and the FCF-facing port roles and is intended only for use at the edge of the switched network.
The roles of FIP Snooping-enabled ports on the switch are categorized under one of the following types:
-
Perimeter or Edge port (that is, connected directly to ENode).
-
FCF facing port (that is, a port that receives traffic from the FCFs targeted to the ENodes).
6-20 feature fip-snooping
The feature fip-snooping command is used in the Global Configuration mode in order to globally enable Fibre Channel over Ethernet Initialization Protocol (FIP) snooping on the switch. Any received FIP frames are forwarded or flooded using the normal multicast rules if FIP snooping is disabled.
When it is enabled, however, FC-BB-5 Annex D ACLs will be installed on the switch and the FIP frames will be snooped. Unless and until a port is operationally enabled for PFC, then FIP snooping will not permit FIP or Fibre Channel over Ethernet (FCoE) frames to be forwarded over that port. And, in order to carry dot1p values through the network, VLAN tagging must be enabled on the interface.
The no command is used to reset the settings back to the default values and to globally disable FIP snooping. Any received FIP frames will be forwarded or flooded using the normal multicast rules when FIP snooping is disabled. In addition, no other FIP snooping commands will be available until the FIP snooping feature has been enabled.
feature fip-snooping
no feature fip-snooping
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
Example
The following example of the command enables the FIP snooping feature.
s1(config)#feature fip-snooping
The following example of the no command disables the FIP snooping feature.
s1(config)#no feature fip-snooping
6-21 fip-snooping enable
The fip-snooping enable command is used in the VLAN Configuration mode in order to enable the snooping of FIP packets on the configured VLANs. (By default, FIP snooping is disabled on VLANs.)
Before FIP snooping can operate on an interface, Priority Flow Control (PFC) must be operationally enabled. Meanwhile, VLAN tagging has to be enabled on the interface in order for the dot1p value to be carried through the network.
This command may only be input after FIP snooping has been enabled using the “priority-flow-control mode” command. Otherwise, the command will not appear in the CLI syntax tree.
The no command resets the mode to the default setting (off).
fip-snooping enable
no fip-snooping enable
Parameters
None
Default
The default is Disable.
Command Mode
VLAN Config
Example
The following example of the command enables FIP snooping on VLANs 2 through 8.
s1(config)#vlan 2-8
s1 (Config) (Vlan 2-8) #fip-snooping enable
The following example of the command disables FIP snooping on VLANs 2 through 8.
s1(config)#vlan 2-8
s1(config)(vlan 2-8)#no fip-snooping enable
s1(config)(vlan 2-8)#exit
6-22 fip-snooping fc-map
The fip-snooping fc-map command is used in the VLAN Configuration mode in order to configure the FP-MAP value on a VLAN. This value helps to secure the switch against misconfiguration.
If they have been configured using fabric-provided MAC addresses, then FCoE devices will transmit any frames containing the FC map value in the upper 24 bits. However, only those frames that match the configured FC map value will be passed across the VLAN, while any other frames will be discarded.
This command may only be input after FIP snooping has been enabled. Otherwise, the command will not appear in the CLI syntax tree.
The no command resets the FC-MAP value for the VLAN back to the default value.
fip-snooping fc-map map value
no fip-snooping fc-map
Parameters
| map value | Valid FC map values are in the range of 0x0 to 0xffffff. |
Default
The default is 0x0efc00.
Command Mode
VLAN Config
Example
The following example of the command configures an FC map value of 0x100 on VLAN 208.
(config)#vlan 208
(config)(vlan 208)#fip-snooping enable
(config)(vlan 208)#fip-snooping fc-map 0x100
The following example of the command configures an FC map value 0xFFCB for VLANs 2 through 8
(config)#vlan 2-8
(config)(vlan 2-8)#fip-snooping fc-map 0xecffcb
(config)(vlan 2-8)#exit
6-23 fip-snooping port-mode
The switch must know the interfaces to which the Fibre Channel Fabric (FCF) is connected in order to relay FIP packets received from the hosts toward the FCF. The fip-snooping port-mode command is used in the Interface Configuration mode to configure an interface to face towards the FCF. If an interface is not configured to be an FCF-facing interface, then it will, by default, be a host-facing interface.
In order to receive DCBX information and propagate it to the CNAs on the downstream (host-facing) ports, it is recommended that FCF-facing ports be placed into the auto-upstream mode.
Meanwhile, before FCoE traffic can pass over the port, interfaces enabled for PFC should be configured in the trunk mode or the general mode and must be PFC-operationally enabled.
The fip-snooping port-mode command can only be input after FIP snooping has been enabled using the "priority-flow-control mode" command. Otherwise, the command will not appear in the CLI syntax tree.
The no command is used to set the interface to face towards the host.
fip-snooping port-mode fcf
no fip-snooping port-mode fcf
Parameters
| fcf | Fibre Channel Fabric. |
Default
The default is as follows: host-facing interface.
Command Mode
Interface Config
Example
The following example of the command configures an interface to be connected with an FCF switch.
(Config)#interface 0/1
(Interface 0/1)#fip-snooping port-mode fcf
(Interface 0/1)#exit
The following example of the command sets an interface to be connected with the host.
(Config)#interface 0/1
(Interface 0/1)#no fip-snooping port-mode fcf
(Interface 0/1)#exit
6-24 show fip-snooping
The show fip-snooping command is used in the User EXEC or the Privileged EXEC mode to show information regarding the global FIP snooping configuration and status.
show fip-snooping
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is an example of the CLI display output for the command.
(switch)#show fip-snooping
Global Mode: Enable
FCoE VLAN List: 2,4,5-8
FCFs: 2
ENoi:les : 2
Sessions : 10
Max VLANs: 8
Max FCFs in VLAN: 4
Max ENodes: 312
Max Sessions: 1024
Display Parameters
| Global Mode | FIP snooping configuration status on the switch. It displays Enable when FIP snooping is enabled on the switch and Disable when FIP snooping is disabled on the switch. |
| FCoE VLAN List | List of VLAN IDs on which FIP snooping is enabled. |
| FCFs | Number of FCFs discovered on the switch. |
| ENodes | Number of ENodes discovered on the switch. |
| Sessions | Total virtual sessions on the switch. |
| Max VLANs | Maximum number of VLANs that can be enabled for FIP snooping on the switch. |
| Max FCFs in VLAN | Maximum number of FCFs supported in a VLAN. |
| Max ENodes | Maximum number of ENodes supported in the switch. |
| Max Sessions | Maximum number of Sessions supported in the switch. |
Priority-Based Flow Control Commands
Typically, when a physical link is enabled with flow control, the flow control is applied to all of the traffic on the link. In the event of congestion, the hardware then sends pause frames that halt the traffic flow temporarily, which helps to prevent buffer overflow and the dropping of frames.
Priority-based flow control (PFC) provides a means by which to determine, based on the priority of the traffic, which traffic on a physical link will be paused when congestion occurs. It is possible to configure an interface to pause only high priority (that is, loss-sensitive) traffic as necessary to prevent dropped frames, while still allowing traffic with greater loss tolerance to continue flowing over the interface.
The priority field of the IEEE 802.1Q VLAN header differentiates among priorities, with the field identifying the given IEEE 802.1 p priority value. In D-LINK OS, it is required that these priority value be mapped to internal class-of-service (CoS) values.
The following steps should be taken to enable priority-based flow control for a specific CoS value on a given interface:
- Ensure that VLAN tagging has been enabled on the interface to make sure that the 802.1p priority values are transmitted through the network.
- Ensure that the 802.1p priority values are then mapped to the relevant D-LINK OS CoS value.
The interface defaults to the IEEE 802.3x flow control setting for the interface when priority-flow-control is disabled. When, in contrast, priority-based flow control has been enabled, the interface will not cause any CoS to be paused unless at least one no-drop priority is present.
6-25 priority-flow-control mode
The priority-flow-control mode command is used in the Datacenter-Bridging Config mode in order to enable Priority-Flow-Control (PFC) on a specific interface.
In order to carry the dot1p value through the network, VLAN tagging (whether trunk or general mode) has to be enabled on the interface. Additionally, the setting for dot1mapping to class-of-service must be one-to-one.
The normal PAUSE control mechanism is operationally disabled when PFC is enabled on an interface.
The no command is used to reset the PFC mode to the default mode (off).
priority-flow-control mode {on | off}
no priority-flow-control mode
Parameters
| on | Enable PFC on the interface |
| off | Disable PFC on the interface. |
Default
The default is Priority-flow-control mode Off (disabled).
Command Mode
Datacenter-Bridging Config
Example
The following example of the command enables PFC on an interface.
(Routing) (Config) #interface 0/1
(Routing) (Interface 0/1) #datacenter-bridging
(Routing) (config-if-dcb) #priority-flow-control mode on
6-26 priority-flow-control priority
The priority-flow-control priority command is used in the Datacenter-Bridging Config mode in order to enable the priority group for lossy (drop) or lossless (no-drop) behavior on the given interface. A maximum of two lossless priorities may be enabled on a single interface. In order to ensure end-to-end lossless behavior, the administrator must configure the no-drop priorities to be the same across the network.
The command does not have any effect on those interfaces not enabled for PFC. In addition, VLAN tagging must be turned on to transmit the dot1p value through the network, while the setting of dot1pmapping to class-of-service must be one-to-one.
The no command is used in the Datacenter-Bridging Config mode in order to enable lossy behavior for all priorities on the given interface. Use of the command will have no effect, however, on those interfaces not enabled for PFC or that have no lossless priorities configured.
priority-flow-control priority priority-list (drop | no-drop)
no priority-flow-control priority
Parameters
| priority-list | Indicates the priority list. |
| drop | Disable lossless behavior on the selected priorities. |
| no-drop | Enable lossless behavior on the selected priorities. |
Default
The default is Drop.
Command Mode
Datacenter-Bridging Config
Example
The following example of the command sets priority 3 to no-drop behavior.
(Routing) (ConFig)#interface 0/1
(Routing) (Interface 0/1)#datacenter-bridging
(Routing) (config-if-dcb)#priority-flow-control mode on
(Routing) (config-if-dcb)#priority-flow-control priority 3 no-drop
6-27 clear priority-flow-control statistics
The clear priority-flow-control statistics command is used to delete all global and interface PFC statistics.
clear priority-flow-control statistics
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the command.
(Routing)#clear priority-flow-control statistics
6-28 show interface priority-flow-control
The show interface priority-flow-control command is used in the Privileged EXEC mode in order to display the PFC information for a given interface or all of the interfaces.
show interface [slot/port] priority-flow-control
Parameters
| slot/port | Indicates a valid slot/port identifier. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following examples of the command cause the priority flow control status and statistics to be shown.
(Routing) #show interface 0/1 priority-flow-control
Interface Detail: 0/1
PFC Configured State: Disabled
PFC Operational State: Enabled
Configured Drop Priorities: 2-7
Operational Drop Priorities: 2-7
Configured No-Drop Priorities: 0-1
Operational No-Drop Priorities: 0-1
Delay Allowance: 32456 bit times
Peer Configuration Compatible: True
Compatible Configuration Count: 3
Incompatible Configuration Count: 1
Priority Received PFC Frames Transmitted PFC Frames
0 0 0
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
(Routing)#show interface priority-flow-control
Port Drop Priorities No-Drop Priorities Oper State
0/1 1-4,7 5,6 Enabled
0/2 1-4,6-7 5 Enabled
...
0/48 1-4,7 5,6 Enabled
Display Parameters
| Interface Detail | The port for which data is displayed. |
| PFC Operational Status | The operational status of the interface. |
| PFC Configured State | The administrative mode of PFC on the interface. |
| Configured Drop Priorities | The 802.1p priority values that are configured with a drop priority on the interface. Drop priorities do not participate in pause. |
| Configured No-Drop Priorities | The 802.1p priority values that are configured with a no-drop priority on the interface. If an 802.1p priority that is designated as no-drop is congested, the priority is paused. |
| Operational Drop Priorities | The 802.1p priority values that the switch is using with a drop priority. The operational drop priorities might not be the same as the configured priorities if the interface has accepted different priorities from a peer device. |
| Operational No-Drop Priorities | The 802.1p priority values that the switch is using with a no-drop priority. The operational drop priorities might not be the same as the configured priorities if the interface has accepted different priorities from a peer device. |
| Delay Allowance | The operational status of the interface. |
| Peer Configuration Compatible | Indicates whether the local switch has accepted a compatible configuration from a peer switch. |
| Compatible Configuration Count | The number of received configurations accepted and processed as valid. This number does not included duplicate configurations. |
| Incompatible Configuration Count | The number of received configurations that were not accepted from a peer device because they were incompatible. |
| Priority | The 802.1p priority value. |
| Received PFC Frames | The number of PFC frames received by the interface with the associated 802.1p priority. |
| Transmitted PFC Frames | The number of PFC frames transmitted by the interface with the associated 802.1p priority. |
OpenFlow Commands
The OpenFlow feature is used to enable management of the switch via a centralized OpenFlow Controller and used of the OpenFlow protocol.
6-29 openflow enable
The openflow enable command enables the OpenFlow feature. However, if the OpenFlow feature is not in the disabled state when the command is issued, then issuing it will have no effect on the OpenFlow feature.
The no command is used to disable the OpenFlow feature. The OpenFlow feature can be disabled administratively at any time.
openflow enable no openflow enable
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
6-30 openflow static-ip
The openflow static-ip command is used to set the IP address that will be used for the OpenFlow feature. Only when the static IP mode is enabled will the static IP be applied. Also, in order for the static IP address to be used for the OpenFlow feature, the switch must have an operational IP interface with the specified address. Otherwise, the OpenFlow feature is operationally disabled.
In the event that the OpenFlow feature is enabled upon issuing of this command and the specified static IP address is not the IP address already being used by the OpenFlow feature, then the feature will be automatically disabled and then re-enabled.
The no command is used to set the OpenFlow static IP address to 0.0.0.0. The OpenFlow feature will become operationally disabled if this command is issued when OpenFlow is enabled and using a static IP.
openflow static-ip IPv4 Address
no openflow static-ip
Parameters
| IPv4 Address | Enter a valid IP address. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
6-31 openflow controller
This command is used to specify up to twenty IP addresses with which the switch should establish an OpenFlow Controllers connection. One IP address and connection mode (TCP or SSL) are specified by each use of the command, while the default IP port number 6633 will be used if the IP Port is omitted. By
default, the connection mode is SSL. The controller table that is configured by this command will be used by the switch in the OpenFlow 1.0/1.3 modes.
The no command is used to delete the specified OpenFlow Controller IP address or to delete all of the Controller addresses. All of the entries for the specified IP address will be deleted if the IP Port number is omitted.
openflow controller ip-address [ip-port] [connection mode]
no openflow controller {ip-address [ip-port] | all}
Parameters
| ip-address | Specify up to twenty IP addresses to which the switch should establish an OpenFlow Management connection. |
| portid | IP port to use for an OpenFlow Management connection. If the IP Port is omitted, then the default IP port number 6633 is used. |
| connection mode | TCP or SSL. The default is SSL. |
| all | Indicates deleting. |
Default
The default is as follows: 6633 (adding), all (deleting).
Command Mode
Global Config
6-32 openflow default-table
This command is used to configure the Hardware Table that will be used as the target for any flows transmitted by an OpenFlow 1.0 controller that has not been enhanced to handle multiple hardware tables. The parameter can only be applied when the OpenFlow variant is set to OpenFlow 1.0.
openflow default-table parameter
Parameters
| parameter | Possible values are full-match or layer-2-match. |
| Default | |
| The default is Full-match. | |
| Command Mode | |
| Global Config |
6-33 openflow ip-mode
This command is used to direct the OpenFlow feature to use the configured IP address. If this command is issued when the OpenFlow feature is already enabled, it will cause the feature to become disabled and then re-enabled with the new IP address.
The no command is used to direct the OpenFlow feature to assign the IP address to itself automatically.
openflow ip-mode {auto | static | serviceport}
no openflow ip-mode
Parameters
| auto | Use network IP address. |
| static | Use static IP address. |
| serviceport | Use serviceport IP address. |
Default
The default is Disabled.
Command Mode
Global Config
6-34 openflow passive-mode
This command is used to enable the OpenFlow passive-mode.
No command disables the OpenFlow passive-mode.
openflow passive-mode
no openflow passive-mode
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
6-35 openflow variant
This command is used to configure the OpenFlow feature to the variant specified. The user can configure the OpenFlow feature so that it uses one of two variants, OpenFlow 1.0 or OpenFlow 1.3. By default, the OpenFlow feature is configured to use OpenFlow 1.3.
openflow variant {openflow10 | openflow13}
Parameters
None
Default
The default is OpenFlow 1.3.
Command Mode
Global Config
6-36 clear openflow ca-cert
This command is used to erase the Certificate Authority certificates that are used to validate the OpenFlow Controllers from the switch. Issuing of the command will automatically disable and then re-enable the OpenFlow feature. The new SSL certificates will then be reloaded from the OpenFlow Controller upon the first connection to the controller, or they can be loaded manually with a copy command.
clear openflow ca-cert
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
6-37 show openflow
This command is used to show the status and configuration information for the OpenFlow feature.
show openflow
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show openflow
Administrative Mode..... Enable
Administrative Status..... Disabled
Disable Reason..... No-Suitable-IP-Interface
IP Address..... None
IP Mode..... Auto
Static IP Address..... 10.1.1.1
OpenFlow Variant..... Tenant Networking
Default Table..... layer-2-match
Passive Mode..... Enable
The following is an example of the CLI display output for the command
(Routing)#show openflow
Administrative Mode..... Enable
Administrative Status..... Enabled
Disable Reason..... None
IP Address..... 10.27.65.64
IP Mode..... Auto
Static IP Address..... 10.1.1.1
OpenFlow Variant..... OpenFlow 1.0
Passive Mode..... Enable
Display Parameters
| Administrative Mode | The OpenFlow feature administrative mode set by the command. |
| Administrative Status | The operational status of the OpenFlow feature. Although the feature may be administratively enabled, it could be operationally disabled due to various reasons. |
| Disable Reason | If the OpenFlow feature is operationally disabled, then this status shows the reason for the feature to be disabled. |
| IP Address | IPv4 Address assigned to the feature. If the IP address is not assigned,then the status is None. |
| IP Mode | IP mode assigned by the command. The IP mode can be Auto, Static, or ServicePort IP. |
| Static IP Address | Static IP address assigned by the command. |
| OpenFlow Variant | OpenFlow Protocol Variant. The OpenFlow protocol can be OpenFlow 1.0 or OpenFlow 1.3. |
| Default Table | The Hardware Table used as the target for flows installed by an OpenFlow 1.0 controller which is not enhanced to handle multiple hardware tables. |
| Passive Mode | The OpenFlow passive mode set by the command. |
6-38 show openflow configured controller
This command is used to display a list of the configured OpenFlow Controllers. Only when the OpenFlow variant is 1.0 or 1.3 will the switch communicate with these controllers.
show openflow configured controller
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show openflow configured controller
IP Address IP Port Connection Mode Role
172.21.4.217 6633 SSL Master
Display Parameters
| IP Address | IPv4 address of the controller. |
| IP Port | IPv4 port number for the controller connection. |
| Connection Mode | SSL or TCP Controller Connection mode. |
| Role | The role of the controller: Master, Equal, Slave. |
6-39 show openflow installed flows
This command is used to show the list of configured flows on the switch.
show openflow installed flows [dest_ip ip-address | dest_ip_port 1-65535 | dest_mac macaddr | dscp 0-63 | ether_type 0-0xFFFF | ingress_port slot/port | ip_proto 0-255 | priority 1-65535 | source_ip ip-address | source_ip_port 1-65535 | source_mac macaddr | table 4,24,25 | vlan 1-4093 | vlan_prio 0-7]
Parameters
| dest_ip ip-address | The IP address of the destination. |
| dest_ip_port 1-65535 | The port number of the destination. |
| dest_mac macaddr | The MAC address of the destination. |
| dscp 0-63 | The DSCP value. |
| ether_type 0-0xFFFF | The ethertype value. |
| ingress_port slot/port | The slot and port for the ingress. |
| ip_proto 0-255 | The IP protocol. |
| priority 1-65535 | The priority of the flow. |
| source_ip ip-address | The IP address of the source. |
| source_ip_port 1-65535 | The port number of the source. |
| source_mac macaddr | The MAC address of the source. |
| table 4,24,25 | The table number. |
| vlan 1-4093 | Indicates an interface in VLAN format (1-4093). |
| vlan_prio 0-7 | The VLAN priority. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command regarding the flow type 1DOT0.
(Routing) #show openflow installed flows
Flow type "1DOT0"
Match criteria:
Flow table 24 : Priority 1
Ingress port 0/0
Actions:
Action: Drop
Status:
Duration: 2 : Idle 0 : installed in hardware 1
Flow type "1DOT0"
Match criteria:
Flow table 24 : Priority 102
Ingress port 0/0 : Ether type 88CC
Actions:
Status:
Duration 55 : Idle 45 : installed in hardware 1
The following is an example of the CLI display output for the command regarding the flow type 1DOT3.
(Routing)#show openflow installed flows
Flow type "1DOT3"
Match criteria:
Flow table 60 : Priority 10
Ingress port 0/1 : Src MAC 00:00:02:37:38:01 : Dst MAC 00:00:18:37:22:01
VLAN 1 : VLAN prio 1 : Ether type 0x0800
IP proto 17 : Src IP 100.0.0.225 : Dst IP 192.0.0.225
Src IP port 1 : Dst IP port 1 : TOS 32(DSCP: 8)
Actions:
New Src IP 3.3.3.3 : New SrcIP Mask 255.255.255.255 : New Dst IP 4.4.4.4
New DstIP Mask 255.255.255.255 : Egress port 0/1
Status:
Duration 5 : Idle 2 : installed in hardware 1
Flow type "1DOT3"
Match criteria:
Flow table 60 : Priority 10
Ingress port 0/1 : Src MAC 00:00:1A:38:38:01 : Dst MAC 00:00:30:38:22:01
VLAN 1 : VLAN prio 1 : Ether type 0x0800
IP proto 17 : Src IP 100.0.1.249 : Dst IP 192.0.1.249
Src IP port 1 : Dst IP port 1 : TOS 32(DSCP: 8)
Actions:
Egress port 0/1
Status:
Duration 2 : Idle 0 : installed in hardware 1
Display Parameters
| Flow Type | The type of flow. (For example, 1.0 or Layer 2 Match). |
| Flow Table | The hardware table in which the flow is installed. |
| Flow Priority | The priority of the flow versus other flows. |
| Match Criteria | The match criteria specified by the flow. |
| Ingress Port | The port on which the flow is active. |
| Action | The action specified by the flow. |
| Idle | The time since the flow was hit. |
| Installed in hardware | If the flow could be added to the hardware.1. 0 is displayed if the flow cannot be added.2. 1 is displayed if the flow was added. |
6-40 show openflow installed groups
This command is used to show a list of the configured groups on the switch
show openflow installed groups
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
(Routing)#show openflow installed groups
Max Indirect Group Entries.... 1234
Current Indirect Group Entries in database.... 123
Max All Group Entries.... 1234
Current All Group Entries in database.... 123
Max Select Group Entries.... 1234
Current Select Group Entries in database.... 123
Group Id 12345678 type "Indirect"
----_
Ref Count 1 : Duration 8 : Bucket Count 1
Bucket Entry List:
Bucket Index 25 : Output Port 1
Src MAC 00:00:00:00:00:AB : Dst MAC 00:00:00:00:00:CD
VLAN 101 : Reference Group Id NA
Group Id 23456789 type "All"
----*
Ref Count NA : Duration 10 : Bucket Count 2
Bucket Entry List:
Bucket Index 26 : Output Port 2
Src MAC NA : Dst MAC NA
VLAN 102 : Reference Group Id NA
Bucket Index 27 : Output Port 3
Src MAC NA : Dst MAC NA
VLAN 103 : Reference Group Id NA
Group Id 34567890 type "Select"
----*
Ref Count NA : Duration 10 : Bucket Count 3
Bucket Entry List:
Bucket Index 28 : Output Port NA
Src MAC NA : Dst MAC NA
VLAN NA: Reference Group Id 12345678
Bucket Index 29 : Output Port NA
Src MAC NA : Dst MAC NA
VLAN NA: Reference Group Id 12345678
Bucket Index 30 : Output Port NA
Src MAC NA : Dst MAC NA
VLAN NA: Reference Group Id 12345678
Display Parameters
| Group Type | Type of the Group - Indirect, All, Select etc. |
| Group Id | Unique ID of the Group |
| Ref Count | Group Reference Count - is used only for Indirect groups This count indicates how many Select groups are referring to the current Indirect group. |
| Duration | The time since the group was created. |
| Bucket Count | Number of Buckets in the group. |
| Reference Group Id | References the Indirect group ID and used for Select group only. |
6-41 show openflow table-status
This command is used to show the supported OpenFlow tables and the reported usage information for the tables.
show openflow table-status {openflow10 | opnflow13}
Parameters
| openflow10 | Indicates OpenFlow 1.0. |
| openflow13 | Indicates OpenFlow 1.3 |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show openflow table-status openflow10
Flow Table.... 1
Flow Table Name.... Forwarding Database
Maximum Size.... 64
Number of Entries.... 8
Hardware Entries.... 7
Software-Only Entries.... 1
Waiting for Space Entries.... 0
Flow Insertion Count.... 1
Flow Deletion Count.... 0
Insertion Failure Count.... 0
Flow Table Description:
The forwarding database maps non-multicast MAC addresses and the ports on which these addresses are located.
The following is an example of the CLI display output for the command.
(Routing)#show openflow table-status openflow13
Flow Table.... 60
Flow Table Name.... Openflow 1.3
Maximum Size.... 1920
Number of Entries.... 0
Hardware Entries.... 0
Software-Only Entries.... 0
Waiting For Space Entries.... 0
Flow Insertion Count.... 0
Flow Deletion Count.... 0
Insertion Failure Count.... 0
Flow Table Description:
The Openflow 1.3 table matches on the packet layer-2 header, including DA-MAC, SA-MAC, VLAN, Vlan priority ether type; layer-3 header, including SRC-IP, DST-IP, IP protocol, IP-TOS; layer-4 header, including UDP/TCP source and dest port, ICMP type, and code; SRC-IPv6, DST_IPv6, IPv6 Flow Label, ECN, ICMPv6 type and code, source L4 Port for TCP / UDP / SCTP and input port including physical port and LAG port.
Display Parameters
| Flow Table | OpenFlow table identifier. The range is 0 to 255. |
| Flow Table Name | The name of this table. |
| Flow Table Description | A detailed description for this table. |
| Maximum Size | Platform-defined maximum size for this flow table. |
| Number of Entries | Total number of entries in this table. The count includes delete-pending entries. |
| Hardware Entries | Number of entries currently inserted into hardware. |
| Software-Only Entries | Number of entries that are not installed in the hardware for any reason. This includes entries pending for insertion, entries that cannot be inserted due to missing interfaces and entries that cannot be inserted due to table-full condition. |
| Waiting for Space Entries | Number of entries that are not currently in the hardware because the attempt to insert the entry failed. |
| Flow Insertion Count | Total number of flows that were added to this table since the switch powered up. |
| Flow Deletion Count | Total number of flows that were deleted from this table since the switch powered up. |
| Insertion Failure Count | Total number of hardware insertion attempts that were rejected due to lack of space since the switch powered up. |
NVGRE/VXLAN Commands
In this section, the commands that are used to enable the network virtualization technologies (VXLAN/NVGRE) to communicate with another network are described.
6-42 nvgre enable
This command is used to enable the NVGRE mode on the switch. This mode must be enabled before any NVGRE configuration can be performed on the switch.
The no command is used to disable the NVGRE mode on the switch. It also clears the switch of all existing NVGRE configurations, including all NVGRE tunnels, tenants, tenant VLAN associations, and configured forwarding entries.
Note: The NVGRE mode and VXLAN mode are mutually exclusive modes. That is, the NVGRE mode cannot be enabled on the switch if the VXLAN mode is enabled. Rather, the VXLAN mode must be disabled before enabling the NVGRE mode.
nvgre enable
no nvgre enable
Parameters
None
Default
The default is Disabled.
Command Mode
Global Config
6-43 nvgre source-interface
This command is used to specify a VXLAN source interface.
nvgre vxlan source-interface loopback loopback-id
no nvgre vxlan source-interface loopback loopback-id
Parameters
| loopback-id | Enter Loopback Interface ID (0-63). |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
6-44 vxlan enable
This command is used to enable the VXLAN mode on the switch. The VXLAN mode, which is disabled by default, must be enabled before any VXLAN configuration can be performed on the switch.
Note: The NVGRE mode and VXLAN mode are mutually exclusive modes. That is, the VXLAN mode cannot be enabled on the switch if the NVGRE mode is enabled. Rather, the NVGRE mode must be disabled before enabling the VXLAN mode.
The no command is used to disable the VXLAN mode on the switch. It also clears the switch of all existing VXLAN configurations, including all VXLAN tunnels, tenants, tenant VLAN associations, and configured forwarding entries.
vxlan enable
no vxlan enable
Parameters
None
Default
The default is None.
Command Mode
Global Config
6-45 vxlan source-interface loopback
This command is used to specify the outer source IP address for any encapsulated packets transmitted on a VXLAN with a given virtual network ID (VNID). The source-interface consists of the intended local VTEP for the tenant specified with the VNID. If there is no VXLAN with the given VNID, then the system will create it.
The allowed configurable range for the VSID 1 to 16777214, while the use of 16777215 is reserved for internal purposes.
The no command is used to delete the configuration of the local VTEP identified by ip-address from the VXLAN specified by the VNID.
Note: It is recommended that a loopback interface be configured with the intended local VXLAN Gateway IP address for use as the source-ip for all tenants. Tenants can also be configured, if necessary, with a different source-ip if multiple loopback interfaces have been configured and are used as local VXLAN Gateways. Meanwhile, any loopback interfaces that are meant to be used as local VXLAN Gateways should be used solely for that purpose and not for any others.
vxlan source-interface loopback loopback-id
no vxlan source-interface loopback loopback-id
Parameters
loopback-id
Enter Loopback Interface ID (0-63).
Default
The default is No source IP address.
Command Mode
Global Config
6-46 vxlan tenant-system
This command is used to configure the forwarding entity for the tenant system MAC address mac-addr in the specified VN that can be reached through the access interface. The tenant systems can be configured one by one. Typically, the system learns the MAC address for tenant systems automatically from the traffic received on the access interface. The tenant systems MAC address mac-addr can be configured when accessing the interface to prevent initial flooding. If a tenant system has been configured on an interface, then the configuration overrides the learning for the indicated MAC address in that VN.
Note: This command is only valid for physical and port-channel interfaces, and the configured interface ought to also be a member of VLAN associated with the specified VNID.
The MAC addresses for the tenant system are maintained in a separate table and are not listed in the FDB mac-address table. These addresses internally consume shared resources for system hardware layer 2 address tables. As such, the maximum number of tenant systems configured or learned is dependent upon the number of resources that remain in the hardware layer 2 table, with that number being dynamic in nature.
The allowed configurable range for the VNID is 1 to 16777214, while the use of 16777215 is reserved for internal purposes.
A maximum of 24 tenant systems per physical or port-channel interface can be configured.
The no command is used to delete the configured tenant system forwarding entry on an interface when both the VNID and the tenant system mac-address are specified. The command cannot be utilized in order to delete a dynamically-learned tenant system association on the interface in a specified VNID VN.
Note: When the removal of an access port configuration of the VN specified by VNID occurs, then all of the forwarding entries configured by the user and learned by the switch on that access port, if any, are also removed due to the removal of the port participation of the associated VLAN.
vxlan vnid tenant-system mac-addr
no vxlan vnid tenant-system mac-addr
Parameters
| vnid | Indicates the VXLAN VNID. |
| mac-addr | Indicates the MAC Address of the tenant system. |
Default
The default is Tenant MAC addresses not associated with the VN.
Command Mode
Interface Config
6-47 vxlan udp-dst-port
This command is used to configure a specific UDP port to be the VXLAN UDP destination port of the switch. All the VXLANs on the switch, when encapsulating, will then utilize this UDP port as the UDP
destination port in the UDP header. The switch will also terminate any incoming VXLAN packets that match the specified UDP destination port.
Moreover, the command also updates all of the existing VXLAN tunnels in the hardware with the newly configured UDP destination port, and no or very little traffic disruption occurs during this operation.
The allowed configurable range for the VNID is 1 to 16777214, while the use of 16777215 is reserved for internal purposes.
The allowed configurable range for the UDP port is 1024 to 65535.
The no command is used to reset the switch's VXLAN UDP destination port configuration back to the default value. The command updates all of the existing VXLAN tunnels in the hardware with to use the default VXLAN UDP destination port, and no or very little traffic disruption occurs during this operation.
vxlan udp-dst-port port-number
no vxlan udp-dst-port
Parameters
| port-number | Indicates a UDP port number. |
Default
The default is 4789 (IANA-assigned UDP port to VXLAN).
Command Mode
Global Config
6-48 vxlan vlan
This command is used to associate an access VLAN to a specific by VXLAN tenant. In the event that the VXLAN specified has not been created already, then it will be created upon issuing of this command. A maximum of 1024 DCVPNs can be created on the switch.
Those packets that have the specified VLAN vlan-id tag will be associated to the VXLAN VNID upon arrival. This command causes only the traffic from the specified VLAN to be associated with the given VN identified by VSID. For the command to have any effect, the VLAN vlan-id must have already been created. Also, access ports for the VN specified by the VNID must be configured by configuring the VLAN vlan-id membership on the eligible interfaces before or after this command is issued.
Note: For all member ports of the VLAN vlan-id, it is recommended that ingress filtering be configured.
The allowed configurable range for the VNID is 1 to 16777214, while the use of 16777215 is reserved for internal purposes..
The no command is used to remove an associated VLAN from the specified VXLAN. All of the configured access ports of the VN specified by the VNID will be removed.
vxlan vnid vlan vlan-id
no vxlan vnid vlan
Parameters
| vnid | Indicates VXLAN VNID (1-16777214). |
| vlan-id | Indicates a VLAN ID (1-4093). |
Default
The default is None.
Command Mode
Global Config
6-49 vxlan vtep
This command is used to configure a specific IP address to be the remote virtual tunnel endpoint (VTEP) within the VXLAN. In the event that the VXLAN specified has not been created already, then it will be created upon issuing of this command. A maximum of 1024 DCVPNs can be created on the switch, and multiple remote VTEPs can be configured one by one, as necessary, for the same VNID.
Note: The switch supports the configuration of a Multicast IP address to automatically discover remote VTEPs in order to define a flood group for DCVPN. The command should be utilized in order to manually configure all remote VTEPS behind which the Tenant (VNID) hosts are present for each DCVPN.
One or more tenant systems reachable through the VTEP can be optionally specified by the user. For a particular VXLAN, the tenant systems can be added or deleted one by one. Typically, the system learns tenant systems automatically from received messages, but if a tenant system has been configured, then the configuration overrides such learning for the given MAC address.
The MAC addresses for the tenant system are maintained in a separate table and are not listed in the FDB mac-address table. These addresses internally consume shared resources for system hardware layer 2 address tables. As such, the maximum number of tenant systems is dependent upon the number of resources that remain in the hardware layer 2 table, with that number being dynamic in nature.
A maximum of 600 remote tenant system entries may be configured per VN, while an overall total of 4096 entries may be configured on the switch.
The allowed configurable range for the VNID is 1 to 16777214, while the use of 16777215 is reserved for internal purposes.
The no command is used to remove a remote VTEP from a VXLAN. The command also causes all tenant system MAC address associations with the specified VTEP and DCVPN to be cleared from the system. Moreover, the command will delete the manual association of a tenant system to a remote VTEP if the optional [tenant-system mac-addr] parameter is used. The command cannot be utilized in order to delete a dynamically-learned tenant system association.
vxlan vnid vtep ipadd [tenant-system mac-addr]
no vxlan vnid vtep ipadd tenant-system mac-addr
Parameters
| vnid | Indicates VXLAN VNID (1-16777214). |
| ipadd | Indicates an IP Address. |
| tenant-system mac-addr | Indicates the MAC address for the tenant system configuration. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
6-50 clear counters nvgre
This command is used to clear the packet and byte counters for all of the configured NVGRE virtual networks.
clear counters nvgre
The command causes the following counter information to be cleared for all configured NVGRE NVEs:
| Packets TX Number of unicast packets sent to the NVE. |
| Packets RX Number of unicast packets received from the NVE. |
| Bytes TX Number of unicast bytes sent to the NVE. |
| Bytes RX Number of unicast bytes received from the NVE. |
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
6-51 clear counters vxlan
This command is used to clear the packet and byte counters for all of the configured VXLAN virtual networks.
clear counters vxlan
The command causes the following counter information to be cleared for all configured VXLAN VTEPs:
| Packets TX | Number of unicast packets sent to the VTEP. |
| Packets RX | Number of unicast packets received from the VTEP. |
| Bytes TX Number of unicast bytes sent to the VTEP. | |
| Bytes RX Number of unicast bytes received from the VTEP. | |
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
6-52 show nvgre
This command is used to show the configuration and status of one or more NVGRE VNs. It also shows information regarding allowed limits and statistics
show nvgge [vsid]
Parameters
| vsid | (Optional) Indicates a NVGRE VSID (1-16777214). |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing) (ConFig)#show nvgre | |
| NVGRE Admin Mode...... Enable | |
| Maximum Allowed Limits or Table Sizes | |
| Tenant Table Size...... 1024 | |
| Access Ports Table Size...... 2048 | |
| Tunnel/Network Reference Ports Table Size...... 8192 | |
| Current Entries Count or Table Usage | |
| Tenant Table Entries...... 1 |
Access Port Entries.... 1
Tunnel/Network Reference Port entries.... 2
NVGRE ID Source Address VLAN Access Port(s) Remote TEP(s)
1 192.168.10.1 10 0/2 10.10.10.1
100.100.100.1
(Routing)#shcw nvgre 1
Source Address.... 192.168.10.1
Tenant VLAN.... 10
Access Port(s).... 0/2
Remote TEP(s).... 10.10.10.1
100.100.100.1
Display Parameters
| NVGRE Admin Mode | Admin mode of NVGRE Enable/Disable. |
| NVGRE ID | Virtual Subnet ID (VSID). |
| Source Address | Source IP address of the local TEP. |
| VLAN | Associated VLAN ID to classify access ports. |
| Access Ports | List of access ports associated with this VN. |
| Remote TEP(s) | List of remote NVEs participating in this VN. |
6-53 show nvgre nve
This command is used to display the status for a specified remote NVE within a specified NVGRE virtual network.
show nvgre vsid nve [ip-address]
Parameters
| vsid | Indicates a NVGRE VSID (1-16777214). |
| ip-address | (Optional) Indicates the IP address for remote NVE. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
(Routing) (ConFig)#show nvgre 1 nve
Remote NVE Uptime (sec) Reachable Reachable Transitions
10.10.10.1 0 NO 0
100.100.100.1 0 NO 0
(Routing) (Config)#show nvgre 1 nve 10.10.10.1
NVGRE ID.... 1
Remote NVE.... 10.10.10.1
Reachable.... NO
Uptime (sec) .... 0
Reachable Transitions.... 0
Unicast Counters
Packets Tx.... 0
Packets Rx.... 0
Bytes Tx.... 0
Bytes Rx.... 0
Display Parameters
| NVGRE ID | Virtual subnet ID (VSID). |
| Remote NVE | Remote NVE IP address. |
| Uptime | How long the NVE has been reachable. |
| Reachable | Whether the NVE is currently reachable. |
| Reachable Transitions | Number of times the NVE has transitioned to reachable state. |
| Packets TX | Number of unicast packets sent to the NVE. |
| Packets RX | Number of unicast packets received from the NVE. |
| Bytes TX | Number of unicast bytes sent to the NVE. |
| Bytes RX | Number of unicast bytes received from the NVE. |
6-54 show nvgre tenant-systems
This command is used to list all of the tenant systems that are currently configured or dynamically learned within a given VN. If the optional mac-addr for a VN is specified, then the command can also be used to find a specific host or tenant system.
show nvgre vsid tenant-systems [mac-addr]
Parameters
| vsid | Indicates a NVGRE VSID (1-16777214). |
| mac-addr | (Optional) Indicates a MAC Address for the tenant systems. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing) (Config)#show nvgre 1 tenant-systems | ||||
| Tenant MAC | NVE | Interface | Type | Age (sec) |
| 00:00:00:00:00:02 | 0/2 | Learned | 278 | |
| 00:00:DC:2C:00:32 | 10.10.10.1 | Learned 13423 | ||
Display Parameters
| Tenant MAC | MAC address of a host or tenant system. |
| NVE | IP address of NVE if the tenant system is behind the remote NVE. This is valid for remote tenant system, otherwise it is blank. |
| Interface | Access interface on which MAC entry is learned or configured. This is valid for tenant system on local access interface, otherwise, it is blank. |
| Type | Configured or learned. |
| Age | How long since the entry was learned. Not applicable for configured entries. |
6-55 show nvgre tenant-systems
This command is used to list all of the tenant systems that are currently configured or dynamically learned within all of the configured VNs. In addition, the command shows information regarding the allowed limits on tenant system configuration and forwarding table statistics.
Entries can also be optionally filtered according to tenant system location, that is, local or remote. Local entries can be reached through the configured local access ports, while remote entries are located behind the remote NVEs and can be reached through the NVGREs configured to the remote NVEs.
show nvgre tenant-systems [local | remote]
Parameters
| local | (Optional) Display local tenant systems details. |
| remote | (Optional) Display remote tenant systems details. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing)#show nvgre tenant-systems | ||||||
| Maximum Allowed Limits or Table Sizes | ||||||
| Static Local Host Entries per Interface...... 24 | ||||||
| Static Remote Host Entries per Tenant...... 600 | ||||||
| Static Remote Host Entries per Switch...... 4096 | ||||||
| Forwarding Table Size...... 32768 | ||||||
| Current Entries Count or Table Usage | ||||||
| Static Host Entries...... 4 | ||||||
| Learned Host Entries...... 2 | ||||||
| Forwarding Table Entries...... 6 | ||||||
| Tenant ID | Tenant MAC | NVE | Interface | AppIfIndex | Entry Type | |
| 1 | 00:00:00:11:22:33 | 0/13 | 8537 | Static | ||
| 1 | 00:00:00:11:22:44 | 0/13 | 8537 | Static | ||
| 1 | 00:72:44:3A:D2:43 | 0/13 | 8537 | Learned | ||
| 1 | 00:00:AA:BB:CC:DD | 1.1.1.1 | 345 | Static | ||
| 1 | 00:00:AA:BB:CC:EE | 1.1.1.1 | 345 | Static | ||
| 1 | 00:EA:08:CA:16:45 | 1.1.1.1 | 345 | Learned | ||
(Routing)#show nvgre tenant-systems local
| Tenant ID | Tenant MAC | NVE | AppIfIndex | Entry | Type |
| 1 | 00:00:00:11:22:33 | 0/13 | 8537 | Static | |
| 1 | 00:00:00:11:22:44 | 0/13 | 8537 | Static | |
| 1 | 00:72:44:3A:D2:43 | 0/13 | 8537 | Learned |
(Routing)#show nvgre tenant-systems remote
| Tenant ID | Tenant MAC | NVE | AppIfIndex | Entry Type |
| ______ | ______ | ______ | ______ | ______ |
| 1 | 00:00:AA:BB:CC:DD | 1.1.1.1 | 345 | Static |
| 1 | 00:09:AA:BB:CC:EE | 1.1.1.1 | 345 | Static |
| 1 | 00:EA:08:CA:16:45 | 1.1.1.1 | 345 | Learned |
Display Parameters
| Tenant ID | Virtual Subnet ID (VSID). |
| Tenant MAC | MAC address of a host or tenant system. |
| NVE | IP address of NVE if the tenant system is behind the remote NVE. This is valid for the remote tenant system, otherwise it is blank.. |
| Interface | Access interface on which the MAC entry is learned or configured. This valid for the tenant system on the local access interface, otherwise it is blank. |
| ApplfIndex | Internal access or tunnel port handle. |
| Entry Type | Configured or learned. |
6-56 show vxlan
This command is used to display the configuration and status of one or more VXLAN VNs. The command also shows information regarding allowed limits and statistics.
show vxlan [vnid]
Parameters
| vnid | (Optional) Indicates VXLAN VNID. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing) (Config)#show vxlan | |
| VXLAN Admin Mode...... Enable Destination UDP Port...... 4789 | |
| Maximum Allowed Limits or Table Sizes | |
| Tenant Table Size...... 1024 Access Ports Table Size...... 2048 |
Tunnel/Network Reference Ports Table Size..... 8192
Current Entries Count or Table Usage
----
Tenant Table Entries..... 1
Access Port Entries..... 1
Tunnel/Network Reference Port entries..... 2
VXLAN ID Source Address VLAN Access Port(s) Remote TEP(s)
----
1 192.168.10.1 10 0/2 20.20.20.1
200.200.200.1
(Routing)#show vxlan 1
Source Address.... 192.168.10.1
Tenant VLAN.... 10
Access Port(s).... 0/2
Remote TEP(s).... 20.20.20.1
.... 200.200.200.1
Display Parameters
| VXLAN Admin Mode | Admin mode of VXLAN Enable/Disable. |
| Destination UDP Port | UDP destination port used in VXLAN header. |
| VXLAN ID | Virtual network ID (VNID) |
| Source Address | Source IP address of the local TEP. |
| Access Ports | List of access ports associated with this VXLAN. |
| VLAN | Associated VLAN ID to classify access ports. |
| Remote TEP(s) | List of remote VTEPs participating in this VXLAN. |
6-57 show vxlan tenant-systems
This command is used to display a list of all the tenant systems currently configured or dynamically learned within a given DCVPN (which is identified by VNID). The tenant systems which are located behind the VTEP and that can also be reached through local access interfaces will be listed.
show vxlan vnid tenant-systems [mac-addr]
Parameters
| vnid | Indicates VXLAN VNID. |
| mac-addr | (Optional) Indicates a MAC address identifier of tenant system. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Routing) (Config)#show vxlan 1 tenant-systems
Tenant MAC VTEP Interface Entry Type Age (sec)
00:00:00:00:00:02 0/2 Learned 278323
00:00:00:1A:00:11 20.20.20.1 Learned 12423
Display Parameters
| Tenant MAC | MAC address of tenant system. |
| VTEP | Remote VTEP IP address. |
| Interface | Access interface on which MAC entry is learned or configured. |
| Entry Type | Configured or learned. |
| Age | How long since the entry was learned. Not applicable for configured entries. |
6-58 show vxlan tenant-systems
This command is used to display a list of all the tenant systems that are currently configured or dynamically learned within in all the configured VNs. It also shows information regarding the allowed limits on tenant system configuration and forwarding table statistics.
Entries can also be optionally filtered according to tenant system location, that is, local or remote. Local entries can be reached through the configured local VN access ports, while remote entries are located behind the remote VTEPs and can be reached through the VXLANs configured to the remote VTEPs.
show vxlan tenant-systems [local | remote]
Parameters
| local | (Optional) Display local tenant systems details. |
| remote | (Optional) Display remote tenant systems details. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is a command example.
(Routing)#show vxlan tenant-systems
Maximum AllowedLimits or Table Sizes
Static Local Host Entries per Interface.... 24
Static Remote Host Entries per Tenant.... 600
Static Remote Host Entries per Switch.... 4096
Forwarding Table Size.... 32768
Current Entries Count or Table Usage
Static Host Entries.... 4
Learned Host Entries.... 2
Forwarding Table Entries.... 6
Tenant ID Tenant MAC VTEP Interface AppIfIndex Entry Type
1 00:00:00:23:27:a2 0/11 8545 Static
1 00:00:AC:BD:12:78 0/11 8548 Static
1 00:12:88:37:BD:C5 0/14 8547 Learned
1 00:00:42:B2:22:A3 12.12.12.1 346 Static
1 00:23:72:5B:62:1E 12.12.12.1 346 Static
1 00:1A:09:A3:11:21 12.12.12.1 346 Learned
(Routing)#show vxlan tenant-systems local
Tenant ID Tenant MAC Interface AppIfIndex Entry Type
1 00:00:00:23:27:a2 0/11 8545 Static
1 00:00:AC:BD:12:78 0/11 8548 Static
1 00:12:88:37:BD:C5 0/14 8547 Learned
(Routing) #show vxlan tenant-systems remote
Tenant ID Tenant MAC VTEP AppIfIndex Entry Type
1 00:00:42:B2:22:A3 12.12.12.1 346 Static
1 00:23:72:5B:62:1E 12.12.12.1 346 Static
1 00:1A:09:A3:11:21 12.12.12.1 346 Learned
Display Parameters
| Tenant ID | Virtual Subnet ID (VSID). |
| Tenant MAC | MAC address of a host or tenant system. |
| VTEP | IP address of the VTEP if the tenant system is behind the remote VTEP.This is valid for the remote tenant system, otherwise it is blank. |
| Interface | Access interface on which the MAC entry is learned or configured. This valid for the tenant system on the local access interface, otherwise it is blank. |
| ApplfIndex | Internal access or tunnel port handle. |
| Entry Type | Configured or learned. |
6-59 show vxlan vtep
This command is used to show the status of the remote VTEPs included in a given VXLAN virtual network.
show vxlan vnid vtep [ip-address]
Parameters
| vnid | Indicates VXLAN VNID. |
| ip-address | (Optional) Indicates an IP address identifier of tenant system. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
| (Routing) (Config)#show vxlan 1 vtep | ||||||
| Remote VTEP | Dest | UDP | Port | Uptime (sec) | Reachable | Reachable Transitions |
| 20.20.20.1 | 4789 | 0 | NO | 0 | ||
| 200.200.200.1 | 4789 | 0 | NO | 0 | ||
| (Routing) (ConFig)#show vxlan 1 vtep 20.20.20.1 | |
| VXLAN ID...... | 1 |
| Remote VTEP...... | 20.20.20.1 |
| Destination UDP Port...... | 4789 |
| Reachable...... | NO |
Uptime (sec).... 0
Reachable Transitions.... 0
Unicast Counters
Packets Tx.... 0
Packets Rx.... 0
Bytes Tx.... 0
Bytes Rx.... 0
Display Parameters
| VXLAN ID | Virtual Network ID (VNID). |
| Remote VTEP | Remote VTEP IP address. |
| Destination UDP Port | UDP destination port used in UDP header. |
| Uptime | How long the VTEP has been reachable. |
| Reachable | Whether the VTEP is currently reachable. |
| Reachable Transitions | Number of times the VTEP has transitioned to reachable state. |
| Packets TX | Number of unicast packets sent to the VTEP. |
| Packets RX | Number of unicast packets received from the VTEP. |
| Bytes TX | Number of unicast bytes sent to the VTEP. |
| Bytes RX | Number of unicast bytes received from the VTEP. |
7. IPv4 Routing Commands
This section describes the following routing commands available in the D-LINK OS CLI:
Address Resolution Protocol Commands
This section describes the commands to configure Address Resolution Protocol (ARP) and view ARP information. ARP associates IP and MAC addresses then stores the information as ARP entries in the ARP cache.
7-1 arp
Create an ARP entity for the specified virtual router instance (vrf vrf-name). A static ARP entity is created in the default router when a virtual router is not specified. The ipaddress value is the IP address of a device on a subnet attached to an existing routing interface. The parametermacaddr is the unicast MAC address for that device. The next hop interface is determined by the interface parameter.
No command deletes an ARP entry in the specified virtual router. The value for arp entry is the IP address of the interface. The ipaddress value is the IP address of a device on a subnet attached to an existing routing interface. The parametermacaddr is the unicast MAC address for that device. The next hop interface is determined by the interface parameter.
MAC address format is 6 two-digit hexadecimal numbers, separated by colons, for example 00:06:29:32:81:40.
arp [vrf vrf-name] ipaddress macaddr interface {slot/port | vlan id}
no arp [vrf vrf-name] ipaddress interface {slot/port | vlan id}
Parameters
| vrf vrf-name | (Optional) Indicates a VPN Routing/Forwarding instance name. |
| lpaddress | Configure IP address for a static ARP entry. |
| Macaddr | Configure MAC address for a static ARP entry. |
| slot/port | Enter an interface in slot/port format. |
| vlan id | Enter an interface in VLAN format. |
Default
The default is None.
Command Mode
Global Config
7-2 arp cachesize
Configure the ARP cache size; the value is a platform specific integer value. The default size varies across platforms.
No command configures the default ARP cache size.
arp cachesize platform specific integer value
no arp cachesize
Parameters
| platform specific integer value | Indicates the cache size value as an integer. |
| Default | |
| The default is None. | |
| Command Mode | |
| Global Config |
7-3 arp dynamiccrenew
Enable the ARP component to automatically renew dynamic ARP entries when timed out. The system determines whether to retain or delete timed out ARP entries. If the entry was used to forward data packets, the system renews the entry by sending a neighbor an ARP request. If a response is received, the age of the entry is reset to 0 without removing the entry from the hardware. Traffic to the host continues to be forwarded in hardware without interruption. If the entry is not used to forward data packets, the entry is deleted from the cache, unless the dynamic renew option is enabled. When dynamic renew is enabled, the system sends an ARP request to renew the entry. If the entry is not renewed, it is removed from the hardware and subsequent data packets to the host trigger an ARP request. Traffic to the host may be lost until the router receives an ARP reply from the host. Gateway entries, entries for a neighbor router, are always renewed. The dynamic renew option only applies to host entries.
No command prevents dynamic ARP entries from renewing when they time out.
arp dynamiccrenew
no arp dynamiccrenew
Parameters
None
Default
The default is Disabled.
Command Mode
Privileged EXEC
7-4 arp purge
Remove the specified IP address from the ARP cache in the specified virtual router. If a router is not specified, the ARP entry is deleted in the default. Only dynamic or gateway entry types are affected by this command.
arp purge [vrf vrf-name] ipaddress interface {slot/port | vlan id}
Parameters
| vrf vrf-name | (Optional) The virtual router from which IP addresses will be removed. |
| ipaddress | IP address to remove from the ARP cache. |
| slot/port | Interface from which IP addresses will be removed. |
| vlan id | Enter an interface in VLAN format. |
Default
The default is None.
Command Mode
Privileged EXEC
7-5 arp resptime
Configure the ARP request response timeout.
The value is a positive integer, which represents the IP ARP entry response timeout time in seconds.
No command configures the default ARP request response timeout.
arp resptime 1-10
no arp resptime
Parameters
None
Default
The default is 1.
Command Mode
Global Config
7-6 arp retries
Configure the ARP count of maximum retry requests, represented by an integer.
No command configures the default ARP count of maximum retry requests.
arp retries 0-10
no arp retries
Parameters
None
Default
The default is 4.
Command Mode
Global Config
7-7 arp timeout
Configure the ARP entry age out time.
The value is a positive integer, which represents the IP ARP entry age out time in seconds.
No command configures the default ARP entry age out time.
arp timeout 15-21600
no arp timeout
Parameters
None
Default
The default is 1200.
Command Mode
Global Config
7-8 clear arp-cache
Cause all ARP entries of type dynamic to be removed from the ARP cache for the virtual router. If no router is specified, the cache for the default router is cleared. If the gateway keyword is specified, the dynamic gateway type entries are purged as well.
clear arp-cache [vrf vrf-name] [gateway]
Parameters
| vrf vrf-name | (Optional) Clears the dynamic entries from the ARP cache of a virtual router. |
| gateway | (Optional) Clears the dynamic and gateway entries from the ARP cache. |
Default
The default is None.
Command Mode
Privileged EXEC
7-9 clear arp-switch
Clear the contents of the switch's Address Resolution Protocol (ARP) table that contains entries learned through the Management port. To observe whether this command is successful, ping the DUT from the remote system. Issue the show arp switch command to see the ARP entries. Then issue the clear arp-switch command and check the show arp switch entries.
clear arp-switch
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
7-10 show arp
Display the Address Resolution Protocol (ARP) cache for a specified virtual router instance. If a virtual router is not specified, the default router ARP cache is displayed. To view the total ARP entries, the operator should view the show arp results in conjunction with the show arp switch results.
show arp [vrf vrf-name]
Parameters
| vrf vrf-name | (Optional) Display ARP entries for a Virtual Router instance. |
Default
The default is None.
Command Mode
Privileged EXEC
Display Parameters
| Age Time (seconds) | Time it takes for an ARP entry to age out. This is configurable. |
| Response Time (seconds) | Time it takes for an ARP request timeout. This value is configurable. |
| Retries | Maximum number of times an ARP request is retried. This value is configurable. |
| Cache Size | Maximum number of entries in the ARP table. This value is configurable. |
| Dynamic Renew Mode | Displays whether the ARP component automatically attempts to renew dynamic ARP entries when they age out. |
| Total Entry Count Current / Peak | Total entries in the ARP table and the peak entry count in the ARP table. |
| Static Entry Count Current / Max | Static entry count in the ARP table and maximum static entry count in the ARP table. |
The following are displayed for each ARP entry:
| IP Address | IP address of a device on a subnet attached to an existing routing interface. |
| MAC Address | Hardware MAC address of the device. |
| Interface | Routing slot/port associated with the device ARP entry. |
| Type | Configurable type. The possible values are Local, Gateway, Dynamic and Static. |
| Age | Age of the ARP entry since last refresh (in hh:mm:ss format). |
7-11 show arp brief
Display brief Address Resolution Protocol (ARP) table information.
show arp brief
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show arp brief
Age Time (seconds).... 1200
Response Time (seconds).... 1
Retries.... 4
Cache Size.... 20480
Dynamic Renew Mode.... Disable
Total Entry Count Current / Peak.... 0 / 2
Static Entry Count Configured / Active / Max.... 0 / 0 / 128
Display Parameters
| Age Time (seconds) | Time it takes for an ARP entry to age out. This value is configurable. |
| Response Time (seconds) | Time it takes for an ARP request timeout. This value is configurable. |
| Retries | Maximum number of times an ARP request is retried. This value is configurable. |
| Cache Size | Maximum number of entries in the ARP table. This value is configurable. |
| Dynamic Renew Mode | Displays whether the ARP component automatically attempts to renew dynamic ARP entries when they age out. |
| Total Entry Count Current / Peak | Total entries in the ARP table and the peak entry count in the ARP table. |
| Static Entry Count Current / Max | Static entry count in the ARP table and maximum static entry count in the ARP table. |
7-12 show arp switch
Display the contents of the switch's Address Resolution Protocol (ARP) table.
show arp switch
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing) #show arp switch
MAC Address IP Address Interface
| 00:14:A8:E1:C2:4A | 172.20.192.29 | Management |
| 00:A0:C9:00:01:AA | 172.20.192.107 | Management |
| 00:05:64:2F:0D:88 | 172.20.192.101 | Management |
| F4:4E:05:9F:27:75 | 172.20.192.72 | Management |
| 08:00:27:A6:BB:CD | 172.20.192.19 | Management |
| 00:14:C2:65:61:61 | 172.20.192.123 | Management |
| 8C:3B:AD:65:6D:35 | 172.20.192.121 | Management |
| 00:05:64:30:73:BC | 172.20.192.117 | Management |
| 00:05:64:30:73:BC | 172.20.192.119 | Management |
| 48:6E:73:01:00:A2 | 172.20.192.115 | Management |
| 00:A0:C9:00:01:AA | 192.168.0.1 | Management |
| 08:00:27:70:20:0E | 172.20.192.237 | Management |
| 6C:EC:5A:07:E1:06 | 172.20.192.104 | Management |
| 6C:EC:5A:07:E1:06 | 172.20.192.106 | Management |
| 00:05:64:30:73:BC | 172.20.192.102 | Management |
| 00:A0:C9:00:00:00 | 172.20.192.122 | Management |
| 6C:EC:5A:07:E1:06 | 172.20.192.118 | Management |
| 6C:EC:5A:07:E1:06 | 172.20.192.116 | Management |
| 6C:EC:5A:07:D3:A5 | 172.20.192.112 | Management |
| 6C:EC:5A:07:E1:06 | 172.20.192.114 | Management |
| 00:99:88:77:66:6C | 192.168.2.2 | Management |
| 8C:3B:AD:65:6D:35 | 192.168.0.239 | Management |
| 08:00:27:F2:4E:09 | 172.20.192.56 | Management |
| 6C:EC:5A:07:D3:24 | 172.20.192.109 | Management |
| 6C:EC:5A:07:D3:24 | 172.20.192.111 | Management |
Display Parameters
| IP Address | IP address of a device on a subnet attached to the switch. |
| MAC Address | Hardware MAC address of the device. |
| Interface | Routing slot/port associated with the device's ARP entry. |
IP Routing Commands
This section describes the commands you use to enable and configure IP routing on the switch.
7-13 routing
Enable IPv4 routing for an interface or range of interfaces.
No command disables routing for an interface.
You can view the current value for this function with the "show ip brief". The value is labeled as "Routing Mode."
routing
no routing
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
7-14 ip routing
Enable the IP Router Admin Mode for the master switch.
No command disables the IP Router Admin Mode for the master switch.
ip routing
no ip routing
Parameters
None
Default
The default is None.
Command Mode
- Global Config
• Virtual Router Config
7-15 ip address
Configure an IP address on an interface or range of interfaces. Use this command to configure one or more secondary IP addresses on the interface. The command supports RFC 3021 and accepts 31-bit prefixes on IPv4 point-to-point links, and adds the label IP address in the command.
Note: The 31-bit subnet mask is only supported on routing interfaces. The feature is not supported on network port and service port interfaces because D-LINK OS acts as a host, not a router, on these management interfaces.
No command deletes an IP address from an interface. The value for ipaddr is the IP address of the interface in a.b.c.d format where the range for a, b, c, and d is 1-255. The value for subnetmask is a 4-digit dotted-decimal number which represents the Subnet Mask of the interface. To remove all of the IP addresses (primary and secondary) configured on the interface, enter the command no ip address.
ip address ipaddr {subnetmask | masklen} [secondary]
no ip address [{ipaddr subnetmask [secondary]}]
Parameters
| ipaddr | IP address of the interface. |
| subnetmask | 4-digit dotted-decimal number which represents the subnet mask of the interface. |
| masklen | Implements RFC 3021. Using the / notation of the subnet mask, this is an integer that indicates the length of the subnet mask. Range is 5 to 32 bits. |
| secondary | (Optional) Indicates a secondary IP address interface. |
Default
The default is None.
Command Mode
Interface Config
Example
The following example of the command shows the configuration of the subnet mask with an IP address in the dotted decimal format on the interface VLAN 100.
(Routing)(Interface vlan 100)#ip address 192.168.10.1 255.255.255.254
The next example of the command shows the configuration of the subnet mask with an IP address in the / notation on interface VLAN 30.
(Routing) (Config)#interface vlan 30
(Routing) (Interface vlan 30)#ip address 192.168.10.1 /31
7-16 ip address dhcp
Enable the DHCPv4 client on an in-band interface so that it can acquire network information, such as the IP address, subnet mask, and default gateway, from a network DHCP server. When DHCP is enabled on the interface, the system automatically deletes all manually configured IPv4 addresses on the interface.
To enable the DHCPv4 client on an in-band interface and send DHCP client messages with the client identifier option (DHCP Option 61), use the ip address dhcp client-id configuration command in interface configuration mode.
No command releases a leased address and disable DHCPV4 on an interface. The no form of the ip address dhcp client-id command removes the client-id option and also disables the DHCP client on the in-band interface.
ip address dhcp [client-id]
no ip address dhcp [client-id]
Parameters
client-id
Enable the DHCP client to specify the unique client identifier (option 61).
Default
The default is Disabled.
Command Mode
Interface Config
Example
In the following example, DHCPv4 is enabled on interface 0/1.
(router1)#config
(router1)(Config)#interface 0/1
(router1)(Interface 0/1)#ip address dhcp
7-17 ip default-gateway
Manually configures a default gateway for the switch. Only one default gateway can be configured. If you invoke this command multiple times, each command replaces the previous value.
No command removes the default gateway address from the configuration.
ip default-gateway ipaddr
no ip default-gateway ipaddr
Parameters
ipaddr
Indicates the IPv4 address of an attached router.
Default
The default is None.
Command Mode
- Global Config
• Virtual Router Config
7-18 ip load-sharing
Configure IP ECMP load balancing mode.
No command removes it.
ip load-sharing mode {inner | outer}
no ip load-sharing
Parameters
| mode | Configure the load balancing or sharing mode for all EMCP groups.1: Based on a hash using the Source IP address of the packet.2: Based on a hash using the Destination IP address of the packet.3: Based on a hash using the Source and Destination IP addresses of the packet.4: Based on a hash using the Source IP address and the Source TCP/UDP Port field of the packet.5: Based on a hash using the Destination IP address and the Destination TCP/UDP Port field of the packet.6: Based on a hash using the Source and Destination IP address, and the Source and Destination TCP/UDP Port fields of the packet |
| inner | Use the inner IP header for tunneled packets. |
| outer | Use the outer IP header for tunneled packets. |
Default
The default is 6.
Command Mode
Global Config
7-19 release dhcp
Force the DHCPv4 client to release the leased address from the specified interface.
release dhcp {slot/port | vlan id}
Parameters
| slot/port | Enter an interface in slot/port format. |
| vlan id | Enter an interface in VLAN format. |
Default
The default is None.
Command Mode
Privileged EXEC
7-20 renew dhcp
Force the DHCPV4 client to immediately renew an IPv4 address lease on the specified interface.
Note: This command can be used on in-band ports as well as the service or network (out-of-band) port.
renew dhcp {slot/port | vlan id / service-port | network-port}
Parameters
| slot/port | Enter an interface in slot/port format. |
| network-port | Renew IP Address on Network port |
| service-port | Renew IP Address on Service port |
| vlan id | Enter an interface in VLAN format. |
Default
The default is None.
Command Mode
Privileged EXEC
7-21 renew dhcp network-port
Renew an IP address on a network port.
renew dhcp network-port
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
7-22 renew dhcp service-port
Renew an IP address on a service port
renew dhcp service-port
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
7-23 ip route
Configure a static route. Use the optional vrf parameter to configure the static route in a specified virtual router instance. The ipaddr parameter is a valid IP address, and subnetmask is a valid subnet mask. The nexthopip parameter is a valid IP address of the next hop router. Specifying Null0 as nexthop parameter adds a static reject route. The optional preference parameter is an integer (1 to 255) that allows you to specify the preference value (sometimes called "administrative distance") of an individual static route. Among routes to the same destination, the route with the lowest preference value is entered into the forwarding database. By specifying the preference of a static route, you control whether it is more or less preferred than routes from dynamic routing protocols. The preference also controls whether a static route is more or less preferred than other static routes to the same destination. A route with a preference of 255 cannot be used to forward traffic.
The description parameter allows a description of the route to be entered.
For the static routes to be visible, you must perform the following steps:
- Enable IP routing globally.
- Enable IP routing for the interface.
- Confirm that the associated link is also up.
Use the No command to delete a single next hop to a destination static route. If you use the nexthopip parameter, the next hop is deleted. If you use the preference value, the preference value of the static route is reset to its default.
ip route [vrf vrf-name] ipaddr subnetmask {nexthopip | Null0 | interface {slot/port | vlan-id}}
[preference] [description description]
no ip route ipaddr subnetmask [{nexthopip [preference] | Null0}]
Parameters
| vrf vrf-name | Enter the VRF name which includes maximum 64 ASCII characters. |
| ipaddr | Enter the destination prefix. |
| subnetmask | Enter the destination network mask. |
| nexthopip | Enter the IP address of the next router. |
| Null0 | Indicates the null Interface. |
| slot/port | Enter an interface in slot/port format. |
| vlan-id | Enter an interface in VLAN format. |
| preference | Indicates the route preference (1 – 255). |
| description description | Indicates the description for the route. |
Default
The default is None.
Command Mode
Global Config
Example
Subnetwork 9.0.0.0/24 is a connected subnetwork in global table and subnet 56.6.6.0/24 is reachable via a gateway 9.0.0.2 in the global table.
Subnet 8.0.0.0/24 is a connected subnetwork in virtual router Red.
Now we leak the 2 routes from global route table into the virtual router Red and leak the connected subnet 8.0.0.0/24 from Red to global table.
When leaking a connected route in the global routing to a virtual router, the /32 host route for the leaked host is added in the virtual router instance's route table.
Also we add a non-leaked static route for 66.6.6.0/24 subnetwork scoped to the domain of virtual router Red below.
(Router) (Config)#ip routing
(Router) (Config)#ip vrf Red
(Router) (Config)#interface 0/27
(Router) (Interface 0/27)#routing
(Router) (Interface 0/27)#ip vrf forwarding Red
(Router) (Interface 0/27)#ip address 8.0.0.1 /24
(Router) (Interface 0/27)#interface 0/26
(Router) (Interface 0/26)#routing
(Router) (Interface 0/26)#ip address 9.0.0.1 /24
(Router) (Interface 0/26)#exit
(Router) (Config)#ip route 56.6.6.0 /24 9.0.0.2
Routes leaked from global routing table to VRF's route table are:
(Router) (Config)#ip route vrf Red 9.0.0.2 255.255.255.255 9.0.0.2 0/26
(Router) (Config)#ip route vrf Red 56.6.6.0 255.255.255.0 9.0.0.2 0/26
Route leaked from VRF's route table to global routing table is:
(Router) (Config)#ip route 8.0.0.2 255.255.255.255 0/27
Route (non-leaked) internal to VRF's route table is:
(Router) (Config)#ip route vrf Red 66.6.6.0 255.255.255.0 8.0.0.2
7-24 ip route default
Configure the default route. Use the vrf parameter to configure the default route in a specified virtual router instance. The nexthopip value is a valid IP address of the next hop router. The preference is an integer value from 1 to 255. A route with a preference of 255 cannot be used to forward traffic.
No command deletes all configured default routes. If the optional nexthopip parameter is designated, the specific next hop is deleted from the configured default route and if the optional preference value is designated, the preference of the configured default route is reset to its default.
ip route default [vrf vrf-name] nexthopip [preference]
no ip route default [{nexthopip | preference}]
Parameters
| vrf vrf-name | Indicates the destination VRF address. |
| nexthopip | Enter the IP address of the next router. |
| preference | Set the route preference (1 – 255). |
Default
The default is None.
Command Mode
Global Config
7-25 ip route distance
Set the default distance (preference) for static routes. Lower values are preferred when determining the best route. The ip route and ip route default commands allow you to optionally set the distance of an individual static route. The default distance is used when nothing is specified in these commands. Changing the default distance does not update the distance of existing static routes, even if they were
assigned the original default distance. The new default distance will only be applied to static routes created after invoking the ip route distance command.
No command sets the default static route preference value in the router. Lower route preference values are preferred when determining the best route.
ip route distance 1-255
no ip route distance
Parameters
None
Default
The default is 1.
Command Mode
Global Config
7-26 ip route net-prototype
Add net prototype IPv4 routes to the hardware.
No command deletes all the net prototype IPv4 routes added to the hardware.
ip route net-prototype prefix/prefix-length nexthopip num-routes
no ip route net-prototype prefix/prefix-length nexthopip num-routes
Parameters
| prefix/prefix-length | Destination network and mask for route. |
| nexthopip | Next-hop ip address. It must belong to an active routing interface, but does not need to be resolved. |
| num-routes | Number of routes needed to add into hardware starting from the given prefix argument and within the given prefix-length. |
Default
The default is None.
Command Mode
Global Config
7-27 ip netdirbcast
Enable the forwarding of network-directed broadcasts on an interface or range of interfaces.
No command disables the forwarding of network-directed broadcasts. When disabled, network directed broadcasts are dropped.
ip netdirbcast
no ip netdirbcast
Parameters
None
Default
The default is Disable.
Command Mode
Interface Config
7-28 ip mtu
Set the IP Maximum Transmission Unit (MTU) on a routing interface or range of interfaces. IP MTU is the size of the largest IP packet that can be transmitted on the interface without fragmentation. Forwarded packets are dropped when IP MTU exceeds outgoing interface.
Packets originated on the router, such as OSPF packets, may be fragmented by the IP stack.
OSPF advertises the IP MTU in the Database Description packets it sends to its neighbors during database exchange. If two OSPF neighbors advertise different IP MTUs, they will not form an adjacency (unless OSPF has been instructed to ignore differences in IP MTU with the ip ospf mtu-ignore command).
No command resets the ip mtu to the default value.
ip mtu 68-9198
no ip mtu
Parameters
None
Default
The default is 1500 bytes.
Command Mode
Interface Config
7-29 ip unnumbered gratuitous-arp accept
Enable the configuration of static interface routes to the unnumbered peer dynamically on receiving gratuitous ARP.
No command disables interface route configuration on receiving gratuitous ARP.
ip unnumbered gratuitous-arp accept
no ip unnumbered gratuitous-arp accept
Parameters
None
Default
The default is as follows: Enable interface route installation for receiving gratuitous.
Command Mode
Interface Config
7-30 ip unnumbered loopback
Identify unnumbered interfaces and specify the numbered interface providing the borrowed address. interface should be a loopback interface number.
No command removes the unnumbered configuration.
ip unnumbered loopback interface
no ip unnumbered loopback
Parameters
| interface | Numbered interface providing the borrowed address. The loopback interface is identified by its loopback interface number. |
| Default | |
| The default is as follows: Interfaces are numbered. | |
| Command Mode | |
| Interface Config | |
7-31 encapsulation
Configure the link layer encapsulation type for the packet on an interface or range of interfaces. The encapsulation type can be ethernet or snap.
Note: Routed frames are always ethernet encapsulated when a frame is routed to a VLAN.
encapsulation {ethernet | snap}
Parameters
| ethernet | Enter an Ethernet encapsulation type. |
| snap | Enter an Subnetwork Access Protocol type. |
Default
The default is Ethernet.
Command Mode
Interface Config
7-32 show dhcp lease
Display a list of IPv4 addresses currently leased from a DHCP server on a specific in-band interface or all in-band interfaces. Does not apply to service or network ports.
show dhcp lease [interface {slot/port | vlan id}]
Parameters
| slot/port | Enter an interface in slot/port format. |
| vlan id | Enter an interface in VLAN format. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing)#show dhcp lease
IP address: 10.10.1.1 for peer on Interface: FastEthernet0/0
Subnet mask: 255.255.255.0
DHCP Lease server: 10.10.1.2, state: 3 Bound
DHCP transaction id: 93
Lease: 86400 secs, Renewal: 43200 secs, Rebind: 75600 secs
Retry count: 0
Display Parameters
| IP address, Subnet mask | IP address and network mask leased from the DHCP server. |
| DHCP Lease server | IPv4 address of the DHCP server that leased the address. |
| State | State of the DHCPv4 Client on this interface. |
| DHCP transaction ID | Transaction ID of the DHCPv4 Client. |
| Lease | Time (in seconds) that the IP address was leased by the server. |
| Renewal | Time (in seconds) that the next DHCP renew Request is sent by DHCPv4 Client to renew the leased IP address. |
| Rebind | Time (in seconds) that the DHCP Rebind process starts. |
| Retry count | Number of times the DHCPv4 client sends a DHCP REQUEST message before the server responds. |
7-33 show ip brief
Display the summary information of the IP global configurations for the specified virtual router, including the ICMP rate limit and global ICMP Redirect configuration. If no router is specified, default router information is displayed.
show ip brief [vrf vrf-name]
Parameters
| vrf vrf-name | Display the IP summary of a virtual router. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip brief
Default Time to Live.... 64
Routing Mode.... Disabled
Maximum Next Hops.... 4
Maximum Routes.... 6000
ICMP Rate Limit Interval.... 1000 msec
ICMP Rate Limit Burst Size.... 100 messages
ICMP Echo Replies.... Enabled
ICMP Redirects.... Enabled
Display Parameters
| Default Time to Live | Computed TTL (Time to Live) of forwarding a packet from the local router to the final destination. |
| Routing Mode | Shows whether the routing mode is enabled or disabled. |
| Maximum Next Hops | Maximum number of next hops the packet can travel. |
| Maximum Routes | Maximum number of routes the packet can travel. |
| ICMP Rate Limit Interval | Shows how often the token bucket is initialized with burst-size tokens. Burst-interval is from 0 to 2147483647 milliseconds. The default burst-interval is 1000 msec. |
| ICMP Rate Limit Burst Size | Shows the number of ICMPv4 error messages that can be sent during one burst-interval. The range is from 1 to 200 messages. The default value is 100 messages. |
| ICMP Echo Replies | Shows whether ICMP Echo Replies are enabled or disabled. |
| ICMP Redirects | Shows whether ICMP Redirects are enabled or disabled. |
7-34 show ip interface
Display all pertinent information about the IP interface.
show ip interface {slot/port / brief | loopback | vlan vlan-id | vrf}
Parameters
| slot/port | Enter an interface in slot/port format. |
| brief | Display summary information about IP configuration settings for all ports. |
| loopback | Display the configured Loopback interface information. |
| vlan vlan-id | Enter an interface in VLAN format. |
| vrf | Display IP interface entries for a Virtual Router Instance. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing) #show ip interface 0/1
Routing interface status..... Up
Unnumbered - numbered interface..... loopback 1
Unnumbered - gratuitous ARP accept..... Enable
Method..... N/A
Routing Mode..... Enable
Administrative Mode..... Enable
Forward Net Directed Broadcasts..... Disable
Active State..... Active
Link Speed Data Rate..... 1000 Full
MAC address..... 00:10:18:82:18:26
Encapsulation Type..... Ethernet
IP MTU..... 1500
Bandwidth..... 1000000 kbps
Destination Unreachables..... Enabled
ICMP Redirects..... Enabled
Interface Suppress Status..... Unsuppressed
Interface Name..... rt1_0_1
In the following example the DHCP client is enabled on a VLAN routing interface.
(Routing)#show ip interface vlan 10
Routing Interface Status..... Up
Method..... DHCP
Routing Mode..... Enable
Administrative Mode..... Enable
Forward Net Directed Broadcasts..... Disable
Active State..... Inactive
Link Speed Data Rate..... 10 Half
MAC address..... 00:10:18:82:16:0E
Encapsulation Type..... Ethernet
IP MTU..... 1500
Bandwidth..... 10000 kbps
Destination Unreachables..... Enabled
ICMP Redirects..... Enabled
Interface Suppress Status..... Unsuppressed
DHCP Client Identifier..... 0D-LINKOS-0010.1882.160E-v110
Interface Name..... rt_v10
Display Parameters
| Routing Interface Status | Determine the operational status of IPv4 routing Interface. The possible values are Up or Down. |
| Unnumbered | For unnumbered interfaces, the IP address of the borrowed interface. |
| Primary IP Address | Primary IP address and subnet masks for the interface. This value appears only if you configure it. |
| Method | Shows whether the IP address was configured manually or acquired from a DHCP server. |
| Secondary IP Address | One or more secondary IP addresses and subnet masks for the interface. This value appears only if you configure it. |
| Helper IP Address | Helper IP addresses configured by the command. |
| Routing Mode | Administrative mode of router interface participation. The possible values are enabled or disabled. This value is configurable. |
| Administrative Mode | Administrative mode of the specified interface. The possible values of this field are enabled or disabled. This value is configurable. |
| Forward Net Directed Broadcasts | Indicates whether forwarding of network-directed broadcasts is enabled or disabled. This value is configurable. |
| Active State | Indicates whether the interface is active or inactive. An interface is considered active if its link is up and it is in forwarding state. |
| Link Speed Data Rate | An integer representing the physical link data rate of the specified interface. This is measured in Megabits per second (Mbps). |
| MAC Address | Burned in physical address of the specified interface. The format is 6 two-digit hexadecimal numbers that are separated by colons. |
| Encapsulation Type | Encapsulation type for the specified interface. The types are: Ethernet or SNAP. |
| IP MTU | Maximum transmission unit (MTU) size of a frame, in bytes. |
| Bandwidth | Shows the bandwidth of the interface. |
| Destination Unreachables | Indicates whether ICMP Destination Unreachables may be sent (enabled or disabled). |
| ICMP Redirects | Indicates whether ICMP Redirects may be sent (enabled or disabled). |
| Interface Suppress Status | Indicates whether the event dampening suppresses a constantly unsatable interface until it remains stable for a period of time. |
| DHCP Client Identifier | The client identifier is displayed in the output of the command only if DHCP is enabled with the client-id option on the in-band interface. |
| Interface Name | Indicates the given string name given to identify the interface. |
7-35 show ip interface brief
Display summary information about IP configuration settings for all ports in the router, and indicate how each IP address was assigned for a specified virtual router instance. If a virtual router is not specified, the IP configuration settings cache for the default router is displayed.
show ip interface [vrf vrf-name] brief
Parameters
| vrf vrf-name | Indicates an IP interface entries for a Virtual Router instance. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Switch)#show ip brief
Default Time to Live.... 64
Routing Mode.... Disabled
Maximum Next Hops.... 48
Maximum Routes.... 8160
Maximum Static Routes.... 64
ICMP Rate Limit Interval.... 1000 msec
ICMP Rate Limit Burst Size.... 100 messages
ICMP Echo Replies.... Enabled
ICMP Redirects.... Enabled
Import VXLAN Fabric Mode.... Disabled
(Switch)#show ip interface brief
Interface State IP Address IP Mask TYPE Method
Vlan1 Up 1.1.1.1 255.255.255.0 Primary Manual
Vlan2 Up 2.2.2.2 255.255.255.0 Primary Manual
Display Parameters
| Interface | Valid slot and port number separated by a forward slash. |
| State | Routing operational state of the interface. |
| IP Address | IP address of the routing interface in 32-bit dotted decimal format.Unnumbered interfaces show unnumbered and the corresponding numbered interface instead of the IP address. |
| IP Mask | IP mask of the routing interface in 32-bit dotted decimal format. |
| Method | Indicates how each IP address was assigned. The field contains one of the following values:DHCP – The address is leased from a DHCP server.Manual – The address is manually configured. |
7-36 show ip load-sharing
Display the currently configured IP ECMP load balancing mode.
show ip load-sharing
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip load-sharing
ip load-sharing 6 inner
7-37 show ip protocols
List a summary of the configuration and status for each unicast routing protocol running in the specified virtual router. If a protocol is selected on the command line, the display is limited to that protocol. If no virtual router is specified, the configuration and status for the default router are displayed.
show ip protocols [vrf vrf-name] [bgp | ospf]
Parameters
| vrf vrf-name | Display the IP protocols information of a virtual router. Indicates a VRF name which includes maximum 64 ASCII characters. |
| bgp | Indicates BGP only. |
| ospf | Indicates OSPF only. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Router)#show ip protocols
Routing Protocol...... BGP
Router ID...... 6.6.6.6
Local AS Number...... 65001
BGPAdmin Mode...... Enable
Maximum Paths...... Internal 32, External 32
Always compare MED...... FALSE
Maximum AS Path Length...... 75
Fast Internal Failover...... Enable
Fast External Failover...... Enable
Distance.... Ext 20 Int 200 Local 200
Address Wildcard Distance Pfx List
172 .20.0.0 0.0.255.255 40 None
172 .21.0.0 0.0.255.255 45 1
Prefix List In.... PfxList1
Prefix List Out.... None
Redistributing:
Source Metric Dist List Route Map
---- ---- ---- ----
connected connected_list
static 32120 static_routemap
ospf ospf_map
ospf match: int ext1 nssa-ext2
Networks Originated:
10.1.1.0 255.255.255.0 (active)
20.1.1.0 255.255.255.0
Neighbors:
172.20.1.100
Filter List In .... 1
Filter List Out .... 2
Prefix List In .... PfxList2
Prefix List Out .... PfxList3
Route Map In .... rmapUp
Route Map Out .... rmapDown
172.20.5.1
Prefix List Out .... PfxList12
Routing Protocol.... OSPFv2
Router ID.... 6.6.6.6
OSPF Admin Mode.... Enable
Maximum Paths.... 32
Routing for Networks.... 172.24.0.0 0.0 255.255 area 0
10.0.0.0 0.255.255.255 area 1
192.168.75.0 0.0.0.255 area 2
Distance.... Intra 110 Inter 110 Ext 110
Default Route Advertise.... Disabled
Always.... FALSE
Metric.... Not configured
Metric Type.... External Type 2
Redist
Source Metric Metric Type Subnets Dist List
static default 2 Yes None
connected 10 2 Yes 1
Number of Active Areas.... 3 (3 normal, 0 stub, 0 nssa)
ABR Status.... Yes
ASBR Status.... Yes
Display Parameters
| BGP Section: | |
| Routing Protocol | BGP |
| Router ID | Router ID configured for BGP. |
| Local AS Number | AS number that the local router is in. |
| BGP Admin Mode | Indicates whether BGP is globally enabled or disabled. |
| Maximum Paths | Maximum number of next hops in an internal or external BGP route. |
| Always Compare MED | Indicates whether BGP is configured to compare the Multi-Exit Discriminators (MEDs) for routes received from peers in different ASs. |
| Maximum AS Path Length | Limit on the length of AS-PATH that BGP accepts from its neighbors. |
| Fast Internal Failover | Indicates whether BGP immediately brings down an iBGP adjacency if the routing table manager reports that the peer address is no longer reachable. |
| Fast External Failover | Indicates whether BGP immediately brings down an eBGP adjacency if the link to the neighbor goes down. |
| Distance | Default administrative distance (or route preference) for external, internal, and locally-originated BGP routes. The table that follows lists ranges of neighbor addresses that have been configured to override the default distance with a neighbor-specific distance. If a neighbor's address falls within one of these ranges, routes from that neighbor are assigned the configured distance. If a prefix list is configured, then the distance is only assigned to prefixes from the neighbor that are permitted by the prefix list. |
| Redistribution | Table showing information for each source protocol (connected, static, and OSPF). For each of these sources the distribution list and route-map are shown, as well as the configured metric. Fields which are not configured are left blank. For OSPF, an additional line shows the configured ospf match parameters. |
| Prefix List In | Global prefix list used to filter inbound routes from all neighbors. |
| Prefix List Out | Global prefix list used to filter outbound routes to all neighbors. |
| Neighbors | List of configured neighbors and the inbound and outbound policies configured for each. |
| OSPFv2 Section: | |
| Routing Protocol | OSPFv2. |
| Router ID | The router ID configured for OSPFv2. |
| OSPF Admin Mode | Indicates whether OSPF is enabled or disabled globally. |
| Maximum Paths | Maximum number of next hops in an OSPF route. |
| Routing for Networks | Address ranges configured with an OSPF network command. |
| Distance | Administrative distance (or “route preference”) for intra-area, inter-area, and external routes. |
| Default Route Advertise | Indicates whether OSPF is configured to originate a default route. |
| Always | Indicates whether default advertisement depends on having a default route in the common routing table. |
| Metric | The metric configured to be advertised with the default route. |
| Metric Type | The metric type for the default route. |
| Redist Source | A type of routes that OSPF is redistributing. |
| Metric | The metric to advertise for redistributed routes of this type. |
| Metric Type | The metric type to advertise for redistributed routes of this type. |
| Subnets | Indicates whether OSPF redistributes subnets of classful addresses, or only classful prefixes. |
| Dist List | A distribute list used to filter routes of this type. Only routes that pass the distribute list are redistributed. |
| Number of Active Areas | The number of OSPF areas with at least one interface running on this router. Also broken down by area type. |
| ABR Status | Indicates whether the router is currently an area border router. A router is an area border router if it has interfaces that are up in more than one area. |
| ASBR Status | Indicates whether the router is an autonomous system boundary router. The router is an ASBR if it is redistributing any routes or originating a default route. |
7-38 show ip route
Display the routing table for the specified virtual router (vrf vrf-name). If no router is specified, the default router routing table is displayed. The ip-address specifies the network for which the route is to be displayed and displays the best matching best-route for the address. The mask specifies the subnet mask for the given ip-address. When you use the longer-prefixes keyword, the ip-address and mask pair becomes the prefix, and the command displays the routes to the addresses that match that prefix. Use the protocol parameter to specify the protocol that installed the routes. The value for protocol can be ospf,
bgp, connected, or static. Use the all parameter to display all routes including best and non-best routes. If you do not use the all parameter, the command only displays the best route.
Note: if you use the connected keyword for protocol, the all option is not available because there are no best or non-best connected routes.
show ip route [vrf vrf-name] [{ip-address [protocol] | {ip-address mask [longer-prefixes] [protocol] | protocol} [all] | all}]
Parameters
| vrf vrf-name | Indicates the virtual router identification. |
| ip-address | Indicates the IP-Address of the destination network corresponding to this route. |
| protocol | Indicates the routes whose prefix length is equal to or longer than pfx-len. This option may not be given if the shorter-prefixes option is given. |
| mask | Indicates the mask of the destination network corresponding to this route. |
| longer-prefixes | Indicates the option of a longer prefix setting. |
| all | Not available. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip route
Route Codes: R - RIP Derived, C - Connected, S - Static
B - BGP Derived
O - OSPF Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer
L - Leaked Route
K - Kernel, P - Net Prototype
The following shows an example of output that displays leaked routes.
Subnetwork 9.0.0.0/24 is a connected subnetwork in global table and subnet 56.6.6.0/24 is reachable via a gateway 9.0.0.2 in the global table. These two routes leak into the virtual router Red and leak the connected subnet 8.0.0.0/24 from Red to global table.
When leaking connected route in the global routing table to a virtual router, the /32 host route for the leaked host is added in the virtual router instance's route table. Leaking of non /32 connected routes into the virtual router table from global routing table is not supported.
This enables the nodes in subnet 8.0.0.0/24 to access shared services via the global routing table. Also we add a non-leaked static route for 66.6.6.0/24 subnetwork scoped to the domain of virtual router Red.
(Router) (Config)#ip route vrf Red 9.0.0.2 255.255.255.255 9.0.0.2 0/26
(Router) (Config)#ip route vrf 56.6.6.0 255.255.255.0 9.0.0.2 0/26
(Router) (Config)#ip route vrf 66.6.6.9 255.255.255.0 8.0.0.2
(Router) (config)#route 8.0.0.0. 255.255.255.0 0/27
(Router)#show ip route vrf Red
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
L - Leaked Route
C 8.0.0.0/24 [0/1] directly connected, 0/27
S L 9.0.0.2/32 [1/1] directly connected, 0/26
S L 56.6.6.0/24 [1/1] via 9.0.0.2, 02d:22h:15m, 0/26
S 66.6.6.0/24 [1/1] via 8.0.0.2, 01d:22h:15m, 0/27
(Router)#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
L - Leaked Route
C 9.0.0.0/24 [0/1] directly connected, 0/26
S L 8.0.0.0/24 [1/1] directly connected, 0/27
The following example shows routes obtained from the kernel
(Routing)#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer, L - Leaked Route, K - Kernel
C 1.1.1.0/24 [0/1] directly connected, 0/9
S 12.12.12.0/24 [1/0] via 1.1.1.2, 0/9
S 13.13.13.0/24 [1/0] via 1.1.1.2, 0/9
K 25.25.25.0/24 [1/3] via 1.1.1.2, 0/9
The routes obtained from the kernel can be configured to be redistributed in the kernel. The CLI command below (in both IPv4 and Pv6) BGP Router mode has the kernel option kernel.
(7001) (Config)#router bgp 65401
(7001) (Config-router)#redistribute?
<cr> Press enter to execute the command.
connected Configure redistribution of Connected routes
kernel Configure redistribution of Kernel routes
ospf Configure redistribution of ospf routes
rip Configure redistribution of rip routes
static Configure redistribution of static routes
(7001) (Config-router)#address-family ipv6
(7001) (config-router-af)#redistribute?
<cr> Press enter to execute the command
connected Configure redistribution of Connected routes
kernel Configure redistribution of kernel routes
ospf Configure redistribution of ospf routes
static Configure redistribution of static routes
The following shows an example of the output that displays with a hardware failure.
(Router) (Config)#interface 0/1
(Router) (Interface 0/1)#routing
(Router) (Interface 0/1)#ip address 9.0.0.1 2S5.255.255.0
(Router) (Interface 0/1)#exit
(Router) (Config)#ip route net-prototype 56.6.6.0/24 9.0.0.2 1
(Router)#show ip route
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer, L - Leaked Route, K - Kernel
P - Net Prototype
C 9.0.0.0/24 [0/0] directly connected, 0/1
P 56.6.6.0/24 [1/1] via 9.0.0.2, 01d:22h:15m, 0/1 hw-failure
Display Parameters
| Route Codes | Key for the routing protocol codes that might appear in the routing table output. |
The show ip route command displays the routing tables in the following format:
Code IP-Address/Mask [Preference/Metric] via Next-Hop, Route-Timestamp, Interface, Truncated
The columns for the routing table display the following information:
| Code | Codes for the routing protocols that created the routes. |
| Default Gateway | IP address of the default gateway. When the system does not have a more specific route to a packet's destination, it sends the packet to the default gateway. |
| IP-Address/Mask | IP-Address and mask of the destination network corresponding to this route. |
| Preference | Administrative distance associated with this route. Routes with low values are preferred over routes with higher values. |
| Metric | Cost associated with this route. |
| via Next-Hop | Outgoing router IP address to use when forwarding traffic to the next router (if any) in the path toward the destination. |
| Route-Timestamp | Last updated time for dynamic routes. The format of Route-Timestamp is:Days:Hours:Minutes if days >= 1Hours:Minutes:Seconds if days < 1 |
| Interface | Outgoing router interface to use when forwarding traffic to the next destination. For reject routes, the next hop interface would be Null0 interface. |
| Truncated | A flag appended to a route to indicate that it is an ECMP route, but only one of its next hops has been installed in the forwarding table. The forwarding table may limit the number of ECMP routes or the number of ECMP groups. When an ECMP route cannot be installed because such a limit is reached, the route is installed with a single next hop. Such truncated routes are identified by a T after the interface name. |
To administratively control the traffic destined to a particular network and prevent it from being forwarded through the router, you can configure a static reject route on the router. Such traffic would be discarded and the ICMP destination unreachable message is sent back to the source. This is typically used for preventing routing loops. The reject route added in the RTO is of the type OSPF Inter-Area. Reject routes (routes of REJECT type installed by any protocol) are not redistributed by OSPF. Reject routes are supported in OSPFv2.
7-39 show ip route ecmp-groups
Report all current ECMP groups in the IPv4 routing table. An ECMP group is a set of two or more next hops used in one or more routes. The groups are numbered arbitrarily from 1 to n. The output indicates the number of next hops in the group and the number of routes that use the set of next hops. The output lists the IPv4 address and outgoing interface of the next hop in each group.
show ip route ecmp-groups
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Router)#show ip route ecmp-groups
ECMP Group 1 with 2 next hops (used by 1 route)
172.20.33.100 on interface 2/33
172.20.34.100 on interface 2/34
ECMP Group 2 with 3 next hops (used by 1 route)
172.20.32.100 on interface 2/32
172.20.33.100 on interface 2/33
172.20.34.100 on interface 2/34
ECMP Group 3 with 4 next hops (used by 1 route)
172.20.31.100 on interface 2/31
172.20.32.100 on interface 2/32
172.20.33.100 on interface 2/33
172.20.34.100 on interface 2/34
7-40 show ip route hw-failure
Display the routes that failed to be added to the hardware due to hash errors or a table full condition.
show ip route hw-failure
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following example displays the command output.
(Routing)(Config)#ip route net-prototype 66.6.6.0/24 9.0.0.2 4
(Routing)#show ip route connected
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer, L - Leaked Route, K - Kernel
P - Net Prototype
C 9.0.0.0/24 [0/0] directly connected, 0/1
C 8.0.0.0/24 [0/0] directly connected, 0/2
(Routing) #show ip route hw-failure
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer, L - Leaked Route, K - Kernel
P -Net Prototype
P 66.6.6.0/24 [1/1] via 9.0.0.2 01d:22h:15m, 0/1 hw-failure
P 66.6.7.0/24 [1/1] via 9.0.0.2 01d:22h:15m, 0/1 hw-failure
P 66.6.8.0/24 [1/1] via 9.0.0.2 01d:22h:15m, 0/1 hw-failure
P 66.6.9.0/24 [1/1] via 9.0.0.2 01d:22h:15m, 0/1 hw-failure
7-41 show ip route net-prototype
Display the net-prototype routes. The net-prototype routes are displayed with a P.
show ip route net-prototype
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#show ip route net-prototype
Route Codes: R - RIP Derived, O - OSPF Derived, C - Connected, S - Static
B - BGP Derived, IA - OSPF Inter Area
E1 - OSPF External Type 1, E2 - OSPF External Type 2
N1 - OSPF NSSA External Type 1, N2 - OSPF NSSA External Type 2
S U - Unnumbered Peer, L - Leaked Route, K - Kernel
P - Net Prototype
P 56.6.6.0/24 [1/1] via 9.0.0.2 01d:22h:15m, 0/1
P 56.6.7.0/24 [1/1] via 9.0.0.2 01d:22h:15m, 0/1
7-42 show ip route summary
Display the routing table summary. When the optional all keyword is given, some statistics, such as the number of routes from each source, include counts for alternate routes. An alternate route is one that is not the most preferred to its destination and therefore is not installed in the forwarding table. To include only the number of best routes, do not use the optional keyword.
show ip route summary [all]
Parameters
all
(Optional) Display all (best and non-best) routes.
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip route summary
Connected Routes.... 7
Static Routes.... 1
RIP Routes.... 20
BGP Routes.... 10
External .... 0
Internal .... 10
Local .... 0
OSPF Routes.... 1004
Intra Area Routes .... 4
Inter Area Routes .... 1000
External Type-1 Routes .... 0
External Type-2 Routes .... 0
Reject Routes.... 0
Net Prototype Routes.... 10004
Total routes.... 1032
| Best Routes (High).... | 1032(1032) |
| Alternate Routes.... | 0 |
| Route Adds.... | 1010 |
| Route Modifies.... | 1 |
| Route Deletes.... | 10 |
| Unresolved Route Adds.... | 0 |
| Invalid Route Adds.... | 0 |
| Failed Route Adds.... | 0 |
| Hardware Failed Route Adds.... | 4 |
| Reserved Locals.... | 0 |
| Unique Next Hops (High).... | 13 (13) |
| Next Hop Groups (High).... | 13 (14) |
| ECMP Groups (High).... | 2(3) |
| ECMP Routes.... | 1001 |
| Truncated ECMP Routes.... | 0 |
| ECMP Retries.... | 0 |
| Routes with 1 Next Hop.... | 31 |
| Routes with 2 Next Hops.... | 1 |
| Routes with 4 Next Hops.... | 1000 |
Display Parameters
| Connected Routes | Total number of connected routes in the routing table. |
| Static Routes | Total number of static routes in the routing table. |
| 6To4 Routes | Total number of 6to4 routes in the routing table. |
| BGP Routes | Total number of routes installed by the BGP protocol. |
| External | Number of external BGP routes. |
| Internal | Number of internal BGP routes. |
| Local | Number of local BGP routes. |
| OSPF Routes | Total number of routes installed by OSPF protocol. |
| Intra Area Routes | Total number of Intra Area routes installed by OSPF protocol. |
| Inter Area Routes | Total number of Inter Area routes installed by OSPF protocol. |
| External Type-1 Routes | Total number of External Type-1 routes installed by OSPF protocol. |
| External Type-2 Routes | Total number of External Type-2 routes installed by OSPF protocol. |
| Reject Routes | Total number of reject routes installed by all protocols. |
| Net Prototype Routes | Number of net-prototype routes. |
| Total Routes | Total number of routes in the routing table. |
| Best Routes (High) | Number of best routes currently in the routing table. This number only counts the best route to each destination. The value in parentheses indicates the highest count of unique best routes since counters were last cleared. |
| Alternate Routes | Number of alternate routes currently in the routing table. An alternateroute is a route that was not selected as the best route to its destination. |
| Route Adds | Number of routes that have been added to the routing table. |
| Route Deletes | Number of routes that have been deleted from the routing table. |
| Unresolved Route Adds | Number of route adds that failed because none of the route's next hops were on a local subnet. Note that static routes can fail to be added to the routing table at startup because the routing interfaces are not yet up. The counter gets incremented in this case. The static routes are added to the routing table when the routing interfaces come up. |
| Invalid Route Adds | Number of routes that failed to be added to the routing table because the route was invalid. A log message is written for each of these failures. |
| Failed Route Adds | Number of routes that failed to be added to the routing table because of a resource limitation in the routing table. |
| Hardware Failed Route Adds | Number of routes failed to be inserted into the hardware due to hash error or a table full condition. |
| Reserved Locals | Number of routing table entries reserved for a local subnet on a routing interface that is down. Space for local routes is always reserved so that local routes can be installed when a routing interface bounces. |
| RIP Routes | Total number of routes installed by RIP protocol. |
| Unique Next Hops (High) | Number of distinct next hops used among all routes currently in the routing table. These include local interfaces for local routes and neighbors for indirect routes. The value in parentheses indicates the highest count of unique next hops since counters were last cleared. |
| NextHop Groups (High) | Current number of next hop groups in use by one or more routes. Each next hop group includes one or more next hops. The value in parentheses indicates the highest count of next hop. |
| ECMP Groups (High) | Number of next hop groups with multiple next hops. The value in parentheses indicates the highest count of next hop groups since counters were last cleared. |
| ECMP Groups | Number of next hop groups with multiple next hops. |
| ECMP Routes | Number of routes with multiple next hops currently in the routing table. |
| Truncated ECMP Routes | Number of ECMP routes that are currently installed in the forwarding table with just one next hop. The forwarding table may limit the number of ECMP routes or the number of ECMP groups. When an ECMP route cannot be installed because such a limit is reached, the route is installed with a single next hop. |
| ECMP Retries | Number of ECMP routes that have been installed in the forwarding table after initially being installed with a single next hop. |
| Routes with n Next Hops | Current number of routes with each number of next hops. |
7-43 clear ip route counters
Reset to zero the IPv4 routing table counters reported in the show IP route summary. If no router is specified, the command is executed for the default router. The command only resets event counters. Counters that report the current state of the routing table, such as the number of routes of each type, are not reset.
clear ip route counters
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
7-44 show ip route preferences
Display detailed information about the route preferences for each type of route. Route preferences are used in determining the best route. Lower router preference values are preferred over higher router preference values. A route with a preference of 255 cannot be used to forward traffic.
show ip route preferences
Parameters
None
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows example CLI display output for the command.
(alpha-stack)#show ip route preferences
Local.... 0
Static.... 1
BGP External.... 20
OSPF Intra.... 110
OSPF Inter.... 110
OSPF External.... 110
RIP.... 120
BGP Internal.... 200
BGP Local.... 200
Configured Default Gateway.... 253
DHCP Default Gateway.... 254
Display Parameters
| Local | Local route preference value. |
| Static | Static route preference value. |
| BGP External | The BGP external route preference value. |
| OSPF Intra | OSPF Intra route preference value. |
| OSPF Inter | OSPF Inter route preference value. |
| OSPF External | OSPF External route preference value. |
| RIP | RIP route preference value. |
| BGP Internal | BGP internal route preference value. |
| BGP Local | BGP local route preference value. |
| Configured Default Gateway | Route preference value of the statically-configured default gateway. |
| DHCP Default Gateway | Route preference value of the default gateway learned from the DHCP server. |
7-45 show ip stats
Display IP statistical information, for a specified virtual router instance. If a virtual router is not specified, the IP statistical information for the default router is displayed.
show ip stats [vrf vrf-name]
Parameters
| vrf vrf-name | (Optional) Display the IP statistics of a virtual router. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following shows an example of the command.
(Switch)#show ip stats
IpInReceives.... 49975
| IpInHdrErrors | 0 |
| IpInAddrErrors | 0 |
| IpForwDatagrams | 0 |
| IpInUnknownProtos | 0 |
| IpInDiscards | 0 |
| IpInDelivers | 49798 |
| IpOutRequests | 2258 |
| IpOutDiscards | 244 |
| IpOutNoRoutes | 6 |
| IpReasmTimeout | 0 |
| IpReasmReqds | 0 |
| IpReasmOKs | 0 |
| IpReasmFails | 0 |
| IpFragOKs | 0 |
| IpFragFails | 0 |
| IpFragCreates | 0 |
| IpRoutingDiscards | 0 |
| IcmpInMsgs | 496 |
| IcmpInErrors | 0 |
| IcmpInDestUnreachs | 490 |
| IcmpInTimeExcds | 0 |
| IcmpInParmProbs | 0 |
| IcmpInSrcQuenchs | 0 |
| IcmpInRedirects | 0 |
| IcmpInEchos | 6 |
| IcmpInEchoReps | 0 |
| IcmpInTimestamps | 0 |
| IcmpInTimestampReps | 0 |
| IcmpInAddrMasks | 0 |
| IcmpInAddrMaskReps | 0 |
| IcmpOutMsgs | 490 |
| IcmpOutErrors | 0 |
| IcmpOutDestUnreachs | 490 |
| IcmpOutTimeExcds | 0 |
| IcmpOutParmProbs | 0 |
| IcmpOutSrcQuenchs | 0 |
| IcmpOutRedirects | 0 |
| IcmpOutEchos | 0 |
| IcmpOutEchoReps | 0 |
| IcmpOutTimestamps | 0 |
| IcmpOutTimestampReps | 0 |
| IcmpOutAddrMasks | 0 |
7-46 show routing heap summary
Display a summary of the memory allocation from the routing heap. The routing heap is a chunk of memory set aside when the system boots for use by routing applications.
show routing heap summary
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Router)#show routing heap summary
Heap Size.... 95053184
Memory In Use.... 56998
Memory on Free List.... 47
Memory Available in Heap.... 94996170
In Use High Water Mark.... 57945
Display Parameters
| Heap Size | Amount of memory, in bytes, allocated at startup for the routing heap. |
| Memory In Use | Number of bytes currently allocated. |
| Memory on Free List | Number of bytes currently on the free list. When a chunk of memory from the routing heap is freed, it is placed on a free list for future reuse. |
| Memory Available in Heap | Number of bytes in the original heap that have never been allocated. |
| In Use High Water Mark | Maximum memory in use since the system last rebooted. |
IP Event Dampening Commands
7-47 dampening
Enable IP event dampening on a routing interface.
No command disables IP event dampening on a routing interface.
dampening [half-life period] [reuse-threshold suppress-threshold max-suppress-time [restart restart-penalty]]
no dampening
Parameters
| half-life period | (Optional) Number of seconds it takes for the penalty to reduce by half. The configurable range is 1-30 seconds. Default value is 5 seconds. |
| reuse-threshold | (Optional) Value of the penalty at which the dampened interface is restored. The configurable range is 1-20,000. Default value is 1000. |
| suppress-threshold | (Optional) Value of the penalty at which the interface is dampened. The configurable range is 1-20,000. Default value is 2000. |
| max-suppress-time | (Optional) Maximum amount of time (in seconds) an interface can be in suppressed state after it stops flapping. The configurable range is 1-255 seconds. The default value is four times the half-life period. If half-period value is allowed to default, the maximum suppress time defaults to 20 seconds. |
| restart restart-penalt | (Optional) Penalty applied to the interface after the device reloads. The configurable range is 1-20,000. Default value is 2000. |
Default
The default is None.
Command Mode
Interface Config
7-48 show dampening interface
Summarize the number of interfaces configured with dampening and the number of interfaces being suppressed.
show dampening interface
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Router)#show dampening interface
2 interfaces are configured with dampening.
1 interface is being suppressed.
7-49 show interface dampening
Display the status and configured parameters of the interfaces configured with dampening.
show interface dampening
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Router)#show interface dampening
Interface 0/2
Flaps Penalty Supp ReuseTm HalfL ReuseV SuppV MaxSTm MaxP Restart
0 0 FALSE 0 5 1000 2000 20 16000 0
Interface 0/3
Flaps Penalty Supp ReuseTm HalfL ReuseV SuppV MaxSTm MaxP Restart
6 1865 TRUE 18 20 1000 2001 30 2828 1500
Display Parameters
| Flaps | Number times the link state of an interface changed from UP to DOWN. |
| Penalty | Accumulated Penalty. |
| Supp | Indicates if the interface is suppressed or not. |
| ReuseTm | Number of seconds until the interface is allowed to come up again. |
| HalfL | Configured half-life period. |
| ReuseV | Configured reuse-threshold. |
| SuppV | Configured suppress threshold. |
| MaxSTm | Configured maximum suppress time in seconds. |
| MaxP | Maximum possible penalty. |
| Restart | Configured restart penalty. |
Note:
- The CLI command "clear counters" resets the flap count to zero
- The interface CLI command "no shutdown" resets the suppressed state to False
- Any change in the dampening configuration resets the current penalty, reuse time and suppressed state to their default values, meaning 0, 0, and FALSE respectively
Routing Policy Commands
7-50 ip policy
Identify a route map to use for policy-based routing on an interface specified by route-map-name. Policy-based routing is configured on the interface that receives the packets, not on the interface from which the packets are sent.
When new statements are added to a route-map or match/set terms are added/removed from the route-map statement, and also if the route-map that is applied on an interface is removed, the route-map needs to be removed from interface and added back again in order to have the changed route-map configuration be effective.
Note: Route-map and Diffserv cannot work on the same interface.
ip policy route-map route-map-name
Parameters
| route-map route-map-name | Apply route-map to this interface. |
Default
The default is None.
Command Mode
Interface Config
Example
The following is an example of this command.
(Routing) (Config)#interface 0/1
(Routing) (Interface 0/1)#
(Routing) (Interface 0/1)#ip policy route-map equal-access
In order to disable policy based routing from an interface, use no form of this command no ip policy <route-map-name>
7-51 ip prefix-list
To create a prefix list or add a prefix list entry, use the ip prefix-list command in Global Configuration mode. Route prefixes are matched with those specified in the prefix list. Each prefix list includes a sequence of entries ordered by sequence numbers. A router sequentially examines each prefix list entry to determine if the route's prefix matches that of the entry. An empty or nonexistent prefix list permits all prefixes. An implicit deny is assumed if a given prefix does not match any entries of a prefix list. Once a match or deny occurs the router does not go through the rest of the list. A prefix list may be used within a route map to match a route's prefix using the command.
Up to 128 prefix lists may be configured. The maximum number of statements allowed in a prefix list is 64.
No command deletes a prefix list or a statement in a prefix list. The command no ip prefix-list list-name deletes the entire prefix list. To remove an individual statement from a prefix list, you must specify the statement exactly, with all its options.
ip prefix-list list-name {{seq number} {permit | deny} network/length [ge length] [le length] | renumber renumber-interval first-statement-number}
no ip prefix-list list-name [seq number] {permit | deny} network/length [ge length] [le length]
Parameters
| list-name | Text name of the prefix list. Up to 32 characters. |
| seq number | (Optional) Sequence number for the prefix list statement. Prefix list statements are ordered from lowest to highest sequence number and applied in that order. If you do not specify a sequence number, the system automatically selects a sequence number five units larger than the last sequence number in the list. Two statements may not be configured with the same sequence number. The value ranges from 1 to 4,294,967,294. |
| permit | Permit routes whose destination prefix matches the statement. |
| deny | Deny routes whose destination prefix matches the statement. |
| network/length | Specifies the match criteria for routes being compared to the prefix list statement. The network can be any valid IP prefix. The length is any IPv4 prefix length from 0 to 32. |
| ge length | (Optional) If this option is configured, then a prefix is only considered a match if its network mask length is greater than or equal to this value. This value must be longer than the network length and less than or equal to 32. |
| le length | (Optional) If this option is configured, then a prefix is only considered a match if its network mask length is less than or equal to this value. This value must be longer than the ge length and less than or equal to 32. |
| renumber renumber-interval first-statement-number | (Optional) Provides the option to renumber the sequence numbers of the IP prefix list statements with a given interval starting from a particular sequence number. The valid range for renumber-interval is 1-100, and the valid range for first-statement-number is 1-1000. |
Default
Prefix lists are not configured by default. When neither the ge nor the le option is configured, the destination prefix must match the network/length exactly. If the ge option is configured without the le option, any prefix with a network mask greater than or equal to the ge value is considered a match. Similarly, if the le option is configured without the ge option, a prefix with a network mask less than or equal to the le value is considered a match.
Command Mode
Global Config
Example
The following example configures a prefix list that allows routes with one of two specific destination prefixes, 172.20.0.0/16 and 192.168.1.0/24.
(Routing) (Config)#ip prefix-list apple seq 16 permit 172.20.0.0/16
(Routing) (Config)#ip prefix-list apple seq 20 permit 192.168.10/24
The following example disallows only the default route.
(Routing) (Config)#ip prefix-list orange deny 0.0.0.0/0
(Routing) (Config)#ip prefix-list orange permi 0.0.0.0/0 ge 1
7-52 ip prefix-list description
To apply a text description to a prefix list, use the ip prefix-list description command in Global Configuration mode.
No command removes the text description.
ip prefix-list list-name description text no ip prefix-list list-name description
Parameters
| list-name | The text name of the prefix list. |
| text | Text description of the prefix list. Up to 80 characters. |
Default
No description is configured.
Command Mode
Global Config
7-53 ipv6 prefix-list
Create IPv6 prefix lists. An IPv6 prefix list can contain only ipv6 addresses. Prefix lists allow matching of route prefixes with those specified in the prefix list. Each prefix list includes a sequence of prefix list entries ordered by their sequence numbers. A router sequentially examines each prefix list entry to determine if the route's prefix matches that of the entry. For IPv6 routes, only IPv6 prefix lists are matched. An empty or nonexistent prefix list permits all prefixes. An implicit deny is assumed if a given prefix does not match any entries of a prefix list. Once a match or deny occurs the router does not continue through the rest of the list. An IPv6 prefix list may be used within a route map to match a route's prefix using the match ipv6 address command. A route map may contain both IPv4 and IPv4 prefix lists. If a route being matched is an IPv6 route, only the IPv6 prefix lists are matched.
Up to 128 prefix lists may be configured. The maximum number of statements allowed in prefix list is 64. These numbers indicate only IPv6 prefix lists. IPv4 prefix lists may be configured in appropriate numbers independently.
No command deletes either the entire prefix list or an individual statement from a prefix list.
Note: The description must be removed using the no ip prefix-list description before using this command to delete an IPv6 Prefix List.
ipv6 prefix-list list-name [seq seq-number] {{permit | deny} ipv6-prefix/prefix-length [ge ge-value] [le le-value] | description text | renumber renumber-interval first-statement-number}
no ipv6 prefix-list list-name
Parameters
| list-name | Text name of the prefix list. Up to 32 characters. |
| seq seq-number | (Optional) The sequence number for this prefix list statement. Prefix list statements are ordered from lowest sequence number to highest and applied in that order. If you do not specify a sequence number, the system will automatically select a sequence number five units larger than the last sequence number in the list. Two statements may not be configured with the same sequence number. The value ranges from 1 to 4,294,967,294. |
| permit | Permit routes whose destination prefix matches the statement. |
| deny | Deny routes whose destination prefix matches the statement. |
| ipv6-prefix/prefix-length | Specifies the match criteria for routes being compared to the prefix list statement. The ipv6-prefix can be any valid IPv6 prefix where the address is specified in hexadecimal using 16-bit values between colons. The prefix-length is the length of the IPv6 prefix, given as a decimal value that indicates how many of the high-order contiguous bits of the address comprise the prefix (the network portion of the address). A slash mark must precede the decimal value. |
| ge ge-value | (Optional) If this option is configured, specifies a prefix length greater than or equal to the ipv6-prefix/prefix-length. It is the highest value of a range of the length. |
| le le-value | (Optional) If this option is configured, specifies a prefix length less than or equal to the ipv6-prefix/prefix-length. It is the highest value of a range of the length. |
| description text | Description of the prefix list. It can be up to 80 characters in length. |
| renumber renumber-interval first-statement-number | Provides the option to renumber the sequence numbers of the IPv6 prefix list statements with a given interval starting from a particular sequence number. |
Default
No prefix lists are configured. When neither the ge nor the le option is configured, the destination prefix must match the network/length exactly. If the ge option is configured without the le option, any prefix with a network mask greater than or equal to the ge value is considered a match. Similarly, if the le option is configured without the ge option, a prefix with a network mask less than or equal to the le value is considered a match.
Command Mode
Global Config
Example
The following example configures a prefix list that allows routes with one of two specific destination prefixes, 2001::/64 and 5F00::/48.
(R1) (Config) #ipv6 prefix-list apple seq 10 permit 2001: :/64
(R1) (Config) #ipv6 prefix-list apple seq 20 permit 5F00: :/48
7-54 route-map
To create a route map and enter Route Map Configuration mode, use the route-map command in Global Configuration mode. One use of a route map is to limit the redistribution of routes to a specified range of route prefixes. The redistribution command specifies a route map which refers to a prefix list. The prefix list identifies the prefixes that may be redistributed. D-LINK OS accepts up to 64 route maps.
No command deletes a route map or one of its statements.
route-map map-tag [permit | deny] [sequence-number]
no route-map map-tag [permit | deny] [sequence-number]
Parameters
| map-tag | Text name of the route map. Route maps with the same name are grouped together in order of their sequence numbers. A route map name may be up to 32 characters long. |
| permit | (Optional) Permit routes that match all of the match conditions in the route map. |
| deny | (Optional) Deny routes that match all of the match conditions in the route map. |
| sequence-number | (Optional) Integer used to order the set of route maps with the same name. Route maps are ordered from lowest to greatest sequence number, with lower sequence numbers being considered first If no sequence number is specified the system assigns a value ten greater than the last statement in the route map. The range is 0 to 65,535. |
Default
The default is as follows: No route maps are configured.
Command Mode
Global Config
Example
In the following example, BGP is configured to redistribute the all prefixes within 172.20.0.0 and reject all others.
(Routing) (Config)#ip prefix-list redist-pl permit 172.20.0.0/16 le 32
(Routing) (Config)#route-map redist-rm permit
(Routing) (Config-route-map)#match ip address prefix-list redist-pl
(Routing) (Config-route-map)#exit
(Routing) (Config)#router bgp 1
(Routing) (Config-router)#redistribute ospf route-map redist-rm
7-55 match as-path
This route map match term matches BGP autonomous system paths against an AS-PATH access list. If you enter a new match as-path term in a route map statement that already has a match as-path term, the AS-PATH list numbers in the new term are added to the existing match term, up to the maximum number of lists in a term. A route is considered a match if it matches any one or more of the AS-PATH access lists the match term refers to.
No command deletes the match as-path term that matches BGP autonomous system paths against an AS-PATH access list.
match as-path as-path-list-number
no as-path-list-number
Parameters
| as-path-list-number | Integer from 1 to 500 identifying the AS-PATH access list to use as match criteria. |
Default
The default is None.
Command Mode
Route Map Config
7-56 match community
To configure a route map to match based on a BGP community list, use the match community command in Route Map Configuration mode. If the community list returns a permit action, the route is considered a match. If the match statement refers to a community list that is not configured, no routes are considered to match the statement.
No command deletes a match term from a route map. The command no match community list exact-match removes the match statement from the route map. (It does not simply remove the exact-match option.) The command no match community removes the match term and all its community lists.
match community community-list [community-list...] [exact-match]
no match community community-list [community-list...] [exact-match]
Parameters
| community-list | Name of a standard community list. Up to eight names may be included in a single match term. |
| exact-match | (Optional) When this option is given, a route is only considered a match if the set of communities on the route is an exact match for the set of communities in one of the statements in the community list. |
Default
The default is None.
Command Mode
Route Map Config
7-57 match ip address
To configure a route map to match based on a destination prefix, use the match ip address command in Route Map Configuration mode. If you specify multiple prefix lists in one statement, then a match occurs if a prefix matches any one of the prefix lists. If you configure a match ip address statement within a route map section that already has a match ip address statement, the new prefix lists are added to the existing set of prefix lists, and a match occurs if any prefix list in the combined set matches the prefix.
No command deletes a match statement from a route map.
match ip address prefix-list prefix-list-name [prefix-list-name...]
no match ip address [prefix-list prefix-list-name [prefix-list-name...]]
Parameters
| prefix-list prefix-list-name | (Optional) The name of a prefix list used to identify the set of matching |
routes. Up to eight prefix lists may be specified.
Default
The default is None.
Command Mode
Route Map Config
7-58 match ip address
Configure a route map in order to match based on the match criteria configured in an IP access-list. Note that an IPACL must be configured before it is linked to a route-map. Actions present in an IP ACL configuration are applied with other actions involved in route-map. If an IPACL referenced by a route-map is removed or rules are added or deleted from that ACL, the configuration is rejected.
If there are a list of IP access-lists specified in this command and the packet matches at least one of these access-list match criteria, the corresponding set of actions in route-map are applied to packet. If there are duplicate IP access-list numbers/names in this command, the duplicate configuration is ignored.
No command deletes a match statement from a route map.
match ip address access-list-number | access-list-name [access-list-number | access-list-name...]
no match ip address [access-list-number | access-list-name]
Parameters
| access-list-number | Identifies an access-list configured through access-list CLI configuration commands. This number is 1 to 99 for standard access list number. This number is 100 to 199 for extended access list number. |
| access-list-name | Identifies named IP ACLs. Access-list name can be up to 31 characters in length. A maximum of 16 ACLs can be specified in this ‘match’ clause. |
Default
No match criteria are defined.
Command Mode
Route Map Config
Example
The following sequence is creating a route-map with "match" clause on ACL number and applying that route-map on an interface.
(Routing) (Config)#access-list 1 permit ip 10.1.0.0.0.0.255.255
(Routing) (Config)#access-list 2 permit ip 10.2.0.0.0.0.255.255
(Routing) (Config)#route-map equal-access permit 10
(Routing) (Config-route-map)#match ip address 1
(Routing) (Config-route-map)#set ip default next-hop 192.168.6.6
(Routing) (Config-route-map)#route-map equal-access permit 20
(Routing) (Config-route-map)#match ip address 2
(Routing) (Config-route-map)#set ip default next-hop 172.16.7.7
(Routing) (Config)#interface 0/1
(Routing) (Interface 0/1)#ip address 10.1.1.1 255.255.255.0
(Routing) (Interface 0/1)#ip policy route-map equal-access
(Routing) (Config)#interface 0/2
(Routing) (Interface 0/2)#ip address 192.168.6.5 255.255.255.0
(Routing) (Config)#interface 0/3
(Routing) (Interface 0/3)#ip address 172.16.7.6 255.255.255.0
The ip policy route-map equal-access command is applied to interface 0/1. All packets coming inside 0/1 are policy-routed.
Sequence number 10 in route map equal-access is used to match all packets sourced from any host in subnet 10.1.0.0. If there is a match, and if the router has no explicit route for the packet's destination, it is sent to next-hop address 192.168.6.6.
Sequence number 20 in route map equal-access is used to match all packets sourced from any host in subnet 10.2.0.0. If there is a match, and if the router has no explicit route for the packet's destination, it is sent to next-hop address 172.16.7.7.
Rest all packets are forwarded as per normal L3 destination-based routing.
This example illustrates the scenario where IP ACL referenced by a route-map is removed or rules are added or deleted from that ACL, this is how configuration is rejected.
(Routing)#show ip access-lists
Current number of ACLs: 9 Maximum number of ACLs: 100
ACL ID/Name Rules Direction Interface(s) VLAN(s)
1 1
2 1
3 1
4 1
5 1
madan 1
(Routing)#show mac access-lists
Current number of all ACLs: 9 Maximum number of all ACLs: 100
MAC ACL Name Rules Direction Interface(s) VLAN(s)
mohan 1
mohan 1
goud 1
(Routing)#
(Routing)#configure
(Routing) (Config)#route-map madan
(Routing) (Route-map)#match ip address 1 2 3 4 5 madan
(Routing) (Route-map)#match mac-list madan mohan goud
(Routing) (Route-map)#exit
(Routing) (Config)#exit
(Routing)#show route-map
route-map madan permit 10
Match clauses:
ip address (access-lists) : 1 2 3 4 5 madan
mac-list (access-lists) : madan mohan goud
Set clauses:
(Routing) (Config)#access-list 2 permit every
Request denied. Another application using this ACL restricts the number of rules allowed.
7-59 match ipv6 address (route-map)
Configure a route map to match based on a destination prefix. The prefix-list prefix-list-name identifies the name of an IPv6 prefix list used to identify the set of matching routes. Up to eight prefix lists can be specified. If multiple prefix lists are specified, a match occurs if a prefix matches any one of the prefix lists. If you configure a match ipv6 address statement within a route map section that already has a match ipv6 address statement, the new prefix lists are added to the existing set of prefix lists. and a match occurs if any prefix list in the combined set matches the prefix.
No command deletes a match statement from a route map.
match ipv6 address prefix-list prefix-list-name [prefix-list-name...]
no match ipv6 address prefix-list prefix-list-name [prefix-list-name...]
Parameters
prefix-list prefix-list-name Match an ipv6 prefix-list.
Default
The default is as follows: no matching criteria is defined.
Command Mode
Route Map Config
Example
In the example below, IPv6 addresses specified by the prefix list apple are matched through the route map abc.
(Router) (config)#route-map abc
(Router) (config-route-map)#match ipv6 address prefix-list apple
7-60 match length
Configure a route map to match based on the Layer 3 packet length between specified minimum and maximum values. min specifies the packet's minimum Layer 3 length, inclusive, allowed for a match. max specifies the packets maximum Layer 3 length, inclusive, allowed for a match. Each route-map statement can contain one 'match' statement on packet length range.
No command deletes a match statement from a route map.
match length min max
no match length
Parameters
| min | Enter minimum length of the packet greater than or equal to 68. |
| max | Enter maximum length of the packet less than or equal to 9198 |
Default
The default is None.
Command Mode
Route Map Config
Example
The following shows an example of the command.
(Routing)(config-route-map)#match length 64 1500
7-61 match mac-list
Configure a route map in order to match based on the match criteria configured in a MAC access-list.
A MAC ACL is configured before it is linked to a route-map. Actions present in MAC ACL configuration are applied with other actions involved in route-map. When a MAC ACL referenced by a route-map is removed, the route-map rule is also removed and the corresponding rule is not effective. When a MAC ACL referenced by a route-map is removed or rules are added or deleted from that ACL, the configuration is rejected.
No command deletes a match statement from a route map.
match mac-list mac-list-name [mac-list-name...]
no match mac-list mac-list-name [mac-list-name...]
Parameters
| mac-list-name | The mac-list name that identifies MAC ACLs. MAC Access-list name can be up to 31 characters in length. |
Default
The default is as follows: no matching criteria is defined.
Command Mode
Route Map Config
Example
The following is an example of the command.
(Routing)(config-route-map)# match mac-list MacList1
This example illustrates the scenario where MAC ACL referenced by a route-map is removed or rules are added or deleted from that ACL, this is how configuration is rejected.
(Routing)#show mac access-lists
Current number of all ACLs: 9 Maximum number of all ACLs: 100
MAC ACL Name Rules Direction Interface(s) VLAN(s)
----
madan 1
mohan 1
goud 1
(Routing)#
(Routing)#configure
(Routing)(Config)#route-map madan
(Routing)(Route-map)#match mac-list madan mohan goud
(Routing)(Route-map)#exit
(Routing)(Config)#exit
(Routing)#show route-map
route-map madan permit 10
Match clauses:
mac-list (access-lists) : madan mohan goud
Set clauses:
(Routing)(Config)#mac access-list extended madan
(Routing)(Config-mac-access-list)#permit 00:00:00:00:00:01 ff:ff:ff:ff:ff any
Request denied. Another application using this ACL restricts the number of rules allowed.
7-62 set as-path
To prepend one or more AS numbers to the AS-PATH in a BGP route, use the set as-path command in Route Map Configuration mode. This command is normally used to insert one or more instances of the local AS number at the beginning of the AS_PATH attribute of a BGP route. Doing so increases the AS-PATH length of the route. The AS-PATH length has a strong influence on BGP route selection. Changing the AS-PATH length can influence route selection on the local router or on routers to which the route is advertised.
When prepending an inbound route, if the first segment in the AS_PATH of the received route is an AS_SEQUENCE, as-path-string is inserted at the beginning of the sequence. If the first segment is an AS_SET, as-path-string is added as a new segment with type AS_SEQUENCE at the beginning of the AS-PATH. When prepending an outbound route to an external peer, as-path-string follows the local AS number, which is always the first ASN.
No command removes a set command from a route map.
set as-path prepend as-path-string
no set as-path prepend as-path-string
Parameters
| as-path-string | List of AS-PATH numbers to insert at the beginning of the AS_PATH attribute of matching BGP routes. To prepend more than one AS number, separate the ASNs with a space and enclose the string in quotes. Up to ten AS numbers may be prepended. |
Default
The default is None.
Command Mode
Route Map Config
Example
The following example prepends three instances an external peer's AS number to paths received from that peer, making routes learned from this peer less likely to be chosen as the best path.
(Routing)#config
(Routing)#route-map ppAsPath
(Routing)#set as-path prepend "2 2 2"
(Routing)#exit
(Routing)#router bgp 1
(Routing)#neighbor 172.20.1.2 remote-as 2
(Routing)#neighbor 172.20.1.2 route-map ppAsPath in
7-63 set comm-list delete
To remove BGP communities from an inbound or outbound UPDATE message, use the set comm-list delete command in Route Map Configuration mode. A route map with this set command can be used to remove selected communities from inbound and outbound routes. When a community list is applied to a route for this purpose, each of the route's communities is submitted to the community list one at a time. Communities permitted by the list are removed from the route. Because communities are processed
individually, a community list used to remove communities should not include the exact-match option on statements with multiple communities. Such statements can never match an individual community.
When a route map statement includes both set community and set comm-list delete terms, the set comm-list delete term is processed first, and then the set community term (meaning that, communities are first removed, and then communities are added).
No command deletes the set command from a route map.
set comm-list community-list-name delete
no set comm-list
Parameters
| community-list-name | A standard community list name. |
| Default | |
| The default is None. | |
| Command Mode | |
| Route Map Config |
7-64 set community
To modify the communities attribute of matching routes, use the set community command in Route Map Configuration mode. The set community command can be used to assign communities to routes originated through BGP's network and redistribute commands, and to set communities on routes received from a specific neighbor or advertised to a specific neighbor. It can also be used to remove all communities from a route.
To remove a subset of the communities on a route, use the command "set comm-list delete".
No command removes a set term from a route map.
set community {community-number [additive] | none}
no set community
Parameters
| community-number | One to sixteen community numbers, either as a 32-bit integers or in AA:NN format. Communities are separated by spaces. The well-known communities no advertise and no-export are also accepted. |
| additive | (Optional) Communities are added to those already attached to the route. |
| none | Removes all communities from matching routes. |
Default
The default is None.
Command Mode
Route Map Config
7-65 set interface
If the network administrator does not want to revert to normal forwarding but instead wants to drop a packet that does not match the specified criteria, a set statement needs to be configured to route the packets to interface null 0 as the last entry in the route-map. set interface null0 needs to be configured in a separate statement. It should not be added along with any other statement having other match/set terms.
A route-map statement that is used for PBR is configured as permit or deny. If the statement is marked as deny, traditional destination-based routing is performed on the packet meeting the match criteria. If the statement is marked as permit, and if the packet meets all the match criteria, then set commands in the route-map statement are applied. If no match is found in the route-map, the packet is not dropped, instead the packet is forwarded using the routing decision taken by performing destination-based routing.
set interface null0
Parameters
None
Default
The default is None.
Command Mode
Route Map Config
7-66 set ip next-hop
Specify the adjacent next-hop router in the path toward the destination to which the packets should be forwarded. If more than one IP address is specified, the first IP address associated with a currently up-connected interface is used to route the packets.
This command affects all incoming packet types and is always used if configured. If configured next-hop is not present in the routing table, an ARP request is sent from the router.
In a route-map statement, 'set ip next-hop' and 'set ip default next-hop' terms are mutually exclusive. However, a 'set ip default next-hop' can be configured in a separate route-map statement.
No command removes a set command from a route map.
set ip next-hop ip-address [ip-address...]
no set ip next-hop ip-address [ip-address...]
Parameters
| ip-address | IP address of the next hop to which packets are output. It must be the address of an adjacent router. A maximum of 16 next-hop IP addresses can be specified in this ‘set’ clause. |
Default
The default is None.
Command Mode
Route Map Config
7-67 set ip default next-hop
Set a list of default next-hop IP addresses. When more than one IP address is specified, the following hop specified is used. The optional specified IP addresses are tried in turn.
A packet is routed to the next hop specified by this command only if there is no explicit route for the packet's destination address in the routing table. A default route in the routing table is not considered an explicit route for an unknown destination address.
In a route-map statement, 'set ip next-hop' and 'set ip default next-hop' terms are mutually exclusive. However, a 'set ip next-hop' can be configured in a separate route-map statement.
No command removes a set command from a route map.
set ip default next-hop ip-address [ip-address...]
no set ip default next-hop ip-address [ip-address...]
Parameters
| ip-address | IP address of the next hop to which packets are output. It must be the address of an adjacent router. A maximum of 16 next-hop IP addresses can be specified in this ‘set’ clause. |
Default
The default is None.
Command Mode
Route Map Config
7-68 set ip precedence
Set the three IP precedence bits in the IP packet header. With three bits, you have eight possible values for the IP precedence; values 0 through 7 are defined. This command is used when implementing QoS
and can be used by other QoS services, such as weighted fair queuing (WFQ) and weighted random early detection (WRED).
No command resets the three IP precedence bits in the IP packet header to the default.
set ip precedence 0-7
no set ip precedence
Parameters
| 0 | Sets the routine precedence. |
| 1 | Sets the priority precedence. |
| 2 | Sets the immediate precedence. |
| 3 | Sets the Flash precedence. |
| 4 | Sets the Flash override precedence. |
| 5 | Sets the critical precedence. |
| 6 | Sets the internetwork control precedence. |
| 7 | Sets the network control precedence. |
Default
The default is None.
Command Mode
Route Map Config
7-69 set ipv6 next-hop (BGP)
To set the IPv6 next hop of a route, use the set ipv6 next-hop command in Route Map Configuration mode. When used in a route map applied to UPDATE messages received from a neighbor, the command sets the next hop address for matching IPv6 routes received from the neighbor.
When used in a route map applied to UPDATE messages sent to a neighbor, the command sets the next hop address for matching IPv6 routes sent to the neighbor. If the address is a link local address, the address is assumed to be on the interface where the UPDATE is sent or received. If the command specifies a global IPv6 address, the address is not required to be on a local subnet.
No command removes a set command from a route map.
set ipv6 next-hop ipv6-address
no set ipv6 next-hop
Parameters
| ipv6-address | IPv6 address set as the Network Address of Next Hop field in the |
MP_NLRI attribute of an UPDATE message.
Default
The default is None.
Command Mode
Route Map Config
7-70 set local-preference
To set the local preference of specific BGP routes, use the set local-preference command in Route Map Configuration mode. The local preference is the first attribute used to compare BGP routes. Setting the local preference can influence which route BGP selects as the best route.
No command removes a set command from a route map.
set local-preference value
no set local-preference value
Parameters
| value | Local preference value, from 0 to 4,294,967,295 (any 32-bit integer). |
| Default | |
| The default is None. | |
| Command Mode | |
| Route Map Config |
7-71 set metric (BGP)
To set the metric of a route, use the set metric command In Route Map Configuration mode. In BGP context, sets the Multi Exit Discriminator (MED). When there are multiple peering points between two autonomous systems (AS), setting the MED on routes advertised by one router can influence the other AS to send traffic through a specific peer.
No command removes a set command from a route map.
set metric value
no set metric value
Parameters
| value | A metric value, from 0 to 4,294,967,295 (any 32-bit integer). |
| Default | |
| The default is None. | |
| Command Mode | |
| Route Map Config |
7-72 show ip policy
List the route map associated with each interface.
show ip policy
Parameters
None
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show ip policy
Interface Route-Map
FastEthernet0/0 equal-access
Display Parameters
| Interface | Indicates the interface. |
| Route-map | Indicates the route map. |
7-73 show ip prefix-list
Display configuration and status for a prefix list.
show ip prefix-list [detail | summary] prefix-list-name [network/length] [seq sequence-number] [longer] [first-match]
Parameters
| detail | summary | (Optional) Displays detailed or summarized information about all prefix lists. |
| prefix-list-name | (Optional) Name of a specific prefix list. |
| network/length | (Optional) Network number and length (in bits) of the network mask |
| seq sequence-number | (Optional) Applies the sequence number to the prefix list entry. The sequence number of the prefix list entry. |
| longer | (Optional) Displays all entries of a prefix list that are more specific than the given network/length. |
| first-match | (Optional) Displays the entry of a prefix list that matches the given network/length. |
Acceptable forms of this command are as follows:
• show ip prefix-list prefix-list-name network/length first-match
• show ip prefix-list prefix-list-name network/length longer
• show ip prefix-list prefix-list-name network/length
• show ip prefix-list prefix-list-name seq sequence-number
• show ip prefix-list prefix-list-name
• show ip prefix-list summary
• show ip prefix-list summary prefix-list-name
• show ip prefix-list detail
• show ip prefix-list detail prefix-list-name
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show ip prefix-list fred
ip prefix-list fred:
count: 3, range entries: 3, sequences: 5 - 15, refcount: 0
seq 5 permit 10.10.1.1/20 ge 22
seq 10 permit 10.10.1.2/20 le 36
seq 15 permit 10.10.1.2/20 ge 29 le 30
The following shows example CLI display output for the command
(Routing)#show ip prefix-list summary fred
ip prefix-list fred:
count: 3, range entries: 3, sequences: 5 - 15, refcount: 0
The following shows example CLI display output for the command
(Routing)#show ip prefix-list detail fred
ip prefix-list Fred:
count: 3, range entries: 3, sequences: 5 - 15, refcount: 0
seq 5 permit 10.10.1.1/20 ge 22 (hitcount: 0)
seq 10 permit 10.10.1.2/20 le 30 (hitcount: 0)
seq 15 permit 10.10.1.2/20 ge 29 le 30 (hitcount: 0)
7-74 show ipv6 prefix-list
Display configuration and status for a selected prefix list.
show ipv6 prefix-list [detail | summary] lastname [ipv6-prefix/prefix-length] [seq sequence-number] [longer] [first-match]
Parameters
| detail | summary | (Optional) Displays detailed or summarized information about all prefix lists. |
| listname | (Optional) Name of a specific prefix list. |
| ipv6-prefix/prefix-length | (Optional) Network number and length (in bits) of the network mask. |
| seq sequence-number | (Optional) Applies the sequence number to the prefix list entry. The sequence number of the prefix list entry. |
| longer | (Optional) Displays all entries of a prefix list that are more specific than the given network/length. |
| first-match | (Optional) Displays the entry of a prefix list that matches the given network/length. |
Acceptable forms of this command are as follows:
• show ipv6 prefix-list listname ipv6 prefix/prefix length first-match
• show ipv6 prefix-list listname ipv6-prefix/prefix-length longer
• show ipv6 prefix-list listname ipv6-prefix/prefix-length
• show ipv6 prefix-list listname seq sequence-number
• show ipv6 prefix-list listname
• show ipv6 prefix-list summary
• show ipv6 prefix-list summary prefix-list-name
• show ipv6 prefix-list detail
• show ipv6 prefix-list detail prefix-list-name
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Switch)#show ipv6 prefix-list apple
ipv6 prefix-list apple:
count: 6, range entries: 3, sequences: 5 - 30, refcount: 31
seq 5 deny 5F00::/8 1e 128
seq 10 deny ::/0
seq 15 deny ::/1
seq 20 deny ::/2
seq 25 deny ::/3 ge 4
seq 30 permit ::/0 1e 128
(Switch)#show ipv6 prefix-list summary apple
ipv6 prefix-list apple:
count: 6, range entries: 3, sequences: 5 - 30, refcount: 31
(Switch)#show ipv6 prefix-list detail apple
ipv6 prefix-list apple:
count: 6, range entries: 3, sequences: 5 - 30, refcount: 31
seq 5 deny 5F00 ::/8 le 128 (hit count: 0, refcount: 1)
seq 10 deny ::/0 (hit count: 0, refcount: 1)
seq 15 deny ::/1 (hit count: 0, refcount: 1)
seq 20 deny ::/2 (hit count: 0, refcount: 1)
seq 25 deny ::/3 ge 4 (hit count: 0, refcount: 1)
seq 30 permit ::/0 le 128 (hit count: 240664, refcount: 0)
Display Parameters
| count | Number of entries in the prefix list. |
| range entries | Number of entries that match the input range. |
| ref count | Number of entries referencing the given prefix list. |
| seq | Sequence number of the entry in the list. |
| permit/deny | Action to take. |
| sequences | Range of sequence numbers for the entries in the list. |
| hit count | Number of matches for the prefix entry. |
7-75 show route-map
To display a route map, use the show route-map command in Privileged EXEC mode.
show route-map [map-name]
Parameters
| map-name | (Optional) Name of a specific route map. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows example CLI display output for the command.
(Routing)#show route-map test
route-map test, permit, sequence 10
Match clauses:
ip address prefix-lists: orange
Set clauses:
set metric 50
7-76 clear ip prefix-list
To reset IP prefix-list counters, use the clear ip prefix-list command in Privileged EXEC mode. This command is used to clear prefix-list hit counters. The hit count is a value indicating the number of matches to a specific prefix list entry.
clear ip prefix-list [[prefix-list-name] [network/length]]
Parameters
| prefix-list-name | (Optional) Name of the prefix list from which the hit count is to be cleared. |
| network/length | (Optional) Network number and length (in bits) of the network mask. If this option is specified, hit counters are only cleared for the matching statement. |
Default
The default is None.
Command Mode
Privileged EXEC
Example
The following shows an example of the command.
(Routing)#clear ip prefix-list orange 20.0.0.0/8
7-77 clear ipv6 prefix-list
Reset and clear IPv6 prefix-list hit counters. The hit count is a value indicating the number of matches to a specific prefix list entry.
clear ipv6 prefix-list [prefix-list-name] [ipv6-prefix/prefix-length]
Parameters
| prefix-list-name | (Optional) Name of the prefix list from which the hit count is to be cleared. |
| ipv6-prefix/prefix-length | (Optional) IPv6 prefix number and length (in bits) of the network mask. If this option is specified, hit counters are only cleared for the matching statement. |
Default
The default is None.
Command Mode
Privileged EXEC
Router Discovery Protocol Commands
This section describes the commands you use to view and configure Router Discovery Protocol settings on the switch. The Router Discovery Protocol enables a host to discover the IP address of routers on the subnet.
7-78 ip irdp
Enable Internet Router Discovery Protocol (IRDP) on an interface or range of interfaces.
No command disables Router Discovery on an interface.
ip irdp
no ip irdp
Parameters
None
Default
The default is Disabled.
Command Mode
Interface Config
7-79 ip irdp address
Configure the address that the interface uses to send the router discovery advertisements. The valid value for ipaddr is 255.255.255.255, which is the limited broadcast address.
No command configures the default address used to advertise the router for the interface.
ip irdp address ipaddr
no ip irdp address
Parameters
| ipaddr | Enter an IP address. The valid options are 224.0.0.1 and 255.255.255.255. |
Default
The default is 224.0.0.1.
Command Mode
Interface Config
7-80 ip irdp holdtime
Configure the value, in seconds, of the holdtime field of the router advertisement sent from this interface. The holdtime range is the value of 4 to 9000 seconds.
No command configures the default value, in seconds, of the holdtime field of the router advertisement sent from this interface.
ip irdp holdtime maxadvertinterval
no ip irdp holdtime
Parameters
| maxadvertinterval | Enter the holdtime in seconds. |
| Default | |
| The default is 3 x maxadvertinterval. | |
| Command Mode | |
| Interface Config | |
7-81 ip irdp maxadvertinterval
Configure the maximum time, in seconds, allowed between sending router advertisements from the interface.
No command configures the default maximum time, in seconds.
ip irdp maxadvertinterval 4-1800
no ip irdp maxadvertinterval
Parameters
None
Default
The default is 600.
Command Mode
Interface Config
7-82 ip irdp minadvertinterval
Configure the minimum time, in seconds, allowed between sending router advertisements from the interface. The range for minadvertinterval is three to the value of maxadvertinterval.
No command sets the default minimum time to the default.
ip irdp minadvertinterval maxadvertinterval
no ip irdp minadvertinterval
Parameters
| maxadvertinterval | Enter the minadvertinterval in seconds. |
Default
The default is 0.75 * maxadvertinterval.
Command Mode
Interface Config
7-83 ip irdp preference
Configure the preferability of the address as a default router address, relative to other router addresses on the same subnet.
No command configures the default preferability of the address as a default router address, relative to other router addresses on the same subnet.
ip irdp preference -2147483648-2147483647
no ip irdp preference
Parameters
None
Default
The default is 0.
Command Mode
Interface Config
7-84 show ip irdp
Display the router discovery information for all interfaces, or a specified interface.
show ip irdp {slot/port | vlan vlan-id | all}
Parameters
| slot/port | Enter an interface in slot/port format. |
| vlan vlan-id | Enter an interface in VLAN format. |
| all | Enter 'all' for all interfaces. |
Default
The default is None.
Command Mode
- Privileged EXEC
- User EXEC
Example
The following is an example of the CLI display output for the command.
(Routing) #show ip irdp all
| Interface | Ad Mode | Dest Address | Max Int | Min Int | Hold Time | Preference |
| 0/1 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/2 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/3 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/4 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/5 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/6 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/7 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/8 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/9 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/10 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/11 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/12 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/13 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/14 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/15 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/16 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/17 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/18 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/19 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/20 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/21 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |
| 0/22 | Disable | 224.0.0.1 | 600 | 450 | 1800 | 0 |