HP 3100 v2 Series Command Reference Manual
HP 3100 v2 Series Command Reference Manual

HP 3100 v2 Series Command Reference Manual

Hide thumbs Also See for 3100 v2 Series:
Table of Contents

Advertisement

HPE 3100 v2 Switch Series
Layer 2—LAN Switching

Command Reference

Part number: 5998-6001s
Software version: Release 5213 and Release 5213P02
Document version: 6W101-20160506

Advertisement

Table of Contents
loading

Summary of Contents for HP 3100 v2 Series

  • Page 1: Command Reference

    HPE 3100 v2 Switch Series Layer 2—LAN Switching Command Reference Part number: 5998-6001s Software version: Release 5213 and Release 5213P02 Document version: 6W101-20160506...
  • Page 2 © Copyright 2016 Hewlett Packard Enterprise Development LP The information contained herein is subject to change without notice. The only warranties for Hewlett Packard Enterprise products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. Hewlett Packard Enterprise shall not be liable for technical or editorial errors or omissions contained herein.
  • Page 3: Table Of Contents

    Contents Ethernet interface configuration commands ···················································· 1     broadcast-suppression ······························································································································· 1   combo enable ············································································································································· 2   default ························································································································································ 3   description ·················································································································································· 3   display counters ········································································································································· 4   display counters rate ·································································································································· 5   display interface ········································································································································· 6  ...
  • Page 4 MAC address table configuration commands ··············································· 50     display mac-address ································································································································ 50   display mac-address aging-time ·············································································································· 51   display mac-address mac-learning ·········································································································· 52   display mac-address statistics ················································································································· 53   mac-address (interface view) ··················································································································· 54   mac-address (system view) ····················································································································· 55  ...
  • Page 5   snmp trap enable stp ······························································································································ 106   stp bpdu-protection ································································································································ 107   stp bridge-diameter ································································································································ 107   stp compliance ······································································································································· 108   stp config-digest-snooping ····················································································································· 109   stp cost ··················································································································································· 110   stp edged-port ········································································································································ 111   stp enable ··············································································································································· 112  ...
  • Page 6   display mac-vlan ···································································································································· 153   display mac-vlan interface ······················································································································ 154   mac-vlan enable ····································································································································· 155   mac-vlan mac-address ··························································································································· 155   Protocol-based VLAN configuration commands (available only on the HPE 3100 v2 EI) ····························· 156   display protocol-vlan interface ················································································································ 156  ...
  • Page 7   lldp check-change-interval ····················································································································· 202   lldp compliance admin-status cdp (available only on the HPE 3100 v2 EI) ··········································· 203   lldp compliance cdp (available only on the HPE 3100 v2 EI) ································································· 204   lldp enable ·············································································································································· 204   lldp encapsulation snap ··························································································································...
  • Page 8: Ethernet Interface Configuration Commands

    Ethernet interface configuration commands broadcast-suppression Syntax broadcast-suppression { ratio | kbps max-kbps } undo broadcast-suppression View Ethernet interface view, port group view Default level 2: System level Parameters ratio: Sets the broadcast suppression threshold as a percentage of the maximum interface rate, ranging from 1 to 100.
  • Page 9: Combo Enable

    Examples # Set the broadcast suppression threshold to 20% on Ethernet 1/0/1. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] broadcast-suppression 20 # Set the broadcast suppression threshold to 20% on all ports in the manual port group named group1. <Sysname> system-view [Sysname] port-group manual group1 [Sysname-port-group-manual-group1] group-member ethernet 1/0/1 [Sysname-port-group-manual-group1] group-member ethernet 1/0/2...
  • Page 10: Default

    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. Use default to restore the default settings for an Ethernet interface.
  • Page 11: Display Counters

    vertical bar (|), back slash (\), colon (:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/), spaces, and other Unicode characters and symbols. When you configure a description, follow these guidelines: • Each Unicode character takes the space of two regular characters. •...
  • Page 12: Display Counters Rate

    • If an interface type is specified, this command displays traffic statistics for all interfaces of the specified type. • If no interface type is specified, this command displays traffic statistics for all interfaces that have traffic counters. Examples # Display inbound traffic statistics for all Ethernet interfaces. <Sysname>...
  • Page 13: Display Interface

    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. Description Use display counters rate to display traffic rate statistics over the last sampling interval.
  • Page 14 View Any view Default level 1: Monitor level Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. brief: Displays brief interface information. If you do not specify this keyword, the command displays detailed interface information. 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.
  • Page 15 Tagged VLAN ID : none Untagged VLAN ID : 1 Port priority: 0 Last clearing of counters: Never Peak value of input: 0 bytes/sec, at 2012-03-06 16:32:05 Peak value of output: 0 bytes/sec, at 2012-03-06 16:32:05 Last 300 seconds input: 0 packets/sec 0 bytes/sec -% Last 300 seconds output: 0 packets/sec 0 bytes/sec -%...
  • Page 16 Field Description Mdi type Cable type. Port link-type Link type of the interface, which could be access, trunk, or hybrid. VLANs for which the interface sends packets without removing Tagged VLAN ID VLAN tags. VLANs for which the interface sends packets after removing VLAN Untagged VLAN ID tags.
  • Page 17 Field Description Total number of illegal inbound packets: • Fragment frames—CRC error frames shorter than 64 bytes. The length can be an integral or non-integral value. • Jabber frames—CRC error frames greater than the maximum frame length supported on the Ethernet interface (with an integral or non-integral length).
  • Page 18 Table 4 Description on the possible physical states of a Ethernet interface Field Description The interface is physically up. The interface is physically down, because no physical connection exists. DOWN Possible reason: The network cable is disconnected or faulty. The interface is physically down, because it was shut down with the shutdown command.
  • Page 19 Eth1/0/9 DOWN auto Eth1/0/10 DOWN auto # Filter the brief interface information to display the line starting with the (s) string and all subsequent lines. <Sysname>display interface brief | begin (s) The brief information of interface(s) under route mode: Link: ADM - administratively down; Stby - standby Protocol: (s) - spoofing Interface Link Protocol Main IP...
  • Page 20 Field Description Physical link state of the interface: • UP—The link is up. • DOWN—The link is physically down. Link • ADM—The link has been administratively shut down. To recover its physical state, perform the undo shutdown command. • Stby—The interface is a standby interface. Protocol Protocol connection state of the interface, which can be UP, DOWN, or UP(s).
  • Page 21: Display Loopback-Detection

    Field Description Loopback The interface is shut down because a loop is detected on it. detection-protected BPDU-protected The interface is shut down by the BPDU guard function. Monitor-Link uplink down The uplink of the monitor link group to which the interface belongs is down. display loopback-detection Syntax display loopback-detection [ | { begin | exclude | include } regular-expression ]...
  • Page 22: Display Port-Group Manual

    display port-group manual Syntax display port-group manual [ all | name port-group-name ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 2: System level Parameters all: Displays information about all port groups. name port-group-name: Specifies the name of a port group, a string of 1 to 32 characters.
  • Page 23: Display Storm-Constrain

    display storm-constrain Syntax display storm-constrain [ broadcast | multicast | unicast ] [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters broadcast: Displays broadcast storm control settings and statistics. multicast: Displays multicast storm control settings and statistics.
  • Page 24: Duplex

    Field Description 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. If you have not configured any protective action, N/A is displayed. Packet forwarding status: •...
  • Page 25: Flow-Control

    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. Use undo flow-control to disable generic flow control on the Ethernet interface. TxRx mode flow control enables an Ethernet interface to receive common pause frames from its peer, and send common pause frames to notify its peer of congestions.
  • Page 26: Flow-Interval

    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.
  • Page 27: Group-Member

    group-member Syntax group-member interface-list undo group-member interface-list View Port group view Default level 2: System level Parameters interface-list: Specifies an Ethernet interface list, in the form of interface-type interface-number [ to interface-type interface-number ] &<1-10>, where &<1-10> indicates that you can specify up to 10 interfaces or interface ranges.
  • Page 28: Jumboframe Enable

    [Sysname-Ethernet1/0/1] jumboframe enable Syntax jumboframe enable undo jumboframe enable View System view Default level 2: System level Parameters None Description Use the jumboframe enable command to enable jumbo frame support, which allows jumbo frames within 2048 bytes to pass through all Ethernet interfaces. Use the undo jumboframe enable command to disable jumbo frame support (prevent frames longer than 1536 bytes to pass through all Ethernet interfaces).
  • Page 29: Link-Delay Mode Up

    NOTE: This command does not apply to ports that are administratively shut down (with the shutdown command). Examples # Enable physical state change suppression on Ethernet 1/0/1, setting the suppression interval to 8 seconds. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] link-delay 8 link-delay mode up Syntax...
  • Page 30: Loopback-Detection Action

    Default level 2: System level Parameters external: Enables external loopback testing to test all on-chip functions related to Ethernet interfaces. internal: Enables internal loopback testing to test the hardware of Ethernet interfaces. Description Use loopback to enable loopback testing on an Ethernet interface. By default, loopback testing is disabled on Ethernet interfaces.
  • Page 31: Loopback-Detection Control Enable

    Examples # Configure the access port Ethernet 1/0/1 to shut down when a loop is detected. <Sysname> system-view [Sysname] loopback-detection enable [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] loopback-detection enable [Sysname-Ethernet1/0/1] loopback-detection action shutdown # Configure the trunk port Ethernet 1/0/2 to shut down when a loop is detected. <Sysname>...
  • Page 32: Loopback-Detection Enable

    loopback-detection enable Syntax loopback-detection enable undo loopback-detection enable View System view, Ethernet interface view, port group 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 or port group view. To use loopback detection on an Ethernet interface, you must enable the function both globally and on the port.
  • Page 33: Loopback-Detection Interval-Time

    <Sysname> system-view [Sysname] loopback-detection enable [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] loopback-detection enable loopback-detection interval-time Syntax loopback-detection interval-time time undo loopback-detection interval-time View System view Default level 2: System level Parameters time: Sets the loopback detection interval, ranging from 5 to 300 seconds. Description Use loopback-detection interval-time to set the loopback detection interval.
  • Page 34: Loopback-Detection Per-Vlan Enable

    • Single-port loopback—Occurs when a switch receives a packet that it sent out and the receiving interface is the same as the sending interface. • Multi-port loopback—Occurs when a switch receives a packet that it sent out but the receiving interface may not be the same as the sending interface.
  • Page 35: Mdi

    Syntax mdi { across | auto | normal } undo mdi View Ethernet interface view Default level 2: System level Parameters across: Sets the MDI mode to across. In this mode, pins 1 and 2 of the port are receive pins, and pins 3 and 6 are transmit pins.
  • Page 36: Port-Group Manual

    • For 100-Mbps ports, the max-kbps argument ranges from 1 to 100,000 kbps. • For 1000-Mbps ports, the max-kbps argument ranges from 1 to 1,000,000 kbps. Description Use multicast-suppression to set the multicast suppression threshold on one or multiple Ethernet interfaces.
  • Page 37: Reset Counters Interface

    View System view Default level 2: System level Parameters port-group-name: Sets the port group name, a string of 1 to 32 characters. Description Use port-group manual to create a port group and enter port group view. Use undo port-group manual to remove a port group. By default, no port group exists.
  • Page 38: Speed

    undo shutdown View Ethernet interface view, port group view Default level 2: System level Parameters None 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.
  • Page 39: Speed Auto

    Description Use speed to set the speed of an Ethernet interface. Use undo speed to restore the default. By default, an Ethernet interface automatically negotiates a speed with the peer. For an Ethernet copper port, use the speed command to set its speed to match the speed of the peer interface.
  • Page 40: Storm-Constrain

    NOTE: • To avoid negotiation failure, make sure that at least one speed option is supported at both ends. • Among the auto-negotiation-capable Layer 2 ports, the FE copper ports support only the 10 and 100 keywords, the GE copper ports support all keywords, and the GE fiber ports support only the 100 and 1000 keywords.
  • Page 41: Storm-Constrain Control

    [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] storm-constrain unicast pps 200 150 storm-constrain control Syntax storm-constrain control { block | shutdown } undo storm-constrain control View Ethernet interface view Default level 2: System level Parameters block: Blocks this type of traffic, while forwarding other types of traffic. Even though the interface does not forward the blocked traffic, it still counts the traffic.
  • Page 42: Storm-Constrain Enable Trap

    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. Use undo storm-constrain enable log to disable log sending. By default, a storm control-enabled port sends log messages when monitored traffic exceeds the upper threshold or falls below the lower threshold from the upper threshold.
  • Page 43: Unicast-Suppression

    View System view Default level 2: System level Parameters seconds: Sets the traffic polling interval of the storm control module, ranging from 1 to 300 seconds. Description Use storm-constrain interval to set the traffic polling interval of the storm control module. Use undo storm-constrain interval to restore the default.
  • Page 44: Virtual-Cable-Test

    If you execute this command in Ethernet interface view, the configurations take effect only on the interface. If you execute this command in port group view, the configurations take effect on all ports in the port group. When you configure the suppression threshold in kbps, the actual suppression threshold might be different from the configured one as follows: •...
  • Page 45 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. If the cable connection is normal, the displayed cable length is the total length of the cable.
  • Page 46: Loopback And Null Interface Configuration Commands

    Loopback and null interface configuration commands default Syntax default View Loopback interface view, null 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 use it on a live network.
  • Page 47: Display Interface Loopback

    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. Description Use description to set a description for the interface.
  • Page 48 |: 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 49 Field Description State (enabled or disabled) of the network layer protocol Internet protocol processing (displayed as Internet Address is X.X.X.X/XX Primary). Physical is loopback The physical type of the interface is loopback. Time when statistics on the logical interface were last cleared by using the reset counters interface command.
  • Page 50: Display Interface Null

    Field Description Description Description of the interface. The cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Cause Administratively. To restore the physical state of the interface, use the undo shutdown command. NOTE: The switch does not support collecting statistics about average input or output rate of loopback interfaces.
  • Page 51: Interface Loopback

    Related commands: interface null. Examples # Display detailed information about null interface Null 0. <Sysname> display interface null 0 NULL0 current state :UP Line protocol current state :UP (spoofing) Description : NULL0 Interface The Maximum Transmit Unit is 1500 Internet protocol processing : disabled Physical is NULL DEV Port priority: 0 Last clearing of counters:...
  • Page 52: Interface Null

    Examples # Create interface loopback 0. <Sysname> system-view [Sysname] interface loopback 0 [Sysname-LoopBack0] interface null Syntax interface null 0 View System view Default level 2: System level Parameters 0: Specifies interface Null 0. The null interface number is fixed to 0. Description Use interface null to enter null interface view.
  • Page 53: Reset Counters Interface Null

    • If you do not specify the loopback keyword, this command clears the statistics on all interfaces in the system. • The device supports only one loopback interface, loopback 0, and therefore this command clears the statistics on loopback 0 whether you specify loopback or loopback 0. Examples # Clear statistics on loopback interface Loopback 0.
  • Page 54 Use undo shutdown to bring up the loopback interface. By default, a loopback interface is up. Examples # Shut down loopback interface loopback 0. <Sysname> system-view [Sysname] interface loopback 0 [Sysname-Loopback0] shutdown...
  • Page 55: Bulk Interface Configuration Commands

    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 56 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>. The interface-type interface-number argument specifies an interface by its type and number.
  • Page 57: Mac Address Table Configuration Commands

    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.
  • Page 58: Display Mac-Address Aging-Time

    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. Related commands: mac-address (system view), mac-address (interface view), and mac-address timer;...
  • Page 59: Display Mac-Address Mac-Learning

    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. Description Use display mac-address aging-time to display the aging time of dynamic entries in the MAC address table.
  • Page 60: Display Mac-Address Statistics

    Ethernet1/0/3 enable Ethernet1/0/4 enable Table 12 Command output Field Description Mac-address learning status of the switch Global MAC address learning status (enabled or disabled). PortName Port name. Learning Status MAC address learning status (enabled or disabled) for a port. display mac-address statistics Syntax display mac-address statistics [ | { begin | exclude | include } regular-expression ] View...
  • Page 61: Mac-Address (Interface View)

    Table 13 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 SYSTEM-DEFINED authentication)
  • Page 62: Mac-Address (System View)

    Examples # Add a static entry for MAC address 000f-e201-0101 on port Ethernet 1/0/1 that belongs to VLAN 2. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] mac-address static 000f-e201-0101 vlan 2 # Add a static entry for MAC address 000f-e201-0102 on port Bridge-Aggregation 1 that belongs to VLAN 1.
  • Page 63: Mac-Address Mac-Learning Disable

    A static or blackhole MAC address entry will not be overwritten by a dynamic MAC address entry. A dynamic MAC address entry can be overwritten by a static or blackhole MAC address entry. If you execute the undo mac-address command without specifying any parameters, this command deletes all unicast MAC address entries and static multicast MAC address entries.
  • Page 64: Mac-Address Max-Mac-Count

    NOTE: When MAC address learning is disabled, the learned MAC addresses remain valid until they age out. Examples # Disable MAC address learning on port Ethernet 1/0/1. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] mac-address mac-learning disable # Disable MAC address learning on VLAN 10. (Available only on the HPE 3100 v2 EI switch) <Sysname>...
  • Page 65: Mac-Address Timer

    [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] mac-address max-mac-count 600 mac-address timer Syntax mac-address timer { aging seconds | no-aging } undo mac-address timer aging View System view Default level 2: System level Parameters aging seconds: Sets an aging timer (in seconds) for dynamic MAC address entries. The value is in the range of 10 to 1000000 seconds.
  • Page 66 Default command level: 2: System level Usage guidelines A MAC address migration log contains a MAC address, ID of the VLAN to which the MAC address belongs, source interface from which the MAC address migrates, and the current interface with which the MAC address associates.
  • Page 67: Mac Information Configuration Commands

    MAC Information configuration commands MAC Information applies only to Layer 2 Ethernet interfaces. mac-address information enable (interface view) Syntax mac-address information enable { added | deleted } undo mac-address information enable { added | deleted } View Layer 2 Ethernet interface view Default level 1: Monitor level Parameters...
  • Page 68: Mac-Address Information Interval

    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...
  • Page 69: Mac-Address Information Queue-Length

    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.
  • Page 70: Ethernet Link Aggregation Configuration Commands

    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.
  • Page 71: Display Interface

    Parameters text: Specifies the interface description, a string of 1 to 80 characters. Description Use description to set a description for an interface. For 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 72 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. If bridge-aggregation interface-number is specified, this command displays information about the specified aggregate interface.
  • Page 73: Display Lacp System-Id

    Table 14 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). •...
  • Page 74: Display Link-Aggregation Load-Sharing Mode

    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 75: Display Link-Aggregation Member-Port

    Description Use display link-aggregation load-sharing mode to display global link-aggregation load sharing criteria. Examples # Display the global link-aggregation load sharing criteria. <Sysname>display link-aggregation load-sharing mode Link-Aggregation Load-Sharing Mode: Layer 2 traffic: source-mac address Layer 3 traffic: destination-ip address, source-ip address Table 16 Command output Field Description...
  • Page 76 Only the port number and operational key of a member port in a static aggregation group are displayed, because the aggregation group is not aware of the partner’s information. Examples # Display detailed link aggregation information for Ethernet 1/0/1, a member port of a static aggregation group.
  • Page 77: Display Link-Aggregation Summary

    Table 17 Command output Field Description LACP state flags: • A—LACP is enabled. • B—Indicates the LACP short timeout. • C—The sending system detects that the link is aggregatable. • Flags D—The sending system detects that the link is synchronized. •...
  • Page 78: Display Link-Aggregation Verbose

    The information about the remote system for a static link aggregation group may be displayed as none or may not be displayed, because the aggregation group is not aware of the partner’s information. Examples # Display the summary information for all aggregation groups. <Sysname>...
  • Page 79 View Any view Default level 1: Monitor level Parameters bridge-aggregation: Displays detailed information about the Layer 2 aggregation groups corresponding to Layer 2 aggregate interfaces. 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.
  • Page 80 ------------------------------------------------------------------------------- Eth1/0/26 32768 0x8000, 000f-e267-57ad {ACDEF} Eth1/0/32 32768 0x8000, 000f-e267-57ad {ACDEF} # Display detailed information about the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 2, which is a static aggregation group. <Sysname> display link-aggregation verbose bridge-aggregation 2 Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Port Status: S -- Selected, U -- Unselected Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation,...
  • Page 81: Enable Snmp Trap Updown

    Field Description Oper-Key Operational key. Flag LACP protocol state flag. Remote Information about the remote end. Actor Local port type and number. Partner Remote port index. enable snmp trap updown Syntax enable snmp trap updown undo enable snmp trap updown View Layer 2 aggregate interface view Default level...
  • Page 82: Lacp Period Short

    View System view Default level 2: System level Parameters interface-number: Specifies a Layer 2 aggregate interface by its number. • On the HPE 3100 v2 SI, the value range is 1 to 13. • On the HPE 3100 v2 EI, the value range is 1 to 9. Description Use interface bridge-aggregation to create a Layer 2 aggregate interface and enter the Layer 2 aggregate interface view.
  • Page 83: Lacp System-Priority

    lacp system-priority Syntax lacp system-priority system-priority undo lacp system-priority View System view Default level 2: System level Parameters system-priority: Specifies the LACP priority of the local system, in the range of 0 to 65535. The smaller the value, the higher the system LACP priority. Description Use lacp system-priority to set the LACP priority of the local system.
  • Page 84: Link-Aggregation Mode

    By default, the system selects the load sharing criteria according to the packet type. This command applies to only unicast packets, and can change the load sharing criteria for unicast packets. Broadcast packets and multicast packets always use the default load sharing criteria. The load sharing criteria that you configure will overwrite the previous criteria.
  • Page 85: Link-Aggregation Port-Priority

    link-aggregation port-priority Syntax link-aggregation port-priority port-priority undo link-aggregation port-priority View Ethernet interface view Default level 2: System level Parameters port-priority: Specifies a port aggregation priority, in the range of 0 to 65535. The smaller the value, the higher the port aggregation priority. Description Use link-aggregation port-priority to set the aggregation priority of a port.
  • Page 86: Port Link-Aggregation Group

    The minimum numbers of Selected ports for the local and peer aggregation groups must be consistent. Examples # Configure the minimum number of Selected ports as 3 in the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 1. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] link-aggregation selected-port minimum 3 port link-aggregation group...
  • Page 87: Reset Lacp Statistics

    Parameters bridge-aggregation: Clears statistics for Layer 2 aggregate interfaces. interface-number: Specifies an aggregate interface number. If the interface-number argument is not specified, this command clears statistics for all aggregate interfaces of the specified type. Description Use reset counters interface to clear statistics for the specified aggregate interfaces. Before collecting statistics for a Layer 2 aggregate interface within a specific period, clear the existing statistics of the interface.
  • Page 88 View Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use shutdown to shut down an aggregate interface. Use undo shutdown to bring up an aggregate interface. By default, aggregate interfaces are up. Examples # Shut down Layer 2 aggregate interface Bridge-Aggregation 1. <Sysname>...
  • Page 89: Port Isolation Configuration Commands

    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.
  • Page 90 View Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group 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. •...
  • Page 91 [Sysname-Bridge-Aggregation1] port-isolate enable...
  • Page 92: Spanning Tree Configuration Commands

    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.
  • Page 93: Check Region-Configuration

    Description Use bpdu-drop any to enable BPDU drop on a port. Use undo bpdu-drop any to disable BPDU drop on a port. By default, BPDU drop is disabled on a port. Examples # Enable BPDU drop on port Ethernet 1/0/1. <Sysname>...
  • Page 94: Display Stp

    Table 21 Command output Field Description Format selector of the MST region, which is 0 (not Format selector configurable). Region name MST region name. Revision level Revision level of the MST region. Instance Vlans Mapped VLAN-to-instance mappings in the MST region. display stp Syntax display stp [ instance instance-id | vlan vlan-id ] [ interface interface-list | slot slot-number ] [ brief ]...
  • Page 95 • If you specify a port list, this command displays the spanning tree information for the specified ports. The displayed information is sorted by port name. In MSTP mode, follow these guidelines: • If you do not specify any MSTI or port, this command displays the spanning tree information of all MSTIs on all ports.
  • Page 96 Table 22 Command output Field Description MSTID MSTI ID in the MST region. Port Port name, corresponding to each MSTI or VLAN. Port role: • ALTE—The port is an alternate port. • BACK—The port is a backup port. • Role ROOT—The port is a root port.
  • Page 97 Protection Type :None MST BPDU Format :Config=auto / Active=legacy Port Config- Digest-Snooping :disabled Rapid transition :false Num of Vlans Mapped :1 PortTimes :Hello 2s MaxAge 20s FwDly 15s MsgAge 2s RemHop 20 BPDU Sent :186 TCN: 0, Config: 0, RST: 0, MST: 186 BPDU Received TCN: 0, Config: 0, RST: 0, MST: 0 -------[MSTI 1 Global Info]-------...
  • Page 98 BPDU Received TCN: 0, Config: 0, RST: 0, MST: 0 -------[VLAN 2 Global Info]------- Protocol Status :enabled Bridge ID :32768.000f-e200-2200 Bridge Times :Hello 2s MaxAge 20s FwDly 15s Root ID / RPC :0.00e0-fc0e-6554 / 200200 Root PortId :128.48 BPDU-Protection :disabled TC or TCN received Time since last TC :0 days 0h:5m:42s...
  • Page 99 Field Description BPDU-Protection Global status of BPDU protection. Bridge Config- Global status of Digest Snooping. Digest-Snooping TC or TCN received Number of TC/TCN BPDUs received in the MSTI or VLAN. Time since last TC Time since the latest topology change in the MSTI or VLAN. [FORWARDING] The port is in forwarding state.
  • Page 100: Display Stp Abnormal-Port

    Field Description • MsgAge—Message Age timer. • RemHop—Remaining hops. BPDU Sent Statistics on sent BPDUs. BPDU Received Statistics on received BPDUs. MSTI RegRoot/IRPC MSTI regional root/internal path cost. MSTI RootPortId MSTI root port ID. MSTI Root Type MSTI root type, which can be primary root or secondary root. Master Bridge MSTI root bridge ID.
  • Page 101: Display Stp Bpdu-Statistics

    Description Use display stp abnormal-port to display information about ports blocked by spanning tree protection functions. Examples # In MSTP mode, display information about ports blocked by spanning tree protection functions. <Sysname> display stp abnormal-port MSTID Blocked Port Reason Ethernet1/0/1 ROOT-Protected Ethernet1/0/2 LOOP-Protected...
  • Page 102 |: 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 103 Timeout BPDUs MAX-hoped BPDUs TC detected 10:32:40 01/13/2010 TC sent 10:33:11 01/13/2010 TC received Instance 1: Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs MAX-hoped BPDUs TC detected TC sent TC received Instance 2: Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs MAX-hoped BPDUs TC detected...
  • Page 104: Display Stp Down-Port

    TC detected 10:32:40 01/13/2010 TC sent 8844 10:33:11 01/13/2010 TC received 1426 10:33:32 01/13/2010 Table 25 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.
  • Page 105: Display Stp History

    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 stp down-port to display information about ports shut down by spanning tree protection functions.
  • Page 106 Description Use display stp history to display the historical port role calculation information of the specified MSTI or all MSTIs. In STP/RSTP mode, the displayed information is sorted by port role calculation time. In MSTP mode, follow these guidelines: • If you do not specify any MSTI, this command displays the historical port role calculation information of all MSTIs.
  • Page 107: Display Stp Region-Configuration

    Table 27 Command output Field Description Port Port name. Role change of the port ("Age" means that the change was caused by expiration of Role change the received configuration BPDU). Time Time of port role calculation. Port priority Port priority. display stp region-configuration Syntax display stp region-configuration [ | { begin | exclude | include } regular-expression ]...
  • Page 108: Display Stp Root

    [Sysname] stp mode pvst [Sysname] display stp region-configuration Oper Configuration Format selector Region name :hello Revision level Configuration digest :0x5f762d9a46311effb7a488a3267fca9f Instance Mode Vlans Mapped default 3 to 4094 static dynamic Table 28 Command output Field Description Format selector defined by the spanning tree protocol. The default value is Format selector 0 and the selector cannot be configured.
  • Page 109: Display Stp Tc

    Examples # In MSTP mode, display the root bridge information of all spanning trees. <Sysname> display stp root MSTID Root Bridge ID ExtPathCost IntPathCost Root Port 0.00e0-fc0e-6554 200200 Ethernet1/0/1 # In PVST mode, display the root bridge information of all spanning trees. <Sysname>...
  • Page 110: Instance

    Description Use display stp tc to display the statistics of TC/TCN BPDUs received and sent by all ports in an MSTI or all MSTIs. In STP/RSTP mode, the displayed information is sorted by port name. In MSTP mode, follow these guidelines: •...
  • Page 111: Region-Name

    Default level 2: System level Parameters instance-id: Specifies an MSTI ID. The minimum value is 0, representing the CIST. • In MSTP mode, the instance-id argument ranges from 0 to 16. • In PVST mode, the instance-id argument ranges from 0 to 16. 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>...
  • Page 112: Reset Stp

    By default, the MST region name of a device is its MAC address. The MST region name, the VLAN-to-instance mapping table, and the MSTP revision level of a device determine the device's MST region. After configuring this command, run the active region-configuration command to activate the configured MST region name.
  • Page 113: Snmp Trap Enable Stp

    View MST region view Default level 2: System level Parameters level: Specifies an MSTP revision level, in the range of 0 to 65535. Description Use revision-level to configure the MSTP revision level. Use undo revision-level to restore the default MSTP revision level. By default, the MSTP revision level is 0.
  • Page 114: Stp Bpdu-Protection

    This command configures SNMP notifications only for PVST topology changes whether you specify the tc keyword or not. Examples # Enable SNMP notifications for PVST topology changes. <Sysname> system-view [Sysname] snmp-agent trap enable stp tc stp bpdu-protection Syntax stp bpdu-protection undo stp bpdu-protection View System view...
  • Page 115: Stp Compliance

    Description 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. By default, the network diameter of the switched network is 7. An appropriate setting of hello time, forward delay, and max age can speed up network convergence.
  • Page 116: Stp Config-Digest-Snooping

    Use undo stp compliance to restore the default. By 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. Configured in Ethernet interface view, the setting takes effect on that interface only. Configured in port group view, the setting takes effect on all ports in the port group.
  • Page 117: Stp Cost

    <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] stp config-digest-snooping [Sysname-Ethernet1/0/1] quit [Sysname] stp config-digest-snooping stp cost Syntax stp [ instance instance-id | vlan vlan-list ] cost cost undo stp [ instance instance-id | vlan vlan-list ] cost View Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters...
  • Page 118: Stp Edged-Port

    The path cost setting of a port can affect the role selection of the port. When the path cost of a port is changed, the system will re-calculate the role of the port and initiate a state transition. Related commands: display stp and stp pathcost-standard. Examples # In MSTP mode, set the path cost of port Ethernet 1/0/3 in MSTI 2 to 200.
  • Page 119: Stp Enable

    BPDU guard function is disabled, the port functions as a non-edge port, even if you configure it as an edge port. You cannot configure edge port settings and loop guard on a port at the same time. Related commands: stp loop-protection. Examples # Configure Ethernet 1/0/1 as an edge port.
  • Page 120: Stp Loop-Protection

    When you enable MSTP, the switch dynamically maintains the spanning tree status of VLANs, based on received configuration BPDUs. When you disable MSTP, the switch stops maintaining the spanning tree status. Related commands: stp mode. Examples # In MSTP mode, enable the spanning tree feature globally. <Sysname>...
  • Page 121: Stp Max-Hops

    Examples # Enable the loop guard function on Ethernet 1/0/1. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] stp loop-protection stp max-hops Syntax stp max-hops hops undo stp max-hops View System view Default level 2: System level Parameters hops: Sets the maximum hops, in the range of 1 to 40. Description Use stp max-hops to set the maximum hops of the MST region.
  • Page 122: Stp Mode

    or removed, or migrated to the MSTP, RSTP, or PVST mode. Then, you can perform an mCheck operation to force the port to migrate to the MSTP, RSTP, or PVST mode. Suppose Device A running STP, Device B with no spanning tree feature enabled, and Device C running MSTP, RSTP, or PVST are connected in order.
  • Page 123: Stp No-Agreement-Check

    Related commands: stp mcheck and stp enable. Examples # Configure the spanning tree device to operate in STP mode. <Sysname> system-view [Sysname] stp mode stp stp no-agreement-check Syntax stp no-agreement-check undo stp no-agreement-check View Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters...
  • Page 124: Stp Point-To-Point

    Default level 2: System level Parameters dot1d-1998: Configures the device to calculate the default path cost for ports based on IEEE 802.1d-1998. dot1t: Configures the device to calculate the default path cost for ports based on IEEE 802.1t. legacy: Configures the device to calculate the default path cost for ports based on a private standard.
  • Page 125: Stp Port Bpdu-Protection

    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. When connecting to a non-point-to-point link, a port is incapable of rapid state transition. You can configure the link type as point-to-point for a Layer 2 aggregate interface or a port that operates in full duplex mode.
  • Page 126: Stp Port Priority

    Examples # Enable BPDU guard on Ethernet 1/0/1. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] stp port bpdu-protection enable stp port priority Syntax stp [ instance instance-id | vlan vlan-list ] port priority priority undo stp [ instance instance-id | vlan vlan-list ] port priority View Ethernet interface view, port group view, Layer 2 aggregate interface view Default level...
  • Page 127: Stp Port Shutdown Permanent

    [Sysname-Ethernet1/0/3] stp instance 2 port priority 16 # In PVST mode, set the priority of port Ethernet 1/0/3 to 16 in VLAN 2. <Sysname> system-view [Sysname] stp mode pvst [Sysname] interface ethernet 1/0/3 [Sysname-Ethernet1/0/3] stp vlan 2 port priority 16 stp port shutdown permanent Syntax stp port shutdown permanent...
  • Page 128: Stp Priority

    Parameters instance instance-id: Specifies an MSTI. The value of instance-id ranges from 0 to 16, where 0 represents the CIST. To enable or disable outputting port state transition information in STP/RSTP mode, specify instance 0. all: Specifies all MSTIs. 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>...
  • Page 129: Stp Region-Configuration

    Parameters instance instance-id: Sets the priority of the device in an MSTI. The value of instance-id ranges from 0 to 16, where 0 represents the CIST. 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, ranges from 1 to 4094, and &<1-10>...
  • Page 130: Stp Root Primary

    • 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. <Sysname> system-view [Sysname] stp region-configuration [Sysname-mst-region] stp root primary Syntax...
  • Page 131: Stp Root Secondary

    stp root secondary Syntax stp [ instance instance-id | vlan vlan-list ] root secondary undo stp [ instance instance-id | vlan vlan-list ] root View System view Default level 2: System level Parameters instance instance-id: Configures the device as a secondary root bridge in a particular MSTI. The value of instance-id ranges from 0 to 16, where 0 represents the CIST.
  • Page 132: Stp Tc-Protection

    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. Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all ports in the port group.
  • Page 133: Stp Tc-Protection Threshold

    stp tc-protection threshold Syntax stp tc-protection threshold number undo stp tc-protection threshold View System view Default level 2: System level Parameters number: Sets the maximum number of immediate forwarding address entry flushes that the device can perform within a certain period of time (10 seconds). The value ranges from 1 to 255. Description 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).
  • Page 134: Stp Timer Forward-Delay

    Related commands: stp enable. Examples # Enable TC snooping globally. <Sysname> system-view [Sysname] undo stp enable [Sysname] stp tc-snooping stp timer forward-delay Syntax stp [ vlan vlan-list ] timer forward-delay time undo stp [ vlan vlan-list ] timer forward-delay View System view Default level 2: System level...
  • Page 135: Stp Timer Hello

    [Sysname] stp mode pvst [Sysname] stp vlan 2 timer forward-delay 2000 stp timer hello Syntax stp [ vlan vlan-list ] timer hello time undo stp [ vlan vlan-list ] timer hello View System view Default level 2: System level Parameters 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>...
  • Page 136: Stp Timer Max-Age

    stp timer max-age Syntax stp [ vlan vlan-list ] timer max-age time undo stp [ vlan vlan-list ] timer max-age View System view Default level 2: System level Parameters 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>...
  • Page 137: Stp Transmit-Limit

    undo stp timer-factor View System view Default level 2: System level Parameters factor: Sets the timeout factor, in the range of 1 to 20. Description Use stp timer-factor to configure the timeout time by setting the timeout factor. Timeout time = timeout factor × 3 × hello time. Use undo stp timer-factor to restore the default.
  • Page 138: Vlan-Mapping Modulo

    By default, the maximum transmission rate of all ports is 10. Each port can send up to 10 BPDUs within each hello time. 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.
  • Page 139: Bpdu Tunneling Configuration Commands

    BPDU tunneling configuration commands (available only on the HPE 3100 v2 EI) bpdu-tunnel dot1q Syntax In Layer 2 Ethernet interface view or port group view: bpdu-tunnel dot1q { cdp | hgmp | lacp | lldp | pvst | stp | udld | vtp } undo bpdu-tunnel dot1q { cdp | hgmp | lacp | lldp | pvst | stp | udld | vtp } In Layer 2 aggregate interface view: bpdu-tunnel dot1q { cdp | hgmp | pvst | stp | vtp }...
  • Page 140: Bpdu-Tunnel Tunnel-Dmac

    Examples # Disable STP on Ethernet 1/0/1, and then enable BPDU tunneling for STP on the port. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] undo stp enable [Sysname-Ethernet1/0/1] bpdu-tunnel dot1q stp # Disable STP for port group 1, and then enable BPDU tunneling for STP in the port group. <Sysname>...
  • Page 141: Vlan Configuration Commands

    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 142: Display Interface Vlan-Interface

    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 (:), semi-colon (;), quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/),...
  • Page 143 View Any view Default level 1: Monitor level Parameters vlan-interface-id: Specifies a VLAN interface number. 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.
  • Page 144 Link: ADM - administratively down; Stby - standby Protocol: (s) - spoofing Interface Link Protocol Main IP Description Vlan2 DOWN DOWN # Display brief information for VLAN interfaces in DOWN state. <Sysname> display interface vlan-interface brief down The brief information of interface(s) under route mode: Link: ADM - administratively down;...
  • Page 145: Display Vlan

    Field Description and the number of the dropped packets. The brief information of interface(s) Brief information about Layer 3 interfaces. under route mode Link layer state of the interface: • ADM—The interface has been administratively shut down. To Link: ADM - administratively down; recover its physical state, perform the undo shutdown Stby - standby command.
  • Page 146 reserved: Displays information about the reserved VLANs. Protocol modules determine which VLANs are reserved VLANs according to function implementation, and reserved VLANs serve protocol modules. You cannot configure reserved VLANs. static: Displays the number of static VLANs and the ID for each static VLAN. The static VLANs are manually created.
  • Page 147: Interface Vlan-Interface

    Field Description Name Name configured for the VLAN. IPv4 address of the VLAN interface (available only when an IPv4 address is IPv4 address configured for the VLAN interface). Subnet mask of the IPv4 address (available only when an IPv4 address is IPv4 subnet mask configured for the VLAN interface).
  • Page 148: Mtu

    undo ip address [ ip-address { mask | mask-length } ] View VLAN interface view Default 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. Description Use ip address to assign an IP address and subnet mask to a VLAN interface.
  • Page 149: Name

    name Syntax name text undo name View VLAN view 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...
  • Page 150: Shutdown

    Description Use reset counters interface vlan-interface to clear the statistics on a VLAN interface. Before collecting the traffic statistics within a specific period of time on an interface, clear the existing statistics first. If the vlan-interface-id argument is not specified, this command clears the statistics of all VLAN interfaces.
  • Page 151: Vlan

    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.
  • Page 152: Port-Based Vlan Configuration Commands

    Port-based VLAN configuration commands display port Syntax display port { hybrid | trunk } [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters hybrid: Displays hybrid ports. trunk: Displays trunk ports. |: Filters command output by specifying a regular expression.
  • Page 153: Port

    Field Description Untagged VLANs for which the port sends packets after removing VLAN tags port Syntax port interface-list undo port interface-list View VLAN 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-10>, where interface-type interface-number represents the interface type and interface number and &<1-10>...
  • Page 154: Port Hybrid Pvid

    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. Description Use port access vlan to assign the access ports to the specified VLAN. Use undo port access vlan to restore the default. By default, all access ports belong to VLAN 1.
  • Page 155: Port Hybrid Vlan

    By default, the PVID of a hybrid port is VLAN 1. You can use a nonexistent VLAN as the PVID for a hybrid port. If you use the undo vlan command to remove the PVID of a hybrid port, it does not affect the setting of the PVID on the port. The configuration made in Layer 2 Ethernet interface view applies only to the port.
  • Page 156 untagged: Configures the ports to send untagged packets of the specified VLANs. Description Use port hybrid vlan to assign the hybrid ports to the specified VLANs. Use undo port hybrid vlan to remove the hybrid ports from the specified VLANs. By default, a hybrid port only allows packets from VLAN 1 to pass through untagged.
  • Page 157: Port Link-Type

    Configuring Ethernet1/0/2... Done. Configuring Ethernet1/0/3... Done. The output shows that Ethernet 1/0/1, Ethernet 1/0/2, and Ethernet 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, port group view, Layer 2 aggregate interface view...
  • Page 158: Port Trunk Permit Vlan

    [Sysname-port-group manual group1] group-member ethernet 1/0/1 [Sysname-port-group manual group1] group-member ethernet 1/0/2 [Sysname-port-group manual group1] port link-type hybrid # Configure Layer 2 aggregate interface Bridge-Aggregation 1 and its member ports as hybrid ports. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid port trunk permit vlan Syntax port trunk permit vlan { vlan-list | all }...
  • Page 159: Port Trunk Pvid

    [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] port link-type trunk [Sysname-Ethernet1/0/1] port trunk permit vlan 2 4 50 to 100 Please wait... Done. # Assign the trunk Layer 2 aggregate interface Bridge-Aggregation 1 to VLAN 2. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type trunk [Sysname-Bridge-Aggregation1] port trunk permit vlan 2 Please wait...
  • Page 160: Mac-Based Vlan Configuration Commands

    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 Ethernet 1/0/1. <Sysname>...
  • Page 161: Display Mac-Vlan Interface

    Examples # Display all the MAC address-to-VLAN entries. <Sysname> display mac-vlan all The following MAC-VLAN address exist: S: Static D: Dynamic MAC ADDR MASK VLAN ID PRIO STATE ------------------------------------------------------------------- 0008-0001-0000 FFFF-FFFF-FFFF 0002-0001-0000 FFFF-FFFF-FFFF S&D Total MAC VLAN address count:2 Table 34 Command output Field Description The character S stands for the MAC address-to-VLAN entries that are...
  • Page 162: Mac-Vlan Enable

    Description Use display mac-vlan interface to display all the ports with MAC-based VLAN enabled. Related commands: mac-vlan enable. Examples # Display all the interfaces with MAC-based VLAN enabled. <Sysname> display mac-vlan interface MAC VLAN is enabled on following ports: --------------------------------------- Ethernet1/0/1 Ethernet1/0/2 Ethernet1/0/3...
  • Page 163: Protocol-Based Vlan Configuration Commands (Available Only On The Hpe 3100 V2 Ei)

    Parameters mac-address mac-address: Specifies a MAC address. 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 ranges from 0 to 7. all: Removes all the static MAC address-to-VLAN entries.
  • Page 164: Display Protocol-Vlan Vlan

    Description Use display protocol-vlan interface to display information about protocol-based VLANs for the specified ports. Examples # Display protocol-based VLAN information on Ethernet 1/0/1. [Sysname] display protocol-vlan interface ethernet 1/0/1 Interface: Ethernet1/0/1 VLAN ID Protocol Index Protocol Type ====================================================== ipv6 ipv4 Table 35 Command output Field...
  • Page 165: Port Hybrid Protocol-Vlan

    Examples # Display the protocols and protocol indexes configured on all protocol-based-VLANs. <Sysname> display protocol-vlan vlan all VLAN ID:2 Protocol Index Protocol Type ====================================================== ipv4 ipv6 VLAN ID:3 Protocol Index Protocol Type ====================================================== ipv4 ipv6 Table 36 Command output Field Description VLAN ID ID of the protocol-based VLAN bound to the port...
  • Page 166: Protocol-Vlan

    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. •...
  • Page 167 Default level 2: System level Parameters at: Specifies the AppleTalk based VLAN. ipv4: Specifies the IPv4 based VLAN. ipv6: Specifies the IPv6 based VLAN. ipx ethernetii: Specifies the IPX based VLAN.. mode: Configures a user-defined protocol template for the VLAN, which could also have the following encapsulation formats: ethernetii and snap.
  • Page 168 • To use Ethernet encapsulation, use this command: [Sysname-vlan3] protocol-vlan mode ethernetii etype 0806 • To use 802.3 encapsulation, use this command: [Sysname-vlan3] protocol-vlan mode snap etype 0806...
  • Page 169: Display Voice Vlan Oui

    Voice VLAN configuration commands (available only on the HPE 3100 v2 EI) display voice vlan oui Syntax display voice vlan oui [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
  • Page 170: Display Voice Vlan State

    display voice vlan state Syntax display voice vlan state [ | { 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.
  • Page 171: Lldp Voice-Vlan

    lldp voice-vlan Syntax lldp voice-vlan vlan-id undo lldp voice-vlan View Layer 2 Ethernet interface view, port group view Default level 2: System level Parameters vlan-id: Specifies a voice VLAN by its ID in the range of 1 to 4094. Description Use lldp voice-vlan to configure a port to advertise a specific voice VLAN ID to the connected IP phone through LLDP.
  • Page 172: Voice Vlan Enable

    Set the voice VLAN aging timer only in automatic voice VLAN assignment mode. Related commands: display voice vlan state. Examples # Configure the voice VLAN aging timer as 100 minutes. <Sysname> system-view [Sysname] voice vlan aging 100 voice vlan enable Syntax voice vlan vlan-id enable undo voice vlan [ vlan-id ] enable...
  • Page 173: Voice Vlan Mode Auto

    Parameters mac-address: Specifies a source MAC address of voice traffic, in the format of H-H-H. For example, 1234-1234-1234. mask oui-mask: Specifies the valid length of the OUI address by a mask in the format of H-H-H, formed by consecutive 1s and 0s. For example, FFFF-0000-0000. To filter the voice devices of a specific vendor, set the mask to FFFF-FF00-0000.
  • Page 174: Voice Vlan Qos

    Default level 2: System level Parameters None 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.
  • Page 175: Voice Vlan Qos Trust

    Examples # Configure interface Ethernet 1/0/1 to modify the CoS value and the DSCP value marked for voice VLAN packets to 5 and 45, respectively. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] voice vlan qos 5 45 voice vlan qos trust Syntax voice vlan qos trust undo voice vlan qos...
  • Page 176: Voice Vlan Track Lldp

    View System view 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.
  • Page 177: Gvrp Configuration Commands

    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.
  • Page 178: Display Garp Timer

    Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded GARP statistics on port Ethernet1/0/2 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded display garp timer Syntax display garp timer [ interface interface-list ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 179: Display Gvrp Local-Vlan

    display gvrp local-vlan Syntax display gvrp local-vlan 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.
  • Page 180: Display Gvrp Statistics

    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 gvrp state to display GVRP state machines in a specified VLAN on a port. Examples # Display GVRP state machines in VLAN 2 on port Ethernet 1/0/1.
  • Page 181 View Any view Default level 1: Monitor level Parameters interface interface-list: Displays the GVRP statistics of one or multiple Ethernet ports. You can provide up to 10 Ethernet port lists, specified in the following ways: • As an individual port in the form of interface-type interface-number •...
  • Page 182: Display Gvrp Status

    display gvrp status Syntax display gvrp status [ | { 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.
  • Page 183: Garp Timer Hold

    Description Use display gvrp vlan-operation to display information about dynamic VLAN operations on a port. Examples # Display information about dynamic VLAN operations on Ethernet 1/0/1. <Sysname> display gvrp vlan-operation interface ethernet 1/0/1 Dynamic VLAN operations on port Ethernet1/0/1 Operations of creating VLAN 2-100 Operations of deleting VLAN none...
  • Page 184: Garp Timer Leave

    View Ethernet interface view, Layer-2 aggregate interface view, port group view Default level 2: System level Parameters timer-value: 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). Description Use garp timer join to set the GARP Join timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group.
  • Page 185: Garp Timer Leaveall

    <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] garp timer leave 100 garp timer leaveall Syntax garp timer leaveall timer-value undo garp timer leaveall View System view Default level 2: System level Parameters timer-value: Leaveall timer (in centiseconds), which must be a multiple of 5 and range from the maximum Leave timer on the device (exclusive) to 32765 (inclusive).
  • Page 186: Gvrp Registration

    Description Use gvrp to enable GVRP. Use undo gvrp to disable GVRP. By default, GVRP is disabled. 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.
  • Page 187: Reset Garp Statistics

    [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] port link-type trunk [Sysname-Ethernet1/0/1] gvrp registration fixed reset garp statistics Syntax reset garp statistics [ interface interface-list ] View User view Default level 2: System level Parameters interface interface-list: Clears the GARP statistics of one or multiple ports. You can provide up to 10 port lists, specified in the following ways: •...
  • Page 188: Qinq Configuration Commands

    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.
  • Page 189: Qinq Enable Downlink (Available Only On The Hpe 3100 V2 Ei)

    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. 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.
  • Page 190: Qinq Ethernet-Type

    [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] qinq enable downlink # Enable selective QinQ on port group 1. <Sysname> system-view [Sysname] port-group manual 1 [Sysname-port-group-manual-1] group-member ethernet 1/0/1 to ethernet 1/0/6 [Sysname-port-group-manual-1] qinq enable downlink qinq ethernet-type Syntax qinq ethernet-type hex-value undo qinq ethernet-type View System view Default level...
  • Page 191: Qinq Vid (Available Only On The Hpe 3100 V2 Ei)

    Examples # Set the TPID value in the VLAN tags to 0x8200. <Sysname> system-view [Sysname] qinq ethernet-type 8200 qinq vid (available only on the HPE 3100 v2 EI) Syntax qinq vid vlan-id undo qinq vid vlan-id View Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view Default level 2: System level Parameters...
  • Page 192 View QinQ view Default level 2: System level Parameters vlan-list: Specifies a list of VLANs in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id represents the VLAN ID ranging from 1 to 4094 and &<1-10> indicates that you can specify up to 10 vlan-id [ to vlan-id ] parameters.
  • Page 193: Qinq Enable Downlink

    VLAN mapping configuration commands (available only on the HPE 3100 v2 EI) VLAN mapping is achieved mainly through QoS policies. This chapter introduces part of the commands for ports involved in many-to-one VLAN mapping. For QoS policy configuration commands, see ACL and QoS Command Reference. qinq enable downlink Syntax qinq enable downlink...
  • Page 194: Remark Service-Vlan-Id

    View Traffic behavior view 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. Examples # Configure traffic behavior b1 to mark matching packets with CVLAN 111.
  • Page 195: Lldp Configuration Commands

    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: Specifies a port by its type and number.
  • Page 196 HardwareRev : REV.A FirmwareRev : 109 SoftwareRev : 5.20 Alpha 2101 SerialNum : NONE Manufacturer name : HPE Model name : HPE Comware Asset tracking identifier : Unknown LLDP local-information of port 1[Ethernet1/0/1]: Port ID subtype : Interface name Port ID : Ethernet1/0/1 Port description : Ethernet1/0/1 Interface Management address type...
  • Page 197 Media policy L2 priority : 0 Media policy Dscp PoE PD power source : PSE Port PD Priority : Low Port available power value: 12.9(w) Table 43 Command output Field Description Global LLDP local-information Global LLDP information to be sent. Chassis ID Bridge MAC address of the device.
  • Page 198 Field Description Port and protocol VLAN enabled Indicates whether or not protocol VLAN is enabled on the port. VLAN name of VLAN 1 Name of VLAN 1. Auto-negotiation supported Indicates whether or not auto-negotiation is supported on the port. Auto-negotiation enabled Indicates whether or not auto-negotiation is enabled on the port.
  • Page 199: Display Lldp Neighbor-Information

    Field Description Location information format: • Invalid—The format of the location information is invalid. • Coordinate-based LCI—The location information is Location format coordinate-based. • Civic Address LCI—Typical address information. • ECS ELIN—Telephone number for urgencies. When the port is allowed to advertise Location Identification TLVs, this Location Information field displays the location information of the device.
  • Page 200 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 lldp neighbor-information to display the LLDP information carried in LLDP TLVs sent from the neighboring devices. Examples # Display the LLDP information sent from the neighboring devices received through all ports.
  • Page 201 Link aggregation supported : Yes Link aggregation enabled : No Aggregation port ID Maximum frame Size: 1536 # Display the LLDP information sent from all neighboring devices in a list. <Sysname> display lldp neighbor-information list System Name Local Interface Chassis ID Port ID System1 Eth1/0/1...
  • Page 202 Field Description Capabilities enabled on the LLDP neighboring device: • Repeater—Signal repeating is enabled. System capabilities enabled • Bridge—Switching is enabled. • Router—Routing is enabled. Management address type of the port that connects the LLDP Management address type neighboring device to the local device. Management address of the port that connects the LLDP Management address neighboring device to the local device.
  • Page 203 Field Description Indicates whether link aggregation is supported on the port that Link aggregation supported connects the LLDP neighboring device to the local device. Indicates whether link aggregation is enabled on the port that Link aggregation enabled connects the LLDP neighboring device to the local device. Aggregation port ID Aggregation group ID, which is 0 when link aggregation is disabled.
  • Page 204: Display Lldp Statistics

    Field Description This field appears only when the device receives unknown Unknown organizationally-defined organizationally specific TLVs. Unknown organizationally specific TLV. This field appears only when the device receives unknown organizationally specific TLVs. TLV OUI OUI of the unknown organizationally specific TLV. This field appears only when the device receives unknown organizationally specific TLVs.
  • Page 205: Display Lldp Status

    LLDP statistics global Information: LLDP neighbor information last change time:0 days,0 hours,4 minutes,40 seconds The number of LLDP neighbor information inserted : 1 The number of LLDP neighbor information deleted The number of LLDP neighbor information dropped The number of LLDP neighbor information aged out : 1 LLDP statistics information of port 1 [Ethernet1/0/1]: The number of LLDP frames transmitted The number of LLDP frames received...
  • Page 206 regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display lldp status to display LLDP status information. If no port is specified, this command displays the global LLDP status and the LLDP status information for all ports. Examples # Display the global LLDP status and the LLDP status information of all ports.
  • Page 207: Display Lldp Tlv-Config

    Field Description LLDP operating mode of the port: • Tx_Rx—The port can send and receive LLDP frames. • Admin status Rx_Only—The port can only receive LLDP frames. • Tx_Only—The port can only send LLDP frames. • Disable—The port cannot send or receive LLDP frames. Trap Flag Indicates whether trapping is enabled.
  • Page 208 System Name TLV System Description TLV System Capabilities TLV Management Address TLV IEEE 802.1 extend TLV: 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...
  • Page 209: Lldp Admin-Status

    Field Description LLDP-MED TLVs: • Capabilities TLV. • Network Policy TLV. • Extended Power-via-MDI TLV. LLDP-MED extend TLV • Location Identification TLV. • Inventory TLV, including hardware revision TLV, firmware revision TLV, software revision TLV, serial number TLV, manufacturer name TLV, model name TLV, and asset id TLV. lldp admin-status Syntax lldp admin-status { disable | rx | tx | txrx }...
  • Page 210: Lldp Compliance Admin-Status Cdp (Available Only On The Hpe 3100 V2 Ei)

    Default level 2: System level Parameters interval: Sets the LLDP polling interval, in the range of 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.
  • Page 211: Lldp Compliance Cdp (Available Only On The Hpe 3100 V2 Ei)

    [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] lldp compliance admin-status cdp txrx lldp compliance cdp (available only on the HPE 3100 v2 EI) Syntax lldp compliance cdp undo lldp compliance cdp View System view Default level 2: System level Parameters None Description Use lldp compliance cdp to enable global CDP compatibility.
  • Page 212: Lldp Encapsulation Snap

    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 Ethernet 1/0/1. <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] undo lldp enable lldp encapsulation snap Syntax...
  • Page 213: Lldp Hold-Multiplier

    Parameters count: Sets the number of LLDP frames sent each time fast LLDP frame transmission is triggered. The argument range is 1 to 10. Description Use lldp fast-count to set the number of the LLDP frames sent each time fast LLDP frame transmission is triggered.
  • Page 214: Lldp Management-Address-Format String

    lldp management-address-format string Syntax lldp management-address-format string undo lldp management-address-format View Layer 2 Ethernet interface view, port group view Default level 2: System level Parameters None Description 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.
  • Page 215: Lldp Notification Remote-Change Enable

    An LLDP frame carries only one management address TLV. If you set the management address repeatedly, the latest one takes effect. If you run the lldp management-address-tlv command without specifying the ip-address argument, the advertised management address is the main IP address of the lowest-ID VLAN carried on the interface.
  • Page 216: Lldp Timer Reinit-Delay

    Parameters interval: Sets the LLDP trap transmission interval, in the range of 5 to 3600 seconds. Description Use lldp timer notification-interval to set the LLDP trap transmission interval. Use undo lldp timer notification-interval to restore the default. By default, the LLDP trap transmission interval is 5 seconds. Examples # Set the LLDP trap transmission interval to 8 seconds.
  • Page 217: Lldp Timer Tx-Interval

    Parameters delay: Sets the LLDP frame transmission delay, in the range of 1 to 8192 seconds. Description Use lldp timer tx-delay to set the LLDP frame transmission delay. Use undo lldp timer tx-delay to restore the default. By default, the LLDP frame transmission delay is 2 seconds. It is a good practice to set the LLDP frame transmission delay to be no greater than a quarter of the LLDP frame transmission interval.
  • Page 218: Lldp Tlv-Enable

    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-10>...
  • Page 219 med-tlv: Advertises LLDP-MED TLVs. capability: Advertises LLDP-MED capabilities TLVs. inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID. location-id: Advertises location identification TLVs. civic-address: Inserts the normal address information about the network device in location identification TLVs .
  • Page 220: Mvrp Commands

    MVRP commands display mvrp running-status Syntax display mvrp running-status [ interface interface-list ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface interface-list: Specifies an Ethernet interface list in the form 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>...
  • Page 221: Display Mvrp State

    Table 48 Command output Field Description MVRP Global Info Global MVRP information. Global MVRP status: • Global Status Enabled • Disabled GVRP compatibility status: • Compliance-GVRP True—Compatible • False—Incompatible Interface prompt. The information between the current interface ----[Ethernet1/0/1] ---- prompt and the next interface prompt is information about the current interface.
  • Page 222 |: 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 223: Display Mvrp Statistics

    Field Description Registration state of the attribute declared by remote participants on the local participant. The state can be IN, LV, or MT: • IN—Registered. Reg-state • LV—Previously registered, but now being timed out. • MT—Not registered. display mvrp statistics Syntax display mvrp statistics [ interface interface-list ] [ | { begin | exclude | include } regular-expression ]...
  • Page 224 Frames Transmitted : 47 New Event Transmitted JoinIn Event Transmitted : 311 In Event Transmitted JoinMt Event Transmitted : 873 Mt Event Transmitted : 11065 Leave Event Transmitted : 167 LeaveAll Event Transmitted Frames Discarded ----[Ethernet1/0/2]---- Failed Registrations Last PDU Origin : 0000-0000-0000 Frames Received New Event Received...
  • Page 225: Display Mvrp Vlan-Operation

    Field Description LeaveAll Event Received Number of LeaveAll attribute events received. Frames Transmitted Number of MVRP protocol packets sent. New Event Transmitted Number of New attribute events sent. JoinIn Event Transmitted Number of JoinIn attribute events sent. In Event Transmitted Number of In attribute events sent.
  • Page 226: Mrp Timer Join

    Operations of deleting VLAN: none Operations of adding VLAN to Trunk: 2-100 Operations of deleting VLAN from Trunk: none Table 51 Command output Field Description Operations of adding VLAN to Trunk Operations of adding VLANs to trunk ports Operations of deleting VLAN from Trunk Operations of removing VLAN from trunk ports mrp timer join Syntax...
  • Page 227: Mrp Timer Leaveall

    Default level 2: System level Parameters timer-value: Leave timer value (in centiseconds). The Leave timer must be greater than two times the Join timer, less than the LeaveAll timer, and a multiple of 20. Description Use mrp timer leave to set the Leave timer. Use undo mrp timer leave to restore the default.
  • Page 228: Mrp Timer Periodic

    To avoid the case that the LeaveAll timer of a fixed participant always first expires, the switch randomly changes the LeaveAll timer within a certain range when the MRP participant restarts its LeaveAll timer. Related commands: display mvrp running-status and mrp timer leave. Examples # Set the LeaveAll timer to 1500 centiseconds.
  • Page 229: Mvrp Enable

    View System view Default level 2: System level Description Use mvrp global enable to enable MVRP globally. Use undo mvrp global enable to restore the default. By default, MVRP is disabled globally. Disabling MVRP globally also disables MVRP on all ports. Related commands: display mvrp running-status and mvrp enable.
  • Page 230: Mvrp Gvrp-Compliance

    mvrp gvrp-compliance Syntax mvrp gvrp-compliance enable undo mvrp gvrp-compliance enable View System view Default level 2: System level Description Use mvrp gvrp-compliance enable to enable GVRP compatibility, so that the device can process both MVRP protocol packets and GVRP protocol packets. Use undo mvrp gvrp-compliance enable to restore the default.
  • Page 231: Reset Mvrp Statistics

    <Sysname> system-view [Sysname] interface ethernet 1/0/1 [Sysname-Ethernet1/0/1] port link-type trunk [Sysname-Ethernet1/0/1] port trunk permit vlan all [Sysname-Ethernet1/0/1] mvrp registration fixed reset mvrp statistics Syntax reset mvrp statistics [ interface interface-list ] View User view Default level 2: System level Parameters interface interface-list: Specifies an Ethernet interface list in the form 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>...
  • Page 232: Document Conventions And Icons

    Document conventions and icons Conventions This section describes the conventions used in the documentation. Port numbering in examples The port numbers in this document are for illustration only and might be unavailable on your device. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown.
  • Page 233: Network Topology Icons

    Network topology icons Convention Description 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.
  • Page 234: Support And Other Resources

    Hewlett Packard Enterprise Support Center More Information on Access to Support Materials page: www.hpe.com/support/AccessToSupportMaterials IMPORTANT: Access to some updates might require product entitlement when accessed through the Hewlett Packard Enterprise Support Center. You must have an HP Passport set up with relevant entitlements.
  • Page 235: Websites

    Websites Website Link Networking websites Hewlett Packard Enterprise Information Library for www.hpe.com/networking/resourcefinder Networking Hewlett Packard Enterprise Networking website www.hpe.com/info/networking Hewlett Packard Enterprise My Networking website www.hpe.com/networking/support Hewlett Packard Enterprise My Networking Portal www.hpe.com/networking/mynetworking Hewlett Packard Enterprise Networking Warranty www.hpe.com/networking/warranty General websites Hewlett Packard Enterprise Information Library www.hpe.com/info/enterprise/docs Hewlett Packard Enterprise Support Center...
  • Page 236 part number, edition, and publication date located on the front cover of the document. For online help content, include the product name, product version, help edition, and publication date located on the legal notices page.
  • Page 237: Index

    Index A B C D E F G I J L M N P Q R S U V W display lldp status,198 display lldp tlv-config,200 active region-configuration,85 display loopback-detection,14 display mac-address,50 display mac-address aging-time,51 bpdu-drop any,85 display mac-address mac-learning,52 bpdu-tunnel dot1q,132 display mac-address...
  • Page 238 group-member,20 loopback-detection per-vlan enable,27 gvrp,178 gvrp registration,179 mac-address (interface view),54 mac-address (system view),55 instance,103 mac-address information enable (interface view),60 interface,20 mac-address information enable (system view),60 interface bridge-aggregation,74 mac-address information interval,61 interface loopback,44 mac-address information mode,61 interface null,45 mac-address information queue-length,62 interface range,48 mac-address mac-learning...
  • Page 239 qinq vid (available only on the HPE 3100 v2 EI),184 mcheck,114 mode,115 no-agreement-check,116 raw-vlan-id inbound (available only on the HPE 3100 pathcost-standard,116 EI),184 point-to-point,117 region-name,104 stp port bpdu-protection,118 remark customer-vlan-id,186 stp port priority,119 remark service-vlan-id,187 stp port shutdown permanent,120 Remote support,228 port-log,120 reset counters...

Table of Contents