HP MSR Router Series Layer 2 - LAN Switching Command Reference (V5) Part number: 5998-2038 Software version: CMW520-R2511 Document version: 6PW103-20140128
Legal and notice information © Copyright 2014 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 configuration commands ··········································································································· 1 display mac-address ················································································································································ 1 display mac-address aging-time ····························································································································· 2 display mac-address mac-le
voice vlan security enable ···································································································································· 46 Spanning tree configuration commands··················································································································· 48 active region-configuration ··································································································································· 48 check region-configuration ···
display link-aggregation verbose ······················································································································ 101 enable snmp trap updown ································································································································· 104 interface bridge-aggregation ····························································································································· 105 interface route-aggregation ···········
VLAN termination configuration commands ········································································································· 154 dot1q ethernet-type ············································································································································· 154 vlan-type dot1q vid ············································································································································· 155 Support and other resources ·
MAC address table configuration commands The MAC address table can contain only Layer 2 Ethernet ports. This document covers only the static, dynamic, and destination blackhole MAC address entries. display mac-address Use display mac-address to display information about the MAC address table.
--- 1 mac address(es) found --- Table 1 Command output Field Description MAC ADDR MAC address. VLAN ID ID of the VLAN to which the MAC address belongs. State of a MAC address entry: STATE PORT INDEX • • • • Config static—Static entry manually configured by the user. Config dynamic—Dynamic entry manually configured by the user. Learned—Entry learned by the device. Blackhole—Destination blackhole entry. Number of the port corresponding to the MAC address.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the aging time of dynamic entries in the MAC address table. display mac-address aging-time Mac address aging time: 300s The output shows that the aging time of dynamic entries in the MAC address table is 300 seconds.
Table 2 Command output Field Description Mac-address learning status of the switch Global MAC address learning status (enabled or disabled). PortName Port name. Learning Status MAC address learning status (enabled or disabled) for a port. mac-address (interface view) Use mac-address to add or modify a MAC address entry on a specified interface. Use undo mac-address to remove a MAC address entry on the interface.
mac-address (system view) Use mac-address to add or modify a MAC address entry. Use undo mac-address to remove one or all MAC address entries.
The MAC address entries configuration cannot survive a reboot unless you save it. However, the dynamic MAC address entries are lost at next reboot regardless of whether you save the configuration or not. Examples # Add a static entry for MAC address 000f-e201-0101. All frames destined to this MAC address are sent out of port Ethernet 1/1 that belongs to VLAN 2.
mac-address max-mac-count Use mac-address max-mac-count count to configure the maximum number of MAC addresses that can be learned on a port. Use mac-address max-mac-count disable-forwarding to disable the device from forwarding frames with unknown source MAC addresses after the number of learned MAC addresses reaches the upper limit. Use undo mac-address max-mac-count to restore the default maximum number of MAC addresses that can be learned on an Ethernet port.
Command MSR9 00 MSR93X MSR20 -1X MSR 20 MSR30 MSR50 MSR1000 Yes Available on only a MIM-FSW module. mac-address max-mac-co unt No No No No The count argument is in the range of: • 0 to 8191 for MSR30-11E and MSR30-11F. Yes Available on only a FIC-FSW module. The count argument is in the range of 0 to 4096. Yes The count argument is in the range of 0 to 4096 • 0 to 4096 for others. Examples # Set the maximum number of MAC addresses that can be learned on port Ethernet 1/1 to 600.
Parameters aging seconds: Sets an aging timer for dynamic MAC address entries, in the range of 10 to 4080 seconds. no-aging: Sets dynamic MAC address entries not to age. Usage guidelines Follow these guidelines to set the aging timer appropriately: • A long aging interval causes the MAC address table to retain outdated entries and fail to accommodate the latest network changes.
Layer 2 forwarding configuration commands display mac-forwarding statistics Use display mac-forwarding statistics to display Layer 2 forwarding statistics. Syntax display mac-forwarding statistics [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface interface-type interface-number: Displays the statistics of an interface specified by its type and number.
Ethernet 1/1: Input frames:100 Input bytes:23 Output frames:100 Output bytes:23 Filtered:0 Invalid Tag:0 Table 3 Command output Field Description Total received Total number of received Ethernet frames. Filtered Number of frames filtered out by 802.1Q Tagged VLAN inbound filtering rules. STP discarded Number of Ethernet frames dropped on the ingress ports blocked by STP. Broadcast Number of received broadcast frames. Multicast Number of received multicast frames.
Examples # Clear all Layer 2 forwarding statistics.
VLAN configuration commands Basic VLAN configuration commands bandwidth Use bandwidth to set the expected bandwidth for a VLAN-interface. Use undo bandwidth to cancel the configuration. Syntax bandwidth bandwidth-value undo bandwidth Views VLAN-interface view Default command level 2: System level Parameters bandwidth-value: Sets the expected bandwidth in the range of 1 to 4,294,967,295 kbps.
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. Use the display this command in interface view to identify these commands, and then use their undo forms or follow the command reference to individually restore their default settings.
• Each Unicode character takes the space of two regular characters. • To use Unicode characters or symbols in an interface description, install the specific input method editor and log in to the device through remote login software that supports the character type.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Table 4 Command output Field Description Physical state of a VLAN-interface: • DOWN (Administratively)—The administrative state of the VLAN-interface is down, because it has been shut down with the shutdown command. Vlan-interface2 current state • DOWN—The administrative sate of the VLAN-interface is up, but its physical sate is down. The VLAN corresponding to this interface does not contain any physical port in the UP state (possibly because the ports are not well connected or the lines have failed).
Field Description Link layer state of an interface: Link: ADM - administratively down; Stby - standby • ADM—The interface has been administratively shut down. To recover its physical state, perform the undo shutdown command. • Stby—The interface is operating as a standby interface. To see the main interface, use the display standby state command.
reserved: Displays information about the reserved VLANs. Protocol modules determine which VLANs are reserved VLANs, according to function implementation, and reserved VLANs serve protocol modules. You cannot configure reserved VLANs. static: Displays the number of static VLANs and the ID for each static VLAN. The static VLANs are manually created. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Field Description Subnet Mask Subnet mask of the primary IP address. This is available only when an IP address is configured for the VLAN-interface. Tagged Ports Ports through which VLAN packets are sent tagged. Untagged Ports Ports through which VLAN packets are sent untagged. Related commands vlan interface vlan-interface Use interface vlan-interface to create a VLAN-interface and enter its view or enter the view of an existing VLAN-interface.
Syntax ip address ip-address { mask | mask-length } [ sub ] undo ip address [ ip-address { mask | mask-length } [ sub ] ] Default No IP address is assigned to any VLAN-interface. Views VLAN-interface view Default command level 2: System level Parameters ip-address: Specifies an IP address in dotted decimal notation. mask: Specifies a subnet mask in dotted decimal notation. mask-length: Sets the number of consecutive 1s in the subnet mask, in the range of 0 to 32.
undo mac-address Views VLAN-interface view Default command level 2: System level Parameters mac-address: Specifies a MAC address in the format of H-H-H. Usage guidelines VLAN-interfaces are virtual interfaces that are manually created and removed. Upon creation, a VLAN-interface borrows the MAC address of a physical interface on the device. For this reason, all VLAN-interfaces on a device share the same MAC address.
name Use name to configure a name for the VLAN. Use undo name to restore the default name of the VLAN. Syntax name text undo name Default The name of a VLAN is VLAN vlan-id, which is its VLAN ID. For example, the default name of VLAN 100 is VLAN 0100. Views VLAN view Default command level 2: System level Parameters text: Specifies a VLAN name, a string of 1 to 32 characters.
Views User view Default command level 2: System level Parameters vlan-interface-id: Specifies a VLAN-interface number. Usage guidelines Before collecting the traffic statistics within a specific period of time on an interface, clear the existing statistics first. If the vlan-interface-id argument is not specified, this command clears the statistics of all VLAN-interfaces. If the vlan-interface-id argument is specified, this command clears the statistics of the specified VLAN-interface.
You can shut down a failed interface with the shutdown command and then bring it up with the undo shutdown command to see if it recovers. In a VLAN, the state of any Ethernet port is independent of the state of the VLAN-interface. Examples # Shut down VLAN-interface 2, and then cancel the action of shutting it down.
• Protocol reserved VLANs • Voice VLANs • Management VLANs • Dynamic VLANs Examples # Create VLAN 2, and enter VLAN 2 view. system-view [Sysname] vlan 2 [Sysname-vlan2] # Create VLAN 4 through VLAN 100. system-view [Sysname] vlan 4 to 100 Please wait............. Done.
Interface PVID VLAN passing Eth1/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. display port trunk Interface PVID VLAN passing Eth1/8 2 1-4, 6-100, 145, 177, 189-200, 244, 289, 400, 555, 600-611, 1000, 2006-2008 Table 6 Command output Field Description Interface Port name. PVID Port VLAN ID.
Examples # Assign Ethernet 1/1 through Ethernet 1/3 to VLAN 2. system-view [Sysname] vlan 2 [Sysname-vlan2] port ethernet 1/1 to ethernet 1/3 Related commands display vlan port access vlan Use port access vlan to assign the access ports to the specified VLAN. Use undo port access vlan to restore the default. Syntax port access vlan vlan-id undo port access vlan Default All access ports belong to VLAN 1 and do not belong to any other VLAN.
[Sysname] vlan 3 [Sysname-vlan3] quit [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] port access vlan 3 # Assign Layer 2 aggregate interface Bridge-Aggregation 1 and its member ports to VLAN 3. system-view [Sysname] vlan 3 [Sysname-vlan3] quit [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] 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.
• If the system fails to apply the configuration to the aggregate interface, it stops applying the configuration to aggregation member ports. • If the system fails to apply the configuration to an aggregation member port, it skips the port and moves to the next member port. Examples # Configure VLAN 100 as the PVID of the hybrid port Ethernet 1/1.
Usage guidelines The following matrix shows the command and router compatibility: Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 port hybrid vlan (Layer 2 aggregate interface view) No Yes No No Yes Yes Yes A hybrid port can carry multiple VLANs. If you execute the port hybrid vlan command multiple times, the VLANs the hybrid port carries are the set of VLANs specified by vlan-list in each execution. The configuration made in Ethernet interface view applies only to the port.
Configuring Ethernet1/1... Done. Configuring Ethernet1/2... Done. Configuring Ethernet1/3... Done. The output shows that Ethernet 1/1, Ethernet 1/2, and Ethernet 1/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1. Related commands port link-type port link-type Use port link-type to configure the link type of a port. Use undo port link-type to restore the default link type of a port.
• If the system fails to apply the configuration to the aggregate interface, it stops applying the configuration to aggregation member ports. • If the system fails to apply the configuration to an aggregation member port, it skips the port and moves to the next member port. Examples # Configure Ethernet 1/1 as a trunk port. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] port link-type trunk # Configure all the ports in the manual port group group1 as hybrid ports.
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 port trunk permit vlan (Layer 2 aggregate interface view) No Yes No No Yes Yes Yes A trunk port can carry multiple VLANs. If you execute the port trunk permit vlan command multiple times, the trunk port carries the set of VLANs specified by vlan-list in each execution. The port trunk permit vlan all command can be ineffective on super VLANs or voice VLANs.
port trunk pvid Use port trunk pvid to configure the PVID for the trunk port. Use undo port trunk pvid to restore the default. Syntax port trunk pvid vlan vlan-id undo port trunk pvid Default The PVID of a trunk port is VLAN 1. Views Ethernet interface view, Layer 2 aggregate interface view Default command level 2: System level Parameters vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
[Sysname-Ethernet1/1] port link-type trunk [Sysname-Ethernet1/1] port trunk pvid vlan 100 [Sysname-Ethernet1/1] port trunk permit vlan 100 # Configure VLAN 100 as the PVID of the trunk Layer 2 aggregate interface Bridge-Aggregation 1, and assign Bridge-Aggregation 1 to VLAN 100.
Super VLAN configuration commands The following matrix shows the super VLAN configuration commands and router compatibility: Commands Super VLAN configuration commands MSR900 No MSR93X No MSR20-1 X No MSR20 MSR30 MSR50 MSR10 00 No Available only on fixed Layer 2 Ethernet interfaces of MSR30-11E and MSR30-11F routers and on MSR30-10 routers installed with XMIM Layer 2 switching modules No No display supervlan Use display supervlan to display the mapping between a super VLAN and sub-VLANs, and
display supervlan 2 Supervlan ID : Subvlan ID : 2 3-5 VLAN ID: 2 VLAN Type: static It is a Super VLAN. Route Interface: configured IP Address: 10.153.17.41 Subnet Mask: 255.255.252.0 Description: VLAN 0002 Name: VLAN 0002 Tagged Ports: none Untagged Ports: none VLAN ID: 3 VLAN Type: static It is a Sub VLAN. Route Interface: not configured Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: Ethernet1/3 VLAN ID: 4 VLAN Type: static It is a Sub VLAN.
Field Description Subvlan ID Sub-VLAN ID. VLAN Type VLAN type (static or dynamic). Route Interface Indicates whether a VLAN-interface is configured or not for the sub-VLAN or super VLAN. IP Address IP address of the VLAN-interface configured for the sub-VLAN or super VLAN. Subnet Mask Subnet mask of the VLAN-interface configured for the sub-VLAN or super VLAN. Description VLAN description. Name VLAN name. Tagged Ports Ports through which VLAN packets are sent tagged.
Examples # Associate VLAN 10 (the super VLAN) with VLAN 3, VLAN 4, VLAN 5, and VLAN 9 (the sub-VLANs). system-view [Sysname] vlan 10 [Sysname-vlan10] subvlan 3 to 5 9 Related commands display supervlan supervlan Use supervlan to configure the VLAN as a super VLAN. Use undo supervlan to remove the super VLAN configuration for the VLAN.
Voice VLAN configuration commands The following matrix shows the voice VLAN configuration commands and router compatibility: Commands Voice VLAN configuration commands MSR90 0 No MSR93X No MSR20-1 X No MSR20 MSR30 MSR50 MSR10 00 No Available only on fixed Layer 2 Ethernet interfaces of MSR30-11E and MSR30-11F routers and on routers installed with MIM and XMIM Layer 2 switching modules Available only on routers installed with FIC Layer 2 switching modules Yes display voice vlan oui Use displa
Usage guidelines OUI addresses in this document are used to determine whether a received packet is a voice packet. They are the results of the AND operation of the two arguments mac-address and oui-mask in the voice vlan mac-address command. Examples # Display the supported OUI addresses and their masks and descriptions.
Examples # Display voice VLAN configurations. display voice vlan state Maximum of Voice VLANs: 128 Current Voice VLANs: 2 Voice VLAN security mode: Security Voice VLAN aging time: 1440 minutes Voice VLAN enabled port and its mode: PORT VLAN MODE ----------------------------------------------Ethernet1/1 2 AUTO Ethernet1/2 3 AUTO Table 9 Command output Field Description Maximum of Voice VLANs Maximum number of voice VLANs supported by the system.
Default command level 2: System level Parameters minutes: Sets the voice VLAN aging time in the range of 5 to 43200 minutes. Usage guidelines When a port in automatic voice VLAN assignment mode receives a voice packet, the system decides whether to assign the port to the voice VLAN based on the source MAC address of the voice packet. Upon assigning the port to the voice VLAN, the system starts the aging timer.
voice vlan mac-address Use voice vlan mac-address to allow packets carrying the specified OUI address to pass through. Use undo voice vlan mac-address to prohibit packets carrying the specified OUI address from passing through. Syntax voice vlan mac-address mac-address mask oui-mask [ description text ] undo voice vlan mac-address oui Default The system is configured with the default OUI addresses. You can remove the default OUI addresses, and then add recognizable OUI addresses manually.
Examples # Add a recognizable OUI address 1234-1200-0000 by specifying the MAC address as 1234-1234-1234 and the mask as fff-ff00-0000, and configure its description string as PhoneA. system-view [Sysname] voice vlan mac-address 1234-1234-1234 mask ffff-ff00-0000 description PhoneA Related commands display voice vlan oui voice vlan mode auto Use voice vlan mode auto to configure the port to operate in automatic voice VLAN assignment mode.
Views System view Default command level 2: System level Usage guidelines When you enable the security mode for a voice VLAN, only voice traffic can be transmitted in the voice VLAN. The device matches the source MAC addresses of the packets against the supported OUI addresses to determine whether they are voice traffic and filters all non-voice traffic, guaranteeing high priority and high quality for voice traffic.
Spanning tree configuration commands active region-configuration Use active region-configuration to activate your MST region configuration. Syntax active region-configuration Views MST region view Default command level 2: System level Usage guidelines When you configure MST region–related parameters, MSTP launches a new spanning tree calculation process that might cause network topology instability. This is most likely to occur when you configure the VLAN-to-instance mapping table.
Views MST region view Default command level 2: System level Usage guidelines Two or more spanning tree devices belong to the same MST region only if they are configured with the same format selector (0 Not configurable), MST region name, MST region revision level, and the same VLAN-to-instance mapping entries in the MST region, and if they are connected through a physical link. HP recommends that you use this command to determine whether the MST region configurations to be activated are correct.
Syntax display stp [ instance instance-id ] [ interface interface-list ] [ brief ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters instance instance-id: Displays the status and statistics information of a specific MSTI. The minimum value of instance-id is 0, representing the CIST, and the maximum value of instance-id is 15.
Examples # In MSTP mode, display the brief spanning tree status and statistics information of MSTI 0 on ports Ethernet 1/1 through Ethernet 1/4. display stp instance 0 interface ethernet 1/1 to ethernet 1/4 brief MSTID Port Role STP State Protection 0 Ethernet1/1 ALTE DISCARDING LOOP 0 Ethernet1/2 DESI FORWARDING NONE 0 Ethernet1/3 DESI FORWARDING NONE 0 Ethernet1/4 DESI FORWARDING NONE Table 12 Command output Field Description MSTID MSTI ID in the MST region.
Time since last TC :0 days 0h:5m:42s ----[Port1(Ethernet1/1)][FORWARDING]---Port Protocol :enabled Port Role :CIST Designated Port Port Priority :128 Port Cost(Legacy) :Config=auto / Active=200 Desg. Bridge/Port :32768.000f-e200-2200 / 128.
Table 13 Command output Field Description CIST Bridge CIST bridge ID, which comprises the device's priority in the CIST and its MAC address. For example, in output "32768.000f-e200-2200," the value preceding the dot is the device's priority in the CIST, and the value following the dot is the device's MAC address. Major parameters for the bridge: Bridge Times • • • • Hello—Hello timer. MaxAge—Max age timer. FwDly—Forward delay timer. MaxHop—Max hops within the MST region.
Field Description 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. BPDU/ROOT—BPDU guard and root guard. None—No protection. Format of the MST BPDUs that the port can send, which can be legacy or 802.1s. MST BPDU Format Port ConfigDigest-Snooping • Config—Configured value. • Active—Actual value. Status of Digest Snooping on the port.
display stp abnormal-port Use display stp abnormal-port to display information about ports blocked by spanning tree protection functions. Syntax display stp abnormal-port [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Views Any view Default command level 1: Monitor level 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. instance instance-id: Displays the BPDU statistics of a specified MSTI on a specified port. The minimum value of instance-id is 0, representing the CIST, and the maximum value is 15. |: Filters command output by specifying a regular expression.
TCA received 2 Config sent 0 10:33:12 01/13/2010 Config received 0 RST sent 0 RST received 0 MST sent 4 10:33:11 01/13/2010 MST received 151 10:37:43 01/13/2010 Count Last Updated Instance 0: Type --------------------------- ---------- ----------------Timeout BPDUs 0 MAX-hoped BPDUs 0 TC detected 1 10:32:40 01/13/2010 TC sent 3 10:33:11 01/13/2010 TC received 0 Instance 1: Type Count Last Updated --------------------------- ---------- ----------------Timeout BPDUs 0 MA
Field Description TCN Received TCN BPDUs received. TCA Sent TCA BPDUs sent. TCA Received TCA BPDUs received. Config Sent Configuration BPDUs sent. Config Received Configuration BPDUs received. RST Sent RSTP BPDUs sent. RST Received RSTP BPDUs received. MST Sent MSTP BPDUs sent. MST Received MSTP BPDUs received. Instance Statistical information for a particular MSTI. Timeout BPDUs Expired BPDUs. Max-Hoped BPDUs BPDUs whose maximum hops were exceeded. TC Detected TC BPDUs detected.
Ethernet1/1 BPDU-Protected Ethernet1/2 Formatfrequency-Protected Table 16 Command output Field Description Down Port Name of a port shut down by the spanning tree protection functions. Reason the port was shut down: Reason • BPDU-Protected—BPDU guard function. • Formatfrequency-Protected—MSTP BPDU format frequent change protection function. display stp history Use display stp history to display the historical port role calculation information for the specified MSTI or all MSTIs.
Port Ethernet1/1 Role change : ROOT->DESI (Aged) Time : 2010/02/08 00:22:56 Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1 Port Ethernet1/2 Role change : ALTER->ROOT Time : 2010/02/08 00:22:56 Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2 Table 17 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.
Instance Vlans Mapped 0 21 to 4094 1 1 to 10 2 11 to 20 Table 18 Command output Field Description Format selector Format selector defined by the spanning tree protocol. The default value is 0 and the selector cannot be configured. Region name MST region name. Revision level Revision level of the MST region, which can be configured by using the revision-level command and defaults to 0.
Table 19 Command output Field Description ExtPathCost External path cost. The device automatically calculates the default path cost of a port. Otherwise, you can use the stp cost command to configure the path cost of a port. IntPathCost Internal path cost. The device automatically calculates the default path cost of a port. Otherwise, you can use the stp cost command to configure the path cost of a port. Root Port Root port name (displayed only if a port of the device is the root port of MSTIs).
0 Ethernet1/1 6 4 0 Ethernet1/2 0 2 Table 20 Command output Field Description Port Port name. Receive Number of TC/TCN BPDUs received on each port. 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.
Related commands • display stp region-configuration • check region-configuration • active 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 Default command level 2: System level 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. Syntax reset stp [ interface interface-list ] Views User view Default command level 1: Monitor level Parameters interface interface-list: Clears the MSTP statistics of the ports specified in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 ports or port ranges.
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 Default command level 2: System level 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 Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level 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.
Default command level 2: System level Usage guidelines Configured in system view, the setting takes effect globally. Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Default The device automatically calculates the path costs of ports in each spanning tree based on the corresponding standard. Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Parameters instance instance-id: Sets the path cost of the ports in a particular MSTI. The minimum value of instance-id is 0, representing the CIST, and the maximum value of instance-id is 15.
Related commands • display stp • stp pathcost-standard stp edged-port Use stp edged-port enable to configure one or more ports as edge ports. Use stp edged-port disable to configure one or more ports as non-edge ports. Use undo stp edged-port to restore the default. Syntax stp edged-port { enable | disable } undo stp edged-port Default All ports are non-edge ports.
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 stp edged-port (Layer 2 aggregate interface view) No Yes No No Yes Yes Yes Examples # Configure Ethernet 1/1 as an edge port. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] stp edged-port enable Related commands stp loop-protection stp enable Use stp enable to enable the spanning tree feature. Use undo stp enable to disable the spanning tree feature.
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 stp enable (Layer 2 aggregate interface view) No Yes No No Yes Yes Yes Examples # In MSTP mode, enable the spanning tree feature globally. system-view [Sysname] stp enable # In MSTP mode, disable the spanning tree feature on port Ethernet 1/1.
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 stp loop-protection (Layer 2 aggregate interface view) No Yes No No Yes Yes Yes Examples # Enable the loop guard function on Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] stp loop-protection Related commands • stp edged-port • stp root-protection stp max-hops Use stp max-hops to set the maximum hops of the MST region. Use undo stp max-hops to restore the default.
Syntax stp mcheck Views System view, Ethernet interface view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines If a port on a device that runs MSTP or RSTP mode connects to an STP device, the port will automatically transit to the STP mode. It cannot automatically transit back to the original mode when: • The STP device is shut down or removed. • The STP device transits to the MSTP or RSTP mode.
stp mode Use stp mode to configure the spanning tree operating mode. Use undo stp mode to restore the default. Syntax stp mode { mstp | rstp | stp } undo stp mode Default A spanning tree device operates in MSTP mode. Views System view Default command level 2: System level 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.
Default command level 2: System level Usage guidelines Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface. Configured on a member port in an aggregation group, the setting takes effect only after the port leaves the aggregation group.
legacy: Configures the device to calculate the default path cost for ports based on a private standard. Usage guidelines If you change the standard that the device uses in calculating the default path costs, you restore the path costs to the default. Examples # Configure the device to calculate the default path cost for ports based on IEEE 802.1d-1998.
You can configure the link type as point-to-point for a Layer 2 aggregate interface or a port that operates in full duplex mode. HP recommends that you use the default setting to let the device automatically detect the port link type. The stp point-to-point force-false or stp point-to-point force-true command configured on a port in MSTP mode is effective on all MSTIs.
Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface. Configured on a member port in an aggregation group, the setting takes effect only after the port leaves the aggregation group. To set the priority of an MSTP port in a specific MSTI, use this command with the MSTI specified. Port priority affects the role of a port in a spanning tree.
all: Specifies all MSTIs. Examples # In MSTP mode, enable outputting port state transition information for MSTI 2.
Syntax stp region-configuration undo stp region-configuration Views System view Default command level 2: System level Usage guidelines These are the default settings for the MST region: • 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. After you enter MST region view, you can configure the MST region-related parameters, including the region name, VLAN-to-instance mappings, and revision level.
Examples # In MSTP mode, specify the device as the root bridge of MSTI 1. system-view [Sysname] stp instance 1 root primary Related commands • stp priority • stp root secondary 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-id ] root secondary undo stp [ instance instance-id ] root Default A device is not a secondary root bridge.
Syntax stp root-protection undo stp root-protection Default The root guard function is disabled. Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group.
Views System view Default command level 2: System level Usage guidelines With the TC-BPDU guard function, you can set the maximum number of immediate forwarding address entry flushes that the device can perform every a certain period of time (10 seconds). For TC-BPDUs received in excess of the limit, the device performs a forwarding address entry flush when the time period expires. This prevents frequent flushing of forwarding address entries.
stp timer forward-delay Use stp timer forward-delay to set the forward delay timer of the device. Use undo stp timer forward-delay to restore the default. Syntax stp timer forward-delay time undo stp timer forward-delay Default The forward delay timer is 15 seconds. Views System view Default command level 2: System level Parameters time: Sets the forward delay (in 0.01 seconds). The value range is 400 to 3000 in increments of 100 (as indicated by 400, 500, 600).
Default The hello time is 2 seconds. Views System view Default command level 2: System level Parameters time: Sets the hello time (in 0.01 seconds). The value range is 100 to 1000 in increments of 100 (as indicated by 100, 200, 300). Usage guidelines Hello time is the time interval at which spanning tree devices send configuration BPDUs to maintain spanning tree.
Parameters time: Sets the max age (in 0.01 seconds). The value range is 600 to 4000 in increments of 100 (as indicated by 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. If yes, a new spanning tree calculation process starts. The max age timer takes effect only on the CIST. HP recommends not setting the max age timer with this command.
In a stable network, this kind of spanning tree calculation might occur because the upstream device is busy. You can avoid such unwanted spanning tree calculations by lengthening the timeout time (by setting the timeout factor to 4 or more), saving the network resources. HP recommends that you set the timeout factor to 5, 6, or 7, for a stable network. Examples # Set the timeout factor of the device to 7.
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 stp transmit-limit (Layer 2 aggregate interface view) No Yes No No Yes Yes Yes Examples # Set the maximum transmission rate of port Ethernet 1/1 to 5. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] stp transmit-limit 5 vlan-mapping modulo Use vlan-mapping modulo to map VLANs in the MST region to MSTIs according to the specified modulo value, quickly creating a VLAN-to-instance mapping table.
• active region-configuration 91
Ethernet link aggregation configuration commands bandwidth Use bandwidth to set the expected bandwidth for an aggregate interface or subinterface. Use undo bandwidth to cancel the configuration. Syntax bandwidth bandwidth-value undo bandwidth Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level Parameters bandwidth-value: Specifies the expected bandwidth in the range of 1 to 4294967295 kbps.
Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level 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 execute it on a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
Default command level 2: System level Usage guidelines The following matrix shows the command and router compatibility in Layer 2 aggregate interface view: Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 description No Yes No No Yes Yes Yes Parameters text: Specifies the interface description, a string of 1 to 80 characters. Examples # Set the description of Layer 2 aggregate interface Bridge-Aggregation 1 to connect to the lab.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If bridge-aggregation | route-aggregation is not specified, this command displays information about all interfaces. If bridge-aggregation or route-aggregation is specified without any interface number specified, this command displays information about all aggregate interfaces.
# Display brief information about Layer 2 aggregate interface Bridge-Aggregation 1. display interface bridge-aggregation 1 brief The brief information of interface(s) under bridge mode: Link: ADM - administratively down; Stby - standby Speed or Duplex: (a)/A - auto; H - half; F - full Type: A - access; T - trunk; H - hybrid Interface Link Speed Duplex Type PVID Description BAGG1 DOWN auto A A 1 # Display brief information about Layer 3 aggregate interface Route-Aggregation 1.
Field Description Output queue : (Protocol queuing : Size/Length/Discards) Output queue (current message number in the protocol queue/ maximum number of messages allowed in the protocol queue/number of discarded messages). Output queue : (FIFO queuing : Size/Length/Discards) Output queue (current message number in the FIFO queue/ maximum number of messages allowed in the FIFO queue/number of discarded messages).
Usage guidelines The system ID contains the system LACP priority and the system MAC address. Although you specify the LACP priority value in decimal format in the lacp system-priority command, it is displayed as a hexadecimal value with the display lacp system-id command. Examples # Display the local system ID.
Usage guidelines Only the port number and operational key of a member port in a static aggregation group are displayed, because the aggregation group is not aware of the partner's information. Examples # Display detailed link aggregation information for Ethernet 1/1, a member port of a static aggregation group.
Table 23 Command output Field Description LACP state flags: Flags • • • • • • • • A—LACP is enabled. B—LACP short timeout. C—The sending system detects that the link is aggregatable. D—The sending system detects that the link is synchronized. E—The sending system detects that the incoming frames are collected. F—The sending system detects that the outgoing frames are distributed. G—The sending system receives frames in default state. H—The sending system receives frames in expired state.
Usage guidelines The information about the remote system for a static link aggregation group may be displayed as none or may not be displayed, because the aggregation group is not aware of the partner's information. Examples # Display the summary information for all aggregation groups.
Syntax display link-aggregation verbose [ { bridge-aggregation | route-aggregation } [ interface-number ] ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters bridge-aggregation: Displays detailed information about the Layer 2 aggregation groups corresponding to Layer 2 aggregate interfaces. route-aggregation: Displays detailed information about the Layer 3 aggregation groups corresponding to Layer 3 aggregate interfaces.
Port Status: S -- Selected, U -- Unselected Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Aggregation Interface: Bridge-Aggregation10 Aggregation Mode: Dynamic Loadsharing Type: NonS System ID: 0x8000, 000f-e267-6c6a Local: Port Status Priority Oper-Key Flag ------------------------------------------------------------------------------Eth0/1 S 32768 2 {ACDEF} Eth0/2 S 32768 2 {ACDEF} Remo
Field Description LACP state flags: Flags Aggregation Interface • • • • • • • • A—LACP is enabled. B—LACP short timeout. C—The sending system detects that the link is aggregatable. D—The sending system detects that the link is synchronized. E—The sending system detects that the incoming frames are collected. F—The sending system detects that the outgoing frames are distributed. G—The sending system receives frames in default state. H—The sending system receives frames in expired state.
Default command level 2: System level Usage guidelines For an aggregate interface to generate linkUp/linkDown traps when its link state changes, you must enable linkUp/linkDown trap generation globally with the snmp-agent trap enable [ standard [ linkdown | linkup ] * ] command. For more information about the snmp-agent trap enable command, see Network Management and Monitoring Command Reference.
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 interface bridge-aggregation No Yes No No Yes Yes Yes The following matrix shows the argument and router compatibility: Argument interface-number MSR900 N/A MSR93X N/A MSR20-1X N/A MSR20 N/A MSR30 MSR50 MSR1000 Yes. Yes. Yes. Value range: 1 to 1024. Value range: 1 to 1024. Value range: 1 to 1024. Examples # Create Layer 2 aggregate interface Bridge-Aggregation 1 and enter its view.
Examples # Create Layer 3 aggregate interface Route-Aggregation 1 and enter its view. system-view [Sysname] interface route-aggregation 1 [Sysname-Route-Aggregation1] lacp period short Use lacp period short to set the LACP timeout interval on a port to the short timeout interval (1 second). Use undo lacp period to restore the default setting. Syntax lacp period short undo lacp period Default The LACP timeout interval is the long timeout interval (30 seconds).
Parameters system-priority: Specifies the LACP priority of the local system, in the range of 0 to 65535. The smaller the value, the higher the system LACP priority. Examples # Set the system LACP priority to 64. system-view [Sysname] lacp system-priority 64 link-aggregation mode Use link-aggregation mode dynamic to configure an aggregation group to operate in dynamic aggregation mode. Use undo link-aggregation mode to restore the default setting.
Syntax link-aggregation port-priority port-priority undo link-aggregation port-priority Default The aggregation priority of a port is 32768. Views Ethernet interface view Default command level 2: System level Parameters port-priority: Specifies a port aggregation priority in the range of 0 to 65535. The smaller the value, the higher the port aggregation priority.
Parameters size: Specifies the MTU in the range of 46 to 1560 bytes. Examples # Set the MTU of Layer 3 aggregate interface Route-Aggregation 1 to 1430 bytes. system-view [Sysname] interface route-aggregation 1 [Sysname-Route-Aggregation1] mtu 1430 Related commands display interface port link-aggregation group Use port link-aggregation group to assign the Ethernet interface to the specified aggregation group.
[Sysname-Ethernet1/1] port link-aggregation group 1 # Assign Layer 3 Ethernet interface Ethernet 1/2 to Layer 3 aggregation group 2. system-view [Sysname] interface ethernet 1/2 [Sysname-Ethernet1/2] port link-aggregation group 2 reset counters interface Use reset counters interface to clear the statistics of the specified aggregate interface or interfaces.
reset counters interface bridge-aggregation 1 reset lacp statistics Use reset lacp statistics to clear the LACP statistics on the specified member ports or all member ports, if no member ports are specified.
Command MSR900 MSR93X MSR20-1X MSR20 MSR30 MSR50 MSR1000 shutdown No Yes No No Yes Yes Yes Examples # Shut down Layer 2 aggregate interface Bridge-Aggregation 1.
GVRP configuration commands display garp statistics Use display garp statistics to display the GARP statistics of the specified ports. If no ports are specified, this command displays the GARP statistics for all ports. Syntax display garp statistics [ interface interface-list ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface interface-list: Displays the GARP statistics of one or multiple ports.
Number of GVRP Frames Received : 5 Number of GVRP Frames Transmitted : 2 Number of Frames Discarded : 1 GARP statistics on port Ethernet1/2 Number of GVRP Frames Received : 3 Number of GVRP Frames Transmitted : 4 Number of Frames Discarded : 2 Related commands reset garp statistics display garp timer Use display garp timer to display GARP timers on specific ports. If no ports are specified, this command displays the GARP timers on all ports.
Garp Hold Time : 10 centiseconds Related commands • garp timer hold • garp timer join • garp timer leave • garp timer leaveall display gvrp local-vlan Use display gvrp local-vlan to display the local VLAN information maintained by GVRP on the specified port.
Default command level 0: Visit level Parameters interface interface-type interface-number: Specifies an interface by its type and number. vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Field Description The Registrar state machine records the registration of attributes declared by other participants. Its state can be INN, LV, L3, L2, L1, MT, INR, LVR, L3R, L2R, L1R, MTR, INF, LVF, L3F, L2F, L1F, and MTF. Each state consists of two or three letters or numbers with the following meanings: • The first two letters or numbers indicate the state: IN stands for In; LV, L3, L2, and L1 all stand for Leaving, and L3, L2, L1 are three sub-states of LV; MT stands for Empty.
GVRP Failed Registrations : 0 GVRP Last Pdu Origin : 0000-0000-0000 GVRP Registration Type : Normal Table 27 Command output Field Description GVRP Status Indicates whether GVRP is enabled or disabled. GVRP Running Indicates whether GVRP is running. GVRP Failed Registrations Indicates the number of GVRP registration failures. GVRP Last Pdu Origin Indicates the source MAC address in the last GVRP PDU.
Views Any view Default command level 0: Visit level Parameters interface interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
Usage guidelines The following matrix shows the command and router compatibility: Command MSR900 MSR93X MSR201X MSR20 MSR30 MSR50 MSR10 00 garp timer hold (Layer 2 aggregate interface view) No No No No Yes Yes Yes Examples # Set the GARP Hold timer to 15 centiseconds, assuming that the Join timer is 30 centiseconds.
Command MSR900 MSR93X MSR201X MSR20 MSR30 MSR50 MSR10 00 garp timer join (Layer 2 aggregate interface view) No No No No Yes Yes Yes Examples # Set the GARP Join timer to 25 centiseconds, assuming that both the Hold timer and the Leave timer are using the default.
Command MSR900 MSR93X MSR201X MSR20 MSR30 MSR50 MSR10 00 garp timer leave (Layer 2 aggregate interface view) No No No No Yes Yes Yes Examples # Set the GARP Leave timer to 100 centiseconds, assuming that both the Join timer and the LeaveAll timer are using the default.
Related commands • display garp timer • garp timer leave gvrp Use gvrp to enable GVRP. Use undo gvrp to disable GVRP. Syntax gvrp undo gvrp Default GVRP is disabled. Views System view, Ethernet interface view, Layer-2 aggregate interface view, port group view Default command level 2: System level Usage guidelines Settings in system view take effect globally. Settings in Ethernet view or Layer 2 aggregate interface take effect on the current interface.
Use undo gvrp registration to restore the default. Syntax gvrp registration { fixed | forbidden | normal } undo gvrp registration Default The GVRP registration mode is normal. Views Ethernet interface view, Layer-2 aggregate interface view, port group view Default command level 2: System level Parameters fixed: Sets the GVRP registration mode to fixed. forbidden: Sets the GVRP registration mode to forbidden. normal: Sets the GVRP registration mode to normal.
Views User view Default command level 2: System level Parameters interface interface-list: Clears the GARP statistics of one or multiple ports. You can specify up to 10 port lists, by each of which you can specify a single port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end port number specified by interface-number2 must be greater than the start port number specified by interface-number1.
LLDP configuration commands display lldp local-information Use display lldp local-information to display the LLDP information to be sent. This information, contained in the LLDP TLVs, is sent to neighbor devices. Syntax display lldp local-information [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters global: Displays the global LLDP information to be sent.
System capabilities enabled : Bridge,Router MED information Device class: Connectivity device HardwareRev : REV.A FirmwareRev : 109 SoftwareRev : 5.20 Alpha 2101 SerialNum : NONE Manufacturer name : HP Model name : HP Comware Asset tracking identifier : Unknown LLDP local-information of port 1[Ethernet1/1]: Port ID subtype : Interface name Port ID : Ethernet1/1 Port description : Ethernet1/1 Interface Management address type : ipv4 Management address : 192.168.1.
PoE PSE power source : Primary Port PSE Priority : Critical Port available power value: 30.0(w) Table 28 Command output Field Description Global LLDP local-information Global LLDP information to be sent. Chassis ID Bridge MAC address of the device. Supported capabilities: System capabilities supported • Bridge—Switching is supported. • Router—Routing is supported. Enabled capabilities: System capabilities enabled • Bridge—Switching is enabled. • Router—Routing is enabled.
Field Description Link aggregation enabled Indicates whether link aggregation is enabled. Aggregation port ID Aggregation group ID, which is 0 when link aggregation is disabled. MED information MED LLDP information. Media policy type: Media policy type • • • • • • • • • unknown. voice. voiceSignaling. guestVoice. guestVoiceSignaling. softPhoneVoice. videoconferencing. streamingVideo. videoSignaling. Unknown Policy Indicates whether the media policy is unknown.
Field Description PoE power receiving priority of PD ports: • • • • Port PD Priority Port available power value Unknown. Critical. High. Low. Available PoE power on PSE ports or power needed on PD ports, in watts. display lldp neighbor-information Use display lldp neighbor-information to display the LLDP information carried in LLDP TLVs sent from the neighboring devices.
Update time : 0 days,0 hours,1 minutes,1 seconds Chassis type : MAC address Chassis ID : 000f-0055-0002 Port ID type : Interface name Port ID : Ethernet1/1 Port description : Ethernet1/1 Interface System name : HP System description : HP Comware Platform Software System capabilities supported : Bridge,Router System capabilities enabled : Bridge,Router Management address type : ipv4 Management address : 192.168.1.
System3 Eth1/3 000f-e25d-ee93 Ethernet1/7 Table 29 Command output Field Description LLDP neighbor-information of port 1 LLDP information received through port 1. Update time Time when LLDP information about a neighboring device was last updated. Chassis type • • • • • • • Chassis ID representation: Chassis ID Chassis component. Interface alias. Port component. MAC address. Network address(ipv4). Interface name. Locally assigned—Locally-defined chassis type other than those listed above.
Field Description Auto-negotiation enabled Indicates whether auto-negotiation is enabled on the port. OperMau Speed and duplex state on the port. Power port class • PSE—Power sourcing equipment. • PD—Powered device. PSE power supported Indicates whether the device can operate as a PSE. PSE power enabled Indicates whether the device is operating as a PSE. PSE pairs control ability Indicates whether the PSE-PD pair control is available.
Field Description PoE power receiving priority of PD ports: Port PD Priority • • • • Unknown. Critical. High. Low. Port available power value Available PoE power on PSE ports, or power needed on PD ports, in watts. TLV type Unknown basic TLV type. TLV information Information contained in the unknown basic TLV type. Unknown organizationally-defined TLV Unknown organizationally specific TLV. TLV OUI OUI of the unknown organizationally specific TLV.
Examples # Display the global LLDP statistics and the LLDP statistics of all ports.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If no port is specified, this command displays the global LLDP status and the LLDP status information for all ports. Examples # Display the global LLDP status and the LLDP status information of all ports.
Field Description Port status of LLDP Indicates whether LLDP is enabled on the port. LLDP mode of the port: Admin status • • • • TxRx—The port can send and receive LLDPDUs. Rx_Only—The port can only receive LLDPDUs. Tx_Only—The port can only send LLDPDUs. Disable—The port cannot send or receive LLDPDUs. Trap Flag Indicates whether trapping is enabled. Polling interval LLDP polling interval, which is 0 when LLDP polling is disabled.
Basic optional TLV: Port Description TLV YES YES System Name TLV YES YES System Description TLV YES YES System Capabilities TLV YES YES Management Address TLV YES YES Port VLAN ID TLV YES YES Port And Protocol VLAN ID TLV YES YES VLAN Name TLV YES YES MAC-Physic TLV YES YES Power via MDI TLV YES YES Link Aggregation TLV YES YES Maximum Frame Size TLV YES YES IEEE 802.1 extend TLV: IEEE 802.
Field Description LLDP-MED TLVs: LLDP-MED extend TLV • • • • • Capabilities TLV. Network Policy TLV. Extended Power-via-MDI TLV. Location Identification TLV. Inventory TLV, including hardware revision TLV, firmware revision TLV, software revision TLV, serial number TLV, manufacturer name TLV, model name TLV, and asset id TLV. lldp admin-status Use lldp admin-status to specify the LLDP operating mode for a port or all ports in a port group.
undo lldp check-change-interval Default LLDP polling is disabled. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default command level 2: System level Parameters interval: Sets the LLDP polling interval in the range of 1 to 30 seconds. Examples # Enable LLDP polling on Ethernet 1/1, setting the polling interval to 30 seconds.
Use undo lldp encapsulation to restore the default encapsulation format for LLDPDUs. Syntax lldp encapsulation snap undo lldp encapsulation Default Ethernet II is the encapsulation format for LLDPDUs. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default command level 2: System level Examples # Configure the encapsulation format for LLDPDUs as SNAP on Ethernet 1/1.
Use undo lldp hold-multiplier to restore the default. Syntax lldp hold-multiplier value undo lldp hold-multiplier Default The TTL multiplier is 4. Views System view Default command level 2: System level Parameters value: Sets the TTL multiplier in the range of 2 to 10. Usage guidelines You can set the TTL of the local device information by configuring the TTL multiplier.
Examples # Configure Ethernet 1/1 to encapsulate the management address in the form of strings in management address TLVs. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] lldp management-address-format string lldp management-address-tlv Use lldp management-address-tlv to enable management address advertising and set the management address. Use undo lldp management-address-tlv to disable management address advertising in LLDPDUs.
lldp notification remote-change enable Use lldp notification remote-change enable to enable LLDP trapping for a port or all ports in a port group. Use undo lldp notification remote-change enable to disable LLDP trapping. Syntax lldp notification remote-change enable undo lldp notification remote-change enable Default LLDP trapping is disabled on ports.
lldp timer reinit-delay Use lldp timer reinit-delay to set the LLDP re-initialization delay. Use undo lldp timer reinit-delay to restore the default. Syntax lldp timer reinit-delay delay undo lldp timer reinit-delay Default The LLDP re-initialization delay is 2 seconds. Views System view Default command level 2: System level 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.
If the LLDPDU transmit delay is greater than the LLDPDU transmit interval, the device uses the LLDPDU transmit delay as the transmit interval. Examples # Set the LLDPDU transmit delay to 4 seconds. system-view [Sysname] lldp timer tx-delay 4 Related commands lldp timer tx-interval 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.
Syntax In Layer 2 Ethernet interface view or port group view: lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } | network-policy | powe
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. dot3-tlv: Advertises IEEE 802.
Examples # Enable the device to advertise link aggregation TLVs of the IEEE 802.3 organizationally specific TLVs on Ethernet 1/1. system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] lldp tlv-enable dot3-tlv link-aggregation lldp voice-vlan Use lldp voice-vlan to specify the VLAN ID that an interface sends to the IP phone in the LLDP-MED network policy TLV. Use undo lldp voice-vlan to restore the default.
Port isolation configuration commands The HP MSR series routers support only one isolation group that is created automatically as isolation group 1. You can neither remove the isolation group nor create other isolation groups. display port-isolate group Use display port-isolate group to display information about port isolation group 1.
port-isolate enable Use port-isolate enable to assign ports to the isolation group. Use undo port-isolate enable to remove ports from the isolation group. Syntax port-isolate enable undo port-isolate enable Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view Default command level 2: System level Usage guidelines To assign Ethernet ports to the isolation group one by one, perform the command in Layer 2 Ethernet interface view.
[Sysname-port-group-manual-aa] group-member ethernet 1/4 [Sysname-port-group-manual-aa] port-isolate enable # Assign Layer 2 aggregate interface Bridge-Aggregation 1 and its member ports to the isolation group.
VLAN termination configuration commands dot1q ethernet-type Use dot1q ethernet-type to set the TPID value in the outermost VLAN tag of packets received and sent by the interface. Use undo dot1q ethernet-type to restore the default. Syntax dot1q ethernet-type hex-value undo dot1q ethernet-type Default The TPID value for the outmost VLAN tag of VLAN-tagged packets received and sent by the interface is 0x8100.
Usage guidelines After you execute the dot1q ethernet-type command, only packets whose TPID in the outermost VLAN tag is 0x8100 or the value you configured will be processed as VLAN-tagged packets. When sending a packet, the interface sets the TPID value in the outermost VLAN tag to the configured value, and sets the TPID values in the other VLAN tags to 0x8100 if the packet carries two or more layers of VLAN tags.
[Sysname] interface ethernet 1/1.1 [Sysname-Ethernet1/1.1] vlan-type dot1q vid 2 # Configure Virtual-Ethernet 1.1 to terminate VLAN-tagged packets with VLAN ID 2. system-view [Sysname] interface virtual-ethernet 1.1 [Sysname-Virtual-Ethernet1.
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 ABCDEGILMNPRSVW display stp,49 A display stp abnormal-port,55 active region-configuration,48 display stp bpdu-statistics,55 B display stp down-port,58 bandwidth,92 display stp history,59 bandwidth,13 display stp region-configuration,60 C display stp root,61 display stp tc,62 check region-configuration,48 display supervlan,37 D display vlan,18 default,13 display voice vlan oui,41 default,92 display voice vlan state,42 description,93 Documents,157 description,14 dot1q ethernet-ty
lldp enable,141 S lldp encapsulation snap,141 shutdown,24 lldp fast-count,142 shutdown,112 lldp hold-multiplier,142 stp bpdu-protection,66 lldp management-address-format string,143 stp bridge-diameter,66 lldp management-address-tlv,144 stp compliance,67 lldp notification remote-change enable,145 stp config-digest-snooping,68 lldp timer notification-interval,145 stp cost,69 lldp timer reinit-delay,146 stp edged-port,71 lldp timer tx-delay,146 stp enable,72 lldp timer tx-interval,147 stp
Websites,157 162