HP MSR2000/3000/4000 Router Series Layer 2 - LAN Switching Command Reference (V7) Part number: 5998-4009 Software version: CMW710-R0007P02 Document version: 6PW100-20130927
Legal and notice information © Copyright 2013 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents MAC address table commands··································································································································· 1 display mac-address ················································································································································ 1 display mac-address aging-time ····························································································································· 2 display mac-addre
stp root primary ····················································································································································· 45 stp root secondary ················································································································································· 46 stp root-protection ·················································································································································· 46 stp
lldp lldp lldp lldp lldp lldp lldp lldp lldp lldp lldp lldp global enable ··············································································································································· 100 hold-multiplier ··············································································································································· 100 management-address-format string ····························································································
MAC address table commands The MAC address table contains only Layer 2 Ethernet interfaces. This document covers the configuration of unicast MAC address entries, including static, dynamic, and blackhole MAC address entries. display mac-address Use display mac-address to display MAC address entries.
000f-e201-0101 100 Static Eth2/1 N # Display the total number of MAC address entries. display mac-address count 2 mac address(es) found. Table 1 Command output Field Description VLAN ID ID of the VLAN to which the outgoing interface of the MAC address entry belongs. MAC address entry state: State • Static—Static MAC address entry. • Learned—Dynamic MAC address entry. Dynamic entries can be manually configured, or learned. • Blackhole—Blackhole MAC address entry.
display mac-address mac-learning Use display mac-address mac-learning to verify whether MAC address learning has been enabled globally or on an interface. Syntax display mac-address mac-learning [ interface interface-type interface-number ] Views Any view Predefined user roles network-admin network-operator Parameters interface interface-type interface-number: Specifies an interface by its type and number.
mac-address (interface view) Use mac-address to add or modify a MAC address entry on the specified interface. Use undo mac-address to delete a MAC address entry on the specified interface. Syntax mac-address { dynamic | static } mac-address vlan vlan-id undo mac-address { dynamic | static } mac-address vlan vlan-id Default An interface is not configured with any MAC address entry.
mac-address (system view) Use mac-address to add or modify a MAC address entry. Use undo mac-address to delete one or all MAC address entries.
A static or blackhole MAC address entry can overwrite a dynamic MAC address entry, but not vice versa. If you execute the undo mac-address command without specifying any parameters, this command deletes all unicast MAC address entries. You can delete all the MAC address entries of a specified VLAN, or you can delete only a specific type (dynamic, static, or blackhole) of MAC address entries. You can single out certain interfaces and delete the corresponding unicast MAC address entries.
Examples # Disable MAC address learning on interface Ethernet 2/1. system-view [Sysname] interface ethernet 2/1 [Sysname-Ethernet2/1] undo mac-address mac-learning enable Related commands display mac-address mac-learning mac-address timer Use mac-address timer to configure the aging timer for dynamic MAC address entries. Use undo mac-address timer to restore the default.
Related commands display mac-address aging-time 8
Port isolation commands display port-isolate group Use display port-isolate group to display port isolation group information. Syntax display port-isolate group Views Any view Predefined user roles network-admin network-operator Parameters None Examples # Display port isolation group information. display port-isolate group Port isolation group information: Group ID: 1 Group members: Ethernet2/2 Table 3 Command output Field Description Group ID Isolation group number.
Default No ports are assigned to the isolation group. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters None Usage guidelines The configuration in Layer 2 Ethernet interface view applies only to the interface. You cannot assign the member ports of a service loopback group to the isolation group, and vice versa. Examples # Assign ports Ethernet 2/1 and Ethernet 2/2 to the isolation group.
Spanning tree commands The commands in this chapter are supported only on the routers installed with Layer 2 LAN switching interface modules. For more information about the interface modules, see HP MSR Router Series Interface Module Guide. active region-configuration Use active region-configuration to activate your MST region configuration.
check region-configuration Use check region-configuration to display MST region pre-configuration information, including the region name, revision level, and VLAN-to-instance mapping settings.
• region-name • revision-level • vlan-mapping modulo display stp Use display stp to display the spanning tree status and statistics information. Based on the information, you can analyze and maintain the network topology or determine whether the spanning tree is working correctly.
• If you specify an MSTI but not a port, this command displays the spanning tree information on all ports in that MSTI. The displayed information is sorted by port name. • If you specify some ports but not an MSTI, this command displays the spanning tree information of all MSTIs on the specified ports. The displayed information is sorted by MSTI ID and by port name in each MSTI.
Root ID/ERPC : 0.00e0-fc0e-6554, 200200 RegRoot ID/IRPC : 32768.000f-e200-2200, 0 RootPort ID : 128.48 BPDU-Protection : Disabled Bridge ConfigDigest-Snooping : Disabled TC or TCN received : 2 Time since last TC : 0 days 0h:5m:42s ----[Port153(Ethernet2/1)][FORWARDING]---Port protocol : Enabled Port role : Designated Port (Boundary) Port ID : 128.153 Port cost(Legacy) : Config=auto, Active=200 Desg.bridge/port : 32768.000f-e200-2200, 128.
Forward delay(s) : 15 Hello time(s) : 2 Max hops : 20 Table 6 Command output Field Description Bridge ID Bridge ID, which comprises the device's priority in the MSTI and its MAC address. For example, in output "32768.000f-e200-2200," the value preceding the dot is the device's priority in the MSTI, and the value following the dot is the device's MAC address. Major parameters for the bridge: Bridge times • • • • Hello—Hello timer. MaxAge—Maximum age timer. FwdDelay—Forward delay timer.
Field Description The port is an edge port or non-edge port. Port edged • Config—Configured value. • Active—Actual value. The port is connected to a point-to-point link or not. Point-to-Point • Config—Configured value. • Active—Actual value. Transmit limit Maximum number of packets sent within each hello time. Protection type on the port: Protection type • • • • Root—Root guard. Loop—Loop guard. BPDU—BPDU guard. None—No protection.
Field Description CIST Bridge-Prio. Device's priority in the CIST. Max age(s) Aging timer (in seconds) for BPDUs. Forward delay(s) Port state transition delay (in seconds). Hello time(s) Interval (in seconds) for the root bridge to send BPDUs. Max hops Maximum hops in the MSTI. Related commands reset stp display stp abnormal-port Use display stp abnormal-port to display information about ports that are blocked by spanning tree protection functions.
display stp bpdu-statistics Use display stp bpdu-statistics to display the BPDU statistics on ports. Syntax display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-list ] ] Views Any view Predefined user roles network-admin network-operator Parameters interface interface-type interface-number: Displays the BPDU statistics on a specified port, where interface-type interface-number indicates the port type and number.
TCN received 0 TCA sent 0 TCA received 2 Config sent 0 Config received 0 RST sent 0 RST received 0 MST sent 4 10:33:11 01/13/2011 MST received 151 10:37:43 01/13/2011 Count Last Updated 10:33:12 01/13/2011 Instance 0: Type --------------------------- ---------- ----------------Timeout BPDUs 0 MAX-hoped BPDUs 0 TC detected 1 10:32:40 01/13/2011 TC sent 3 10:33:11 01/13/2011 TC received 0 Table 8 Command output Field Description Port Port name.
display stp down-port Use display stp down-port to display information about ports that were shut down by spanning tree protection functions. Syntax display stp down-port Views Any view Predefined user roles network-admin network-operator Examples # Display information about ports that were shut down by spanning tree protection functions.
Parameters instance instance-list: Displays the historical port role calculation information for the MSTIs that are specified by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges. The value range for the instance-id argument is 0 to 4094, and the value 0 represents the CIST. slot slot-number: Displays the historical port role calculation information on the specified card.
Table 10 Command output Field Description Port Port name. Role change Role change of the port ("Aged" means that the change was caused by expiration of the received configuration BPDU). Time Time of port role calculation. Port priority Port priority. display stp region-configuration Use display stp region-configuration to display the effective configuration information of the MST region, including the region name, revision level, and user-configured VLAN-to-instance mappings.
Related commands • instance • region-name • revision-level • vlan-mapping modulo display stp root Use display stp root to display the root bridge information of all MSTIs. Syntax display stp root Views Any view Predefined user roles network-admin network-operator Examples # In MSTP mode, display the root bridge information of all spanning trees. display stp root MSTID Root Bridge ID ExtPathCost IntPathCost Root Port 0 0.
Views Any view Predefined user roles network-admin network-operator Parameters instance instance-list: Displays the statistics of TC/TCN BPDUs received and sent by all ports in the MSTIs that are specified by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges. The value range for the instance-id argument is 0 to 4094, and the value 0 represents the CIST.
Field Description Send Number of TC/TCN BPDUs sent by each port. instance Use instance to map a list of VLANs to the specified MSTI. Use undo instance to remap the specified VLAN or all VLANs to the CIST (MSTI 0). Syntax instance instance-id vlan vlan-list undo instance instance-id [ vlan vlan-list ] Default All VLANs are mapped to the CIST. Views MST region view Predefined user roles network-admin Parameters instance-id: Specifies an MSTI ID in the range of 0 to 4094, where 0 represents the CIST.
Related commands • active region-configuration • check region-configuration • display stp region-configuration region-name Use region-name to configure the MST region name. Use undo region-name to restore the default MST region name. Syntax region-name name undo region-name Default The MST region name of a device is its MAC address. Views MST region view Predefined user roles network-admin Parameters name: Specifies the MST region name, a string of 1 to 32 characters.
reset stp Use reset stp to clear the MSTP statistics information. The MSTP statistics information includes the numbers of TCN BPDUs, configuration BPDUs, RST BPDUs, and MST BPDUs that are sent and received through the specified ports.
Usage guidelines The MSTP revision level, the MST region name, and the VLAN-to-instance mapping table of a device determine the device's MST region. When the MST region name and VLAN-to-instance mapping table are both the same for two MST regions, they can still be differentiated by their MSTP revision levels. After configuring this command, run the active region-configuration command to activate the configured MST region level. Examples # Set the MSTP revision level of the MST region to 5.
Use undo stp bridge-diameter to restore the default. Syntax stp bridge-diameter diameter undo stp bridge-diameter Default The network diameter of the switched network is 7. Views System view Predefined user roles network-admin Parameters diameter: Specifies the switched network diameter in the range of 2 to 7. Usage guidelines An appropriate setting of hello time, forward delay, and max age can speed up network convergence.
Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters auto: Configures the ports to recognize the MSTP BPDU format automatically and determine the format of MSTP BPDUs to send. dot1s: Configures the ports to receive and send only standard-format (802.1s-compliant) MSTP BPDUs. legacy: Configures the ports to receive and send only compatible-format MSTP BPDUs.
[Sysname-Ethernet2/1] quit [Sysname] stp global config-digest-snooping Related commands • display stp • stp global config-digest-snooping stp cost Use stp cost to set the path cost of the port or ports. Use undo stp cost to restore the default. Syntax stp [ instance instance-list ] cost cost undo stp [ instance instance-list ] cost Default The device automatically calculates the path costs of ports in each spanning tree based on the corresponding standard.
Examples # In MSTP mode, set the path cost of port Ethernet 2/3 in MSTI 2 to 200. system-view [Sysname] interface ethernet 2/3 [Sysname-Ethernet2/3] stp instance 2 cost 200 Related commands • display stp • stp pathcost-standard stp edged-port Use stp edged-port to configure the ports as edge ports. Use undo stp edged-port to configure the ports as non-edge ports. Syntax stp edged-port undo stp edged-port Default All ports are non-edge ports.
• stp root-protection stp enable Use stp enable to enable the spanning tree feature. Use undo stp enable to disable the spanning tree feature. Syntax stp enable undo stp enable Default The spanning tree feature is enabled on all ports. Views Layer 2 Ethernet interface view Predefined user roles network-admin Usage guidelines When you enable the spanning tree feature, the device operates in STP, RSTP, or MSTP mode, depending on the spanning tree mode setting.
Default The feature is disabled globally. Views System view Predefined user roles network-admin Usage guidelines Enable this feature both globally and on ports connected to other vendors' devices. To minimize impact, enable the feature on all associated ports before you enable it globally. Examples # Enable digest snooping on Ethernet 2/1 and then globally.
Examples # Enable the spanning tree feature globally. system-view [Sysname] stp global enable Related commands • stp enable • stp mode stp global mcheck Use stp global mcheck to perform the mCheck operation globally. Syntax stp global mcheck Views System view Predefined user roles network-admin Usage guidelines If a port on a device running MSTP or RSTP connects to an STP device, this port automatically transits to the STP mode when the port receives STP BPDUs.
Default The loop guard function is disabled. Views Layer 2 Ethernet interface view Predefined user roles network-admin Usage guidelines On a port, the loop guard function is mutually exclusive with the root guard function or the edge port setting. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. Examples # Enable the loop guard function on Ethernet 2/1.
Related commands display stp stp mcheck Use stp mcheck to perform the mCheck operation on a port. Syntax stp mcheck Views Layer 2 Ethernet interface view Predefined user roles network-admin Usage guidelines If a port on a device that is running MSTP or RSTP connects to an STP device, the port automatically transits to the STP mode when the port receives STP BPDUs.
undo stp mode Default A spanning tree device operates in MSTP mode. Views System view Predefined user roles network-admin Parameters mstp: Configures the spanning tree device to operate in MSTP mode. rstp: Configures the spanning tree device to operate in RSTP mode. stp: Configures the spanning tree device to operate in STP mode. Usage guidelines MSTP mode is compatible with RSTP mode, and RSTP mode is compatible with STP mode. Examples # Configure the spanning tree device to operate in STP mode.
When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. Examples # Enable No Agreement Check on Ethernet 2/1. system-view [Sysname] interface ethernet 2/1 [Sysname-Ethernet2/1] stp no-agreement-check stp pathcost-standard Use stp pathcost-standard to specify a standard for the device to use when calculating the default path costs for ports. Use undo stp pathcost-standard to restore the default.
Use undo stp point-to-point to restore the default. Syntax stp point-to-point { auto | force-false | force-true } undo stp point-to-point Default The default setting is auto, and the spanning tree device automatically detects whether a port connects to a point-to-point link. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters auto: Specifies automatic detection of the link type. force-false: Specifies the non-point-to-point link type.
undo stp [ instance instance-list ] port priority Default The port priority is 128. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters instance instance-list: Sets the priority of the ports in the MSTIs that are specified by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges.
Parameters all: Specifies all MSTIs. instance instance-list: Specifies the MSTIs by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges. The value range for the instance-id argument is 0 to 4094, and the value 0 represents the CIST. Examples # In MSTP mode, enable outputting port state transition information for MSTI 2.
stp region-configuration Use stp region-configuration to enter MST region view. Use undo stp region-configuration to restore the default MST region configurations. Syntax stp region-configuration undo stp region-configuration Default The default settings for the MST region are as follows: • The MST region name of the device is the MAC address of the device. • All VLANs are mapped to the CIST. • The MSTP revision level is 0.
Usage guidelines When port role restriction is enabled on a port, the port cannot become a root port. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. Examples # Enable port role restriction on interface Ethernet 2/1. system-view [Sysname] interface ethernet 2/1 [Sysname-Ethernet2/1] stp role-restriction stp root primary Use stp root primary to configure the device as the root bridge. Use undo stp root to restore the default.
stp root secondary Use stp root secondary to configure the device as a secondary root bridge. Use undo stp root to restore the default. Syntax stp [ instance instance-list ] root secondary undo stp [ instance instance-list ] root Default A device is not a secondary root bridge.
Views Layer 2 Ethernet interface view Predefined user roles network-admin Usage guidelines On a port, the loop guard function and the root guard function are mutually exclusive. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. Examples # Enable the root guard function for Ethernet 2/1.
Related commands stp tc-protection threshold stp tc-protection threshold Use stp tc-protection threshold to configure the maximum number of forwarding address entry flushes that the device can perform within a certain interval (every 10 seconds). Use undo stp tc-protection threshold to restore the default. Syntax stp tc-protection threshold number undo stp tc-protection threshold Default By default, the device can perform a maximum of six forwarding address entry flushes every 10 seconds.
Predefined user roles network-admin Usage guidelines When TC-BPDU transmission restriction is enabled on a port, the port does not send TC-BPDUs to the other ports, and it does not delete the MAC address entries. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. Examples # Enable TC-BPDU transmission restriction on Ethernet 2/1.
Related commands • stp bridge-diameter • stp timer hello • stp timer max-age stp timer hello Use stp timer hello to set the hello time of the device. Use undo stp timer hello to restore the default. Syntax stp timer hello time undo stp timer hello Default The hello time is 200 centiseconds. Views System view Predefined user roles network-admin Parameters time: Sets the hello time in centiseconds in the range of 100 to 1000 in increments of 100 (as in 100, 200, 300).
Use undo stp timer max-age to restore the default. Syntax stp timer max-age time undo stp timer max-age Default The max age is 2000 centiseconds. Views System view Predefined user roles network-admin Parameters time: Sets the max age in centiseconds in the range of 600 to 4000 in increments of 100 (as in 600, 700, 800). Usage guidelines In the CIST of an MSTP network, the device determines whether a configuration BPDU received on a port has expired based on the max age timer.
Views System view Predefined user roles network-admin Parameters factor: Sets the timeout factor in the range of 1 to 20. Usage guidelines After the network topology is stabilized, each non-root-bridge device forwards configuration BPDUs to the surrounding devices at the interval of hello time to determine whether any link is faulty.
Usage guidelines A larger maximum transmission rate value requires more system resources. An appropriate maximum transmission rate setting can prevent spanning tree protocols from using excessive bandwidth resources during network topology changes. HP recommends that you use the default value. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. Examples # Set the maximum transmission rate of port Ethernet 2/1 to 5.
• revision-level 54
Loop detection commands display loopback-detection Use display loopback-detection to display the loop detection configuration and status. Syntax display loopback-detection Views Any view Predefined user roles network-admin network-operator Example # Display the loop detection configuration and status. display loopback-detection Loopback detection is enabled. Loopback detection interval is 30 second(s).
Use undo loopback-detection action to restore the default. Syntax loopback-detection action { block | no-learning | shutdown } undo loopback-detection action Default When the device detects a loop on a port, it generates a log but performs no action on the port.
Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters vlan-list: Specifies a VLAN list, in the format of { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id represents the VLAN ID in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ] parameters. all: Specifies all existing VLANs. Usage guidelines You can enable loop detection globally or on specific ports. The global configuration applies to all ports in the specified VLAN.
Usage guidelines You can configure the loop protection action globally or on specific ports. The global configuration applies to all ports. The per-port configuration applies to the individual ports. The per-port configuration takes precedence over the global configuration. Example # Set the global loop protection action to shutdown.
• loopback-detection enable loopback-detection interval-time Use loopback-detection interval-time to set the loop detection interval. Use undo loopback-detection interval-time to restore the default. Syntax loopback-detection interval-time interval undo loopback-detection interval-time Default The loop detection interval is 30 seconds. Views System view Predefined user roles network-admin Parameters interval: Sets the loop detection interval in seconds, in the range of 1 to 300.
VLAN commands The VLAN feature is available on only routers with Layer 2 Ethernet switching interface modules installed. For more information about Layer 2 Ethernet switching interface modules, see HP MSR Router Series Interface Module Guide. Basic VLAN commands bandwidth Use bandwidth to configure the expected bandwidth of an interface. Use undo bandwidth to restore the default.
Syntax default Views VLAN interface view Predefined user roles network-admin Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace ({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon (:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/), spaces, and other Unicode characters and symbols.
description: Displays the full description of the specified interface. If the keyword is not specified, the command displays at most the first 27 characters of the interface description. If the keyword is specified, the command displays all characters of the interface description. Examples # Display information for VLAN-interface 10.
Field Description Internet protocol processing : disabled The interface is not capable of processing IP packets. This information is displayed when the interface is not configured with an IP address. Internet Address is 192.168.1.54/24 Primary The primary IP address of the interface is 192.168.1.54/24. This information is displayed only if the primary IP address is configured for the interface. P Packet Frame Type IPv4 outgoing frame format.
Syntax display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved | static ] Views Any view Predefined user roles network-admin network-operator Parameters vlan-id1: Displays information about a VLAN specified by its VLAN ID. The value range for this argument is 1 to 4094. vlan-id1 to vlan-id2: Displays information about VLANs that are specified by a VLAN ID range. The vlan-id1 and vlan-id2 arguments specify VLAN IDs. The value range for each of the two arguments is 1 to 4094.
Table 16 Command output Field Description VLAN type VLAN type, static or dynamic. Indicates whether the VLAN interface is configured. Route interface • Not configured. • Configured. Description Description of the VLAN. Name Name configured for the VLAN. IP address Primary IP address of the VLAN interface (available only when an IP address is configured for the VLAN interface).
Examples # Create VLAN-interface 2 and enter its view. system-view [Sysname] vlan 2 [Sysname-vlan2] quit [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] Related commands display interface vlan-interface mac-address Use mac-address to assign a MAC address to a VLAN interface. Use undo mac-address to delete the MAC address of a VLAN interface.
Default The MTU of a VLAN interface is 1500 bytes. Views VLAN interface view Predefined user roles network-admin Parameters size: Sets the MTU in bytes. The value range for this argument is 46 to 1500. Usage guidelines If both the mtu command and the ip mtu command are supported and configured on the VLAN interface, the MTU set by using the ip mtu command is used for fragmenting packets. For more information about the ip mtu command, see Layer 3—IP Services Command Reference.
(:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/), spaces, and other Unicode characters and symbols. Usage guidelines When 802.1X or MAC address authentication is configured on a device, you can use a RADIUS server to issue VLAN configuration to ports that have passed the authentication. Some servers can send IDs or names of the issued VLANs to the switch. You can use VLAN names, rather than VLAN IDs, to distinguish a large number of VLANs.
Use undo shutdown to cancel the action of manually shutting down a VLAN interface. Syntax shutdown undo shutdown Default A VLAN interface is administratively down. Views VLAN interface view Predefined user roles network-admin Usage guidelines A VLAN interface that was shut down with the shutdown command remains in DOWN (Administratively) state until you bring it up, regardless of how the state of the ports in the VLAN changes.
Views System view Predefined user roles network-admin Parameters vlan-id1, vlan-id2: Specifies a VLAN ID. The value range is 1 to 4094. vlan-id1 to vlan-id2: Specifies a VLAN range. The vlan-id1 and vlan-id2 arguments specify VLAN IDs. The value range for each of the two arguments is 1 to 4094. The vlan-id1 argument cannot be greater than vlan-id2. all: Creates or removes all VLANs except reserved VLANs.
network-operator Parameters hybrid: Displays hybrid ports. trunk: Displays trunk ports. Examples # Display information about the hybrid ports in the system. display port hybrid Interface PVID VLAN Passing Eth2/4 100 Tagged: 1000, 1002, 1500, 1600-1611, 2000, 2555-2558, 3000, 4000 Untagged:1, 10, 15, 18, 20-30, 44, 55, 67, 100, 150-160, 200, 255, 286, 300-302 # Display information about the trunk ports in the system.
Parameters interface-list: Specifies an interface list, in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-10>, where interface-type interface-number represents the interface type and interface number, and &<1-10> indicates that you can specify up to 10 interface-type interface-number [ to interface-type interface-number ] parameters. Usage guidelines This command is applicable only on access ports. By default, all ports are access ports.
[Sysname-vlan3] quit [Sysname] interface ethernet 2/1 [Sysname-Ethernet2/1] port access vlan 3 port hybrid pvid Use port hybrid pvid to configure the PVID of the hybrid port. Use undo port hybrid pvid to restore the default. Syntax port hybrid pvid vlan vlan-id undo port hybrid pvid Default The PVID of a hybrid port is VLAN 1. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
port hybrid vlan Use port hybrid vlan to assign the hybrid ports to the specified VLANs. Use undo port hybrid vlan to remove the hybrid ports from the specified VLANs. Syntax port hybrid vlan vlan-id-list { tagged | untagged } undo port hybrid vlan vlan-id-list Default A hybrid port allows only packets from VLAN 1 to pass through untagged.
undo port link-type Default Any port is an access port. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters access: Configures the link type of a port as access. hybrid: Configures the link type of a port as hybrid. trunk: Configures the link type of a port as trunk. Usage guidelines To change the link type of a port from trunk to hybrid or vice versa, first set the link type to access. The configuration made in Layer 2 Ethernet interface view applies only to the port.
Usage guidelines A trunk port can carry multiple VLANs. If you execute the port trunk permit vlan command multiple times, the trunk port allows the VLANs that are specified by vlan-id-list in each execution. On a trunk port, only packets from the PVID can pass through untagged. The configuration made in Layer 2 Ethernet interface view applies only to the port. Examples # Assign the trunk port Ethernet 2/1 to VLAN 2, VLAN 4, and VLAN 50 through VLAN 100.
system-view [Sysname] interface ethernet 2/1 [Sysname-Ethernet2/1] port link-type trunk [Sysname-Ethernet2/1] port trunk pvid vlan 100 [Sysname-Ethernet2/1] port trunk permit vlan 100 Related commands • port link-type • port trunk permit vlan 78
LLDP commands display lldp local-information Use display lldp local-information to display local LLDP information, which will be contained in the advertisable LLDP TLVs and sent to neighboring devices. Syntax display lldp local-information [ global | interface interface-type interface-number ] Views Any view Predefined user roles network-admin network-operator Parameters global: Displays the global local LLDP information.
Manufacturer name : HP Model name : MSR3044 Asset tracking identifier : Unknown LLDP local-information of port 2[GigabitEthernet0/0]: Port ID type : Interface name Port ID : GigabitEthernet0/0 Port description : GigabitEthernet0/0 Interface LLDP agent nearest-bridge management address: Management address type : IPv4 Management address : 192.168.21.
Field Description Supported capabilities: System capabilities supported • • • • Bridge—Switching is supported. Router—Routing is supported. Customer Bridge—The customer bridge function is supported. Service Bridge—The service bridge function is supported. Enabled capabilities: System capabilities enabled • • • • Bridge—Switching is enabled. Router—Routing is enabled. Customer Bridge—The customer bridge function is enabled. Service Bridge—The service bridge function is enabled.
Field Description P0- P1- P2- P3- P4- P5- P6P7- Number of supported priorities configured by using the priority-flow-control no-drop dot1p dot1p-list command at the local end. Number of traffic classes supported Capability set supported by PFC (displayed only in Rev 1.01). Priority 802.1p priority. Protocol ID Application protocol number. CoS map Application protocol-to-CoS mapping.
Syntax display lldp neighbor-information [ [ [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ] [ verbose ] ] | list [ system-name system-name ] ] Views Any view Predefined user roles network-admin network-operator Parameters interface interface-type interface-number: Displays the LLDP information that a port specified by its type and number receives from the neighboring devices.
System description : HP Comware Platform Software, Software Version 5.20 Rele ase 2210 HP 5500-48P-SI Copyright (c) 2004-2013 Hewlett-Packard Development Compa ny, L.P.
Port and protocol VLAN supported : Yes Port and protocol VLAN enabled : No VLAN name of VLAN 1 : VLAN 0001 Link aggregation supported : Yes Link aggregation enabled : No Aggregation port ID : 0 Auto-negotiation supported : Yes Auto-negotiation enabled : Yes OperMau : Speed(1000)/Duplex(Full) Power port class : PD PSE power supported : No PSE power enabled : No PSE pairs control ability : No Power pairs : Signal Port power classification : Class 0 Maximum frame size : 9216 # Displ
Field Description Chassis ID representation: Chassis type • • • • • • • Chassis component. Interface alias. Port component. MAC address. Network address (ipv4). Interface name. Locally assigned—Locally-defined chassis type other than those listed above. Chassis ID ID that identifies the LLDP sending device, which can be a MAC address, a network address, an interface or some other value depending on the chassis type of the neighboring device.
Field Description PoE mode: Power pairs • Signal—PoE over signal lines. • Spare—PoE over spare lines. Port power classification of the PD: Port power classification • • • • • Class 0. Class 1. Class 2. Class 3. Class 4. Link aggregation supported Indicates whether link aggregation is supported. Link aggregation enabled Indicates whether link aggregation is enabled. Capabilities enabled on the neighboring device: Capabilities • Bridge—Switching is enabled. • Router—Routing is enabled.
Usage guidelines If no keyword or argument is specified, this command displays the global LLDP statistics and the LLDP statistics of all ports. Examples # Display the global LLDP statistics and the LLDP statistics of all ports.
The number of LLDP TLVs unrecognized : 0 The number of LLDP neighbor information aged out : 0 The number of CDP frames transmitted : 0 The number of CDP frames received : 0 The number of CDP frames discarded : 0 The number of CDP error frames : 0 LLDP statistics information of port 3 [GigabitEthernet0/1]: LLDP agent nearest-bridge: The number of LLDP frames transmitted : 0 The number of LLDP frames received : 0 The number of LLDP frames discarded : 0 The number of LLDP error frames : 0 The
LLDP statistics information of port 162 [Ethernet2/1]: LLDP agent nearest-customer: The number of LLDP frames transmitted : 0 The number of LLDP frames received : 0 The number of LLDP frames discarded : 0 The number of LLDP error frames : 0 The number of LLDP TLVs discarded : 0 The number of LLDP TLVs unrecognized : 0 The number of LLDP neighbor information aged out : 0 The number of CDP frames transmitted : 0 The number of CDP frames received : 0 The number of CDP frames discarded : 0 The
Usage guidelines If no port is specified, this command displays the global LLDP status and the LLDP status information of all ports. Examples # Display the global LLDP status and the LLDP status information of all ports.
Admin status : Disable Trap flag : No MED trap flag : No Polling interval : 0s Number of LLDP neighbors : 0 Number of MED neighbors : 0 Number of CDP neighbors : 0 Number of sent optional TLV : 0 Number of received unknown TLV : 0 LLDP status information of port 3 [GigabitEthernet0/1]: LLDP agent nearest-bridge: Port status of LLDP : Enable Admin status : TX_RX Trap flag : No MED trap flag : No Polling interval : 0s Number of LLDP neighbors : 0 Number of MED neighbors : 0 Nu
Table 21 Command output Field Description Bridge mode of LLDP LLDP bridge mode: service-bridge or customer-bridge. Global status of LLDP Indicates whether LLDP is globally enabled. LLDP neighbor information last changed time Time when the neighbor information was last updated. Transmit interval LLDPDU transmit interval. Hold multiplier TTL multiplier. Reinit delay LLDP re-initialization delay. Transmit max credit Token bucket size for sending LLDPDUs. Trap interval Trap transmit interval.
Parameters interface interface-type interface-number: Specifies a port by its type and number. agent: Specifies an LLDP agent type. If no agent type is specified, the command displays the types of advertisable optional LLDP TLVs for all LLDP agents. nearest-bridge: Specifies nearest bridge agents. nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
System Capabilities TLV NO NO Management Address TLV NO NO Port VLAN ID TLV NO NO Port And Protocol VLAN ID TLV NO NO VLAN Name TLV NO NO DCBX TLV NO NO Link Aggregation TLV NO NO Management VID TLV NO NO MAC-Physic TLV NO NO Power via MDI TLV NO NO Maximum Frame Size TLV NO NO Capabilities TLV NO NO Network Policy TLV NO NO Location Identification TLV NO NO Extended Power via MDI TLV NO NO Inventory TLV NO NO STATUS DEFAULT Port Description TLV YES YES S
Table 22 Command output Field Description LLDP tlv-config of port 162 Advertisable optional TLVs of port 162. NAME TLV type. STATUS Indicates whether a specific type of TLV is sent through a port. DEFAULT Indicates whether a specific type of TLV is sent through a port by default. Basic TLVs: Basic optional TLV • • • • • Port description TLV. System name TLV. System description TLV. System capabilities TLV. Management address TLV. IEEE 802.1 organizationally specific TLVs: IEEE 802.
Syntax lldp [ agent { nearest-customer | nearest-nontpmr } ] admin-status { disable | rx | tx | txrx } undo lldp [ agent { nearest-customer | nearest-nontpmr } ] admin-status Default The nearest bridge agent operates in txrx mode, and the nearest customer bridge agent and nearest non-TPMR bridge agent operate in disable mode. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view Predefined user roles network-admin Parameters agent: Specifies an LLDP agent type.
Parameters agent: Specifies an LLDP agent type. If no agent type is specified in Ethernet interface view, the command enables LLDP polling and sets the polling interval for nearest bridge agents. nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents. interval: Sets the LLDP polling interval in the range of 1 to 30 seconds.
Syntax lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation snap undo lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation Default The encapsulation format for LLDPDUs is Ethernet II. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view Predefined user roles network-admin Parameters agent: Specifies an LLDP agent type. If no agent type is specified in Ethernet interface view, the command configures the LLDPDU encapsulation format for nearest bridge agents.
Examples # Configure the device to send five LLDPDUs each time fast LLDPDU transmission is triggered. system-view [Sysname] lldp fast-count 5 lldp global enable Use lldp global enable to enable LLDP globally. Use undo lldp global enable to disable LLDP globally. Syntax lldp global enable undo lldp global enable Default LLDP is disabled globally. Views System view Predefined user roles network-admin Usage guidelines LLDP takes effect only when LLDP is enabled both globally and on the port.
Predefined user roles network-admin Parameters value: Sets the TTL multiplier in the range of 2 to 10. Usage guidelines The TTL TLV carried in an LLDPDU determines how long the device information carried in the LLDPDU can be saved on a recipient device. By setting the TTL multiplier, you can configure the TTL of locally sent LLDPDUs, which determines how long information about the local device can be saved on a neighboring device.
Usage guidelines LLDP neighbors must use the same data type for the value field in the management address TLV. Examples # Configure the encoding format of the management address as character string for the nearest customer bridge agents on Ethernet 2/1. system-view [Sysname] interface ethernet 2/1 [Sysname-Ethernet2/1] lldp agent nearest-customer management-address-format string lldp max-credit Use lldp max-credit to set the token bucket size for sending LLDPDUs.
Views System view Predefined user roles network-admin Parameters service-bridge: Specifies the service bridge mode. Usage guidelines You can use this command to control the LLDP agent types supported by the device: • In service bridge mode, LLDP supports nearest bridge agents and nearest non-TPMR bridge agents. LLDP processes the LLDPDUs with destination MAC addresses for these agents and transparently transmits the LLDPDUs with other destination MAC addresses in the VLAN.
system-view [Sysname] interface ethernet 2/1 [Sysname-Ethernet2/1] lldp notification med-topology-change enable lldp notification remote-change enable Use lldp notification remote-change enable to enable LLDP trapping. Use undo lldp notification remote-change enable to disable LLDP trapping.
Predefined user roles network-admin Parameters interval: Sets an interval for fast LLDPDU transmission, in the range of 1 to 3600 seconds. Examples # Set the interval for fast LLDPDU transmission to 2 seconds. system-view [Sysname] lldp timer fast-interval 2 lldp timer notification-interval Use lldp timer notification-interval to set the LLDP trap transmit interval and LLDP-MED trap transmit interval. Use undo lldp timer notification-interval to restore the default.
Views System view Predefined user roles network-admin Parameters delay: Sets the LLDP re-initialization delay in the range of 1 to 10 seconds. Examples # Set the LLDP re-initialization delay to 4 seconds. system-view [Sysname] lldp timer reinit-delay 4 lldp timer tx-interval Use lldp timer tx-interval to set the LLDPDU transmit interval. Use undo lldp timer tx-interval to restore the default.
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | el
• Nearest customer bridge agents can advertise basic TLVs and IEEE 802.1 organizationally specific TLVs. On Layer 3 Ethernet interfaces: • Nearest bridge agents can advertise all types of LLDP TLVs (only link aggregation TLV in 802.1 organizationally specific TLVs) except network policy TLVs. • Nearest non-TPMR bridge agents advertise no TLVs. • Nearest customer bridge agents can advertise basic TLVs and IEEE 802.1 organizationally specific TLVs (only link aggregation TLV).
protocol-vlan-id [ vlan-id ]: Advertises port and protocol VLAN ID TLVs. The vlan-id argument specifies a VLAN ID in the TLVs to be advertised. The VLAN ID is in the range of 1 to 4094, and the default is the lowest VLAN ID on the port. vlan-name [ vlan-id ]: Advertises VLAN name TLVs. The vlan-id argument specifies a VLAN ID in the TLVs to be advertised. The VLAN ID is in the range of 1 to 4094, and the default is the lowest VLAN ID on the port.
Examples # Enable the device to advertise link aggregation TLVs of the IEEE 802.1 organizationally specific TLVs for the nearest customer bridge agents on Ethernet 2/1.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDILMNPRSVW lldp admin-status,96 A lldp check-change-interval,97 active region-configuration,11 lldp enable,98 B lldp encapsulation snap,98 bandwidth,60 lldp fast-count,99 C lldp global enable,100 lldp hold-multiplier,100 check region-configuration,12 lldp management-address-format string,101 D lldp max-credit,102 default,60 lldp mode,102 description,61 lldp notification med-topology-change enable,103 display interface vlan-interface,62 lldp notification remote-change enable,104
port trunk permit vlan,76 stp pathcost-standard,40 port trunk pvid,77 stp point-to-point,40 port-isolate enable,9 stp port priority,41 R stp port-log,42 stp priority,43 region-name,27 stp region-configuration,44 reset counters interface vlan-interface,69 stp role-restriction,44 reset stp,28 stp root primary,45 revision-level,28 stp root secondary,46 S stp root-protection,46 shutdown,69 stp tc-protection,47 stp bpdu-protection,29 stp tc-protection threshold,48 stp bridge-diameter,29 st