HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7) Part number: 5998-5690 Software version: CMW710-R0106 Document version: 6PW100-20140607
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 commands··································································································································· 1 display mac-address ················································································································································ 1 display mac-address aging-time ····························································································································· 2 display mac-addre
display stp tc ·························································································································································· 20 instance ·································································································································································· 22 region-name ························································································································································
display vlan ···························································································································································· 64 interface vlan-interface ·········································································································································· 66 mac-address ··························································································································································· 66 m
Subscription service ············································································································································ 117 Related information ······················································································································································ 117 Documents ···························································································································································· 117
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. For more information about configuring static multicast MAC address entries, see IP Multicast Configuration Guide. MAC address table commands are supported only on Layer 2 interface cards on MSR routers. display mac-address Use display mac-address to display MAC address entries.
MAC Address VLAN ID State Port Aging 0033-0033-0033 100 Blackhole N/A N 0000-0000-0002 100 Static GE2/1/3 N 00e0-fc00-5829 100 Learned GE2/1/4 Y # Display the total number of MAC address entries. display mac-address count 1 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.
Related commands mac-address timer display mac-address mac-learning Use display mac-address mac-learning to display the global MAC address learning status and the MAC learning status of interfaces. 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 an interface. Use undo mac-address to delete a MAC address entry on an 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 entries. Views Layer 2 Ethernet interface Predefined user roles network-admin Parameters dynamic: Specifies dynamic MAC address entries.
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.
To drop frames with the specified destination MAC addresses, you can configure blackhole 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 and static multicast MAC address entries.
• Because disabling MAC address learning can result in broadcast storms, enable broadcast storm suppression after you disable MAC address learning on an interface. For more information about broadcast storm suppression, see Interface Configuration Guide. Examples # Disable MAC address learning on interface GigabitEthernet 2/1/1.
Examples # Set the aging time to 500 seconds for dynamic MAC address entries.
Ethernet link aggregation commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. bandwidth Use bandwidth to configure the expected bandwidth for an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth (in kbps) is the interface baud rate divided by 1000.
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 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.
display interface Use display interface to display aggregate interface information. Syntax display interface [ route-aggregation [ interface-number ] ] [ brief [ description | down ] ] Views Any view Predefined user roles network-admin network-operator Parameters route-aggregation: Displays information about Layer 3 aggregate interfaces. interface-number: Specifies an existing aggregate interface number.
Last clearing of counters: Never Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 drops 0 packets output, 0 bytes, 0 drops # Display brief information about Layer 3 aggregate interface Route-Aggregation 1.
Field Description IP packet processing. Disabled indicates that IP packets cannot be processed. Internet protocol processing For an interface configured with an IP address, this field changes to Internet Address is. Brief information on interface(s) under route mode Brief information about Layer 3 interfaces. Link status: • ADM—The interface has been administratively Link: ADM - administratively down; Stby - standby shut down. To recover its physical layer state, run the undo shutdown command.
Syntax display lacp system-id Views Any view Predefined user roles network-admin network-operator Usage guidelines You can use the lacp system-priority command to change the LACP priority of the local system. The LACP priority value is specified in decimal format in the lacp system-priority command. However, it is displayed as a hexadecimal value by the display lacp system-id command. Examples # Display the local system ID.
Usage guidelines To display the global link-aggregation load sharing criteria, execute the command without the interface keyword. To display all group-specific load sharing criteria, execute the command with the interface keyword, but do not specify a particular interface. To display the load sharing criteria of a particular aggregation group, execute the command with the aggregate interface specified.
Table 5 Command output Field Description Global link-aggregation load sharing criteria. Link-Aggregation Load-Sharing Mode • By default, the link-aggregation load sharing criteria for Layer 3 traffic, Layer 4 traffic, and MPLS traffic are displayed. • If you have configured the global link-aggregation load sharing criteria, the configured ones are displayed. Link-aggregation load sharing criteria of the aggregation group corresponding to aggregate interface Route-Aggregation 10.
Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired GigabitEthernet2/1/1: Aggregate Interface: Route-Aggregation1 Port Number: 1 Port Priority: 32768 Oper-Key: 1 # Display detailed link aggregation information for GigabitEthernet 2/1/2, which is a member port of a dynamic aggregation group.
Table 6 Command output Field Description LACP state flags. This field is one byte long, represented by ABCDEFGH from the least significant bit to the most significant bit. The letter is present when its bit is 1 and absent when its bit is 0. • A—Indicates whether LACP is enabled. 1 indicates enabled, and 0 indicates disabled. • B—Indicates the LACP short or long timeout. 1 indicates short timeout, and 0 indicates long timeout.
Usage guidelines Information about the remote system for a static link aggregation group is displayed as none. This is because static link aggregation groups are unaware of information about the peer groups. Examples # Display the summary information for all aggregation groups.
Syntax display link-aggregation verbose [ route-aggregation [ interface-number ] ] Views Any view Predefined user roles network-admin network-operator Parameters route-aggregation: Displays detailed information about the Layer 3 aggregation groups that correspond to Layer 3 aggregate interfaces. interface-number: Specifies an existing aggregate interface by its number in the range of 1 to 8.
# Display detailed information about the aggregation group that corresponds to Layer 3 aggregate interface Route-Aggregation 20, which is a static aggregation group.
Field Description System ID Local system ID, containing the system LACP priority and the system MAC address. Information about the local end: Local • • • • • Port—Port type and number. Status—Selected or Unselected state of the port. Priority—Port priority. Oper-Key—Operational key. Flag—LACP state flag. NOTE: For static aggregation groups, only local information (without the Flag field) is displayed. Information about the remote end: Remote • • • • • • Actor—Port type and number of the local end.
Usage guidelines When you create a Layer 3 aggregate interface, the system automatically creates a Layer 3 aggregation group with the same number. The Layer 3 aggregation group operates in static aggregation mode by default. Removing the Layer 3 aggregate interface also removes the Layer 3 aggregation group. At the same time, the member ports of the aggregation group, if any, leave the aggregation group.
lacp period short Use lacp period short to set the LACP timeout interval on a port to the short timeout interval (3 seconds), and enable the peer end to send LACPDUs quickly. 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 (90 seconds).
Related commands link-aggregation port-priority link-aggregation global load-sharing mode Use link-aggregation global load-sharing mode to configure the global link-aggregation load sharing criteria. Use undo link-aggregation global load-sharing mode to restore the default setting.
Default Link-aggregation traffic redirection is disabled. Views System view Predefined user roles network-admin Usage guidelines When you shut down a Selected port in an aggregation group, this feature redirects traffic to other Selected ports. Zero packet loss is guaranteed for known unicast traffic, but not for unknown unicast traffic. (MSR2000/MSR3000) When you restart a card that contains Selected ports, this feature redirects traffic to other cards.
Usage guidelines The load sharing criteria that you configure overwrites the previous criteria. If unsupported load sharing criteria are configured, an error prompt appears. Examples # Configure the destination IP address as the load sharing criterion that is specific to the link aggregation group of aggregate interface Route-Aggregation 1.
Default The port priority of an interface is 32768. Views Layer 3 Ethernet interface view Predefined user roles network-admin Parameters port-priority: Specifies the port priority in the range of 0 to 65535. The smaller the value, the higher the port priority. Examples # Set the port priority of Layer 3 Ethernet interface GigabitEthernet 2/1/2 to 64.
The maximum number of Selected ports allowed in an aggregation group is limited by one of the following, whichever value is smaller: • The configured maximum number. • Hardware capability. You can configure backup between two ports by performing the following tasks: • Assign two ports to an aggregation group. • Configure the maximum number of Selected ports allowed in the aggregation group as one.
Examples # Configure the minimum number of Selected ports as 3 in the aggregation group that corresponds to Layer 3 aggregate interface Route-Aggregation 1. system-view [Sysname] interface route-aggregation 1 [Sysname-Route-Aggregation1] link-aggregation selected-port minimum 3 Related commands link-aggregation selected-port maximum mtu Use mtu to set the MTU of a Layer 3 aggregate interface or subinterface. Use undo mtu to restore the default setting.
Default An Ethernet interface does not belong to any aggregation group. Views Layer 3 Ethernet interface view Predefined user roles network-admin Parameters number: Specifies the number of the aggregate interface that corresponds to an aggregation group. The value range is 1 to 8. Usage guidelines An Ethernet interface can belong to only one aggregation group. Examples # Assign Layer 3 Ethernet interface GigabitEthernet 2/1/2 to Layer 3 aggregation group 2.
reset lacp statistics Use reset lacp statistics to clear LACP statistics for the specified link aggregation member ports. Syntax reset lacp statistics [ interface interface-list ] Views User view Predefined user roles network-admin Parameters interface interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ]. interface-type interface-number specifies an interface by its type and number.
[Sysname-Route-Aggregation1] undo shutdown 33
Port isolation commands The commands are supported on the following hardware: MSR routers installed with the Layer 2 switching module SIC 4GSW, SIC 4GSWP, DSIC 9FSW, DSIC 9FSWP, HMIM-24GSW, HMIM 24GSW-POE, or HMIM-8GSW. In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. display port-isolate group Use display port-isolate group to display port isolation group information.
Syntax port-isolate enable undo port-isolate enable Default The port is not assigned to any isolation group. Views Layer 2 Ethernet interface view Predefined user roles network-admin Usage guidelines The router supports only one isolation group that is automatically created as isolation group 1. Examples # Assign ports GigabitEthernet 2/1/1 and GigabitEthernet 2/1/2 to the isolation group.
Spanning tree commands In this chapter, "MSR2000" refers to MSR2003. "MSR3000" collectively refers to MSR3012, MSR3024, MSR3044, MSR3064. "MSR4000" collectively refers to MSR4060 and MSR4080. The spanning tree commands are supported on the following hardware: MSR routers installed with Layer 2 switching modules. 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. Syntax check region-configuration Views MST region view Predefined user roles network-admin Usage guidelines Spanning tree devices belong to the same MST region only when they are connected through a physical link and configured with the same: • Format selector (0 by default and not configurable).
Related commands • active region-configuration • instance • region-name • revision-level • vlan-mapping modulo display stp Use display stp to display spanning tree status and statistics. Based on the information, you can analyze and maintain the network topology or determine whether the spanning tree is working correctly.
• If you do not specify any port, this command displays the spanning tree information for all ports. The displayed information is sorted by port name. • If you specify a port list, this command displays the spanning tree information for the specified ports. The displayed information is sorted by port name. In PVST mode: • If you do not specify any VLAN or port, this command displays the spanning tree information for all ports in all VLANs.
VLAN ID Port Role STP State Protection 2 GigabitEthernet2/1/1 ALTE DISCARDING LOOP 2 GigabitEthernet2/1/2 DESI FORWARDING NONE 2 GigabitEthernet2/1/3 DESI FORWARDING NONE 2 GigabitEthernet2/1/4 DESI FORWARDING NONE Table 11 Command output Field Description MST ID MSTI ID in the MST region. VLAN ID ID of the VLAN. Port Port name, corresponding to each MSTI or VLAN. Port role: • • • • • • Role ALTE—The port is an alternate port. BACK—The port is a backup port.
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.
Port cost(Legacy) : Config=auto, Active=200 Desg. bridge/port : 32768.000f-e200-2200, 128.2 Port edged : Config=disabled, Active=disabled Point-to-Point : Config=auto, Active=true Transmit limit : 10 packets/hello-time Protection type : NONE Rapid transition : False Port times : Hello 2s MaxAge 20s FwdDelay 15s MsgAge 2s -------[VLAN 2 Global Info]------Protocol status : Enabled Bridge ID : 32768.000f-e200-2200 Bridge times : Hello 2s MaxAge 20s FwDly 15s VlanRoot ID/RPC : 0.
Table 12 Command output Field Description Bridge ID Bridge ID, which contains the device's priority and its MAC address. For example, in output 32768.000f-e200-2200, the value preceding the dot is the device's priority. 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. MaxHops—Maximum hops within the MST region.
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 Number of BPDUs sent within each hello time. Protection type on the port: Protection type • • • • ROOT—Root guard. LOOP—Loop guard. BPDU—BPDU guard. NONE—No protection. TC-Restriction Status of TC transmission restriction on the port.
Field Description Bridge-Prio. • In MSTP mode: Device's priority in the CIST. • In PVST mode: Device's priority in VLAN 1. Max age(s) Aging timer for BPDUs (in seconds, which is the same as the aging timer for VLAN 1 in PVST mode). Forward delay(s) Port state transition delay (in seconds, which is the same as the port state transition delay for VLAN 1 in PVST mode). Hello time(s) Interval for the root bridge to send BPDUs (in seconds, which is the same as the interval for VLAN 1 in PVST mode).
Table 13 Command output Field Description MST ID MSTI of the blocked port. VLAN ID VLAN of the blocked port. Blocked Port Name of a blocked port. Reason that the port was blocked: Reason • Root-Protected—Root guard function. • Loop-Protected—Loop guard function. • Loopback-Protected—Self-loop protection. A port in the MSTI receives a BPDU that it sends. • Disputed—Dispute protection. A port receives a low-priority BPDU from a non-blocked designated port.
• If you do not specify any port, this command displays the BPDU statistics of on all ports. The displayed information is sorted by port name. • If you specify a port, this command displays the BPDU statistics on the port. Examples # In MSTP mode, display the BPDU statistics of all MSTIs on GigabitEthernet 2/1/1.
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/2010 MST received 151 10:37:43 01/13/2010 Timeout BPDUs 0 Max-hoped BPDUs 0 TC detected 511 10:32:40 01/13/2010 TC sent 8844 10:33:11 01/13/2010 TC received 1426 10:33:32 01/13/2010 10:33:12 01/13/2010 Table 14 Command output Field Description Port Port name. Instance-Independent Statistics not related to any particular MSTI. Type Statistical item.
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.
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. vlan vlan-id-list: Displays the historical port role calculation information for the VLANs specified by a VLAN ID list. They are in the format of vlan-id-list = { vlan-id [ to vlan-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ] parameters.
# (MSR2000/MSR3000.) In PVST mode, display the historical port role calculation information for VLAN 2. display stp vlan 2 history ------------------- VLAN 2 --------------------- Port GigabitEthernet2/1/1 Role change : ROOT->DESI (Aged) Time : 2009/02/08 00:22:56 Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1 Designated priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.1 Port GigabitEthernet2/1/2 Role change : ALTER->ROOT Time : 2009/02/08 00:22:56 Port priority : 0.
Table 16 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. display stp region-configuration Use display stp region-configuration to display effective MST region configuration information, including: • Region name. • Revision level. • User-configured VLAN-to-instance mappings.
Field Description VLANs Mapped VLANs mapped to the MSTI. Related commands • instance • region-name • revision-level • vlan-mapping modulo display stp root Use display stp root to display the root bridge information of spanning trees. 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.
Syntax MSR2000/MSR3000: display stp [ instance instance-list | vlan vlan-id-list ] tc MSR4000: display stp [ instance instance-list | vlan vlan-id-list ] tc [ slot slot-number ] 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.
display stp instance 0 tc MST ID Port Receive Send 0 GigabitEthernet2/1/1 6 4 0 GigabitEthernet2/1/2 0 2 # (MSR2000/MSR3000.) In PVST mode, display the statistics of TC/TCN BPDUs received and sent by all ports in VLAN 2. display stp vlan 2 tc VLAN ID Port Receive Send 2 GigabitEthernet2/1/1 6 4 2 GigabitEthernet2/1/2 0 2 # (MSR4000.) In MSTP mode, display the statistics of TC/TCN BPDUs received and sent by all ports on the card on slot 2 in MSTI 0.
Predefined user roles network-admin Parameters instance-id: Specifies an MSTI ID. The minimum value is 0, representing the CIST, and the maximum value is 4094. vlan vlan-id-list: Specifies a VLAN list in the format of vlan-id-list = { vlan-id [ to vlan-id ] }&<1-10>. The vlan-id argument represents the VLAN ID and its value range is 1 to 4094. &<1-10> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges.
Predefined user roles network-admin Parameters name: Specifies the MST region name, a string of 1 to 32 characters. Usage guidelines The MST region name, the VLAN-to-instance mapping table, and the MSTP revision level of a device determine the device's MST region. After configuring this command, run the active region-configuration command to activate the configured MST region name. Examples # Set the MST region name of the device to hello.
Related commands display stp revision-level Use revision-level to configure the MSTP revision level. Use undo revision-level to restore the default MSTP revision level. Syntax revision-level level undo revision-level Default The MSTP revision level is 0. Views MST region view Predefined user roles network-admin Parameters level: Specifies an MSTP revision level in the range of 0 to 65535.
Syntax stp bpdu-protection undo stp bpdu-protection Default The BPDU guard function is disabled. Views System view Predefined user roles network-admin Examples # Enable the BPDU guard function. system-view [Sysname] stp bpdu-protection stp bridge-diameter Use stp bridge-diameter to specify the network diameter. Use undo stp bridge-diameter to restore the default.
In STP, RSTP, or MSTP mode, each MST region is considered as a device. The configured network diameter of the switched network takes effect only on the CIST (or the common root bridge). In PVST mode, the configured network diameter takes effect only on the root bridges of the specified VLANs. Examples # In MSTP mode, set the network diameter of the switched network to 5. system-view [Sysname] stp bridge-diameter 5 # In PVST mode, set the network diameter of VLAN 2 in the switched network to 5.
[Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] stp compliance dot1s stp config-digest-snooping Use stp config-digest-snooping to enable Digest Snooping. Use undo stp config-digest-snooping to disable Digest Snooping. Syntax stp config-digest-snooping undo stp config-digest-snooping Default The feature is disabled.
Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters instance instance-list: Sets the path cost of the port in the MSTIs that are specified by an instance list. They are 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.
stp edged-port Use stp edged-port to configure a port as an edge port. Use undo stp edged-port to configure a port as a non-edge port. Syntax stp edged-port undo stp edged-port Default All ports are non-edge ports. Views Layer 2 Ethernet interface view Predefined user roles network-admin Usage guidelines If a port directly connects to a user terminal rather than to another device or a shared LAN segment, this port is regarded as an edge port.
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, PVST, or MSTP mode, depending on the spanning tree mode setting. When you enable the spanning tree feature, the device dynamically maintains the spanning tree status of VLANs, based on received configuration BPDUs.
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 GigabitEthernet 2/1/1 and then globally.
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 that is running MSTP, RSTP, or PVST connects to an STP device, the port automatically transits to the STP mode when the port receives STP BPDUs.
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 the interface. Examples # Enable the loop guard function on GigabitEthernet 2/1/1.
Views Layer 2 Ethernet interface view Predefined user roles network-admin Usage guidelines If a port on a device that is running MSTP, RSTP, or PVST connects to an STP device, the port automatically transits to the STP mode when the port receives STP BPDUs. If the peer STP device is shut down or removed and the local device cannot detect the change, the local device cannot automatically transit back to the original mode.
Parameters mstp: Configures the spanning tree device to operate in MSTP mode. pvst: Configures the spanning tree device to operate in PVST 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 The MSTP mode is compatible with the RSTP mode, and the RSTP mode is compatible with the STP mode.
Examples # Enable No Agreement Check on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/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.
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. force-true: Specifies the point-to-point link type.
Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters instance instance-list: Sets the priority of the port in the MSTIs that are specified by an instance list. They are 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.
Views System view Predefined user roles network-admin Parameters all: Specifies all MSTIs or VLANs. instance instance-list: Specifies the MSTIs by an instance list. They are 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. vlan vlan-id-list: Specifies VLANs by a VLAN ID list.
Views System view Predefined user roles network-admin Parameters instance instance-list: Sets the priority of the device in the MSTIs that are specified by an instance list. They are 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.
Predefined user roles network-admin Usage guidelines After you enter MST region view, you can configure MST region parameters, including the region name, VLAN-to-instance mappings, and revision level. Examples # Enter MST region view. system-view [Sysname] stp region-configuration [Sysname-mst-region] stp role-restriction Use stp role-restriction to enable port role restriction. Use undo stp role-restriction to disable port role restriction.
Default A device is not a root bridge. Views System view Predefined user roles network-admin Parameters instance instance-list: Configures the device as the root bridge in the MSTIs that are specified by an instance list. They are 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.
Predefined user roles network-admin Parameters instance instance-list: Configures the device as a secondary root bridge in the MSTIs that are specified by an instance list. They are 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.
When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only the interface. Examples # Enable the root guard function for GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] stp root-protection Related commands • stp edged-port • stp loop-protection stp tc-protection Use stp tc-protection to enable the TC-BPDU attack guard function for the device.
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. Views System view Predefined user roles network-admin Parameters number: Sets the maximum number of immediate forwarding address entry flushes that the device can perform every 10 seconds. The value is in the range of 1 to 255.
[Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] stp tc-restriction stp timer forward-delay Use stp timer forward-delay to set the forward delay timer. Use undo stp timer forward-delay to restore the default. Syntax stp [ vlan vlan-id-list ] timer forward-delay time undo stp [ vlan vlan-id-list ] timer forward-delay Default The forward delay timer is 1500 centiseconds.
• stp timer max-age stp timer hello Use stp timer hello to set the hello time. Use undo stp timer hello to restore the default. Syntax stp [ vlan vlan-id-list ] timer hello time undo stp [ vlan vlan-id-list ] timer hello Default The hello time is 200 centiseconds. Views System view Predefined user roles network-admin Parameters vlan vlan-id-list: Sets the hello time for the VLANs specified by a VLAN ID list.
stp timer max-age Use stp timer max-age to set the max age timer. Use undo stp timer max-age to restore the default. Syntax stp [ vlan vlan-id-list ] timer max-age time undo stp [ vlan vlan-id-list ] timer max-age Default The max age is 2000 centiseconds. Views System view Predefined user roles network-admin Parameters vlan vlan-id-list: Sets the max age for the VLANs specified by a VLAN ID list.
stp timer-factor Use stp timer-factor to configure the timeout period by setting the timeout factor. Timeout period = timeout factor × 3 × hello time. Use undo stp timer-factor to restore the default. Syntax stp timer-factor factor undo stp timer-factor Default The timeout factor of a device is set to 3. Views System view Predefined user roles network-admin Parameters factor: Sets the timeout factor in the range of 1 to 20.
Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters limit: Sets the BPDU transmission rate in the range of 1 to 255. Usage guidelines The maximum number of BPDUs a port can send within each hello time equals the BPDU transmission rate plus the hello timer value. A larger BPDU transmission rate value requires more system resources.
When you enable the spanning tree feature, the device dynamically maintains the spanning tree status of VLANs, based on received configuration BPDUs. When you disable the spanning tree feature, the device stops maintaining the spanning tree status. Examples # In PVST mode, globally enable the spanning tree feature and then enable the spanning tree feature for VLAN 2.
• check region-configuration • display stp region-configuration • region-name • revision-level 53
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).
loopback-detection action Use loopback-detection action to configure the loop protection action on a per-port basis. 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 block: Enables the block mode.
Syntax loopback-detection enable vlan { vlan-list | all } undo loopback-detection enable vlan { vlan-list | all } Default The loop detection function is disabled on ports. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters vlan-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN ID or a range of VLAN IDs in the form of vlan-id1 to vlan-id2. The value range for VLAN IDs is 1 to 4094.
Predefined user roles network-admin Parameters shutdown: Enables the shutdown mode. If a loop is detected, the device generates a log and shuts down the port. The device automatically sets the port to the forwarding state after the time interval configured by using the shutdown-interval command (see Fundamentals Command Reference). Usage guidelines To configure the loop protection action on a per-port basis, use the loopback-detection action command in interface view.
The global configuration applies to all ports in the specified VLAN. The per-port configuration applies to the individual port only when the port belongs to the specified VLAN. The per-port configuration takes precedence over the global configuration. Example # Globally enable loop detection for VLAN 10 through VLAN 20.
VLAN commands The VLAN commands are available on the following hardware: Layer 2 switching modules on the MSR routers. Basic VLAN commands bandwidth Use bandwidth to configure the expected bandwidth of an interface. Use undo bandwidth to restore the default. Syntax bandwidth bandwidth-value undo bandwidth Default The expected bandwidth (in kbps) is the interface baud rate divided by 1000.
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 on a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies or system restrictions.
Table 21 Special symbols Name Symbol Name Symbol Tilde ~ Left angle bracket < Exclamation point ! Right angle bracket > At sign @ Hyphen - Pound sign # Underscore _ Dollar sign $ Plus sign + Percent sign % Equal sign = Caret ^ Vertical bar | Ampersand sign & Backslash \ Asterisk * Colon : Left brace { Semi-colon ; Right brace } Quotation marks " Left parenthesis ( Apostrophe ' Right parenthesis ) Comma , Left bracket [ Dot .
Syntax display interface [ vlan-interface ] [ brief [ down ] ] display interface [ vlan-interface [ interface-number ] ] [ brief [ description ] ] Views Any view Predefined user roles network-admin network-operator Parameters vlan-interface: Specifies a VLAN interface. interface-number: Specifies a VLAN interface number. If you do not specify this argument, this command displays information about all VLAN interfaces. brief: Displays brief interface information.
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. Current state • DOWN—The administrative state of the VLAN interface is up, but its physical state is down. The VLAN of this interface does not contain any physical ports in the UP state. The ports might not be well connected or the lines might have failed.
Field Description Physical link state of the interface: Link • UP—The interface is physically up. • DOWN—The interface is physically down. • ADM—The interface has been administratively shut down. To bring up the interface, use the undo shutdown command. • Stby—The interface is operating as a backup interface. Data link layer protocol state of the interface: Protocol • UP—The data link layer protocol state of the interface is up. • DOWN—The data link layer protocol state of the interface is down.
dynamic: Displays the number of dynamic VLANs and the ID for each dynamic VLAN. The dynamic VLANs are distributed by a RADIUS server. reserved: Displays information about the reserved VLANs. Protocol modules determine which VLANs are reserved according to function implementation. The reserved VLANs provide services for 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.
Field Description 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 to enter the view of an existing VLAN interface. Use undo interface vlan-interface to delete a VLAN interface. Syntax interface vlan-interface vlan-interface-id undo interface vlan-interface vlan-interface-id Default No VLAN interface is created.
undo mac-address Default No MAC address is assigned to a VLAN interface. Views VLAN interface view Predefined user roles network-admin 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.
Examples # Set the MTU to 1492 bytes for VLAN-interface 1. system-view [Sysname] interface vlan-interface 1 [Sysname-Vlan-interface1] mtu 1492 Related commands display interface vlan-interface 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 specifies the ID of the VLAN. For example, the name of VLAN 100 is VLAN 0100.
Syntax reset counters interface vlan-interface [ vlan-interface-id ] Views User view Predefined user roles network-admin Parameters vlan-interface-id: Specifies a VLAN interface number. Usage guidelines Use this command to clear the history statistics if you want to collect statistics within a period. If the vlan-interface-id argument is not specified, this command clears statistics of all VLAN interfaces.
Before you configure parameters for a VLAN interface, shut down the VLAN interface with the shutdown command to prevent the configurations from affecting the network. After you have configured related parameters for a VLAN interface, use the undo shutdown command to make the settings to take effect. You can shut down a failed interface with the shutdown command and then bring it up with the undo shutdown command to see whether it recovers.
Hardware Keyword compatibility MSR4000 Yes Usage guidelines The system default VLAN (VLAN 1) and reserved VLANs cannot be created or deleted. You cannot use the undo vlan command to delete a dynamic VLAN, a VLAN with a QoS policy applied, or a VLAN locked by an application. To delete one of these VLANs, first remove the configuration from the VLAN. Examples # Create VLAN 2 and enter its view. system-view [Sysname] vlan 2 [Sysname-vlan2] # Create VLAN 4 through VLAN 100.
150-160, 200, 255, 286, 300-302 # Display information about the trunk ports. display port trunk Interface PVID GE2/1/8 2 VLAN Passing 1-4, 6-100, 145, 177, 189-200, 244, 289, 400, 555, 600-611, 1000, 2006-2008 Table 24 Command output Field Description Interface Interface name. PVID Port VLAN ID. VLAN Passing Existing VLANs allowed on the port. Tagged VLANs for which the port sends packets without removing VLAN tags.
[Sysname] vlan 2 [Sysname-vlan2] port gigabitethernet 2/1/1 to gigabitethernet 2/1/3 Related commands display vlan port access vlan Use port access vlan to assign an access port 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. 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.
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. Usage guidelines You can use a nonexistent VLAN as the PVID for a hybrid port. If you delete the PVID of a hybrid port by using undo vlan command, the PVID setting of the port does not change. HP recommends that you set the same PVID for the local and remote hybrid ports.
Parameters vlan-id-list: Specifies a space-separated list of up to 10 VLAN items. Each item specifies a VLAN ID or a range of VLAN IDs in the form of vlan-id1 to vlan-id2. The value range for VLAN IDs is 1 to 4094. The value for vlan-id2 must be equal to or greater than the value for vlan-id1. tagged: Configures the port to send the packets from the specified VLANs without removing VLAN tags. untagged: Configures the port to send the packets from the specified VLANs after removing VLAN tags.
system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] port link-type trunk port trunk permit vlan Use port trunk permit vlan to assign a trunk port to the specified VLANs. Use undo port trunk permit vlan to remove a trunk port from the specified VLANs. Syntax port trunk permit vlan { vlan-id-list | all } undo port trunk permit vlan { vlan-id-list | all } Default A trunk port allows only packets from VLAN 1 to pass through.
Syntax port trunk pvid vlan vlan-id undo port trunk pvid Default The PVID of a trunk 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. Usage guidelines You can use a nonexistent VLAN as the PVID for a trunk port. If you delete the PVID of a trunk port by using the undo vlan command, the PVID setting of the port does not change.
Predefined user roles network-admin network-operator Parameters group-name: Specifies a VLAN group by its name, a case-sensitive string of 1 to 31 characters. The first character must be an alphabetical character. If this argument is not specified, this command displays information about all VLAN groups. Examples # Display information about the VLAN group test001. display vlan-group test001 VLAN group: test001 VLAN list: 2-4 100 200 # Display information about all VLAN groups.
Parameters group-name: Specifies a VLAN group by its name, a case-sensitive string of 1 to 31 characters. The first character must be an alphabetical character. Usage guidelines A VLAN group includes a set of VLANs. You can add multiple VLAN lists to a VLAN group. You can configure the authentication server to assign VLANs in a VLAN group to an 802.1X user that has passed authentication. For more information about 802.1X authentication, see Security Configuration Guide.
QinQ commands QinQ commands are supported only on the HMIM 24GSW, HMIM 24GSW-PoE, and HMIM 8GSW interface modules. This document uses the following terms: • CVLAN—Customer network VLANs, also called "inner VLANs," refer to VLANs that a customer uses on the private network. • SVLAN—Service provider network VLANs, also called "outer VLANs," refer to VLANs that a service provider uses to transmit VLAN tagged traffic for customers. display qinq Use display qinq to display the QinQ-enabled interfaces.
[Sysname-GigabitEthernet2/1/3] qinq enable [Sysname-GigabitEthernet2/1/3] display qinq Interface GigabitEthernet2/1/1 GigabitEthernet2/1/3 Table 26 Command output Field Description Interface Interface name. GigabitEthernet2/1/1 QinQ-enabled interface. Related commands qinq enable qinq enable Use qinq enable to enable QinQ on an Ethernet interface. Use undo qinq enable to restore the default. Syntax qinq enable undo qinq enable Default QinQ is disabled on Ethernet interfaces.
Default The TPID value in CVLAN tags is 0x8100. Views System view Predefined user roles network-admin Parameters customer-tag: Sets the TPID value in the CVLAN tag. hex-value: Sets a hexadecimal TPID value. The value range is 0x0001 to 0xFFFF, excluding the reserved EtherType values listed in Table 27.
undo qinq ethernet-type service-tag Default The TPID value in SVLAN tags is 0x8100. Views Layer 2 Ethernet interface view Predefined user roles network-admin Parameters service-tag: Sets the TPID value in the SVLAN tag. hex-value: Sets a hexadecimal TPID value. The value range is 0x0001 to 0xFFFF, excluding the reserved EtherType values listed in Table 27. Examples # Set the TPID value in the SVLAN tags to 0x9100 on GigabitEthernet 2/1/1.
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.
Asset tracking identifier : Unknown LLDP local-information of port 52[GigabitEthernet2/1/3]: Port ID type : Interface name Port ID : GigabitEthernet2/1/3 Port description : GigabitEthernet2/1/3 Interface LLDP agent nearest-bridge management address: Management address type : IPv4 Management address : 192.168.80.
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. • Service Bridge—The service bridge function is enabled. MED device class: • Connectivity device—Network device.
Field Description PSE pairs control ability Indicates whether the PSE-PD pair control is available. Power supply mode: Power pairs • Signal—Uses data pairs to supply power. • Spare—Uses spare pairs to supply power. Power class of the PD: Port power classification • • • • • Class 0. Class 1. Class 2. Class 3. Class 4. Power supply type: Power type • • • • Type 1 PD. Type 2 PD. Type 1 PSE. Type 2 PSE.
Field Description PoE power supply priority of PSE ports: Port PSE 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 that the local device receives from the neighboring devices.
Examples # Display the detailed LLDP information that the nearest bridge agents on all ports received from the neighboring devices.
display lldp neighbor-information verbose LLDP neighbor-information of port 1[GigabitEthernet2/1/1]: LLDP agent nearest-bridge: LLDP Neighbor index : 1 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 : GigabitEthernet2/1/1 Time to live : 121 Port description : GigabitEthernet2/1/1 Interface System name : Sysname System description : HP Comware Platform Software System capabilities sup
LLDP neighbor index : 1 ChassisID/subtype : 0023-89ed-6153/MAC address PortID/subtype : GigabitEthernet1/0/14/Interface name Capabilities : Bridge, Router, Customer Bridge # Display the brief LLDP information that all LLDP agents received from all neighboring devices in a list.
Field Description Capabilities supported on the neighboring device: System capabilities supported • • • • Bridge—Switching is supported. Router—Routing is supported. Customer Bridge—The customer bridge function is enabled. Service Bridge—The service bridge function is enabled. Capabilities enabled on the neighboring device: System capabilities enabled • Bridge—Switching is enabled. • Router—Routing is enabled. • Customer Bridge—The customer bridge function is enabled.
Field Description Power source: • When the power supply type is PSE, options are: Power source { Unknown—Unknown power supply. { Primary—Primary power supply. { Backup—Backup power supply. { Reserved. • When the power supply type is PD, options are: Power priority • • • • { Unknown—Unknown power supply. { PSE—PSE power supply. { Local—local power supply. { PSE and local—PSE and local power supplies. Unknown. Critical. High. Low. PD requested power value PD requested power in watts.
Parameters global: Displays the global LLDP statistics. 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 statistics 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.
The number of CDP frames discarded : 0 The number of CDP error frames : 0 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 fra
Syntax display lldp status [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ] Views Any view Predefined user roles network-admin network-operator 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 status information for all LLDP agents. nearest-bridge: Specifies nearest bridge agents.
Number of sent optional TLV : 12 Number of received unknown TLV : 5 LLDP agent nearest-nontpmr: Port status of LLDP : Enable Admin status : Tx_Rx Trap flag : No Polling interval : 0s Number of LLDP neighbors : 5 Number of MED neighbors : 2 Number of CDP neighbors : 0 Number of sent optional TLV : 12 Number of received unknown TLV : 5 LLDP agent nearest-customer: Port status of LLDP : Enable Admin status : Tx_Rx Trap flag : No Polling interval : 0s Number of LLDP neighbors : 5 Nu
Field Description Trap Flag Indicates whether trapping is enabled. Polling interval LLDP polling interval, which is 0 when LLDP polling is disabled. Number of neighbors Number of LLDP neighbors connecting to the port. Number of MED neighbors Number of MED neighbors connecting to the port. Number of CDP neighbors Number of CDP neighbors connecting to the port. Number of sent optional TLV Number of optional TLVs contained in an LLDP frame sent through the port.
System Capabilities TLV YES YES Management Address TLV YES YES Port VLAN ID TLV YES YES Port And Protocol VLAN ID TLV YES NO VLAN Name TLV YES NO Link Aggregation TLV YES NO Management VID TLV YES NO MAC-Physic TLV YES YES Power via MDI TLV YES YES Maximum Frame Size TLV YES YES IEEE 802.1 extend TLV: IEEE 802.
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 NO VLAN Name TLV YES NO Link Aggregation TLV YES YES Management VID TLV YES NO MAC-Physic TLV YES NO Power via MDI TLV YES NO Maximum Frame Size TLV YES NO 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. Inventory TLVs: Inventory TLV • • • • • • • Hardware Revision TLV. Firmware Revision TLV. Software Revision TLV. Serial Number TLV. Manufacturer Name TLV. Model name TLV. Asset ID TLV. lldp admin-status Use lldp admin-status to specify the LLDP operating mode. Use undo lldp admin-status to restore the default.
nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents. disable: Specifies the Disable mode. A port in this mode cannot send or receive LLDP frames. rx: Specifies the Rx mode. A port in this mode can only receive LLDP frames. tx: Specifies the Tx mode. A port in this mode can only send LLDP frames. txrx: Specifies the TxRx mode. A port in this mode can send and receive LLDP frames.
interval: Sets the LLDP polling interval in the range of 1 to 30 seconds. Examples # Enable LLDP polling and set the polling interval to 30 seconds for the nearest customer bridge agents on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] lldp agent nearest-customer check-change-interval 30 lldp compliance admin-status cdp Use lldp compliance admin-status cdp to configure the operating mode of CDP-compatible LLDP.
lldp compliance cdp Use lldp compliance cdp to enable CDP compatibility globally. Use undo lldp compliance cdp to restore the default. Syntax lldp compliance cdp undo lldp compliance cdp Default CDP compatibility is globally disabled. Views System view Predefined user roles network-admin Usage guidelines The maximum TTL that CDP allows is 255 seconds.
Examples # Disable LLDP on GigabitEthernet 2/1/1. system-view [Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] undo lldp enable Related commands lldp global enable lldp encapsulation snap Use lldp encapsulation snap to configure the encapsulation format for LLDP frames as SNAP. Use undo lldp encapsulation to restore the default.
[Sysname] interface gigabitethernet 2/1/1 [Sysname-GigabitEthernet2/1/1] lldp encapsulation snap lldp fast-count Use lldp fast-count to set the number of LLDP frames sent each time fast LLDP frame transmission is triggered. Use undo lldp fast-count to restore the default. Syntax lldp fast-count count undo lldp fast-count Default The number is 4.
Examples # Disable LLDP globally. system-view [Sysname] undo lldp global enable Related commands lldp enable lldp hold-multiplier Use lldp hold-multiplier to set the TTL multiplier. 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 Predefined user roles network-admin Parameters value: Sets the TTL multiplier in the range of 2 to 10.
Use undo lldp management-address-format to restore the default.
undo lldp max-credit Default The token bucket size for sending LLDP frames is 5. Views System view Predefined user roles network-admin Parameters credit-value: Specifies the token bucket size for sending LLDP frames, in the range of 1 to 100. Examples # Set the token bucket size for sending LLDP frames to 10. system-view [Sysname] lldp max-credit 10 lldp mode Use lldp mode to configure LLDP to operate in service bridge mode. Use undo lldp mode to restore the default.
Examples # Configure LLDP to operate in service bridge mode. system-view [Sysname] lldp mode service-bridge Related commands lldp global enable lldp notification med-topology-change enable Use lldp notification med-topology-change enable to enable LLDP-MED trapping. Use undo lldp notification med-topology-change enable to disable LLDP-MED trapping.
Default LLDP trapping is disabled on ports. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, Layer 3 aggregate 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 enables LLDP trapping for nearest bridge agents. nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
lldp timer notification-interval Use lldp timer notification-interval to set the LLDP trap and LLDP-MED trap transmission interval. Use undo lldp timer notification-interval to restore the default. Syntax lldp timer notification-interval interval undo lldp timer notification-interval Default The LLDP trap and LLDP-MED trap transmission interval are both 30 seconds.
lldp timer tx-interval Use lldp timer tx-interval to set the LLDP frame transmission interval. Use undo lldp timer tx-interval to restore the default. Syntax lldp timer tx-interval interval undo lldp timer tx-interval Default The LLDP frame transmission interval is 30 seconds. Views System view Predefined user roles network-admin Parameters interval: Sets the LLDP frame transmission interval in the range of 5 to 32768 seconds. Examples # Set the LLDP frame transmission interval to 20 seconds.
power-over-ethernet | location-id { civic-address ca-value }&<1-10> | elin-address tel-number } } } device-type country-code { ca-type • lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ip-address ] } | dot1-tlv { all | link-aggregation } } • undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-addre
nearest-customer: Specifies nearest customer bridge agents. nearest-nontpmr: Specifies nearest non-TPMR bridge agents. all: Advertises all TLVs of a specific type. • • Enables the interface to advertise the following TLVs: { All basic LLDP TLVs if the all keyword is specified for basic-tlv. { All IEEE 802.1 organizationally specific LLDP TLVs if the all keyword is specified for dot1-tlv. { All IEEE 802.3 organizationally specific LLDP TLVs if the all keyword is specified for dot3-tlv.
power: Advertises power in MDI TLVs and power stateful control TLVs. med-tlv: Advertises LLDP-MED TLVs. capability: Advertises LLDP-MED capabilities TLVs. inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID. location-id: Advertises location identification TLVs. civic-address: Inserts the normal address information about the network device in location identification TLVs .
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. Represents a mesh access point.
Index ABCDILMNPQRSVW display stp region-configuration,19 A display stp root,20 active region-configuration,3 display stp tc,20 B display vlan,64 bandwidth,9 display vlan-group,77 bandwidth,59 Documents,117 C I check region-configuration,4 instance,22 interface route-aggregation,22 D interface vlan-interface,66 default,9 default,59 L description,10 lacp mode,23 description,60 lacp period short,24 display interface,11 lacp system-priority,24 display interface vlan-interface,61 link-a
lldp timer notification-interval,112 shutdown,32 lldp timer reinit-delay,112 stp bpdu-protection,25 lldp timer tx-interval,113 stp bridge-diameter,26 lldp tlv-enable,113 stp compliance,27 loopback-detection action,55 stp config-digest-snooping,28 loopback-detection enable,55 stp cost,28 loopback-detection global action,56 stp edged-port,30 loopback-detection global enable,57 stp enable,30 loopback-detection interval-time,58 stp global config-digest-snooping,31 M stp global enable,32 stp g
122