HP 6600/HSR6600 Routers Layer 2 - LAN Switching Command Reference Part number: 5998-1500 Software version: A6602-CMW520-R3103 A6600-CMW520-R3102-RPE A6600-CMW520-R3102-RSE HSR6602_MCP-CMW520-R3102 Document version: 6PW103-20130628
Legal and notice information © Copyright 2013 Hewlett-Packard Development Company, L.P. No part of this documentation may be reproduced or transmitted in any form or by any means without prior written consent of Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice.
Contents MAC address table configuration commands ··········································································································· 1 display mac-address ················································································································································ 1 display mac-address aging-time ····························································································································· 3 display mac-address mac-le
display stp abnormal-port ····································································································································· 49 display stp bpdu-statistics ····································································································································· 49 display stp down-port ············································································································································ 52 display stp histor
name ······································································································································································· 96 reset counters interface vlan-interface ················································································································· 97 shutdown ································································································································································ 97 vlan ·
garp timer leave ·················································································································································· 143 garp timer leaveall ·············································································································································· 144 gvrp ······································································································································································· 144
Index ········································································································································································ 188 v
MAC address table configuration commands The MAC address table can contain only Layer 2 Ethernet ports and Layer 2 aggregate interfaces. This document covers only the configuration of unicast MAC address table entries, including static, dynamic, and destination blackhole MAC address table entries. For more information about configuring static multicast MAC address table entries, see IP Multicast Configuration Guide.
Usage guidelines If you execute this command without specifying any parameters, it displays information of all MAC address entries on the device, including unicast MAC address entries and static multicast MAC address entries. If you execute this command using only the vlan keyword or the count keyword, or only these two keywords, it displays information of unicast MAC address entries and static multicast MAC address entries. Examples # Display the MAC address table entry for MAC address 000f-e201-0101.
display mac-address aging-time Use display mac-address aging-time to display the aging time of dynamic entries in the MAC address table. Syntax display mac-address aging-time [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Examples # Display the statistics of the MAC address table. display mac-address statistics MAC TYPE LEARNED USER-DEFINED SYSTEM-DEFINED IN-USE AVAILABLE Dynamic Unicast 0 0 0 0 Static Unicast 0 1 1 2 1024 Total Unicast 2 32768 Dynamic Multicast 0 0 0 0 Static Multicast 0 0 0 0 1024 Total Multicast 0 1024 Table 3 Command output Field Description MAC address type: MAC TYPE • • • • • • Dynamic Unicast. Static Unicast. Total Unicast. Dynamic Multicast.
Parameters dynamic: Specifies dynamic MAC address entries. These entries can age. static: Specifies static MAC address entries. They do not age, but you can add or remove them. mac-address: Specifies a MAC address in the format of H-H-H, where 0s at the beginning of each H (16-bit hexadecimal digit) can be omitted. For example, entering "f-e2-1" indicates that the MAC address is "000f-00e2-0001." vlan vlan-id: Specifies an existing VLAN to which the Ethernet interface belongs.
Views System view Default command level 2: System level Parameters blackhole: Specifies destination blackhole MAC address entries. These entries do not age, but you can add or remove them. The packets whose destination MAC addresses match destination blackhole MAC address entries are dropped. mac-address: Specifies a MAC address in the format of H-H-H, where 0s at the beginning of each H (16-bit hexadecimal digit) can be omitted.
Use undo mac-address mac-learning disable to enable MAC address learning. Depending on the view that you entered, you can disable it globally, on a Layer 2 Ethernet interface, on all ports in a port group, or on a VLAN. Syntax mac-address mac-learning disable undo mac-address mac-learning disable Default MAC address learning is enabled.
mac-address max-mac-count Use mac-address max-mac-count count to configure the maximum number of MAC addresses that can be learned on a port. Use undo mac-address max-mac-count to restore the default maximum number of MAC addresses that can be learned on an Ethernet port.
Views System view Default command level 2: System level Parameters aging seconds: Sets an aging timer for dynamic MAC address entries, in the range of 10 to 1000000 seconds. no-aging: Sets dynamic MAC address entries not to age. Usage guidelines Follow these guidelines to set the aging timer appropriately: • A long aging interval causes the MAC address table to retain outdated entries and fail to accommodate the most recent network changes.
MAC Information configuration commands NOTE: The MAC Information feature is available on only SAP modules that are operating in bridge mode. MAC Information applies only to Layer 2 Ethernet interfaces. mac-address information enable (interface view) Use mac-address information enable to enable MAC Information on the Layer 2 Ethernet interface. Use undo mac-address information enable to restore the default.
Syntax mac-address information enable undo mac-address information enable Default MAC Information is disabled globally. Views System view Default command level 2: System level Examples # Enable MAC Information globally. system-view [Sysname] mac-address information enable mac-address information interval Use mac-address information interval to set the interval for sending syslog or trap messages. Use undo mac-address information interval to restore the default.
Syntax mac-address information mode { syslog | trap } undo mac-address information mode Default Trap messages are sent to inform the remote network management device of MAC address changes. Views System view Default command level 2: System level Parameters syslog: Specifies that the device sends syslog messages to inform the remote network management device of MAC address changes. trap: Specifies that the device sends trap messages to inform the remote network management device of MAC address changes.
Ethernet link aggregation configuration commands Layer 2 aggregation groups are supported only on SAP modules operating in bridge mode. bandwidth Use bandwidth to set the expected bandwidth for an aggregate interface or subinterface. Use undo bandwidth to cancel the configuration.
Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you execute it on a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
Examples # Set the description of Layer 2 aggregate interface Bridge-Aggregation 1 to connect to the lab. system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] description connect to the lab display interface Use display interface to display aggregate interface information.
Examples # Display information about Layer 2 aggregate interface Bridge-Aggregation 1.
Type: A - access; T - trunk; H - hybrid Interface Link Speed Duplex Type PVID Description BAGG1 DOWN auto A A 1 # Display brief information about Layer 3 aggregate interface Route-Aggregation 1.
Field Description IP packet processing. Internet protocol processing Disabled indicates that IP packets cannot be processed. For an interface configured with an IP address, this field changes to Internet Address is. Output queue : (Urgent queuing : Size/Length/Discards) Output queue (current message number in the urgent queue/ maximum number of messages allowed in the urgent queue/number of discarded messages).
Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Parameters bridge-aggregation: Displays the load sharing criteria of the aggregation group corresponding to the specified Layer 2 aggregate interface. route-aggregation: Displays the load sharing criteria of the aggregation group corresponding to the specified Layer 3 aggregate interface. interface-number: Specifies an existing aggregate interface number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
destination-mac address, source-mac address Table 6 Command output Field Description Global link-aggregation load sharing criteria. Link-Aggregation Load-Sharing Mode • If you have not configured the global link-aggregation load sharing criteria, the default link-aggregation load sharing criteria for Layer 2 traffic and Layer 3 traffic are displayed. • If you have configured the global link-aggregation load sharing criteria, the configured ones are displayed.
Parameters interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number1 [ to interface-type interface-number2 ], where interface-type interface-number specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Port Priority: 32768 Oper-Key: 2 Flag: {ACDEF} Received LACP Packets: 5 packet(s) Illegal: 0 packet(s) Sent LACP Packets: 7 packet(s) Table 7 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—Whether LACP is enabled. 1 indicates enabled, and 0 indicates disabled.
Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Field Description Actor System ID Local system ID, which comprises the system LACP priority and the system MAC address. AGG Interface Type and number of the aggregate interface. AGG Mode Aggregation group type. Partner ID System ID of the partner, which comprises the system LACP priority and the system MAC address. Select Ports Total number of Selected ports. Unselect Ports Total number of Unselected ports. Share Type Load sharing type.
To display the information about all Layer 2 or Layer 3 aggregation groups, use the display link-aggregation verbose bridge-aggregation or display link-aggregation verbose route-aggregation command. To display the information about all aggregation groups, use the display link-aggregation verbose command. The bridge-aggregation or route-aggregation keyword is available only when you create Layer 2 or Layer 3 aggregate interfaces on the device.
GE4/0/21 U 32768 1 GE4/0/22 U 32768 1 GE4/0/23 U 63 1 Table 9 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 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—Whether LACP is enabled.
enable snmp trap updown Use enable snmp trap updown to enable linkUp/linkDown trap generation for the aggregate interface. Use undo enable snmp trap updown to disable linkUp/linkDown trap generation for the aggregate interface. Syntax enable snmp trap updown undo enable snmp trap updown Default LinkUp/linkDown trap generation is enabled for an aggregate interface.
Parameters interface-number: Specifies a Layer 2 aggregate interface number in the range of 1 to 128. Usage guidelines When you create a Layer 2 aggregate interface, a Layer 2 aggregation group with the same number is automatically created. If you remove the Layer 2 aggregate interface, you also remove the Layer 2 aggregation group, and any member ports will leave the aggregation group. Examples # Create Layer 2 aggregate interface Bridge-Aggregation 1 and enter its view.
lacp period short Use lacp period short to set the LACP timeout interval on a port to the short timeout interval (1 second). Use undo lacp period to restore the default setting. Syntax lacp period short undo lacp period Default The LACP timeout interval is the long timeout interval (30 seconds). Views Ethernet interface view Default command level 2: System level Examples # Set the LACP timeout interval on GigabitEthernet 4/0/1 to the short timeout interval (1 second).
link-aggregation load-sharing mode Use link-aggregation load-sharing mode to configure the global or group-specific link-aggregation load sharing criteria. Use undo link-aggregation load-sharing mode to restore the default setting. Syntax link-aggregation load-sharing mode { { destination-ip | destination-mac | source-ip | source-mac } * | per-packet } undo link-aggregation load-sharing mode Default The default of this command varies with device models.
link-aggregation mode Use link-aggregation mode dynamic to configure an aggregation group to operate in dynamic aggregation mode. Use undo link-aggregation mode to restore the default setting. Syntax link-aggregation mode dynamic undo link-aggregation mode Default An aggregation group operates in static aggregation mode.
Parameters port-priority: Specifies a port aggregation priority in the range of 0 to 65535. The smaller the value, the higher the port aggregation priority. Usage guidelines When the number of ports eligible for becoming Selected ports exceeds the maximum number of Selected ports allowed in an aggregation group, changing the aggregation priority of a port might affect the aggregation state of the ports in the aggregation group. Examples # Set the aggregation priority of port GigabitEthernet 4/0/1 to 64.
port link-aggregation group Use port link-aggregation group to assign the Ethernet interface to the specified aggregation group. Use undo port link-aggregation group to remove the Ethernet interface from the aggregation group to which it belongs. Syntax port link-aggregation group number undo port link-aggregation group Views Ethernet interface view Default command level 2: System level Parameters number: Specifies the number of the aggregate interface corresponding to an aggregation group.
Parameters bridge-aggregation: Clears statistics for Layer 2 aggregate interfaces. route-aggregation: Clears statistics for Layer 3 aggregate interfaces. interface-number: Specifies an existing aggregate interface number. Usage guidelines Before collecting statistics for a Layer 2 aggregate interface within a specific period, clear the existing statistics of the interface. • If no keyword or argument is specified, the command clears the statistics of all interfaces in the system.
service Use service to specify a card to process traffic for the interface. Use undo service to restore the default setting.
Use undo shutdown to bring up the aggregate interface or subinterface. Syntax shutdown undo shutdown Default Aggregate interfaces and subinterfaces are up. Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level Usage guidelines Shutting down or bringing up a Layer 3 aggregate interface also shuts down or brings up its subinterfaces.
Port isolation configuration commands The commands in this chapter are supported on SAP cards that are operating in bridge mode. display port-isolate group Use display port-isolate group to display port isolation group information. Syntax display port-isolate group [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
port-isolate enable Use port-isolate enable to assign a port to the isolation group (group 1). Use undo port-isolate enable to remove a port from the isolation group. Syntax port-isolate enable undo port-isolate enable Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view Default command level 2: System level Usage guidelines To assign Ethernet ports to the isolation group one by one, perform the command in Layer 2 Ethernet interface view.
[Sysname-GigabitEthernet4/0/1] quit [Sysname] interface gigabitethernet 4/0/2 [Sysname-GigabitEthernet4/0/2] port link-aggregation group 1 [Sysname-GigabitEthernet4/0/2] quit [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port-isolate enable 41
Spanning tree configuration commands The spanning tree commands are supported on SAP modules that are operating in bridge mode. active region-configuration Use active region-configuration to activate your MST region configuration. Syntax active region-configuration Views MST region view Default command level 2: System level Usage guidelines When you configure MST region-related parameters, MSTP launches a new spanning tree calculation process that might cause network topology instability.
Syntax check region-configuration Views MST region view Default command level 2: System level Usage guidelines Two or more spanning tree devices belong to the same MST region only if they are configured with the same format selector (0, which is not configurable), MST region name, MST region revision level, and the same VLAN-to-instance mapping entries in the MST region, and if they are connected by a physical link.
display stp Use display stp to display the spanning tree status and statistics information. Syntax display stp [ instance instance-id ] [ interface interface-list | slot slot-number ] [ brief ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters instance instance-id: Displays the status and statistics information of a specific MSTI. The value range for this argument is 0 to 31.
• If you specify some ports but not an MSTI, this command displays the spanning tree information of all MSTIs on the specified ports. The displayed information is sorted by MSTI ID and by port name in each MSTI. • If you specify both an MSTI ID and a port list, this command displays the spanning tree information on the specified ports in the specified MSTI. The displayed information is sorted by port name.
CIST Root/ERPC :0.00e0-fc0e-6554 / 200200 CIST RegRoot/IRPC :32768.000f-e200-2200 / 0 CIST RootPortId :128.48 BPDU-Protection :disabled Bridge ConfigDigest-Snooping :disabled TC or TCN received :2 Time since last TC :0 days 0h:5m:42s ----[Port1(GigabitEthernet4/0/1)][FORWARDING]---Port Protocol :enabled Port Role :CIST Designated Port Port Priority :128 Port Cost(Legacy) :Config=auto / Active=200 Desg. Bridge/Port :32768.000f-e200-2200 / 128.
Hello time(s) :2 Max hops :20 Table 13 Command output Field Description CIST Bridge CIST bridge ID, which comprises the device's priority in the CIST and its MAC address. For example, in output "32768.000f-e200-2200," the value preceding the dot is the device's priority in the CIST, and the value following the dot is the device's MAC address. Major parameters for the bridge: Bridge Times • • • • Hello—Hello timer. MaxAge—Max age timer. FwDly—Forward delay timer.
Field Description Transmit Limit Maximum number of packets sent within each hello time. Protection type on the port: Protection Type • • • • • Root—Root guard. Loop—Loop guard. BPDU—BPDU guard. BPDU/ROOT—BPDU guard and root guard. None—No protection. Format of the MST BPDUs that the port can send, which can be legacy or 802.1s. MST BPDU Format Port ConfigDigest-Snooping • Config—Configured value. • Active—Actual value. Status of Digest Snooping on the port.
display stp abnormal-port Use display stp abnormal-port to display information about ports blocked by spanning tree protection functions. Syntax display stp abnormal-port [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Views Any view Default command level 1: Monitor level Parameters interface interface-type interface-number: Displays the BPDU statistics on the specified port, where interface-type interface-number indicates the port type and number. instance instance-id: Displays the BPDU statistics of the specified MSTI on the specified port. The minimum value of instance-id is 0, representing the CIST. |: Filters command output by specifying a regular expression.
TCA received 2 Config sent 0 10:33:12 01/13/2010 Config received 0 RST sent 0 RST received 0 MST sent 4 10:33:11 01/13/2010 MST received 151 10:37:43 01/13/2010 Count Last Updated Instance 0: Type --------------------------- ---------- ----------------Timeout BPDUs 0 MAX-hoped BPDUs 0 TC detected 1 10:32:40 01/13/2010 TC sent 3 10:33:11 01/13/2010 TC received 0 Instance 1: Type Count Last Updated --------------------------- ---------- ----------------Timeout BPDUs 0 MA
Field Description TCN Received TCN BPDUs received. TCA Sent TCA BPDUs sent. TCA Received TCA BPDUs received. Config Sent Configuration BPDUs sent. Config Received Configuration BPDUs received. RST Sent RSTP BPDUs sent. RST Received RSTP BPDUs received. MST Sent MSTP BPDUs sent. MST Received MSTP BPDUs received. Instance Statistical information for a particular MSTI. Timeout BPDUs Expired BPDUs. Max-Hoped BPDUs BPDUs whose maximum hops were exceeded. TC Detected TC BPDUs detected.
GigabitEthernet4/0/1 BPDU-Protected GigabitEthernet4/0/2 Formatfrequency-Protected Table 16 Command output Field Description Down Port Name of a port shut down by the spanning tree protection functions. Reason the port was shut down: Reason • BPDU-Protected—BPDU guard function. • Formatfrequency-Protected—MSTP BPDU format frequent change protection function. display stp history Use display stp history to display the historical port role calculation information for the specified MSTI or all MSTIs.
Examples # In MSTP mode, display the historical port role calculation information for MSTI 2 on the card in slot 4. display stp instance 2 history slot 4 --------------- STP slot 4 history trace --------------------------------- Instance 2 --------------------- Port GigabitEthernet4/0/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.
Examples # In MSTP mode, display effective MST region configuration information. display stp region-configuration Oper Configuration Format selector :0 Region name :hello Revision level :0 Configuration digest :0x5f762d9a46311effb7a488a3267fca9f Instance Vlans Mapped 0 21 to 4094 1 1 to 10 2 11 to 20 Table 18 Command output Field Description Format selector Format selector defined by the spanning tree protocol. The default value is 0 and the selector cannot be configured.
include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # In MSTP mode, display the root bridge information of all spanning trees. display stp root MSTID 0 Root Bridge ID ExtPathCost IntPathCost Root Port 0.00e0-fc0e-6554 200200 0 GigabitEthernet4/0/1 Table 19 Command output Field Description ExtPathCost External path cost.
Usage guidelines In STP or RSTP mode, the displayed information is sorted by port name. In MSTP mode, follow these guidelines: • If you do not specify any MSTI, this command displays the statistics of TC/TCN BPDUs received and sent by all ports in all MSTIs. The displayed information is sorted by instance ID and by port name in each MSTI. • If you specify an MSTI, this command displays the statistics of TC/TCN BPDUs received and sent by all ports in the specified MSTI, in port name order.
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> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges. Usage guidelines If you specify no VLAN in the undo instance command, all VLANs mapped to the specified MSTI will be remapped to the CIST. You cannot map the same VLAN to different MSTIs.
Examples # Set the MST region name of the device to hello. system-view [Sysname] stp region-configuration [Sysname-mst-region] region-name hello Related commands • active region-configuration • check region-configuration • display stp region-configuration • instance • revision-level • vlan-mapping modulo reset stp Use reset stp to clear the MSTP statistics information.
Syntax revision-level level undo revision-level Default The MSTP revision level is 0. Views MST region view Default command level 2: System level Parameters level: Specifies an MSTP revision level in the range of 0 to 65535. Usage guidelines The MSTP revision level, the MST region name, and the VLAN-to-instance mapping table of a device determine the device's MST region.
Views System view Default command level 2: System level Examples # Enable the BPDU guard function. system-view [Sysname] stp bpdu-protection stp bridge-diameter Use stp bridge-diameter to specify the network diameter, the maximum possible number of stations between any two terminal devices on the switched network. Use undo stp bridge-diameter to restore the default. Syntax stp bridge-diameter diameter undo stp bridge-diameter Default The network diameter of the switched network is 7.
stp compliance Use stp compliance to configure the mode the specified ports will use to recognize and send MSTP BPDUs. Use undo stp compliance to restore the default. Syntax stp compliance { auto | dot1s | legacy } undo stp compliance Default A port automatically recognizes the formats of received MSTP packets and determines the formats of MSTP packets to be sent based on the recognized formats.
Default The feature is disabled by default. Views System view, Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines Configured in system view, the setting takes effect globally. Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group.
Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Parameters instance instance-id: Sets the path cost of the ports in a particular MSTI. The value range for this argument is 0 to 31. The value 0 represents the CIST. cost: Specifies the path cost of the port, with an effective range that depends on the path cost calculation standard adopted. • With the IEEE 802.
Use undo stp edged-port to restore the default. Syntax stp edged-port { enable | disable } undo stp edged-port Default All ports are non-edge ports. Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Parameters enable: Configures one or more ports as edge ports. disable: Configures one or more ports as non-edge ports. Usage guidelines Configured in Ethernet interface view, the setting takes effect only on the interface.
Syntax stp enable undo stp enable Default When the spanning tree feature is enabled globally, the spanning tree feature is enabled on all ports. Views System view, Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines Configured in system view, the setting takes effect globally. Configured in Ethernet interface view, the setting takes effect only on the interface.
Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Examples # Set the maximum hops of the MST region to 35. system-view [Sysname] stp max-hops 35 Related commands display stp stp mcheck Use stp mcheck to perform the mCheck operation globally or on a port. Syntax stp mcheck Views System view, Ethernet interface view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines If a port on a device that runs MSTP or RSTP mode connects to an STP device, the port will automatically transit to the STP mode.
Related commands stp mode stp mode Use stp mode to configure the spanning tree operating mode. Use undo stp mode to restore the default. Syntax stp mode { mstp | rstp | stp } undo stp mode Default A spanning tree device operates in MSTP mode. Views System view Default command level 2: System level Parameters mstp: Configures the spanning tree device to operate in MSTP mode. rstp: Configures the spanning tree device to operate in RSTP mode.
Default No Agreement Check is disabled. Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
Usage guidelines If you change the standard that the device uses in calculating the default path costs, you restore the path costs to the default. Examples # Configure the device to calculate the default path cost for ports based on IEEE 802.1d-1998. system-view [Sysname] stp pathcost-standard dot1d-1998 Related commands • display stp • stp cost stp point-to-point Use stp point-to-point to configure the link type of the ports. Use undo stp point-to-point to restore the default.
The stp point-to-point force-false or stp point-to-point force-true command configured on a port in MSTP mode takes effect on all MSTIs. If the physical link to which the port connects is not a point-to-point link but you set it to be one, the configuration might bring a temporary loop. Examples # Configure the link connecting GigabitEthernet 4/0/3 as a point-to-point link.
The smaller the value, the higher the port priority. If all ports on your device use the same priority value, the port priority depends on the port index. The smaller the index, the higher the priority. Examples # In MSTP mode, set the priority of port GigabitEthernet 4/0/3 to 16 in MSTI 2.
Syntax stp [ instance instance-id ] priority priority undo stp [ instance instance-id ] priority Default The device priority is 32768. Views System view Default command level 2: System level Parameters instance instance-id: Sets the priority of the device in a MSTI. The value range for this argument is 0 to 31. The value 0 represents the CIST. priority: Device priority, which is in the range of 0 to 61440 in increments of 4096 (as indicated by 0, 4096, 8192).
• The MSTP revision level is 0. After you enter MST region view, you can configure the MST region-related parameters, including the region name, VLAN-to-instance mappings, and revision level. Examples # Enter MST region view. system-view [Sysname] stp region-configuration [Sysname-mst-region] stp root primary Use stp root primary to configure the device as the root bridge. Use undo stp root to restore the default.
stp root secondary Use stp root secondary to configure the device as a secondary root bridge. Use undo stp root to restore the default. Syntax stp [ instance instance-id ] root secondary undo stp [ instance instance-id ] root Default A device is not a secondary root bridge. Views System view Default command level 2: System level Parameters instance instance-id: Configures the device as a secondary root bridge in a particular MSTI. The value range for this argument is 0 to 31.
Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
system-view [Sysname] stp tc-protection disable Related commands stp tc-protection threshold stp tc-protection threshold Use stp tc-protection threshold to configure the maximum number of forwarding address entry flushes that the device can perform every a certain period of time (10 seconds). Use undo stp tc-protection threshold to restore the default.
Views System view Default command level 2: System level Parameters time: Sets the forward delay (in 0.01 seconds), in the range of 400 to 3000 in increments of 100 (as indicated by 400, 500, 600). Usage guidelines The forward delay timer determines the time interval of state transition. To prevent temporary loops, a spanning tree port goes through the learning (intermediate) state before it transits from the discarding to the forwarding state.
Parameters time: Sets the hello time (in 0.01 seconds), in the range of 100 to 1000 in increments of 100 (as indicated by 100, 200, 300). Usage guidelines Hello time is the time interval at which spanning tree devices send configuration BPDUs to maintain spanning tree. If a device fails to receive configuration BPDUs within the set period of time, a new spanning tree calculation process will be triggered due to timeout. HP recommends not setting the hello time with this command.
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 spanning tree protocols automatically calculate optimal settings of the max age timer. If the network diameter uses the default value, the max age timer also uses the default value. Examples # In MSTP mode, set the max age timer to 10 seconds.
[Sysname] stp timer-factor 7 Related commands stp timer hello stp transmit-limit Use stp transmit-limit to set the maximum number of BPDUs that the ports can send within each hello time. Use undo stp transmit-limit to restore the default. Syntax stp transmit-limit limit undo stp transmit-limit Default The maximum transmission rate of all ports is 10. Each port can send up to 10 BPDUs within each hello time.
Syntax vlan-mapping modulo modulo Default All VLANs are mapped to the CIST (MSTI 0). Views MST region view Default command level 2: System level Parameters modulo: Sets the modulo value. The value range for this argument is 1 to 31. Usage guidelines You cannot map a VLAN to different MSTIs. If you map a VLAN that has been mapped to an MSTI to a new MSTI, the old mapping will be automatically removed.
BPDU tunneling configuration commands The commands in this chapter are supported on SAP interface modules that are operating in bridge mode. bpdu-tunnel dot1q Use bpdu-tunnel dot1q to enable BPDU tunneling for a protocol on the ports. Use undo bpdu-tunnel dot1q to disable BPDU tunneling for a protocol on the ports.
Usage guidelines Settings made in Layer 2 Ethernet interface view or Layer 2 aggregate interface view take effect only on the Ethernet interface or aggregate interface. Settings made in port group view take effect on all member ports in the port group. You cannot enable BPDU tunneling on a member port of a service loopback group. Before you enable BPDU tunneling for DLDP, EOAM, GVRP, HGMP, LLDP, or STP on a port, disable the protocol on the port first.
Default command level 2: System level Parameters mac-address: Specifies a destination multicast MAC address for BPDUs, in the format of H-H-H. The allowed values are 0x0100-0CCD-CDD0, 0x0100-0CCD-CDD1, 0x0100-0CCD-CDD2, and 0x010F-E200-0003. Examples # Set the destination multicast MAC address for BPDUs to 0x0100-0CCD-CDD0.
VLAN configuration commands The commands in this chapter are supported on SAP modules that are operating in bridge mode. Basic VLAN configuration commands bandwidth Use bandwidth to set the expected bandwidth for a VLAN-interface. Use undo bandwidth to cancel the configuration. Syntax bandwidth bandwidth-value undo bandwidth Views VLAN-interface view Default command level 2: System level Parameters bandwidth-value: Sets the expected bandwidth in the range of 1 to 4,294,967,295 kbps.
Default command level 2: System level Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
• For a VLAN, this is a string of 1 to 32 characters. • For a VLAN-interface, this is a string of 1 to 240 characters. When you specify a description, follow these guidelines: • Each Unicode character takes the space of two regular characters. • To use Unicode characters or symbols in an interface description, install the specific input method editor and log in to the device through remote login software that supports the character type.
brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information. down: Displays information about interfaces in the DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Table 21 Command output Field Description Physical state of a VLAN-interface: • DOWN (Administratively)—The administrative state of the VLAN-interface is down, because it has been shut down with the shutdown command. Vlan-interface2 current state • DOWN—The administrative sate of the VLAN-interface is up, but its physical sate is down. The VLAN corresponding to this interface does not contain any physical port in the UP state (possibly because the ports are not well connected or the lines have failed).
Field Description Physical link state of the interface: Link • UP—The link is up. • ADM—The link has been administratively shut down. To recover its physical state, use the undo shutdown command. Protocol Protocol connection state of the interface, which can be UP, DOWN, or UP(s). Main IP Main IP address of the interface. Description Description of the interface. Cause Cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Administratively.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display VLAN 2 information.
interface vlan-interface Use interface vlan-interface to create a VLAN-interface and enter its view or enter the view of an existing VLAN-interface. Use undo interface vlan-interface to remove the specified VLAN-interface. Syntax interface vlan-interface vlan-interface-id undo interface vlan-interface vlan-interface-id Views System view Default command level 2: System level Parameters vlan-interface-id: Specifies a VLAN-interface number in the range of 1 to 4094.
Default command level 2: System level Parameters ip-address: Specifies an IP address in dotted decimal notation. mask: Specifies a subnet mask in dotted decimal notation. mask-length: Sets the number of consecutive 1s in the subnet mask in the range of 0 to 32. sub: Indicates the address is a secondary IP address. Usage guidelines To connect a VLAN to multiple subnets, assign one primary IP address and multiple secondary IP addresses to a VLAN-interface.
Parameters size: Sets the MTU in bytes. The value range for this argument is 46 to 2000. 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 is its VLAN ID.
[Sysname-vlan2] name Test VLAN Related commands display vlan reset counters interface vlan-interface Use reset counters interface vlan-interface to clear the statistics on a VLAN-interface. Syntax reset counters interface vlan-interface [ vlan-interface-id ] Views User view Default command level 2: System level Parameters vlan-interface-id: Specifies a VLAN-interface number.
Default command level 2: System level Usage guidelines A VLAN-interface shut down with the shutdown command is in DOWN (Administratively) state until you bring it up, regardless of how the state of the ports in the VLAN changes. Before configuring parameters for a VLAN-interface, shut down the VLAN-interface with the shutdown command to prevent the configurations from affecting the network.
Usage guidelines You cannot create or remove the default VLAN (VLAN 1). You cannot create or remove VLANs reserved for specific functions.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Default command level 2: System level Parameters interface-list: Specifies an interface list, in the format of interface-list = { interface-type interface-number1 [ to interface-type interface-number2 ] }&<1-10>, where interface-type interface-number specifies an interface by its type and number and &<1-10> indicates that you can specify up to 10 ports or port ranges. Usage guidelines This command is only applicable on access ports. You cannot assign Layer 2 aggregate interfaces to a VLAN.
• 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 # Assign GigabitEthernet 4/0/1 to VLAN 3.
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. Examples # Configure VLAN 100 as the PVID of the hybrid port GigabitEthernet 4/0/1.
untagged: Configures the ports to send the untagged packets of the specified VLANs. Usage guidelines A hybrid port can carry multiple VLANs. If you execute the port hybrid vlan command multiple times, the VLANs the hybrid port carries are the set of VLANs specified by vlan-list in each execution. The configuration made in Ethernet interface view applies only to the port. The configuration made in port group view applies to all ports in the port group.
The output shows that GigabitEthernet 4/0/1, GigabitEthernet 4/0/2, and GigabitEthernet 4/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1. Related commands port link-type port link-type Use port link-type to configure the link type of a port. Use undo port link-type to restore the default link type of a port. Syntax port link-type { access | hybrid | trunk } undo port link-type Default Any port is an access port.
[Sysname] interface GigabitEthernet 4/0/1 [Sysname-GigabitEthernet4/0/1] port link-type trunk # Configure all ports in the manual port group group1 as hybrid ports.
The configuration made in Ethernet interface view applies only to the port. The configuration made in port group view applies to all ports in the port group. 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.
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 use the undo vlan command to remove the PVID of a trunk port, it does not affect the setting of the PVID on the port. The local and remote trunk ports must use the same PVID for the traffic of the PVID to be transmitted correctly. You must use the port trunk permit vlan command to configure the trunk port to allow and forward packets from the PVID.
Syntax display mac-vlan { all | dynamic | mac-address mac-address [ mask mac-mask ] | static | vlan vlan-id } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters all: Displays all MAC address-to-VLAN entries. dynamic: Displays dynamically configured MAC address-to-VLAN entries. mac-address mac-address: Displays the MAC address-to-VLAN entry containing the specified MAC address.
Field Description D: Dynamic D stands for the MAC address-to-VLAN entries that are configured dynamically. MAC ADDR MAC address of a MAC address-to-VLAN entry. MASK Mask of the MAC address of a MAC address-to-VLAN entry. VLAN ID VLAN ID of a MAC address-to-VLAN entry. PRIO 802.1p priority corresponding to the MAC address of a MAC address-to-VLAN entry. State of a MAC address-to-VLAN entry: STATE • S—The MAC address-to-VLAN entry is configured statically.
mac-vlan enable Use mac-vlan enable to enable the MAC-based VLAN feature on a port. Use undo mac-vlan enable to disable the MAC-based VLAN feature on a port. Syntax mac-vlan enable undo mac-vlan enable Default The MAC-based VLAN feature is disabled on a port. Views Layer 2 Ethernet port view Default command level 2: System level Usage guidelines This command is available on only hybrid ports. Examples # Enable the MAC-based VLAN feature on GigabitEthernet 4/0/1.
mask mac-mask: Specifies a mask for the MAC address in the format of H-H-H. The mac-mask argument is comprised of the high-order part (all binary bits of which are 1s) and the low-order part (all the binary bits of which are 0s). vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094. priority pri: Specifies the 802.1p priority value corresponding to the specified MAC address. The pri argument is in the range of 0 to 7. all: Removes all static MAC address-to-VLAN entries.
Usage guidelines This command only applies to VLANs based on a single MAC address and IP subnet-based VLANs. If both the MAC-based VLAN function and the IP subnet-based VLAN function are created on a port, MAC address-to-VLAN entries are matched preferentially, and the remaining VLAN entries (VLAN entries based on a single MAC address and IP subnet-based VLANs) are matched as configured by the vlan precedence command.
====================================================== 2 0 ipv6 3 0 ipv4 Table 25 Command output Field Description VLAN ID ID of the protocol-based VLAN bound to the port. Protocol Index Protocol template index. Protocol Type Protocol type specified by the protocol template. display protocol-vlan vlan Use display protocol-vlan vlan to display the protocols and protocol indexes configured on the specified VLANs.
VLAN ID:3 Protocol Index Protocol Type ====================================================== 0 ipv4 1 ipv6 Table 26 Command output Field Description VLAN ID ID of the protocol-based VLAN bound to the port. Protocol Index Protocol template index. Protocol Type Protocol type specified by the protocol template. Related commands display vlan port hybrid protocol-vlan Use port hybrid protocol-vlan to associate the hybrid ports with a protocol-based VLAN.
Configure the port to allow the protocol-based VLAN to pass through. • Examples # Associate the hybrid port GigabitEthernet 4/0/1 with protocol 0 (IPv4) in VLAN 2. system-view [Sysname] vlan 2 [Sysname-vlan2] protocol-vlan ipv4 [Sysname-vlan2] quit [Sysname] interface GigabitEthernet 4/0/1 [Sysname-GigabitEthernet4/0/1] port link-type hybrid [Sysname-GigabitEthernet4/0/1] port hybrid vlan 2 untagged Please wait...
llc: Matches the llc encapsulation format. dsap dsap-id: Specifies the destination service access point in the range of 0x00 to 0xFF. ssap ssap-id: Specifies the source service access point in the range of 0x00 to 0xFF. snap etype etype-id: Matches SNAP encapsulation format and the corresponding protocol type values. The etype-id argument is the Ethernet type of inbound packets, in the range of 0x0600 to 0xFFFF (excluding 0x8137). protocol-index: Specifies a protocol template index.
IP subnet-based VLAN configuration commands display ip-subnet-vlan interface Use display ip-subnet-vlan interface to display IP subnet-based VLANs and IP subnet indexes on the specified ports.
display ip-subnet-vlan vlan Use display ip-subnet-vlan vlan to display the IP subnet-based VLAN information and IP subnet indexes on the specified VLANs. Syntax display ip-subnet-vlan vlan { vlan-id1 [ to vlan-id2 ] | all } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 2: System level Parameters vlan-id1: Specifies a VLAN ID in the range of 1 to 4094. vlan-id1 to vlan-id2: Specifies a VLAN ID range.
ip-subnet-vlan Use ip-subnet-vlan to associate the VLAN with a specified IP subnet or IP address. Use undo ip-subnet-vlan to remove the association. Syntax ip-subnet-vlan [ ip-subnet-index ] ip ip-address [ mask ] undo ip-subnet-vlan { ip-subnet-index [ to ip-subnet-end ] | all } Views VLAN view Default command level 2: System level Parameters ip-subnet-index: Specifies a beginning IP subnet index in the range of 0 to 11.
undo port hybrid ip-subnet-vlan { vlan vlan-id | all } Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Parameters vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094. all: Specifies all VLANs. Usage guidelines On an Ethernet port associated with an IP subnet-based VLAN, if the source IP address of a received untagged packet belongs to the corresponding IP subnet, the port tags the packet with the corresponding VLAN tag.
Configuring GigabitEthernet4/0/1... Done. Configuring GigabitEthernet4/0/2... Done. Configuring GigabitEthernet4/0/3... Done. [Sysname-Bridge-Aggregation1] port hybrid ip-subnet-vlan vlan 3 The output shows that GigabitEthernet 4/0/1, GigabitEthernet 4/0/2, and GigabitEthernet 4/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1.
Super VLAN configuration commands The super VLAN feature is supported on SAP modules that are operating in bridge mode. display supervlan Use display supervlan to display the mapping between a super VLAN and sub-VLANs, and to display information about these VLANs. Syntax display supervlan [ supervlan-id ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters supervlan-id: Specifies a super VLAN ID in the range of 1 to 4094.
VLAN Type: static It is a Sub VLAN. Route Interface: not configured Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: GigabitEthernet4/0/3 VLAN ID: 4 VLAN Type: static It is a Sub VLAN. Route Interface: not configured Description: VLAN 0004 Name: VLAN 0004 Tagged Ports: none Untagged Ports: GigabitEthernet4/0/4 VLAN ID: 5 VLAN Type: static It is a Sub VLAN.
Related commands • subvlan • supervlan subvlan Use subvlan to associate the super VLAN with sub-VLANs specified by vlan-list. Use undo subvlan to remove the association.
undo supervlan Views VLAN view Default command level 2: System level Usage guidelines You cannot configure a super VLAN as the guest VLAN for a port, and vice versa. For more information about guest VLANs, see Security Configuration Guide. You can configure Layer 2 multicast for a super VLAN. However, the configuration cannot take effect. You can configure DHCP, Layer 3 multicast, dynamic routing, and NAT for the VLAN-interface of a super VLAN. However, only DHCP can take effect.
Voice VLAN configuration commands The voice VLAN feature is supported on SAP modules that are operating in bridge mode. display voice vlan oui Use display voice vlan oui to display the supported organizationally unique identifier (OUI) addresses, the OUI address masks, and the description strings.
Table 30 Command output Field Description Oui Address OUI addresses supported. Mask Masks of the OUI addresses supported. Description Description strings of the OUI addresses supported. Related commands voice vlan mac-address display voice vlan state Use display voice vlan state to display voice VLAN configuration.
Field Description Current Voice VLANs Number of existing voice VLANs. Security mode of the voice VLAN: Voice VLAN security mode • Security. • Normal. Voice VLAN aging time Aging time of the voice VLAN. Voice VLAN enabled port and its mode Voice VLAN-enabled port and its voice VLAN assignment mode. PORT Voice VLAN-enabled port name. VLAN ID of the voice VLAN enabled on the port. MODE Voice VLAN assignment mode of the port, manual or automatic. COS 802.
Examples # Configure the voice VLAN aging time as 100 minutes. system-view [Sysname] voice vlan aging 100 Related commands display voice vlan state voice vlan enable Use voice vlan enable to enable the voice VLAN feature and to configure a VLAN as the voice VLAN for the Ethernet port. Use undo voice vlan enable to disable the voice VLAN feature on an Ethernet port. Syntax voice vlan vlan-id enable undo voice vlan [ vlan-id ] enable Default The voice VLAN feature is disabled on ports.
Default The system is configured with the default OUI addresses. You can remove the default OUI addresses, and then add recognizable OUI addresses manually.
Use undo voice vlan mode auto to configure the port to operate in manual voice VLAN assignment mode. Syntax voice vlan mode auto undo voice vlan mode auto Default A port operates in automatic voice VLAN assignment mode. Views Ethernet interface view Default command level 2: System level Usage guidelines The voice VLAN modes of different ports are independent of one another.
Usage guidelines Configure the QoS priority settings for voice VLAN traffic on an interface before you enable voice VLAN on the interface. If the configuration order is reversed, the priority settings will fail. The voice vlan qos command and the voice vlan qos trust command can overwrite each other. When you execute the two commands on a port multiple times, the most recent configuration takes effect.
Related commands voice vlan qos voice vlan security enable Use voice vlan security enable to enable the voice VLAN security mode. Use undo voice vlan security enable to disable the voice VLAN security mode. Syntax voice vlan security enable undo voice vlan security enable Default The voice VLAN security mode is enabled. Views System view Default command level 2: System level Usage guidelines When you enable the security mode for a voice VLAN, only voice traffic can be transmitted in the voice VLAN.
GVRP configuration commands The commands in this chapter are supported on SAP modules that are operating in bridge mode. display garp statistics Use display garp statistics to display the GARP statistics of the specified ports. If no ports are specified, this command displays the GARP statistics for all ports.
display garp statistics interface GigabitEthernet 4/0/1 to GigabitEthernet 4/0/2 GARP statistics on port GigabitEthernet4/0/1 Number of GVRP Frames Received : 5 Number of GVRP Frames Transmitted : 2 Number of Frames Discarded : 1 GARP statistics on port GigabitEthernet4/0/2 Number of GVRP Frames Received : 3 Number of GVRP Frames Transmitted : 4 Number of Frames Discarded : 2 Related commands reset garp statistics display garp timer Use display garp timer to display GARP timers on
Garp Join Time : 20 centiseconds Garp Leave Time : 60 centiseconds Garp LeaveAll Time : 1000 centiseconds Garp Hold Time : 10 centiseconds Related commands • garp timer hold • garp timer join • garp timer leave • garp timer leaveall display gvrp local-vlan Use display gvrp local-vlan to display the local VLAN information maintained by GVRP on the specified port.
Views Any view Default command level 0: Visit level Parameters interface interface-type interface-number: Specifies an interface by its type and number. vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
Field Description The Applicant state machine handles attribute declarations. Its state can be VA, AA, QA, LA, VP, AP, QP, VO, AO, QO, LO, VON, AON, and QON. Each state consists of two or three letters. The first letter indicates the state: • V—Very anxious, which means that the local participant has not declared the attribute or has not received any Join message containing the attribute.
interface-number2, where the end-port number specified by interface-number2 must be greater than the start-port number specified by interface-number1. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.
exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display the global GVRP state. display gvrp status GVRP is enabled display gvrp vlan-operation Use display gvrp vlan-operation to display information about dynamic VLAN operations on a port.
Use undo garp timer hold to restore the default of the GARP Hold timer. This operation might fail if the default is beyond the valid value range for the Hold timer. Syntax garp timer hold timer-value undo garp timer hold Default The Hold timer is 10 centiseconds.
Parameters timer-value: Specifies the Join timer (in centiseconds), which must be a multiple of 5 and range from twice the Hold timer (inclusive) and half the Leave timer (inclusive). Examples # Set the GARP Join timer to 25 centiseconds, assuming that both the Hold timer and the Leave timer are using the default.
• garp timer leaveall garp timer leaveall Use garp timer leaveall to set the GARP LeaveAll timer. Use undo garp timer leaveall to restore the default. This may fail if the default is beyond the valid value range for the LeaveAll timer. Syntax garp timer leaveall timer-value undo garp timer leaveall Default The LeaveAll timer is 1000 centiseconds.
Views System view, Ethernet interface view, Layer-2 aggregate interface view, port group view Default command level 2: System level Usage guidelines Settings in system view take effect globally. Settings in Ethernet view or Layer 2 aggregate interface take effect on the current interface. Settings in port group view take effect on all ports in the port group. To enable GVRP on a port, enable GVRP globally before you enable it on the port. In interface view, you can use this command on trunk ports only.
This command is only available on trunk ports. Examples # Set the GVRP registration mode to fixed on port GigabitEthernet 4/0/1. system-view [Sysname] interface GigabitEthernet 4/0/1 [Sysname-GigabitEthernet4/0/1] port link-type trunk [Sysname-GigabitEthernet4/0/1] gvrp registration fixed Related commands display garp statistics reset garp statistics Use reset garp statistics to clear the GARP statistics on the specified ports.
QinQ configuration commands The QinQ configuration commands are supported on SAP modules that are operating in bridge mode. The 6600 and HSR6600 series routers implement selective QinQ through QoS policies. For more information about QoS policies, see ACL and QoS Command Reference.
Use undo qinq enable to disable basic QinQ on the Ethernet ports. Syntax qinq enable undo qinq enable Default Basic QinQ is disabled on Ethernet ports. Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view Default command level 2: System level Usage guidelines A basic QinQ-enabled port tags received frames with its PVID tag. Configured in Layer 2 Ethernet interface view, the command takes effect on the port only.
Default The TPID value in both SVLAN and CVLAN tags is 0x8100, and the TPID used by a port in the SVLAN or CVLAN tag equals the global SVLAN or CVLAN tag TPID (if the device supports global TPID configuration) or 0x8100 (if the device does not support global TPID configuration). Views System view, Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view Default command level 2: System level Parameters customer-tag: Specifies the TPID value in the CVLAN tag.
# Set the TPID value in the SVLAN tags to 0x9100 on GigabitEthernet 4/0/1. system-view [Sysname] interface GigabitEthernet 4/0/1 [Sysname-GigabitEthernet4/0/1] qinq ethernet-type service-tag 9100 qinq transparent-vlan Use qinq transparent-vlan to configure VLAN transparent transmission on one or multiple ports, so the port or ports can transparently transmit frames from the specified VLANs. Use undo qinq transparent-vlan to remove the configuration.
VLAN termination configuration commands dot1q ethernet-type Use dot1q ethernet-type to set the TPID value in the outermost VLAN tag of packets received and sent by the interface. Use undo dot1q ethernet-type to restore the default. Syntax dot1q ethernet-type hex-value undo dot1q ethernet-type Default The TPID value for the outmost VLAN tag of VLAN-tagged packets received and sent by the interface is 0x8100.
Usage guidelines After you execute the dot1q ethernet-type command, only packets whose TPID in the outermost VLAN tag is 0x8100 or the value you configured will be processed as VLAN-tagged packets. When sending a packet, the interface sets the TPID value in the outermost VLAN tag to the configured value, and sets the TPID values in the other VLAN tags to 0x8100 if the packet carries two or more layers of VLAN tags.
Syntax vlan-type dot1q vid vlan-list undo vlan-type dot1q vid vlan-list Views Layer 3 Ethernet subinterface view, Layer 3 aggregate subinterface view Default command level 2: System level Parameters vlan-list: Specifies a list of outmost VLAN IDs in the format of vlan-list = { vlan-id1 [ to vlan-id2 ] }&<1-10>, where the vlan-id argument is in the range of 1 to 4094, and &<1-10> indicates that you can specify up to 10 VLAN ID ranges.
Layer 2 VLAN IDs specified by the any keyword, and another subinterface under the same interface is configured with the vlan-type dot1q vid x second-dot1q vlan-list command. The any keyword specifies all VLAN IDs between 1 and 4094 other than the Layer 2 VLAN IDs specified by the vlan-list argument.
Layer 3 Ethernet subinterface Layer 1 VLAN ID of VLAN-tagged packets that the subinterface can terminate Layer 2 VLAN IDs of VLAN-tagged packets that the subinterface can terminate GigabitEthernet 4/0/1.1 100 100 GigabitEthernet 4/0/1.2 100 200–300 GigabitEthernet 4/0/1.3 100 1–99, 101–199, 301–499, and 601–4094 GigabitEthernet 4/0/1.4 100 500–600 GigabitEthernet 4/0/1.
VLAN mapping configuration commands The commands in this chapter are supported on SAP modules that are operating in bridge mode. nest Use nest to add a VLAN nest action to a traffic behavior. Use undo nest to remove the action. Syntax nest top-most vlan-id vlan-id undo nest top-most Views Traffic behavior view Default command level 2: System level Parameters top-most: Inserts an outer VLAN tag in VLAN tagged traffic. vlan-id vlan-id: Specifies a VLAN tag ID in the range of 1 to 4094.
Views Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines Configured in Layer 2 Ethernet interface view, the command takes effect on the port only. Configured in port group view, the command takes effect on all ports in the port group. Examples # Enable customer-side QinQ on port GigabitEthernet 4/0/1.
# Enable network-side QinQ on port group 1. system-view [Sysname] port-group manual 1 [Sysname-port-group-manual-1] group-member GigabitEthernet 4/0/1 to GigabitEthernet 4/0/6 [Sysname-port-group-manual-1] qinq enable uplink remark customer-vlan-id Use remark customer-vlan-id to add a CVLAN marking action to a traffic behavior. Use undo remark customer-vlan-id to remove the action from the traffic behavior.
Examples # Configure traffic behavior b1 to mark matching packets with SVLAN 222.
LLDP configuration commands display lldp local-information Use display lldp local-information to display the LLDP information to be sent. This information, contained in the LLDP TLVs, is sent to neighbor devices. Syntax display lldp local-information [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters global: Displays the global LLDP information to be sent.
System capabilities enabled : Repeater,Bridge,Router MED information Device class: Connectivity device HardwareRev : REV.A FirmwareRev : 109 SoftwareRev : 5.
Field Description MED device class: • Connectivity device—Network device. • Class I—Normal terminal device. It requires the basic LLDP discovery services. Device class • Class II—Media terminal device. It supports media streams and can also function as a normal terminal device. • Class III—Communication terminal device. It supports the IP communication systems of end users and can also function as a normal terminal device or media terminal device. HardwareRev Hardware version.
Parameters brief: Displays the summary of LLDP information sent from the neighboring devices. If this keyword is not specified, this command displays detailed LLDP information sent from the neighboring devices. interface interface-type interface-number: Displays the LLDP information sent from the neighboring devices received through a port specified by its type and number.
OperMau : speed(1000)/duplex(Full) Power port class : PD PSE power supported : No PSE power enabled : No PSE pairs control ability : No Power pairs : Signal Port power classification : Class 0 Link aggregation supported : Yes Link aggregation enabled : No Aggregation port ID : 0 Maximum frame Size: 1500 # Display the LLDP information sent from all neighboring devices in a list.
Field Description Port ID Value of the port ID type. System name System name of the neighboring device. System description System description of the neighboring device. Capabilities supported on the neighboring device: System capabilities supported • Repeater—Signal repeating is supported. • Bridge—Switching is supported. • Router—Routing is supported. Capabilities enabled on the neighboring device: System capabilities enabled • Repeater—Signal repeating is enabled. • Bridge—Switching is enabled.
Syntax display lldp statistics [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters global: Displays the global LLDP statistics. interface interface-type interface-number: Specifies a port by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Table 39 Command output Field Description LLDP statistics global information Global LLDP statistics. LLDP neighbor information last change time Time the neighbor information was last updated. The number of LLDP neighbor information inserted Number of times of adding neighbor information. The number of LLDP neighbor information deleted Number of times of removing neighbor information.
Transmit delay : 2s Trap interval : 5s Fast start times : 3 Port 1 [GigabitEthernet4/0/1]: Port status of LLDP : Enable Admin status : Tx_Rx Trap flag : No Polling interval : 0s Number of neighbors : 0 Number of MED neighbors : 0 Number of CDP neighbors : 0 Number of sent optional TLV : 19 Number of received unknown TLV : 0 Table 40 Command output Field Description Global status of LLDP Indicates whether LLDP is globally enabled.
display lldp tlv-config Use display lldp tlv-config to display the types of advertisable optional LLDP TLVs of a port. Syntax display lldp tlv-config [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters interface interface-type interface-number: Specifies a port by its type and number. |: Filters command output by specifying a regular expression.
LLDP-MED extend TLV: Capabilities TLV YES YES Network Policy TLV YES YES Location Identification TLV NO NO Extended Power via MDI TLV YES YES Inventory TLV YES YES Table 41 Command output Field Description LLDP tlv-config of port 1 Advertisable optional TLVs of port 1. NAME TLV type. STATUS Indicates whether a specific type of TLV is sent through a port. DEFAULT Indicates whether a specific type of TLV is sent through a port by default.
undo lldp admin-status Default The LLDP operating mode is TxRx. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default command level 2: System level Parameters disable: Specifies the Disable mode. A port in this mode does not send or receive LLDPDUs. rx: Specifies the Rx mode. A port in this mode only receives LLDPDUs. tx: Specifies the Tx mode. A port in this mode only sends LLDPDUs. txrx: Specifies the TxRx mode. A port in this mode sends and receives LLDPDUs.
Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default command level 2: System level Parameters interval: Sets the LLDP polling interval in the range of 1 to 30 seconds.
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 the router 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.
Command 6602 HSR6602 6604/6608/6616 lldp compliance cdp No No Yes on routers installed with the MPU RPE-X1 or RSE-X1 Examples # Enable LLDP to be compatible with CDP globally. system-view [Sysname] lldp compliance cdp Related commands • lldp hold-multiplier • lldp timer tx-interval lldp enable Use lldp enable to enable LLDP. Use undo lldp enable to disable LLDP. Syntax lldp enable undo lldp enable Default LLDP is enabled on a port and disabled globally.
system-view [Sysname] interface GigabitEthernet 4/0/1 [Sysname-GigabitEthernet4/0/1] undo lldp enable lldp encapsulation snap Use lldp encapsulation snap to configure the encapsulation format for LLDPDUs as SNAP on a port or a group of ports. Use undo lldp encapsulation to restore the default encapsulation format for LLDPDUs. Syntax lldp encapsulation snap undo lldp encapsulation Default Ethernet II is the encapsulation format for LLDPDUs.
Syntax lldp fast-count count undo lldp fast-count Default The number is 3. Views System view Default command level 2: System level Parameters count: Sets the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. The value range is 1 to 10. Examples # Configure the device to send four LLDPDUs each time fast LLDPDU transmission is triggered. system-view [Sysname] lldp fast-count 4 lldp hold-multiplier Use lldp hold-multiplier to set the TTL multiplier.
Examples # Set the TTL multiplier to 6. system-view [Sysname] lldp hold-multiplier 6 Related commands lldp timer tx-interval lldp management-address-format string Use lldp management-address-format string to encapsulate the management address in the form of strings in TLVs. Use undo lldp management-address-format to restore the default. Syntax lldp management-address-format string undo lldp management-address-format Default The management address is encapsulated in the form of numbers in TLVs.
lldp management-address-tlv Use lldp management-address-tlv to enable management address advertising and set the management address. Use undo lldp management-address-tlv to disable management address advertising in LLDPDUs. Syntax lldp management-address-tlv [ ip-address ] undo lldp management-address-tlv Default The management address is advertised through LLDPDUs. For a Layer 2 Ethernet port, the management address is the main IP address of the lowest-ID VLAN carried on the port.
Examples # Set the management address to 192.6.0.1 for GigabitEthernet 4/0/1. system-view [Sysname] interface GigabitEthernet 4/0/1 [Sysname-GigabitEthernet4/0/1] lldp management-address-tlv 192.6.0.1 lldp notification remote-change enable Use lldp notification remote-change enable to enable LLDP trapping for a port or all ports in a port group. Use undo lldp notification remote-change enable to disable LLDP trapping.
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 is 5 seconds. Views System view Default command level 2: System level Parameters interval: Sets the LLDP trap transmit interval in the range of 5 to 3600 seconds. Examples # Set the LLDP trap transmit interval to 8 seconds.
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 The LLDPDU transmit delay is 2 seconds. Views System view Default command level 2: System level Parameters delay: Sets the LLDPDU transmit delay in the range of 1 to 8192 seconds.
Default command level 2: System level 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. If the LLDPDU transmit interval is less than the LLDPDU transmit delay, the device uses the LLDPDU transmit delay as the transmit interval. Examples # Set the LLDPDU transmit interval to 20 seconds.
Default The device can advertise on a Layer 2 Ethernet port all types of LLDP TLVs except location identification TLVs, and advertise on a Layer 3 Ethernet port all types of LLDP TLVs except IEEE 802.1 organizationally specific TLVs, network policy TLVs, and location identification TLVs. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default command level 2: System level Parameters all: Advertises all basic LLDP TLVs, IEEE 802.
device-type: Sets a device type value in the range of 0 to 2. Value 0 specifies a DHCP server. Value 1 specifies a switch. Value 2 specifies an LLDP-MED endpoint. country-code: Sets a country code, corresponding to ISO 3166. { ca-type ca-value }&<1-10>: Configures address information, where ca-type represents the address information type in the range of 0 to 255, ca-value represents address information, a string of 1 to 250 characters, and &<1-10> indicates that you can enter up to 10 parameters.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.
Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. [] Square brackets enclose syntax choices (keywords or arguments) that are optional. { x | y | ... } Braces enclose a set of required syntax choices separated by vertical bars, from which you select one.
Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features. Represents an access controller, a unified wired-WLAN module, or the switching engine on a unified wired-WLAN switch. Represents an access point.
Index ABCDEGILMNPQRSVW display mac-address aging-time,3 A display mac-address mac-learning,3 active region-configuration,42 display mac-address statistics,4 B display mac-vlan,108 bandwidth,87 display mac-vlan interface,110 bandwidth,14 display port,99 bpdu-tunnel dot1q,84 display port-isolate group,39 bpdu-tunnel tunnel-dmac,85 display protocol-vlan interface,113 C display protocol-vlan vlan,114 display stp,44 check region-configuration,42 display stp abnormal-port,49 D display stp bpdu
ip address,94 P ip-subnet-vlan,120 port,100 L port access vlan,101 lacp period short,31 port hybrid ip-subnet-vlan,120 port hybrid protocol-vlan,115 lacp system-priority,31 port hybrid pvid,102 link-aggregation load-sharing mode,32 port hybrid vlan,103 link-aggregation mode,33 port link-aggregation group,35 link-aggregation port-priority,33 port link-type,105 lldp admin-status,170 port trunk permit vlan,106 lldp check-change-interval,171 port trunk pvid,107 lldp compliance admin-status c
stp mode,69 subvlan,125 stp no-agreement-check,69 supervlan,125 stp pathcost-standard,70 V stp point-to-point,71 vlan,98 stp port priority,72 vlan precedence,112 stp port-log,73 vlan-mapping modulo,82 stp priority,73 vlan-termination broadcast enable,152 stp region-configuration,74 vlan-type dot1q vid,152 stp root primary,75 vlan-type dot1q vid second-dot1q,153 stp root secondary,76 voice vlan aging,129 stp root-protection,76 voice vlan enable,130 stp tc-protection,77 voice vlan mac-a