HP 12500 Routing Switch Series Layer 2 - LAN Switching Command Reference Part number: 5998-3424 Software version: 12500-CMW710-R7128 Document version: 6W710-20121130...
Page 2
The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.
MAC address table commands The MAC address table contains only Layer 2 Ethernet interfaces and Layer 2 aggregate interfaces. This document covers the configuration of unicast MAC address entries, including static, dynamic, blackhole, and multiport unicast MAC address entries. For more information about MAC address table configuration in VPLS, see MPLS Configuration Guide.
If you execute this command without specifying any parameters, it displays all MAC address entries. Examples # Display MAC address entries for VLAN 100. <Sysname> display mac-address vlan 100 MAC Address VLAN ID State Port/NickName Aging 0001-0101-0101 Multiport GE3/0/1 GE3/0/2 0033-0033-0033 Blackhole 0000-0000-0002...
Predefined user roles network-admin network-operator mdc-admin mdc-operator Examples # Display the aging timer for dynamic MAC address entries. <Sysname> display mac-address aging-time MAC address aging time: 300s. Related commands mac-address timer display mac-address mac-learning Use display mac-address mac-learning to verify whether MAC address learning has been enabled on interfaces.
Table 2 Command output Field Description Global MAC address learning status: • Global MAC address learning status Enabled. • Disabled. MAC address learning status of an interface: Learning Status • Enabled. • Disabled. Related commands mac-address mac-learning enable mac-address (interface view) Use mac-address to add or modify a MAC address entry on a specified interface.
The multiport unicast MAC address entries on an Ethernet interface may not take effect after the Ethernet interface joins an aggregate group. Therefore, HP recommends configuring multiport unicast MAC address entries on aggregate interfaces in Layer 2 aggregate interface view.
Layer 3—IP Services Configuration Guide. The multiport unicast MAC entries on an Ethernet interface may not take effect after the Ethernet interface joins an aggregate group. Therefore, HP recommends configuring multiport unicast MAC address entries on aggregate interfaces in Layer 2 aggregate interface view.
undo mac-address mac-learning enable Default MAC address learning is enabled. Views Layer 2 Ethernet interface view, VLAN view, Layer 2 aggregate interface view Predefined user roles network-admin mdc-admin Usage guidelines To prevent the MAC address table from becoming saturated, you can disable MAC address learning. For example, a number of frames with different source MAC addresses reaching a device can affect the MAC address table update.
Syntax mac-address max-mac-count count undo mac-address max-mac-count Default The maximum number of MAC addresses that can be learned on an interface varies with the card model. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin mdc-admin Parameters...
Views VLAN view Predefined user roles network-admin mdc-admin Parameters count: Sets the maximum number of MAC addresses that can be learned on a VLAN. The value range is 0 to 1048576. When the argument takes 0, the VLAN is not allowed to learn MAC addresses.
mdc-admin Examples # Configure GigabitEthernet 3/0/1 to learn up to 600 MAC address entries. Disable the device from forwarding frames with unknown source MAC addresses after the number of learned MAC addresses reaches the upper limit. <Sysname> system-view [Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] mac-address max-mac-count 600 [Sysname-GigabitEthernet3/0/1] undo mac-address max-mac-count enable-forwarding Related commands...
Related commands mac-address • mac-address max-mac-count (VLAN view) • mac-address timer Use mac-address timer to configure the aging timer for dynamic MAC address entries. Use undo mac-address timer to restore the default. Syntax mac-address timer { aging seconds | no-aging } undo mac-address timer Default The aging timer is 300 seconds.
Ethernet link aggregation commands The device does not support Layer 3 Ethernet interfaces/subinterfaces or Layer 3 aggregate interfaces/subinterfaces when the system is operating in standard mode. For information about commands for system operating modes, see Fundamentals Command Reference. When the device operating in IRF mode is enabled with enhanced IRF mode, it does not support creating Layer 3 Ethernet interfaces/subinterfaces or Layer 3 aggregate interfaces/subinterfaces.
Syntax description text undo description Default The description of an interface is the interface-name plus Interface. For example, the default description of Bridge-Aggregation1 is Bridge-Aggregation1 Interface. Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Predefined user roles network-admin...
Page 20
brief: Displays brief interface information. If you do not specify this keyword, this command displays detailed interface information. description: Displays all of the interface description. Without this keyword, this command displays only the first 27 characters of a description if the description contains more than 27 characters. Usage guidelines If neither bridge-aggregation nor route-aggregation is specified, this command displays information about all interfaces.
Page 21
Internet protocol processing: disabled IP Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-c618 IPV6 Packet Frame Type:PKTFMT_ETHNT_2, Hardware Address: 00e0-fc00-c618 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 2 aggregate interface Bridge-Aggregation 1.
Page 22
Field Description Unknown-speed mode, unknown-duplex The interface speed and duplex mode are unknown. mode PVID Port VLAN ID (PVID). Port link-type Port link type: access, trunk, or hybrid. VLAN whose packets are sent out of this interface with a Tagged Vlan tag.
Field Description If the network layer protocol state of an interface is shown as UP, but its link is an on-demand link or not Protocol: (s) - spoofing present, its protocol attribute includes the spoofing flag (an s in parentheses). Interface Abbreviated interface name.
Field Description Default link-aggregation load sharing criteria for MPLS traffic. In MPLS traffic : mpls-label1, this sample output, the criteria are the Layer 1 through Layer 3 mpls-label2, mpls-label3 MPLS labels of packets. User-configured link-aggregation load sharing criteria. In this destination-mac address, source-mac sample output, the criteria are the source and destination MAC address...
Page 26
# Display detailed link aggregation information for GigabitEthernet 3/0/2, which is a member port of a dynamic aggregation group. <Sysname> display link-aggregation member-port GigabitEthernet 3/0/2 Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired GigabitEthernet3/0/2: Aggregate Interface: Bridge-Aggregation10...
Field Description Flag LACP protocol state flag. Remote Information about the remote end. Remote end system ID, comprising the system LACP priority and the system System ID MAC address. Received LACP Packets Total number of LACP packets received. Illegal Total number of illegal packets. Sent LACP Packets Total number of LACP packets sent.
Table 7 Command output Field Description Aggregate interface type: Aggregate Interface Type • BAGG—Layer 2 aggregate interface. • RAGG—Layer 3 aggregate interface. Aggregation group type: • Aggregation Mode S—Static link aggregation. • D—Dynamic aggregation. Load-sharing type: Loadsharing Type • Shar—Load sharing. •...
Page 29
interface-number: Specifies an existing aggregate interface by its number. Usage guidelines If you specify only bridge-aggregation or route-aggregation, this command displays information about all Layer 2 or Layer 3 aggregation groups. If no aggregate interface type is specified, this command displays information about all aggregation groups.
Page 30
GE5/0/2 32768 GE5/0/3 32768 GE5/0/4 32768 Table 8 Command output Field Description Load-sharing type: • Loadsharing Type Shar—Load sharing. • NonS—Non-load sharing. Port Status Port state: Selected or Unselected. LACP state flags. This field is 1 byte long, represented by ABCDEFGH from the least significant bit to the most significant bit.
Field Description Information about the remote end: • Actor—Port type and number of the local end. • Partner—Port index of the remote end. • Remote Priority—Port priority of the remote end. • Oper-Key—Operational key of the remote port. • System ID—System ID of the remote end. •...
undo lacp period Default The LACP timeout interval is the long timeout interval (90 seconds). Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view Predefined user roles network-admin mdc-admin Usage guidelines If you configure the short timeout interval, the peer sends LACPDUs quickly (one LACPDU per second);...
Examples # Set the system LACP priority to 64. <Sysname> system-view [Sysname] lacp system-priority 64 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. Syntax link-aggregation global load-sharing mode { destination-ip | destination-mac | destination-port | ingress-port | mpls-label1 | mpls-label2 | mpls-label3 | source-ip | source-mac | source-port } *...
Examples # Configure the destination MAC address as the global link-aggregation load sharing criterion. <Sysname> system-view [Sysname] link-aggregation global load-sharing mode destination-mac link-aggregation irf-enhanced Use link-aggregation irf-enhanced to enhance the Selected port capacity for link aggregation in IRF mode. Use undo link-aggregation irf-enhanced to restore the default. Syntax link-aggregation irf-enhanced undo link-aggregation irf-enhanced...
Syntax link-aggregation mode dynamic undo link-aggregation mode Default An aggregation group operates in static aggregation mode. Views Layer 2 aggregate interface view, Layer 3 aggregate interface view Predefined user roles network-admin mdc-admin Examples # Configure the aggregation group that corresponds to Bridge-Aggregation 1 to operate in dynamic aggregation mode.
# Set the port priority of Layer 3 Ethernet interface GigabitEthernet 3/0/2 to 64. <Sysname> system-view [Sysname] interface GigabitEthernet 3/0/2 [Sysname-GigabitEthernet3/0/2] link-aggregation port-priority 64 Related commands lacp system-priority link-aggregation selected-port maximum Use link-aggregation selected-port maximum to configure the maximum number of Selected ports allowed in the aggregation group.
<Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] link-aggregation selected-port maximum 5 Related commands link-aggregation selected-port minimum link-aggregation selected-port minimum Use link-aggregation selected-port minimum to configure the minimum number of Selected ports in the aggregation group. Use undo link-aggregation selected-port minimum to restore the default setting. Syntax link-aggregation selected-port minimum number undo link-aggregation selected-port minimum...
Use undo mtu to restore the default setting. Syntax mtu size undo mtu Default The MTU for Layer 3 aggregate interfaces and subinterfaces is 1500 bytes. Views Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Predefined user roles network-admin mdc-admin Parameters...
Parameters number: Specifies the number of the aggregate interface that corresponds to an aggregation group, in the range of 1 to 1024. The switch supports a maximum of 240 aggregation groups. Usage guidelines A Layer 2 Ethernet interface can be assigned to a Layer 2 aggregation group only, and a Layer 3 Ethernet interface can be assigned to a Layer 3 aggregation group only.
The bridge-aggregation or route-aggregation keyword becomes available only after you create Layer 2 or Layer 3 aggregate interfaces on the device. Examples # Clear the statistics for Layer 2 aggregate interface Bridge-Aggregation 1. <Sysname> 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.
Page 42
Predefined user roles network-admin mdc-admin Usage guidelines Shutting down or bringing up a Layer 3 aggregate interface shuts down or brings up its subinterfaces. Shutting down or bringing up a Layer 3 aggregate subinterface does not affect its main interface. Examples # Bring up Layer 2 aggregate interface Bridge-Aggregation 1.
Port isolation commands display port-isolate group Use display port-isolate group to display port isolation group information. Syntax display port-isolate group [ group-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters group-number: Specifies an isolation group number in the range of 1 to 16. Examples # Display information about all isolation groups.
Related commands port-isolate enable port-isolate enable Use port-isolate enable to assign a port to an isolation group. Use undo port-isolate enable to remove a port from an isolation group. Syntax port-isolate enable group group-number undo port-isolate enable Default No ports are assigned to an isolation group. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles...
Page 45
Use undo port-isolate group to remove isolation groups. Syntax port-isolate group group-number undo port-isolate group { group-number | all } Default No isolation group exists. Views System view Predefined user roles network-admin mdc-admin Parameters group-number: Specifies an isolation group number in the range of 1 to 16. all: Deletes all isolation groups.
HP recommends that you use the check region-configuration command to determine whether the MST region configurations to be activated are correct. Run this command only when they are correct.
Page 47
VLAN-to-instance mapping entries in the MST region; and 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. Activate them only when they are correct.
display stp Use display stp to display the spanning tree status and statistics information. Based on the information, you can analyze and maintain the network topology or determine whether the spanning tree is working correctly. Syntax In standalone mode: display stp [ instance instance-list ] [ interface interface-list | slot slot-number ] [ brief ] In IRF mode: display stp [ instance instance-list ] [ interface interface-list | chassis chassis-number slot slot-number ] [ brief ]...
Page 49
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 MSTP mode: If you do not specify any MSTI or port, this command displays the spanning tree information •...
Page 50
Field Description Protection type on the port: • ROOT—Root guard. • LOOP—Loop guard. Protection • BPDU—BPDU guard. • NONE—No protection. # In MSTP mode, display the detailed spanning tree status and statistics of all MSTIs on all ports. <Sysname> display stp -------[CIST Global Info][Mode MSTP]------- Bridge ID : 32768.000f-e200-2200...
Page 51
RootPort ID : 0.0 Root type : Primary root Master bridge : 32768.000f-e23e-9ca4 Cost to master TC received # Display the spanning tree status and statistics when the spanning tree feature is disabled. <Sysname> display stp Protocol status : Disabled Protocol Std.
Page 52
Field Description Port role: • Alternate. • Backup. • Root. Port role • Designated. • Master. • Disabled. (Boundary) The port is a regional boundary port. Path cost of the port. The field in parentheses indicates the standard (legacy, dot1d-1998, or dot1t) used for port path cost calculation. Port cost(Legacy) •...
Field Description Major parameters for the port: • Hello—Hello timer. • MaxAge—Maximum age timer. Port times • FWDly—Forward delay timer. • MsgAge—Message age timer. • RemHop—Remaining hops. BPDU sent Statistics on sent BPDUs. BPDU received Statistics on received BPDUs. RegRoot ID/IRPC MSTI regional root/internal path cost.
mdc-admin mdc-operator Examples # In MSTP mode, display information about ports that are blocked by spanning tree protection functions. <Sysname> display stp abnormal-port MSTID Blocked Port Reason GigabitEthernet3/0/1 Root-Protected GigabitEthernet3/0/2 Loop-Protected GigabitEthernet3/0/3 Loopback-Protected Table 13 Command output Field Description MSTID MSTI of the blocked port.
Page 55
that you can specify up to 10 instances or instance ranges. The instance-id argument is in the range of 0 to 4094, and the value 0 represents the CIST. Usage guidelines In MSTP mode: If you do not specify any MSTI or port, this command displays the BPDU statistics of all MSTIs •...
Table 14 Command output Field Description Port Port name. Instance-Independent Statistics not related to any particular MSTI. Type Statistical item. Looped-back BPDUs BPDUs sent and then received by the same port. MAX-aged BPDUs BPDUs whose max age was exceeded. TCN sent TCN BPDUs sent.
Examples # Display information about ports that were shut down by spanning tree protection functions. <Sysname> display stp down-port Down Port Reason GigabitEthernet3/0/1 BPDU-Protected Table 15 Command output Field Description Down Port Name of a port that was shut down by the spanning tree protection functions. Reason that the port was shut down.
Page 58
historical port role calculation information on all cards of all member devices in the IRF fabric. (In IRF mode.) Usage guidelines In STP or RSTP mode, the displayed information is sorted by port role calculation time. In MSTP mode: If you do not specify any MSTI, this command displays the historical port role calculation •...
Format selector Region name : hello Revision level Configuration digest : 0x5f762d9a46311effb7a488a3267fca9f Instance VLANs Mapped 21 to 4094 1 to 10 11 to 20 Table 18 Command output Field Description Format selector that is defined by the spanning tree protocol. The default Format selector value is 0, and the selector cannot be configured.
Table 19 Command output Field Description External path cost. The device automatically calculates the default path cost of a ExtPathCost port. Or, you can use the stp cost command to configure the path cost of a port. Internal path cost. The device automatically calculates the default path cost of a IntPathCost port.
Usage guidelines In STP or RSTP mode, the displayed information is sorted by port name. In MSTP mode: If you do not specify any MSTI, this command displays the statistics of TC/TCN BPDUs that are • received and sent by all ports in all MSTIs. The displayed information is sorted by instance ID and by port name in each MSTI.
Predefined user roles network-admin mdc-admin Parameters instance-id: Specifies an MSTI ID. The minimum value is 0, representing the CIST, and the maximum value is 4094. vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>, where the vlan-id argument represents the VLAN ID in the range of 1 to 4094, and &<1-10>...
Views MST region view Predefined user roles network-admin mdc-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.
interface-number ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 ports or port ranges. If you don't specify this option, this command clears the spanning tree-related statistics information on all ports. Examples # Clear the spanning tree-related statistics on ports GigabitEthernet 3/0/1 and GigabitEthernet 3/0/3.
mdc-admin Parameters diameter: Specifies the switched network diameter in the range of 2 to 7. Usage guidelines An appropriate setting of hello time, forward delay, and max age can speed up network convergence. The values of these timers are related to the network size, and you can set the timers by setting the network diameter.
legacy: Configures the ports to receive and send only compatible-format MSTP BPDUs. Usage guidelines When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. When the setting is configured in Layer 2 aggregate interface view, it takes effect on only the aggregate interface.
[Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] stp config-digest-snooping [Sysname-GigabitEthernet3/0/1] quit [Sysname] stp global config-digest-snooping Related commands display stp • stp global config-digest-snooping • stp cost Use stp cost to set the path cost of the port or ports. Use undo stp cost to restore the default. Syntax stp [ instance instance-list ] cost cost undo stp [ instance instance-list ] cost...
When the network topology changes, an edge port does not cause a temporary loop. You can enable the port to transition to the forwarding state rapidly by configuring it as an edge port. HP recommends that you configure ports that directly connect to user terminals as edge ports.
When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface. When the setting is configured in Layer 2 aggregate interface view, it takes effect on only the aggregate interface. When the setting is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group.
When the setting is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group. Examples # In MSTP mode, disable the spanning tree feature on port GigabitEthernet 3/0/1. <Sysname> system-view [Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] undo stp enable Related commands...
stp global enable Use stp global enable to enable the spanning tree feature globally. Use undo stp global enable to disable the spanning tree feature globally. Syntax stp global enable undo stp global enable Default The spanning tree feature is enabled globally. Views System view Predefined user roles...
Usage guidelines If a port on a device running MSTP or RSTP connects to an STP device, this port automatically transitions to the STP mode when the port receives STP BPDUs. However, if the peer STP device is shut down or removed and the local device cannot detect the change, the local device cannot automatically transition back to the original mode.
Related commands display stp ignored-vlan stp loop-protection Use stp loop-protection to enable the loop guard function on the ports. Use undo stp loop-protection to disable the loop guard function on the ports. Syntax stp loop-protection undo stp loop-protection Default The loop guard function is disabled. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles...
Syntax stp max-hops hops undo stp max-hops Default The maximum number of hops for an MST region is 20. Views System view Predefined user roles network-admin mdc-admin Parameters hops: Sets the maximum hops in the range of 1 to 40. Examples # Set the maximum hops of the MST region to 35.
The device operates in STP, RSTP, or MSTP mode depending on the spanning tree mode setting. The stp mcheck command is effective only when the device operates in MSTP or RSTP mode. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface.
<Sysname> system-view [Sysname] stp mode stp Related commands stp enable • stp global enable • stp global mcheck • stp mcheck • stp no-agreement-check Use stp no-agreement-check to enable No Agreement Check on the ports. Use undo stp no-agreement-check to disable No Agreement Check on the ports. Syntax stp no-agreement-check undo stp no-agreement-check...
Syntax stp pathcost-standard { dot1d-1998 | dot1t | legacy } undo stp pathcost-standard Default The standard used by the device is legacy. Views System view Predefined user roles network-admin mdc-admin Parameters dot1d-1998: Configures 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, which lets the device automatically detect the port link type.
Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin mdc-admin Parameters instance instance-list: Sets the priority of the ports in the MSTIs that are specified by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges.
Predefined user roles network-admin mdc-admin Parameters all: Specifies all MSTIs. instance instance-list: Specifies the MSTIs by an instance list, in the format of instance-list = { instance-id [ to instance-id ] }&<1-10>, where &<1-10> indicates that you can specify up to 10 instances or instance ranges.
Examples # In MSTP mode, set the device priority to 4096 in MSTI 1. <Sysname> system-view [Sysname] stp instance 1 priority 4096 stp region-configuration Use stp region-configuration to enter MST region view. Use undo stp region-configuration to restore the default MST region configurations. Syntax stp region-configuration undo stp region-configuration...
Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin mdc-admin Usage guidelines When port role restriction is enabled on a port, the port cannot become a root port. When the setting is configured in Layer 2 Ethernet interface view, it takes effect on only that interface.
Usage guidelines Once you specify the device as the root bridge, you cannot change the priority of the device. Examples # In MSTP mode, specify the device as the root bridge of MSTI 1. <Sysname> system-view [Sysname] stp instance 1 root primary Related commands stp priority •...
stp root primary • stp root-protection Use stp root-protection to enable the root guard function on the ports. Use undo stp root-protection to disable the root guard function on the ports. Syntax stp root-protection undo stp root-protection Default The root guard function is disabled. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles...
undo stp tc-protection Default The TC-BPDU attack guard function is enabled. Views System view Predefined user roles network-admin mdc-admin 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 within a certain interval (every 10 seconds). For TC-BPDUs received that exceed the limit, the device performs a forwarding address entry flush when the interval elapses.
HP recommends not setting the forward delay with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let the spanning tree protocols automatically calculate the optimal settings for the forward delay timer.
HP recommends not setting the hello time with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let the spanning tree protocols automatically calculate the optimal settings for the hello timer.
The max age timer is ineffective for MSTIs. HP recommends not setting the max age timer with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let the spanning tree protocols automatically calculate the optimal settings for the max age timer.
You can avoid such unwanted spanning tree calculations by lengthening the timeout interval (by setting the timeout factor to 4 or more), thus saving network resources. HP recommends that you set the timeout factor to 5, 6, or 7 for a stable network.
When the setting is configured in Layer 2 aggregate interface view, it takes effect on only the aggregate interface. When the setting is configured on a member port in an aggregation group, it takes effect only after the port leaves the aggregation group. Examples # Set the maximum transmission rate of port GigabitEthernet 3/0/1 to 5.
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 mdc-admin mdc-operator Example # Display the loop detection configuration and status. <Sysname> display loopback-detection Loopback detection is enabled.
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, Layer 2 aggregate interface view Predefined user roles network-admin mdc-admin Parameters shutdown: Enables the shutdown mode.
Parameters vlan-list: Specifies a VLAN list, in the format of { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id represents the VLAN ID in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ] parameters. all: Specifies all existing VLANs.
Example # Set the global loop protection action to shutdown. <Sysname> system-view [System] loopback-detection global action shutdown Related commands display loopback-detection • loopback-detection action • loopback-detection global enable Use loopback-detection global enable to enable loop detection globally. Use undo loopback-detection global enable to disable loop detection globally. Syntax loopback-detection global enable vlan { vlan-list | all } undo loopback-detection global enable vlan { vlan-list | all }...
loopback-detection interval-time Use loopback-detection interval-time to set the loop detection interval. Use undo loopback-detection interval-time to restore the default. Syntax loopback-detection interval-time interval undo loopback-detection interval-time Default The loop detection interval is 30 seconds. Views System view Predefined user roles network-admin mdc-admin Parameters...
VLAN commands Basic VLAN commands default Use default to restore the default settings for a VLAN interface. Syntax default Views VLAN interface view Predefined user roles network-admin mdc-admin Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network.
Default For a VLAN, the description is VLAN vlan-id, which specifies the ID of the VLAN. For example, the default description of VLAN 100 is VLAN 0100. For a VLAN interface, the description is the name of the interface. For example, Vlan-interface1 Interface.
Page 102
Syntax display interface vlan-interface [ vlan-interface-id ] [ brief [ description ] ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters vlan-interface-id: 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.
Page 103
Table 22 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. • DOWN—The administrative state of the VLAN interface is Vlan-interface2 current state up, but its physical state is down.
Field Description Physical link state of the interface: • UP—The link is up. Link • ADM—The link has been administratively shut down. To recover its physical state, run the undo shutdown command. Protocol connection state of the interface: • Protocol •...
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 the specified VLAN interface. Syntax interface vlan-interface vlan-interface-id undo interface vlan-interface vlan-interface-id Views System view Predefined user roles...
Predefined user roles network-admin mdc-admin Parameters size: Sets the MTU in bytes, which is in the range of 64 to 9198. Usage guidelines If both the mtu command and the ip mtu command are supported and configured on the VLAN interface, the MTU set by using the ip mtu command is used for fragmenting packets.
Usage guidelines Some servers can send IDs or names of the issued VLANs to the switch. You can use VLAN names, rather than VLAN IDs, to distinguish a large number of VLANs. Examples # Configure the name of VLAN 2 as test vlan. <Sysname>...
Syntax shutdown undo shutdown Default A VLAN interface is manually shut down. After you cancel the action of manually shutting down a VLAN interface, the VLAN interface is up if one or more ports in the VLAN is up, and it goes down if all ports in the VLAN go down.
Default VLAN 1 (the default VLAN) exists. Views System view Predefined user roles network-admin mdc-admin Parameters vlan-id1, vlan-id2: Specifies a VLAN ID in the range of 1 to 4094. vlan-id1 to vlan-id2: Specifies a VLAN range. The vlan-id1 and vlan-id2 arguments specify VLAN IDs and are in the range of 1 to 4094.
Views VLAN view Predefined user roles network-admin mdc-admin Parameters interface-list: Specifies an interface list, in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-10>, where interface-type interface-number represents the interface type and interface number, and &<1-10> indicates that you can specify up to 10 interface-type interface-number [ to interface-type interface-number ] parameters.
PVID on the port is not affected. HP recommends that you set the same PVID for the local and remote hybrid ports. You must configure the hybrid port to allow and forward packets from the PVID by using the port hybrid vlan command.
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface • and its aggregation member ports. 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.
untagged: Configures the ports to send the packets of the specified VLANs after removing VLAN tags. Usage guidelines A hybrid port can carry multiple VLANs. If you execute the port hybrid vlan command multiple times, the VLANs that the hybrid port allows are the VLANs that are specified by vlan-list in each execution.
Usage guidelines To change the link type of a port from trunk to hybrid or vice versa, first set the link type to access. The configuration made in Layer 2 Ethernet interface view applies only to the port. • The configuration made in Layer 2 aggregate interface view applies to the aggregate interface •...
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface • and its aggregation member ports. 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.
Page 118
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 trunk port GigabitEthernet 3/0/1, and assign GigabitEthernet 3/0/1 to VLAN 100.
QinQ commands This document uses the following terms: CVLAN—Customer network VLANs, also called inner VLANs, refer to the VLANs that a • customer uses on the private network. SVLAN—Service provider network VLANs, also called outer VLANs, refer to the VLANs that a •...
[Sysname-GigabitEthernet3/0/1] quit [Sysname] interface GigabitEthernet 3/0/3 [Sysname-GigabitEthernet3/0/3] qinq enable [Sysname-GigabitEthernet3/0/3] display qinq Interface GigabitEthernet3/0/1 GigabitEthernet3/0/3 Table 25 Command output Field Description Interface Interface name. GigabitEthernet3/0/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.
Page 121
Syntax qinq ethernet-type service-tag hex-value undo qinq ethernet-type service-tag Default The TPID value in SVLAN tags is 0x8100. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view Predefined user roles network-admin mdc-admin Parameters service-tag: Sets the TPID value in the SVLAN tag. hex-value: Sets a hexadecimal TPID value, which is in the range of 0x0001 to 0xFFFF and excludes the common protocol type values listed in Table...
Dot1p : Inner Outer VLAN : 100 Inner VLAN Table 27 Command output Field Description Interface Name of the interface with VLAN mapping enabled. The action type is Nest, which indicates the action of adding VLAN Action tags to packets. 802.1p priority in the outer VLAN tag of packets.
Global LLDP local-information: Chassis ID : b8af-6730-3200 System name : Sysname System description : HP Comware Software. HP 12508 Product Version 12500-CMW71 0-R7127. Copyright (c) 2010-2012 Hewlett-Packard Developm ent Company, L.P. System capabilities supported : Bridge, Router System capabilities enabled...
SoftwareRev : 7.1.034 R7127 SerialNum : Unknown Manufacturer name : HP Model name : 12508 Asset tracking identifier : Unknown Table 28 Command output Field Description Global LLDP local-information Global LLDP information to be sent. Chassis ID Bridge MAC address of the device.
Page 128
Time to live : 120 Port description : GigabitEthernet3/0/1 Interface System name : Sysname 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.55...
Page 129
Sequence number Acknowledge number : 0 DCBX ETS subTLV info: Local priority Percentage DCBX PFC subTLV info: P0-0 P1-0 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0 DCBX APP subTLV info: CoS map: 0x10 Auto-negotiation supported : Yes Auto-negotiation enabled : Yes OperMau : Speed(1000)/Duplex(Full) Power port class...
Page 130
Manufacturer name : Unknown Model name : Unknown Asset tracking identifier : Unknown Unknown basic TLV: TLV type : 23 TLV information : 0x00140014 Unknown organizationally-defined TLV: TLV OUI : 00-12-bb TLV subtype : 21 Index TLV information : 0x556e6b6e 6f776e CDP neighbor-information of port 1[GigabitEthernet3/0/1]: CDP neighbor index Chassis ID...
Page 131
System name Local interface Chassis ID Port ID System1 GE3/0/1 000f-e25d-ee91 GigabitEthernet3/0/5 System2 GE3/0/2 000f-e25d-ee92 GigabitEthernet3/0/6 System3 GE3/0/3 000f-e25d-ee93 GigabitEthernet3/0/7 Table 29 Command output Field Description LLDP neighbor-information of port 1 LLDP information received through port 1. Time when LLDP information about a neighboring device was last Update time updated.
Page 132
Field Description Capabilities supported on the neighboring device: • Repeater—Signal repeating is supported. • Bridge—Switching is supported. • WlanAccessPoint—The neighboring device can serve as a wireless access point. • Router—Routing is supported. System capabilities supported • Telephone—The neighboring device can serve as a telephone. •...
Page 133
Field Description Application protocol–to-CoS mapping. DCBX APP subTLV info This field is not displayed, and only the following CoS map information is displayed in DCBX Rev 1.00. Application protocol number type: • ID type APP protocol. • TCP or UDP port. Protocol ID Application protocol number.
Page 134
Field Description Media policy type: • unknown. • voice. • voiceSignaling. • guestVoice. Media policy type • guestVoiceSignaling. • softPhoneVoice. • videoconferencing. • streamingVideo. • videoSignaling. Unknown policy Indicates whether the media policy is unknown. VLAN tagged Indicates whether packets of the media VLAN are tagged. Media policy VLAN ID ID of the media VLAN.
Field Description HardwareRev Hardware version. FirmwareRev Firmware version. SoftwareRev Software version. SerialNum Serial number. Manufacturer name Device manufacturer. Model name Device model. TLV type Unknown basic TLV type. TLV information Information contained in the unknown basic TLV type. Unknown organizationally-defined Unknown organizationally specific TLV.
mdc-operator Parameters global: Displays the global LLDP statistics. interface interface-type interface-number: Specifies a port by its type and number. Usage guidelines If no keyword or argument is specified, this command displays the global LLDP statistics and the LLDP statistics of all ports. Examples # Display the global LLDP statistics and the LLDP statistics of all ports.
Page 137
Syntax display lldp status [ interface interface-type interface-number ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator Parameters interface interface-type interface-number: Specifies a port by its type and number. Usage guidelines If no port is specified, this command displays the global LLDP status and the LLDP status information of all ports.
Field Description LLDP neighbor information last Time when the neighbor information was last updated. changed time Transmit interval LLDPDU transmit interval. Hold multiplier TTL multiplier. Reinit delay LLDP re-initialization delay. Transmit delay LLDPDU transmit delay. Trap interval Trap transmit interval. Number of LLDPDUs sent each time fast LLDPDU transmission is Fast start times triggered.
Page 139
Parameters interface interface-type interface-number: Specifies a port by its type and number. Usage guidelines If no port is specified, this command displays the types of advertisable optional TLVs of all ports. Examples # Display the types of advertisable optional LLDP TLVs of interface GigabitEthernet 3/0/1. <Sysname>...
Field Description IEEE 802.1 organizationally specific TLVs: • Port VLAN ID TLV. • IEEE 802.1 extended TLV Port and protocol VLAN ID TLV. • VLAN name TLV. • DCBX TLV (not supported). IEEE 802.3 organizationally specific TLVs: • MAC-Physic TLV. The switch cannot send this type of TLVs but can receive them.
Parameters disable: Specifies the disable mode, where CDP-compatible LLDP cannot receive or transmit CDP packets. txrx: Specifies the TxRx mode, where CDP-compatible LLDP can send and receive CDP packets. Usage guidelines For your device to work with Cisco IP phones, you must enable CDP-compatible LLDP globally and then configure CDP-compatible LLDP to operate in TxRx mode on the specified ports.
Related commands lldp hold-multiplier • lldp timer tx-interval • lldp enable Use lldp enable to enable LLDP on a port. Use undo lldp enable to disable LLDP on a port. Syntax lldp enable undo lldp enable Default LLDP is enabled on a port. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view Predefined user roles...
Predefined user roles network-admin mdc-admin Usage guidelines LLDP-CDP packets use only SNAP encapsulation. Examples # Configure the encapsulation format for LLDPDUs as SNAP on GigabitEthernet 3/0/1. <Sysname> system-view [Sysname] interface GigabitEthernet 3/0/1 [Sysname-GigabitEthernet3/0/1] lldp encapsulation snap lldp fast-count Use lldp fast-count to set the number of LLDPDUs sent each time fast LLDPDU transmission is triggered.
Use undo lldp global enable to disable LLDP globally. Syntax lldp global enable undo lldp global enable Default LLDP is globally disabled. Views System view Predefined user roles network-admin mdc-admin Usage guidelines LLDP takes effect only when LLDP is enabled both globally and on the port. Examples # Disable LLDP globally.
Usage guidelines The TTL TLV carried in an LLDPDU determines how long the device information carried in the LLDPDU can be saved on a recipient device. By setting the TTL multiplier, you can configure the TTL of locally sent LLDPDUs, which determines how long information about the local device can be saved on a neighboring device.
lldp timer notification-interval Use lldp timer notification-interval to set the LLDP trap transmit interval and LLDP-MED trap transmit interval. Use undo lldp timer notification-interval to restore the default. Syntax lldp timer notification-interval interval undo lldp timer notification-interval Default The LLDP trap transmit interval and LLDP-MED trap transmit interval are both 5 seconds. Views System view Predefined user roles...
Examples # Set the LLDP re-initialization delay to 4 seconds. <Sysname> system-view [Sysname] lldp timer reinit-delay 4 lldp timer tx-delay Use lldp timer tx-delay to set the LLDPDU transmit delay. Use undo lldp timer tx-delay to restore the default. Syntax lldp timer tx-delay delay undo lldp timer tx-delay Default...
Default The LLDPDU transmit interval is 30 seconds. Views System view Predefined user roles network-admin mdc-admin Parameters interval: Sets the LLDPDU transmit interval in the range of 5 to 32768 seconds. Usage guidelines It is a good practice to set the LLDPDU transmit interval to be no less than four times the LLDPDU transmit delay.
Page 152
vlan-name [ vlan-id ]: Advertises VLAN name TLVs. The vlan-id argument specifies a VLAN ID in the TLVs to be advertised, is in the range of 1 to 4094, and defaults to the lowest VLAN ID on the port. dot3-tlv: Advertises IEEE 802.3 organizationally specific LLDP TLVs. link-aggregation: Advertises link aggregation TLVs.
Index A C D I L M N P Q R S V display stp tc,56 display vlan,99 active region-configuration,41 display vlan translation,118 check region-configuration,41 instance,57 interface bridge-aggregation,26 interface route-aggregation,26 default,95 interface vlan-interface,101 default,13 description,95 description,13 lacp period short,27 display interface,14 lacp system-priority,28...