HP 6125 Blade Switch Series Layer 2 - LAN Switching Command Reference Part number: 5998-3166 Software version: Release 2103 Document version: 6W100-20120907...
Page 2
HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.
Ethernet interface configuration commands The Ethernet interface numbers in this document are for example, and do not mean that Ethernet interfaces with these numbers exist on the switch. broadcast-suppression Syntax broadcast-suppression { ratio | pps max-pps | kbps max-kbps } undo broadcast-suppression View Ethernet interface view...
Examples # Set the broadcast suppression threshold to 20% on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] broadcast-suppression 20 default Syntax default View Ethernet interface view Default level 2: System level Parameters None Description CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network.
Default level 2: System level Parameters text: Specifies the interface description, a string of 1 to 80 characters. The string can include case-sensitive letters, digits, special characters such as tilde (~), exclamation point (!), at sign (@), pound sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon (:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/),...
|: 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.
Page 13
View Any view Default level 1: Monitor level Parameters inbound: Displays inbound traffic rate statistics. outbound: Displays outbound traffic rate statistics. interface-type: Specifies an interface type. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Field Description Average rate (packets per second) of receiving or sending multicast packets Multicast (pkts/sec) during the sampling interval. The command displays Overflow, if any of the following applies: Overflow: more than 14 • The data length of an error statistic is greater than 7 decimal digits. decimal digits.
Page 15
<Sysname> display interface gigabitethernet 1/0/1 GigabitEthernet1/0/1 current state: DOWN IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e2d2-58fb Description: GigabitEthernet1/0/1 Interface Loopback is not set Media type is not sure,Port hardware type is No connector 1000Mbps-speed mode, full-duplex mode Link speed type is force link, link duplex type is force link Flow-control is enabled The Maximum Frame Length is 9216 Broadcast MAX-ratio: 100%...
Page 16
Field Description Loopback is not set The loopback testing function is disabled. Unknown-speed mode The port speed is unknown. unknown-duplex mode The duplex mode is unknown. Link speed type is autonegotiation The interface will negotiate a speed with its peer. link duplex type is autonegotiation The interface will negotiate a duplex mode with its peer.
Page 17
Field Description Inbound frames larger than the maximum frame length supported on the interface. • For an Ethernet interface that does not permit jumbo frames, giants refer to frames larger than 1536 bytes (without VLAN tags) or 1540 giants bytes (with VLAN tags). •...
Page 18
Field Description Number of packets dropped because the transmit buffer of the - buffer failures interface ran low. Number of packets that failed to be transmitted, for example, because aborts of Ethernet collisions. Number of frames that the interface deferred to transmit because of deferred detected collisions.
Page 19
Protocol: (s) - spoofing Interface Link Protocol Main IP Description NULL0 UP(s) Vlan1 192.168.0.85 Vlan2 DOWN DOWN Vlan1010 DOWN DOWN The brief information of interface(s) under bridge mode: Link: ADM - administratively down; Stby - standby Speed or Duplex: (a)/A - auto; H - half; F - full Type: A - access;...
Page 20
Table 5 Command output Field Description The brief information of interface(s) under route The command displays brief information about Layer 3 interfaces. mode: Link layer state of the interface: Link: ADM - • ADM—The interface has been shut down by the network administrator. To administratively down;...
Field Description Causes for the physical state of an interface to be DOWN. For more information, Cause Table Table 6 Causes for the physical state of an interface to be DOWN Field Description No physical connection exists (possibly because the network cable is Not connected disconnected or faulty).
Examples # Display information about loopback detection. <Sysname> display loopback-detection Loopback detection is running. Detection interval is 30 seconds. No port is detected with loopback. Table 7 Command output Field Description Detection interval time is 30 seconds. Loopback detection interval is 30 seconds. No port is detected with loopback.
<Sysname> display packet-drop interface gigabitethernet 1/0/1 GigabitEthernet1/0/1: Packets dropped by GBP full or insufficient bandwidth: 301 Packets dropped by FFP: 261 Packets dropped by STP non-forwarding state: 321 Table 8 Command output Field Description Packets dropped by GBP full or insufficient Packets that are dropped because the buffer is used up or bandwidth the bandwidth is insufficient.
Field Description Type of traffic subjected to storm control. Options include broadcast, multicast StormType and unknown unicast. LowerLimit Lower storm control threshold, in pps, kbps, or percentage. UpperLimit Upper storm control threshold, in pps, kbps, or percentage. Protective action (block or shutdown) taken on the port when the upper Ctrmode threshold is reached.
Related commands: speed. Examples # Configure the interface GigabitEthernet 1/0/1 to operate in full-duplex mode. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] duplex full flow-control Syntax flow-control undo flow-control View Ethernet interface view Default level 2: System level Parameters None Description Use flow-control to enable TxRx mode generic flow control on an Ethernet interface.
View Ethernet interface view Default level 2: System level Parameters None Description Use flow-control receive enable to enable Rx mode generic flow control on an Ethernet port. Use undo flow-control to disable generic flow control on an Ethernet interface. Rx mode generic flow control enables an Ethernet interface to receive and process common pause frames from its peer.
In system view, use the flow-interval command to set the statistics polling interval for all interfaces. In Ethernet interface view, use the flow-interval command to set the statistics polling interval for the interface. Examples # Set the statistics polling interval to 100 seconds on GigabitEthernet 1/0/1. <Sysname>...
Description Use jumboframe enable to allow jumbo frames within the specified length to pass through one or multiple Ethernet interfaces. Use undo jumboframe enable to prevent jumbo frames from passing through one or multiple Ethernet interfaces. By default, the switch allows jumbo frames within 9216 bytes to pass through Ethernet interfaces. Examples # Configure the switch to allow jumbo frames within 9216 bytes to pass through GigabitEthernet 1/0/1.
link-delay mode up Syntax link-delay delay-time mode up undo link-delay View Ethernet interface view Default level 2: System level Parameters delay-time: Sets the link down suppression interval, ranging from 2 to 10 seconds. Description Use link-delay delay-time mode up to enable an Ethernet interface to suppress link down events. When the physical link of the interface goes down, the interface suppresses the link down event and starts a timer.
Description Use loopback to enable loopback testing on an Ethernet interface. Use undo loopback to disable loopback testing on an Ethernet interface. By default, loopback testing is disabled on Ethernet interfaces. Enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem. NOTE: During loopback testing, the speed, duplex, mdi, and shutdown commands are not available.
loopback-detection enable Syntax loopback-detection enable undo loopback-detection enable View System view, Ethernet interface view Default level 2: System level Parameters None Description Use loopback-detection enable to enable loopback detection globally in system view or on interfaces in Ethernet interface. To use loopback detection on an Ethernet interface, you must enable the function both globally and on the port.
Description Use loopback-detection per-vlan enable to enable loopback detection in each VLAN on trunk or hybrid ports. Use undo loopback-detection per-vlan enable to disable loopback detection in all but the PVID on trunk or hybrid ports. By default, a trunk port or hybrid port performs loopback detection only in its PVID. The loopback-detection per-vlan enable command is not applicable to access ports.
[Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] mdi across multicast-suppression multicast-suppression { ratio | pps max-pps | kbps max-kbps } undo multicast-suppression View Ethernet interface view Default level 2: System level Parameters ratio: Sets the multicast suppression threshold as a percentage of the maximum interface rate, ranging from 1 to 100.
port bridge enable Syntax port bridge enable undo port bridge enable View Ethernet interface view Default level 2: System level Parameters None Description Use port bridge enable to enable bridging on a Ethernet interface. Use undo port bridge enable to disable bridging on the Ethernet interface. By default, bridging is not enabled on Ethernet interfaces.
Description CAUTION: After you shut down an Ethernet interface with this command, it cannot forward packets, even if it is physically connected. Use shutdown to shut down an Ethernet interface. Use undo shutdown to bring up an Ethernet interface. By default, an Ethernet interface is in up state. Examples # Shut down and then bring up GigabitEthernet 1/0/1.
For an Ethernet copper port, use the speed command to set its speed to match the speed of the peer interface. For a fiber port, use the speed command to set its speed to match the rate of a pluggable transceiver. Related commands: duplex and speed auto.
undo storm-constrain enable log View Ethernet interface view Default level 2: System level Parameters None Description Use storm-constrain enable log to enable an Ethernet interface to log storm control threshold events. Logged events include traffic exceeding the upper threshold and traffic falling below the lower threshold from the upper threshold.
Parameters ratio: Sets the unknown unicast suppression threshold as a percentage of the maximum interface rate, ranging from 1 to 100. The smaller the percentage, the less unknown unicast traffic is allowed to pass through. pps max-pps: Specifies the maximum number of unknown unicast packets that the Ethernet interface can forward per second.
Page 46
Description Use virtual-cable-test to test the cable connection of an Ethernet interface. The test results are displayed within five seconds. The following cable states are available: Normal—The cable is in good condition. • Abnormal—Any fault other than a short or open circuit is detected. •...
Loopback and null interface configuration commands default Syntax default View Loopback interface view, null interface view Default level 2: System level Parameters None Description Use default to restore the default settings for the loopback or null interface. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
Default level 2: System level Parameters text: Creates an interface description, a string of 1 to 80 characters. Valid characters and symbols include English letters (A to Z, a to z), digits (0 to 9), special English characters, spaces, and other Unicode characters and symbols.
Page 49
down: Displays information about interfaces in 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.
Page 50
Field Description State of the data link layer protocol: up (spoofing). Spoofing refers to the spoofing attribute of the interface. When the network layer Line protocol current state protocol state of the interface is displayed as up, the corresponding link may not exist, or the corresponding link is non-permanent and established on demand.
Field Description If the network layer protocol state of an interface is shown as UP, Protocol: (s) - spoofing but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). Interface Abbreviated interface name.
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. Description Use display interface null to display information about the null interface. Because Null 0 interface is the only null interface on a device, this command displays information about Null 0 interface, even if you do not specify the 0 keyword.
View System view Default level 2: System level Parameters interface-number: Loopback interface number, ranging from 0 to 127. Description Use interface loopback to create a loopback interface or enter loopback interface view. Use undo interface loopback to remove a loopback interface. Related commands: display interface loopback.
reset counters interface loopback Syntax reset counters interface [ loopback [ interface-number ] ] View User view Default level 2: System level Parameters interface-number: Number of the loopback interface, which can be the number of any existing loopback interface. With this argument, the command clears statistics on a specified loopback interface. Description Use reset counters interface loopback to clear statistics on loopback interfaces.
Examples # Clear statistics on interface Null 0. <Sysname> reset counters interface null 0 shutdown Syntax shutdown undo shutdown View Loopback interface view Default level 2: System level Parameters None Description Use shutdown to shut down the loopback interface. Use undo shutdown to bring up the loopback interface. By default, a loopback interface is up.
Bulk interface configuration commands interface range Syntax interface range interface-list View System view Default level 2: System level Parameters interface-list: Specifies an interface list in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-5>, where &<1-5> indicates that you can specify up to five interfaces or interface ranges.
Page 57
undo interface range name name View System view Default level 2: System level Parameters name: Interface range name, a case-sensitive string of 1 to 32 characters. interface-list: Interface list in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-5>.
Page 58
# Enter the view of interface range named myEthPort. <Sysname> system-view [Sysname] interface range name myEthPort [Sysname-if-range-myEthPort]...
MAC address table configuration commands The MAC address table can contain only Layer 2 Ethernet ports and Layer 2 aggregate interfaces. This feature covers only the unicast MAC address table. For information about configuring static multicast MAC address table entries for IGMP snooping and MLD snooping, see IP Multicast Configuration Guide. display mac-address Syntax display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic | static ] [ interface interface-type...
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.
Default 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.
Examples # Display MAC address learning status of all Ethernet ports. <Sysname> display mac-address mac-learning Mac address learning status of the switch: enable PortName Learning Status GigabitEthernet1/0/1 enable GigabitEthernet1/0/2 enable GigabitEthernet1/0/3 enable GigabitEthernet1/0/4 enable Table 13 Command output Field Description Mac-address learning status of the switch Global MAC address learning status (enabled or disabled).
Dynamic Multicast Static Multicast Total Multicast Table 14 Command output Field Description MAC address type: • Dynamic Unicast • Static Unicast • MAC TYPE Total Unicast • Dynamic Multicast • Static Multicast • Total Multicast LEARNED Dynamically learned MAC addresses USER-DEFINED User defined MAC addresses (dynamic and static) MAC addresses generated by the system (for example, 802.1x and MAC...
By default, no MAC address entry is configured on an interface. The MAC address entries configuration cannot survive a reboot unless you save it. The dynamic MAC address table entries, however, are lost at next reboot whether or not you save the configuration. Related commands: display mac-address.
interface interface-type interface-number: Specifies an outbound interface by its type and number. Description Use mac-address to add or modify a MAC address entry. Use undo mac-address to remove one or all MAC address entries. By default, no MAC address entry is configured in the system. A static or blackhole MAC address entry will not be overwritten by a dynamic MAC address entry.
You may need to disable MAC address learning to prevent the MAC address table from being • saturated. For example, when your device is being attacked by many packets with different source MAC addresses, it affects the update of the MAC address table. •...
Use undo mac-address max-mac-count to restore the default maximum number of MAC addresses that can be learned on an Ethernet port. By default, no MAC learning limit is configured. Related commands: mac-address and mac-address timer. Examples # Set the maximum number of MAC addresses that can be learned on port GigabitEthernet 1/0/1 to 600.
Parameters None Description Use mac-address information enable to enable MAC Information globally. Use undo mac-address information enable to restore the default. By default, MAC Information is disabled globally. Examples # Enable MAC Information globally. <Sysname> system-view [Sysname] mac-address information enable mac-address information interval Syntax mac-address information interval interval-time...
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. Description Use mac-address information mode to set the MAC Information mode (to use Syslog messages or trap messages) to inform the remote network management device of MAC address changes.
Ethernet link aggregation configuration commands default Syntax default View Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use default to restore the default settings for an aggregate interface. CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network.
Default level 2: System level Parameters text: Specifies the interface description, a string of 1 to 80 characters. Description Use description to set a description for an interface. Fore example, you can include information such as the purpose of the interface for the ease of management. Use undo description to restore the default setting.
Page 73
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display interface to display aggregate interface information. If bridge-aggregation is not specified, this command displays information about all interfaces. If bridge-aggregation is specified without any interface number specified, this command displays information about all aggregate interfaces.
Table 15 Command output Field Description The Layer 2 interface status: • DOWN ( Administratively )—The interface is administratively shut down with the shutdown command. Bridge-Aggregation1 current state • DOWN—The interface is administratively up but physically down (possibly because no physical link is present or the link is faulty). •...
Default 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.
Page 76
|: 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.
display link-aggregation member-port Syntax display link-aggregation member-port [ interface-list ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ], where interface-type interface-number indicates the port type and port number.
Page 78
G -- Defaulted, H -- Expired GigabitEthernet1/0/2: Aggregation Interface: Bridge-Aggregation2 Local: Port Number: 7 Port Priority: 32768 Oper-Key: 3 Flag: {ACG} Remote: System ID: 0x8000, 0000-0000-0000 Port Number: 0 Port Priority: 32768 Oper-Key: 0 Flag: {EF} Received LACP Packets: 0 packet(s) Illegal: 0 packet(s) Sent LACP Packets: 0 packet(s) Table 18 Command output...
display link-aggregation summary Syntax display link-aggregation summary [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
Field Description Load sharing type: Loadsharing Type • Shar—Load sharing. • NonS—Non-load sharing. Local system ID, which comprises the system LACP priority and the Actor System ID system MAC address. AGG Interface Type and number of the aggregate interface. AGG Mode Aggregation group type.
Page 81
Use display link-aggregation verbose to display information about all aggregation groups. The bridge-aggregation keyword is available only when you create Layer 2 aggregate interfaces on the device. Examples # Display detailed information about the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 1, which is a dynamic aggregation group.
Table 20 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: • A—LACP is enabled. • B—Indicates the LACP short timeout. • C—The sending system detects that the link is aggregatable. Flags •...
Parameters None Description 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. By default, linkUp/linkDown trap generation is enabled for an aggregate interface. For an aggregate interface to generate linkUp/linkDown traps when its link state changes, you must also enable linkUp/linkDown trap generation globally with the snmp-agent trap enable [ standard [ linkdown | linkup ] * ] command.
[Sysname-Bridge-Aggregation1] lacp period short Syntax lacp period short undo lacp period View Ethernet interface view Default level 2: System level Parameters None Description 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.
Destination MAC address • • Source IP address and destination IP address Source MAC address and destination MAC address • In Layer 2 aggregate interface view, the switch supports the following load sharing criteria and combinations: Load-sharing criteria automatically determined based on the packet type •...
Description Use link-aggregation port-priority to set the aggregation priority of a port. Use undo link-aggregation port-priority to restore the default setting. The default aggregation priority of a port is 32768. Examples # Set the aggregation priority of port GigabitEthernet 1/0/1 to 64. <Sysname>...
undo port link-aggregation group View Ethernet interface view Default level 2: System level Parameters number: Specifies the number of the aggregate interface corresponding to an aggregation group. The number argument ranges from 1 to 128. Description 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.
Port isolation configuration commands display port-isolate group Syntax display port-isolate group [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
port-isolate enable Syntax port-isolate enable undo port-isolate enable View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use port-isolate enable to assign a port to an isolation group. Use undo port-isolate enable to remove a port from the isolation group. •...
Spanning tree configuration commands active region-configuration Syntax active region-configuration View MST region view Default level 2: System level Parameters None Description Use active region-configuration to activate your MST region configuration. When you configure MST region–related parameters, MSTP launches a new spanning tree calculation process that may cause network topology instability.
Parameters None Description Use check region-configuration to display MST region pre-configuration information, including the region name, revision level, and VLAN-to-instance mapping settings. Two or more spanning tree devices belong to the same MST region only if they are configured with the same format selector (0 by default, 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 via a physical link.
Page 97
Default level 1: Monitor level Parameters instance instance-id: Displays the status and statistics of a specific MSTI. The value of instance-id ranges from 0 to 32, where 0 represents the common internal spanning tree (CIST). interface interface-list: Displays the spanning tree status and statistics on the ports specified by a port list, format interface-list interface-type...
Page 98
Examples # In MSTP mode, display the brief spanning tree status and statistics of MSTI 0 on ports GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4. <Sysname> display stp instance 0 interface gigabitethernet 1/0/1 to gigabitethernet 1/0/4 brief MSTID Port Role STP State Protection GigabitEthernet1/0/1 ALTE...
Page 99
Digest-Snooping :disabled TC or TCN received Time since last TC :0 days 0h:5m:42s ----[Port1(GigabitEthernet1/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.2 Port Edged :Config=disabled / Active=disabled Point-to-point :Config=auto / Active=true Transmit Limit...
Page 100
Table 24 Command output Field Description 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 CIST Bridge the dot is the device’s priority in the CIST, and the value following the dot is the device’s MAC address.
Page 101
Field Description The port is an edge port or non-edge port. • Port Edged Config—Configured value. • Active—Actual value. The port is connected to a point-to-point link or not. • Point-to-point Config—Configured value. • Active—Actual value. Transmit Limit Maximum number of packets sent within each hello time. Protection type on the port: •...
Field Description Forward delay(s) Port state transition delay (in seconds). Hello time(s) Interval (in seconds) for the root bridge to send BPDUs. Max hops Maximum hops in the MSTI. display stp abnormal-port Syntax display stp abnormal-port [ | { begin | exclude | include } regular-expression ] View Any view Default level...
Field Description Reason that the port was blocked: • ROOT-Protected—Root guard function. • LOOP-Protected—Loop guard function. Reason • Formatcompatibility-Protected—MSTP BPDU format incompatibility protection function. • InconsistentPortType-Protected—Port type inconsistent protection function. • InconsistentPvid-Protected—PVID inconsistent protection function. display stp bpdu-statistics Syntax display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-id ] ] [ | { begin | exclude | include } regular-expression ] View Any view...
Page 104
If you specify a port, this command displays the BPDU statistics on the port. • Examples # In MSTP mode, display the BPDU statistics of all MSTIs on GigabitEthernet 1/0/1. <Sysname> display stp bpdu-statistics interface gigabitethernet 1/0/1 Port: GigabitEthernet1/0/1 Instance-independent: Type Count Last Updated...
Timeout BPDUs MAX-hoped BPDUs TC detected TC sent TC received Table 26 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.
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.
Page 107
|: 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.
display stp region-configuration Syntax display stp region-configuration [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
display stp tc Syntax display stp [ instance instance-id ] tc [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 0: Visit level Parameters instance instance-id: Displays the statistics of TC/TCN BPDUs received and sent by all ports in a particular MSTI.
Table 31 Command output Field Description Port Port name. Receive Number of TC/TCN BPDUs received on each port. Send Number of TC/TCN BPDUs sent by each port. instance Syntax instance instance-id vlan vlan-list undo instance instance-id [ vlan vlan-list ] View MST region view Default level...
region-name Syntax region-name name undo region-name View MST region view Default level 2: System level Parameters name: Specifies the MST region name, a string of 1 to 32 characters. Description Use region-name to configure the MST region name. Use undo region-name to restore the default MST region name. By default, the MST region name of a device is its MAC address.
Description Use reset stp to clear the MSTP statistics. The MSTP statistics include the numbers of TCN BPDUs, configuration BPDUs, RST BPDUs and MST BPDUs sent/received through the specified ports. The STP BPDUs and TCN BPDUs are counted only for the CIST.
stp bpdu-protection Syntax stp bpdu-protection undo stp bpdu-protection View System view Default level 2: System level Parameters None Description Use stp bpdu-protection to enable the BPDU guard function. Use undo stp bpdu-protection to disable the BPDU guard function. By default, the BPDU guard function is disabled. Examples # Enable the BPDU guard function.
Each MST region is considered as a device, and the configured network diameter of the switched network is only effective for the CIST (or the common root bridge), not for MSTIs. Related commands: stp timer forward-delay, stp timer hello, and stp timer max-age. Examples # In MSTP mode, set the network diameter of the switched network to 5.
Parameters instance instance-id: Sets the path cost of the ports in a particular MSTI. The value of instance-id ranges from 0 to 32, where 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.
Default level 2: System level Parameters enable: Configures the ports as edge ports. disable: Configures the ports as non-edge ports. Description Use stp edged-port enable to configure the ports as edge ports. Use stp edged-port disable to configure the ports as non-edge ports. Use undo stp edged-port to restore the default.
Parameters None Description Use stp enable to enable the spanning tree feature globally. Use undo stp enable to disable the spanning tree feature. By default, the spanning tree feature is disabled globally and enabled on all ports. Configured in system view, the setting takes effect globally. Configured in Ethernet interface view, the setting takes effect only on the interface.
Use undo stp loop-protection to restore the default. By default, the loop guard function is disabled. Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface. Configured on a member port in an aggregation group, the setting takes effect only after the port leaves the aggregation group.
View System view, Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use stp mcheck to perform the mCheck operation globally or on a port. If a port on a device running MSTP or RSTP mode connects to an STP device, the port will automatically migrate to the STP mode.
Default level 2: System level Parameters stp: Configures the spanning tree device to operate in STP mode. rstp: Configures the spanning tree device to operate in RSTP mode. mstp: Configures the spanning tree device to operate in MSTP mode. Description Use stp mode to configure the spanning tree operating mode.
Parameters auto: Specifies automatic detection of the link type. force-false: Specifies the non-point-to-point link type. force-true: Specifies the point-to-point link type. Description Use stp point-to-point to configure the link type of the ports. Use undo stp point-to-point to restore the default. The default setting is auto and the spanning tree device automatically detects whether a port connects to a point-to-point link.
priority: Specifies a port priority, in the range of 0 to 240 in steps of 16 (as in 0, 16, 32). Description Use stp port priority to set the priority of the ports. Use undo stp port priority to restore the default. By default, the port priority is 128.
By default, this function is enabled. Examples # In MSTP mode, enable outputting port state transition information for MSTI 2. <Sysname> system-view [Sysname] stp port-log instance 2 %Aug 16 00:49:41:856 2006 Sysname MSTP/3/MSTP_DISCARDING: Instance 2's GigabitEthernet1/0/1 has been set to discarding state! %Aug 16 00:49:41:856 2006 Sysname MSTP/3/MSTP_DISCARDING: Instance 2's GigabitEthernet1/0/2 has been set to forwarding state! The output shows that GigabitEthernet 1/0/1 in MSTI 2 transitioned to the discarding state and...
stp region-configuration Syntax stp region-configuration undo stp region-configuration View System view Default level 2: System level Parameters None Description Use stp region-configuration to enter MST region view. Use undo stp region-configuration to restore the default MST region configurations. These are the default settings for the MST region: The MST region name of the device is the MAC address of the device.
Description Use stp root primary to configure the device as the root bridge. Use undo stp root to restore the default. By default, a device is not a root bridge. To set an MSTP device as the root bridge in a specific MSTI, use this command with the MSTI specified. To set an MSTP device in the CIST or an STP/RSTP device as the root bridge, use this command without specifying any MSTI.
stp root-protection Syntax stp root-protection undo stp root-protection View Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use stp root-protection to enable the root guard function on the ports. Use undo stp root-protection to restore the default. By default, the root guard function is disabled.
Description Use stp tc-protection enable to enable the TC-BPDU attack guard function for the device. Use stp tc-protection disable to disable the TC-BPDU attack guard function for the device. By default, the TC-BPDU attack guard function is enabled. Examples # Disable the TC-BPDU attack guard function for the device. <Sysname>...
Parameters None Description Use stp tc-snooping to enable topology change (TC) snooping. Use undo stp tc-snooping to disable TC snooping. By default, TC snooping disabled. TC snooping and STP are mutually exclusive. Before enabling TC snooping, first disable STP globally. TC snooping does not take effect on the ports on which BPDU tunneling is enabled for STP.
View System view Default level 2: System level Parameters time: Sets the max age in 0.01 seconds, in the range of 600 to 4000 in increments of 100 (as in 600, 700, 800). Description Use stp timer max-age to set the max age timer of the device. Use undo stp timer max-age to restore the default.
After the network topology is stabilized, each non-root-bridge device forwards configuration BPDUs to the surrounding devices at the interval of hello time to check whether any link is faulty. If a device does not receive a BPDU from the upstream device within nine times the hello time, it will assume that the upstream device has failed and start a new spanning tree calculation process.
[Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp transmit-limit 5 vlan-mapping modulo Syntax vlan-mapping modulo modulo View MST region view Default level 2: System level Parameters modulo: Sets the modulo value, in the range of 1 to 32. Description Use vlan-mapping modulo to map VLANs in the MST region to MSTIs according to the specified modulo value, quickly creating a VLAN-to-instance mapping table.
You cannot enable BPDU tunneling on a member port of a service loopback group. Before enabling BPDU tunneling for DLDP, EOAM, GVRP, HGMP, LLDP, or STP on a port, disable the protocol on the port first. To enable BPDU tunneling for PVST (which is a spanning tree protocol) on a port, disable STP first and then enable BPDU tunneling for STP on the port.
VLAN configuration commands Basic VLAN configuration commands default Syntax default View VLAN interface view Default level 2: System level Parameters None Description CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network. Use default to restore the default settings for a VLAN interface.
Page 139
View VLAN view, VLAN interface view Default level 2: System level Parameters text: Specifies the description of a VLAN or VLAN interface. The string can include case-sensitive letters, digits, special characters such as tilde (~), exclamation point (!), at sign (@), pound sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon...
Field Description Time when the reset counters interface vlan-interface command was last used to clear the interface statistics. Last clearing of counters Never indicates the reset counters interface command has never been used on the interface since the device’s startup. Last 300 seconds input: 0 bytes/sec Average rate of input packets in the last 300 seconds (in bps and pps).
Page 143
Default level 1: Monitor level Parameters vlan-id1: Displays information about a VLAN specified by VLAN ID, in the range of 1 to 4094. vlan-id1 to vlan-id2: Displays information about VLANs specified by a VLAN ID range. The vlan-id2 argument cannot be smaller than the vlan-id1 argument. all: Displays all VLAN information but the reserved VLANs.
Description 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. Create the VLAN before you create the VLAN interface. To configure an IP address for a VLAN interface that will perform IP routing, use the ip address command in VLAN interface view.
To remove the primary IP address, use the undo ip address ip-address { mask | mask-length } • command. To remove a secondary IP address, use the undo ip address [ ip-address { mask | mask-length } • [ sub ] ] command Related commands: display ip interface (Layer 3—IP Services Command Reference).
Default level 2: System level Parameters text: Specifies a VLAN name, a string of 1 to 32 characters. The string can include case-sensitive letters, digits, special characters such as tilde (~), exclamation point (!), at sign (@), pound sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon...
If the vlan-interface-id argument is specified, this command clears the statistics of the specified VLAN interface. Related commands: display interface vlan-interface. Examples # Clear the statistics on VLAN-interface 2. <Sysname> reset counters interface vlan-interface 2 shutdown Syntax shutdown undo shutdown View VLAN interface view Default level...
vlan Syntax vlan { vlan-id1 [ to vlan-id2 ] | all } undo vlan { vlan-id1 [ to vlan-id2 ] | all } View System view Default level 2: System level 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.
Table 34 Command output Field Description Interface Port name PVID PVID of the port VLAN passing VLANs for which the port allows packets to pass through Tagged VLANs for which the port sends packets without removing VLAN tags Untagged VLANs for which the port sends packets after removing VLAN tags port Syntax port interface-list...
port access vlan Syntax port access vlan vlan-id undo port access vlan View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. Verify that the VLAN specified by the VLAN ID already exists.
View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. Description Use port hybrid pvid to configure the PVID of the hybrid port. Use undo port hybrid pvid to restore the default.
Page 154
undo port hybrid vlan vlan-list View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-list: Specifies a list of VLANs that the hybrid ports will be assigned to, in the format of [ vlan-id1 [ to vlan-id2 ] ]&<1- 1 0>, where vlan-id1 and vlan-id2 represent VLAN IDs and each range from 1 to 4094 and &<1- 1 0>...
Configuring GigabitEthernet1/0/3... Done. The output shows that GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1. port link-type Syntax port link-type { access | hybrid | trunk } undo port link-type View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level...
[Sysname-Bridge-Aggregation1] port link-type hybrid port trunk permit vlan Syntax port trunk permit vlan { vlan-list | all } undo port trunk permit vlan { vlan-list | all } View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-list: Specifies a list of VLANs that the trunk ports will be assigned to, in the format of [ vlan-id1 [ to...
You must use the port trunk permit vlan command to configure the trunk port to allow and forward packets from the PVID. Related commands: port link-type and port trunk permit vlan. Examples # Configure VLAN 100 as the PVID of the trunk port GigabitEthernet 1/0/1. <Sysname>...
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display mac-vlan to display the specified MAC address-to-VLAN entries. If mac-address mac-address is specified but mask is not specified, only the MAC address-to-VLAN entry containing the specified MAC address is displayed. Examples # Display all the MAC address-to-VLAN entries.
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.
undo mac-vlan trigger enable View Layer 2 Ethernet port view Default level 2: System level Parameters None Description Use mac-vlan trigger enable to enable dynamic MAC-based VLAN assignment. The port configured with this command will be dynamically assigned to VLANs based on the source MAC addresses of the received packets.
Use undo port pvid disable to restore the default. By default, when a port receives a packet with an unknown source MAC address that does not match any MAC address-to-VLAN entry, it forwards the packet in its PVID. Examples # Disable the PVID of GigabitEthernet 1/0/1 from forwarding packets whose source MAC addresses do not match any MAC address-to-VLAN entry.
Protocol-based VLAN configuration commands display protocol-vlan interface Syntax display protocol-vlan interface { interface-type interface-number1 [ to interface-type interface-number2 ] | all } [ | { begin | exclude | include } regular-expression ] View Any view Default level 2: System level Parameters interface-type interface-number1: Specifies an interface by its type and number.
display protocol-vlan vlan Syntax display protocol-vlan vlan { vlan-id1 [ to vlan-id2 ] | all } [ | { begin | exclude | include } regular-expression ] View Any view Default level 2: System level Parameters vlan-id1: Specifies a protocol-based VLAN ID, in the range of 1 to 4094. vlan-id1 to vlan-id2: Displays protocol-based VLAN information of a VLAN range from vlan-id1 to vlan-id2.
Table 37 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 port hybrid protocol-vlan Syntax port hybrid protocol-vlan vlan vlan-id { protocol-index [ to protocol-end ] | all } undo port hybrid protocol-vlan { vlan vlan-id { protocol-index [ to protocol-end ] | all } | all } View Layer 2 Ethernet interface view, Layer 2 aggregate interface view...
Examples # Associate the hybrid port GigabitEthernet 1/0/1 with protocol 0 (IPv4) in VLAN 2. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] protocol-vlan ipv4 [Sysname-vlan2] quit [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-type hybrid [Sysname-GigabitEthernet1/0/1] port hybrid vlan 2 untagged Please wait... Done [Sysname-GigabitEthernet1/0/1] port hybrid protocol-vlan vlan 2 0 # Associate the hybrid Layer 2 aggregate interface Bridge-Aggregation 1 with protocol 0 in VLAN 2.
Page 168
mode: Configures a user-defined protocol template for the VLAN, which could also have the following encapsulation formats: ethernetii, llc, and snap. ethernetii etype etype-id: Matches Ethernet II encapsulation format and the corresponding protocol type values. The etype-id argument is the protocol type ID of inbound packets, in the range of 0x0600 to 0xFFFF (excluding 0x0800, 0x809B, 0x8137, and 0x86DD).
[Sysname] vlan 3 [Sysname-vlan3] protocol-vlan ipv4 # Create an ARP protocol template for VLAN 3 (ARP code is 0x0806) to make VLAN 3 transmit ARP packets. • To use Ethernet encapsulation, use this command: [Sysname-vlan3] protocol-vlan mode ethernetii etype 0806 To use 802.3 encapsulation, use this command: •...
192.168.1.0 255.255.255.0 Table 38 Command output Field Description Subnet-Index Index of the IP subnet IP ADDRESS IP address of the subnet (either an IP address or a network address) NET MASK Mask of the IP subnet display ip-subnet-vlan vlan Syntax display ip-subnet-vlan vlan { vlan-id1 [ to vlan-id2 ] | all } [ | { begin | exclude | include } regular-expression ] View...
Table 39 Command output Field Description Subnet Index IP subnet index. IP Address IP address of the subnet. It can be an IP address or a network address. Subnet Mask Mask of the IP subnet. ip-subnet-vlan Syntax ip-subnet-vlan [ ip-subnet-index ] ip ip-address [ mask ] undo ip-subnet-vlan { ip-subnet-index [ to ip-subnet-end ] | all } View VLAN view...
port hybrid ip-subnet-vlan Syntax port hybrid ip-subnet-vlan vlan vlan-id undo port hybrid ip-subnet-vlan { vlan vlan-id | all } View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. all: Specifies all VLANs.
Page 173
<Sysname> system-view [Sysname] vlan 3 [Sysname-vlan3] ip-subnet-vlan ip 192.168.1.0 255.255.255.0 [Sysname-vlan3] quit [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port hybrid vlan 3 untagged Please wait... Done Configuring GigabitEthernet1/0/1... Done. Configuring GigabitEthernet1/0/2... Done. Configuring GigabitEthernet1/0/3... Done. [Sysname-Bridge-Aggregation1] port hybrid ip-subnet-vlan vlan 3 The output shows that GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1.
Isolate-user-VLAN configuration commands display isolate-user-vlan Syntax display isolate-user-vlan [ isolate-user-vlan-id ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters isolate-user-vlan-id: Specifies an isolate-user-VLAN ID, in the range of 1 to 4094. |: Filters command output by specifying a regular expression.
isolate-user-vlan Syntax isolate-user-vlan isolate-user-vlan-id secondary secondary-vlan-id1 [ to secondary-vlan-id2 ] undo isolate-user-vlan isolate-user-vlan-id [ secondary secondary-vlan-id1 [ to secondary-vlan-id2 ] ] View System view Default level 2: System level Parameters isolate-user-vlan-id: Specifies an isolate-user-VLAN ID, in the range of 1 to 4094. Do not specify VLAN 1 for this argument.
isolate-user-vlan enable Syntax isolate-user-vlan enable undo isolate-user-vlan enable View VLAN view Default level 2: System level Parameters None Description Use isolate-user-vlan enable to configure the VLAN as an isolate-user-VLAN. Use undo isolate-user-vlan enable to remove the isolate-user-VLAN configuration for the VLAN. By default, no VLAN is an isolate-user-VLAN.
Page 178
When you use the port isolate-user-vlan vlan-id promiscuous command on a port that is operating in promiscuous mode, the device automatically executes the undo port isolate-user-vlan command to cancel the promiscuous mode of the port first. If you specify an isolate-user-VLAN in the command, the switch automatically assigns the target port to both the specified VLAN and all secondary VLANs associated with it.
[Sysname-GigabitEthernet1/0/1] undo port isolate-user-vlan [Sysname-GigabitEthernet1/0/1] display this interface GigabitEthernet1/0/1 port link-mode bridge port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 20 untagged port hybrid pvid vlan 2 return # Assign access port GigabitEthernet 1/0/1 to VLAN 10, which is not an isolate-user-VLAN, configure the port to operate in promiscuous mode in VLAN 10, and then cancel the configuration.
Page 180
Default level 2: System level Parameters None Description Use port isolate-user-vlan host to configure a port to operate in host mode. Use undo port isolate-user-vlan to restore the default. By default, a port does not operate in promiscuous mode or host mode. If the port has been assigned to a secondary VLAN, the switch automatically assigns the target port to the isolate-user-VLAN associated with the secondary VLAN.
Field Description Mask Masks of the OUI addresses supported Description Description strings of the OUI addresses supported display voice vlan state Syntax display voice vlan state [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters...
Field Description Security mode of the voice VLAN: • Voice VLAN security mode Security—Security mode. • Normal—Normal mode. Voice VLAN aging time Aging time of the voice VLAN. Voice VLAN enabled port and its Voice VLAN-enabled port and its voice VLAN assignment mode. mode PORT Voice VLAN-enabled port name.
voice vlan enable Syntax voice vlan vlan-id enable undo voice vlan [ vlan-id ] enable View Layer 2 Ethernet interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, in the range of 2 to 4096. Description Use voice vlan enable to enable the voice VLAN feature and configure a VLAN as the voice VLAN for the Ethernet port.
oui: Specifies the OUI address you want to remove, in the format of H-H-H. For example, 1234- 1 200-0000. An OUI address is the logic AND result of mac-address and oui-mask. An OUI address cannot be a broadcast address, a multicast address, or an all-zero address. Description Use voice vlan mac-address to allow packets carrying the specified OUI address to pass through.
Description Use voice vlan mode auto to configure the port to operate in automatic voice VLAN assignment mode. Use undo voice vlan mode auto to configure the port to operate in manual voice VLAN assignment mode. By default, a port operates in automatic voice VLAN assignment mode. The voice VLAN modes of different ports are independent of one another.
<Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] voice vlan qos 5 45 voice vlan qos trust Syntax voice vlan qos trust undo voice vlan qos View Layer 2 Ethernet interface view Default level 2: System level Parameters None Description Use voice vlan qos trust to configure the interface to trust the priority settings carried in incoming voice traffic.
Page 189
Default level 2: System level Parameters None Description 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. By default, the voice VLAN security mode is enabled. When you enable the security mode for a voice VLAN, only voice traffic can be transmitted in the voice VLAN.
GVRP configuration commands display garp statistics Syntax display garp statistics [ interface interface-list ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface interface-list: Displays the GARP statistics of one or multiple ports. You can specify up to 10 port lists.
<Sysname> display garp statistics interface gigabitethernet 1/0/1 to gigabitethernet 1/0/2 GARP statistics on port GigabitEthernet1/0/1 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded GARP statistics on port GigabitEthernet1/0/2 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded display garp timer Syntax...
Garp Join Time : 20 centiseconds Garp Leave Time : 60 centiseconds Garp LeaveAll Time : 1000 centiseconds Garp Hold Time : 10 centiseconds display gvrp local-vlan Syntax display gvrp local-vlan interface interface-type interface-number [ | { begin | exclude | include } regular-expression ] View Any view...
Page 193
Parameters interface interface-type interface-number: Specifies an interface by its type and number. vlan vlan-id: Specifies a VLAN ID, ranging from 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 Registrar state machine records the registration of attributes declared by other participants. Its state can be INN, LV, L3, L2, L1, MT, INR, LVR, L3R, L2R, L1R, MTR, INF, LVF, L3F, L2F, L1F, and MTF. Each state consists of two or three letters or numbers with the following meanings: •...
GVRP statistics on port GigabitEthernet1/0/1 GVRP Status : Enabled GVRP Running : YES GVRP Failed Registrations GVRP Last Pdu Origin : 0000-0000-0000 GVRP Registration Type : Normal Table 45 Command output Field Description GVRP Status Indicates whether GVRP is enabled or disabled. GVRP Running Indicates whether GVRP is running.
display gvrp vlan-operation Syntax display gvrp vlan-operation interface interface-type interface-number [ | { begin | exclude | include } regular-expression ] View Any view Default level 0: Visit level Parameters interface interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression.
Parameters timer-value: Hold timer (in centiseconds), which must be a multiple of 5 and range from 10 (inclusive) to half the Join timer (inclusive). Description Use garp timer hold to set the GARP Hold timer for an Ethernet port or Layer-2 aggregate interface. Use undo garp timer hold to restore the default of the GARP Hold timer.
garp timer leave Syntax garp timer leave timer-value undo garp timer leave View Ethernet interface view, Layer-2 aggregate interface view Default level 2: System level Parameters timer-value: Leave timer (in centiseconds), which must be a multiple of 5 and range from twice the Join timer (exclusive) to the LeaveAll timer (exclusive).
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. By default, the LeaveAll timer is 1000 centiseconds. NOTE: To keep the dynamic VLANs learned through GVRP stable, do not set the LeaveAll timer smaller than its default value.
gvrp registration Syntax gvrp registration { fixed | forbidden | normal } undo gvrp registration View Ethernet interface view, Layer-2 aggregate interface view Default level 2: System level Parameters fixed: Sets the GVRP registration mode to fixed. forbidden: Sets the GVRP registration mode to forbidden. normal: Sets the GVRP registration mode to normal.
Page 201
As an individual port in the form of interface-type interface-number • • As a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end-port number specified by interface-number2 must be greater than the start port number specified by interface-number1. Description Use reset garp statistics to clear the GARP statistics on the specified ports.
QinQ configuration commands Throughout this document, customer network VLANs (CVLANs), also called inner VLANs, refer to • the VLANs that a customer uses on the private network; and service provider network VLANs (SVLANs), also called outer VLANs, refer to the VLANs that a service provider uses to carry VLAN tagged traffic for customers.
qinq enable Syntax qinq enable undo qinq enable View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use qinq enable to enable basic QinQ on the Ethernet ports. Use undo qinq enable to disable basic QinQ on the Ethernet ports. By default, basic QinQ is disabled on Ethernet ports.
Table 46 Common protocol type values Protocol type Value 0x0806 0x0200 RARP 0x8035 0x0800 IPv6 0x86DD PPPoE 0x8863/0x8864 MPLS 0x8847/0x8848 IPX/SPX 0x8137 IS-IS 0x8000 LACP 0x8809 802.1X 0x888E Cluster 0x88A7 Reserved 0xFFFD/0xFFFE/0xFFFF Description Use qinq ethernet-type customer-tag to configure the TPID value in CVLAN tags. Use undo qinq ethernet-type customer-tag to restore the TPID value in CVLAN tags to the system default.
Description Use qinq ethernet-type service-tag to configure the TPID value in SVLAN tags. Use undo qinq ethernet-type service-tag to restore the TPID value in SVLAN tags to the default setting. By default, the TPID value in SVLAN tags is 0x8100. On a port with basic QinQ not enabled, the switch judges whether a frame is VLAN tagged based on the SVLAN TPID value on the port.
Page 206
<Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-type trunk [Sysname-GigabitEthernet1/0/1] port trunk permit vlan 2 3 50 to 100 [Sysname-GigabitEthernet1/0/1] qinq enable [Sysname-GigabitEthernet1/0/1] qinq transparent-vlan 2 3 50 to 100...
VLAN mapping configuration commands VLAN mapping is achieved through QoS policies. For QoS policy configuration commands, see ACL and QoS Command Reference. nest Syntax nest top-most vlan-id vlan-id undo nest top-most View Traffic behavior view Default level 2: System level Parameters vlan-id vlan-id: Specifies a VLAN tag ID, ranging from 1 to 4094.
Default level 2: System level Parameters vlan-id: Specifies a customer VLAN (CVLAN) ID, ranging from 1 to 4094. Description 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. The remark customer-vlan-id action cannot be applied to a VLAN or applied globally.
LLDP configuration commands display lldp local-information Syntax display lldp local-information [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters global: Displays the global LLDP information to be sent. interface interface-type interface-number: Displays the LLDP information to be sent out of the interface specified by its type and number.
Page 210
(MED inventory information of master board) HardwareRev : REV.A FirmwareRev : 109 SoftwareRev : 5.20 Alpha 2101 SerialNum : NONE Manufacturer name : HP Model name : HP Comware Asset tracking identifier : Unknown LLDP local-information of port 1[GigabitEthernet1/0/1]: Port ID subtype : Interface name Port ID : GigabitEthernet1/0/1...
Page 211
Table 47 Command output Field Description Global LLDP local-information Global LLDP information to be sent. Chassis ID Bridge MAC address of the device. Supported capabilities: • System capabilities supported Bridge—Switching is supported. • Router—Routing is supported. Enabled capabilities: • System capabilities enabled Bridge—Switching is enabled.
Field Description Auto-negotiation enabled Indicates whether or not auto-negotiation is enabled on the port. OperMau Speed and duplex state of the port. PoE supported Indicates whether or not PoE is supported on the port. Link aggregation supported Indicates whether or not link aggregation is supported. Link aggregation enabled Indicates whether or not link aggregation is enabled.
Page 213
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.
Page 214
Port and protocol VLAN ID(PPVID) : 1 Port and protocol VLAN supported : Yes Port and protocol VLAN enabled : No VLAN name of VLAN 1: VLAN 0001 Auto-negotiation supported : Yes Auto-negotiation enabled : Yes OperMau : speed(1000)/duplex(Full) Power port class : PD PSE power supported : No...
Page 215
Field Description ID type of the port that connects the LLDP neighboring device to the local device: • Interface alias • Port component • MAC address Port ID type • Network address (the IP address type, such as ipv4) • Interface name •...
Page 216
Field Description Indicates whether or not auto-negotiation is enabled on the port that Auto-negotiation enabled connects the LLDP neighboring device to the local device. Speed and duplex state on the port that connects the LLDP OperMau neighboring device to the local device. PoE device type of the LLDP neighboring device: •...
Page 217
Field Description Power source type of an LLDP neighboring device which is a PSE device: • Unknown—Unknown power supply PoE PSE power source • Primary—Primary power supply • Backup—Backup power supply PD power type of an LLDP neighboring device which is a PD device: •...
Field Description This field appears only when the device connects to a device of an unknown vendor. TLV information Information contained in unknown organizationally specific TLV. Local Interface Local port that receives the LLDP information. display lldp statistics Syntax display lldp statistics [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view...
The number of LLDP error frames The number of LLDP TLVs discarded The number of LLDP TLVs unrecognized The number of LLDP neighbor information aged out : 0 The number of CDP frames transmitted The number of CDP frames received The number of CDP frames discarded The number of CDP error frames Table 49 Command output...
Page 220
<Sysname> display lldp status Global status of LLDP: Enable The current number of LLDP neighbors: 0 The current number of CDP neighbors: 0 LLDP neighbor information last changed time: 0 days,0 hours,0 minutes,0 seconds Transmit interval : 30s Hold multiplier Reinit delay : 2s Transmit delay...
Field Description Number of neighbors Number of LLDP neighbors connecting to the port. Number of MED neighbors Number of MED neighbors connecting to the port. Number of CDP neighbors Number of CDP neighbors connecting to the port. Number of sent optional TLV Number of optional TLVs contained in an LLDPDU sent through the port.
Page 222
Port VLAN ID TLV Port And Protocol VLAN ID TLV VLAN Name TLV IEEE 802.3 extend TLV: MAC-Physic TLV Power via MDI TLV Link Aggregation TLV Maximum Frame Size TLV LLDP-MED extend TLV: Capabilities TLV Network Policy TLV Location Identification TLV Extended Power via MDI TLV Inventory TLV Table 51 Command output...
View Layer 2 Ethernet interface view Default level 2: System level Parameters interval: Sets the LLDP polling interval, ranging from 1 to 30 seconds. Description Use lldp check-change-interval to enable LLDP polling and set the polling interval. Use undo lldp check-change-interval to restore the default. By default, LLDP polling is disabled.
Description Use lldp enable to enable LLDP. Use undo lldp enable to disable LLDP. By default, LLDP is enabled on a port, and enabled globally. LLDP takes effect on a port only when LLDP is enabled both globally and on the port. Examples # Disable LLDP on GigabitEthernet 1/0/1.
View System view Default level 2: System level Parameters count: Sets the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. The argument ranges from 1 to 10. Description Use lldp fast-count to set the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. Use undo lldp fast-count to restore the default.
Use undo lldp management-address-tlv to disable management address advertising in LLDPDUs. By default, the management address is advertised through LLDPDUs. The management address is the main IP address of the lowest-ID VLAN carried on the port. If none of the carried VLANs is assigned an IP address, no management address will be advertised.
View System view Default level 2: System level Parameters interval: Sets the LLDP trap transmit interval, ranging from 5 to 3600 seconds. Description Use lldp timer notification-interval to set the LLDP trap transmit interval. Use undo lldp timer notification-interval to restore the default. By default, the LLDP trap transmit interval is 5 seconds.
View System view Default level 2: System level Parameters delay: Sets the LLDPDU transmit delay, ranging from 1 to 8192 seconds. Description Use lldp timer tx-delay to set the LLDPDU transmit delay. Use undo lldp timer tx-delay to restore the default. By default, the LLDPDU transmit delay is 2 seconds.
Related commands: lldp timer tx-delay. Examples # Set the LLDPDU transmit interval to 20 seconds. <Sysname> system-view [Sysname] lldp timer tx-interval 20 lldp tlv-enable Syntax lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1- 1 0>...
Page 233
mac-physic: Advertises MAC/PHY configuration/status TLVs. max-frame-size: Advertises maximum frame size TLVs. power: Advertises power via MDI TLVs and power stateful control TLVs. med-tlv: Advertises LLDP-MED TLVs. capability: Advertises LLDP-MED capabilities TLVs. inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID.
lldp voice-vlan Syntax lldp voice-vlan vlan-id undo lldp voice-vlan View Layer 2 Ethernet interface view Default level 2: System level Parameters vlan-id: Specifies a voice VLAN by its ID, which ranges from 1 to 4094. Description Use lldp voice-vlan vlan-id to configure a port to advertise a specific voice VLAN ID to the connected IP phone through LLDP.
Service loopback group configuration commands display service-loopback group Syntax display service-loopback group [ number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters number: ID of the service loopback group to be displayed. If no service loopback group is specified, information of all service loopback groups is displayed.
Field Description Service type of the service loopback group: Service Type • Tunnel—Supports unicast tunnel traffic Member Member ports of the service loopback group Status Port state, which can be selected or unselected port service-loopback group Syntax port service-loopback group number undo port service-loopback group View Layer 2 Ethernet interface view...
Page 237
Parameters number: Service loopback group ID, ranging from 1 to 1024. type: Specifies the service type of a service loopback group. tunnel: Specifies the service type of a service loopback group as Tunnel (unicast tunnel service). Description Use service-loopback group to create a service loopback group and specify its service type. Use undo service-loopback group to remove a service loopback group.
Layer 2 forwarding configuration commands cut-through enable Syntax cut-through enable undo cut-through enable View System view Default level 2: System level Parameters None Description Use the cut-through enable command to enable cut-through forwarding. Use the undo cut-through enable command to disable cut-through forwarding. By default, cut-through forwarding is disabled.
Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.com/support Before contacting HP, collect the following information: Product model names and numbers • • Technical support registration number (if applicable) Product serial numbers •...
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. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...
Page 241
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.
Index A B C D E F G I J L M N P Q R S U V W display link-aggregation load-sharing mode,67 display link-aggregation member-port,69 active region-configuration,87 display link-aggregation summary,71 display link-aggregation verbose,72 display lldp local-information,201 bpdu-tunnel dot1q,128 display lldp neighbor-information,204 bpdu-tunnel...
Page 244
port hybrid ip-subnet-vlan,164 storm-constrain enable log,34 port hybrid protocol-vlan,158 storm-constrain enable trap,35 port hybrid pvid,144 storm-constrain interval,36 port hybrid vlan,145 bpdu-protection,106 port isolate-user-vlan host,171 bridge-diameter,106 port isolate-user-vlan promiscuous,169 compliance,107 port link-aggregation group,80 config-digest-snooping,108 port link-type,147 cost,108 port pvid disable,154 edged-port,109 port service-loopback group,228 enable,1 10...