Download Print this page

HP 6125G Command Reference Manual

Hp 6125g & 6125g/xg blade switches layer 2 - lan switching command reference-r2103.
Hide thumbs

Advertisement

HP 6125 Blade Switch Series
Layer 2 - LAN Switching
Command Reference
Part number: 5998-3166
Software version: Release 2103
Document version: 6W100-20120907

Advertisement

   Related Manuals for HP 6125G

   Summary of Contents for HP 6125G

  • Page 1: Command Reference

    HP 6125 Blade Switch Series Layer 2 - LAN Switching Command Reference Part number: 5998-3166 Software version: Release 2103 Document version: 6W100-20120907...

  • Page 2

    HEWLETT-PACKARD COMPANY MAKES NO WARRANTY OF ANY KIND WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Hewlett-Packard shall not be liable for errors contained herein or for incidental or consequential damages in connection with the furnishing, performance, or use of this material.

  • Page 3: Table Of Contents

    Contents Ethernet interface configuration commands ··············································································································· 1   broadcast-suppression ············································································································································· 1   default ········································································································································································ 2   description ································································································································································· 2   display counters ························································································································································ 3   display counters rate ················································································································································ 4   display interface ······················································································································································· 6   display loopback-detection ··································································································································· 13  ...

  • Page 4

    reset counters interface null ·································································································································· 46   shutdown ································································································································································ 47   Bulk interface configuration commands ··················································································································· 48   interface range ······················································································································································ 48   interface range name ············································································································································ 48   MAC address table configuration commands ········································································································· 51   display mac-address ············································································································································· 51  ...

  • Page 5

    display stp bpdu-statistics ····································································································································· 95   display stp down-port ············································································································································ 97   display stp history ·················································································································································· 98   display stp region-configuration ························································································································ 100   display stp root ···················································································································································· 101   display stp tc ························································································································································ 102   instance ································································································································································ 103   region-name ·························································································································································...

  • Page 6

    reset counters interface vlan-interface ··············································································································· 139   shutdown ······························································································································································ 140   vlan ······································································································································································· 141   Port-based VLAN configuration commands ··············································································································· 142   display port ·························································································································································· 142   port ········································································································································································ 143   port access vlan ··················································································································································· 144   port hybrid pvid ··················································································································································· 144  ...

  • Page 7

    display gvrp vlan-operation ······························································································································· 188   garp timer hold ···················································································································································· 188   garp timer join ····················································································································································· 189   garp timer leave ·················································································································································· 190   garp timer leaveall ·············································································································································· 190   gvrp ······································································································································································· 191   gvrp registration ·················································································································································· 192   reset garp statistics ·············································································································································· 192  ...

  • Page 8

    Documents ···························································································································································· 231   Websites ······························································································································································· 231   Conventions ·································································································································································· 232   Index ········································································································································································ 234  ...

  • Page 9: Ethernet Interface Configuration Commands

    Ethernet interface configuration commands The Ethernet interface numbers in this document are for example, and do not mean that Ethernet interfaces with these numbers exist on the switch. broadcast-suppression Syntax broadcast-suppression { ratio | pps max-pps | kbps max-kbps } undo broadcast-suppression View Ethernet interface view...

  • Page 10: Default

    Examples # Set the broadcast suppression threshold to 20% on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] broadcast-suppression 20 default Syntax default View Ethernet interface view Default level 2: System level Parameters None Description CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you perform it on a live network.

  • Page 11: Display Counters

    Default level 2: System level Parameters text: Specifies the interface description, a string of 1 to 80 characters. The string can include case-sensitive letters, digits, special characters such as tilde (~), exclamation point (!), at sign (@), pound sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon (:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/),...

  • Page 12: Display Counters Rate

    |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.

  • Page 13

    View Any view Default level 1: Monitor level Parameters inbound: Displays inbound traffic rate statistics. outbound: Displays outbound traffic rate statistics. interface-type: Specifies an interface type. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

  • Page 14: Display Interface

    Field Description Average rate (packets per second) of receiving or sending multicast packets Multicast (pkts/sec) during the sampling interval. The command displays Overflow, if any of the following applies: Overflow: more than 14 • The data length of an error statistic is greater than 7 decimal digits. decimal digits.

  • Page 15

    <Sysname> display interface gigabitethernet 1/0/1 GigabitEthernet1/0/1 current state: DOWN IP Packet Frame Type: PKTFMT_ETHNT_2, Hardware Address: 000f-e2d2-58fb Description: GigabitEthernet1/0/1 Interface Loopback is not set Media type is not sure,Port hardware type is No connector 1000Mbps-speed mode, full-duplex mode Link speed type is force link, link duplex type is force link Flow-control is enabled The Maximum Frame Length is 9216 Broadcast MAX-ratio: 100%...

  • Page 16

    Field Description Loopback is not set The loopback testing function is disabled. Unknown-speed mode The port speed is unknown. unknown-duplex mode The duplex mode is unknown. Link speed type is autonegotiation The interface will negotiate a speed with its peer. link duplex type is autonegotiation The interface will negotiate a duplex mode with its peer.

  • Page 17

    Field Description Inbound frames larger than the maximum frame length supported on the interface. • For an Ethernet interface that does not permit jumbo frames, giants refer to frames larger than 1536 bytes (without VLAN tags) or 1540 giants bytes (with VLAN tags). •...

  • Page 18

    Field Description Number of packets dropped because the transmit buffer of the - buffer failures interface ran low. Number of packets that failed to be transmitted, for example, because aborts of Ethernet collisions. Number of frames that the interface deferred to transmit because of deferred detected collisions.

  • Page 19

    Protocol: (s) - spoofing Interface Link Protocol Main IP Description NULL0 UP(s) Vlan1 192.168.0.85 Vlan2 DOWN DOWN Vlan1010 DOWN DOWN The brief information of interface(s) under bridge mode: Link: ADM - administratively down; Stby - standby Speed or Duplex: (a)/A - auto; H - half; F - full Type: A - access;...

  • Page 20

    Table 5 Command output Field Description The brief information of interface(s) under route The command displays brief information about Layer 3 interfaces. mode: Link layer state of the interface: Link: ADM - • ADM—The interface has been shut down by the network administrator. To administratively down;...

  • Page 21: Display Loopback-detection

    Field Description Causes for the physical state of an interface to be DOWN. For more information, Cause Table Table 6 Causes for the physical state of an interface to be DOWN Field Description No physical connection exists (possibly because the network cable is Not connected disconnected or faulty).

  • Page 22: Display Packet-drop Interface

    Examples # Display information about loopback detection. <Sysname> display loopback-detection Loopback detection is running. Detection interval is 30 seconds. No port is detected with loopback. Table 7 Command output Field Description Detection interval time is 30 seconds. Loopback detection interval is 30 seconds. No port is detected with loopback.

  • Page 23: Display Packet-drop Summary

    <Sysname> display packet-drop interface gigabitethernet 1/0/1 GigabitEthernet1/0/1: Packets dropped by GBP full or insufficient bandwidth: 301 Packets dropped by FFP: 261 Packets dropped by STP non-forwarding state: 321 Table 8 Command output Field Description Packets dropped by GBP full or insufficient Packets that are dropped because the buffer is used up or bandwidth the bandwidth is insufficient.

  • Page 24: 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 25: Duplex

    Field Description Type of traffic subjected to storm control. Options include broadcast, multicast StormType and unknown unicast. LowerLimit Lower storm control threshold, in pps, kbps, or percentage. UpperLimit Upper storm control threshold, in pps, kbps, or percentage. Protective action (block or shutdown) taken on the port when the upper Ctrmode threshold is reached.

  • Page 26: Flow-control

    Related commands: speed. Examples # Configure the interface GigabitEthernet 1/0/1 to operate in full-duplex mode. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] duplex full flow-control Syntax flow-control undo flow-control View Ethernet interface view Default level 2: System level Parameters None Description Use flow-control to enable TxRx mode generic flow control on an Ethernet interface.

  • Page 27: Flow-interval

    View Ethernet interface view Default level 2: System level Parameters None Description Use flow-control receive enable to enable Rx mode generic flow control on an Ethernet port. Use undo flow-control to disable generic flow control on an Ethernet interface. Rx mode generic flow control enables an Ethernet interface to receive and process common pause frames from its peer.

  • Page 28: Interface

    In system view, use the flow-interval command to set the statistics polling interval for all interfaces. In Ethernet interface view, use the flow-interval command to set the statistics polling interval for the interface. Examples # Set the statistics polling interval to 100 seconds on GigabitEthernet 1/0/1. <Sysname>...

  • Page 29: Link-delay

    Description Use jumboframe enable to allow jumbo frames within the specified length to pass through one or multiple Ethernet interfaces. Use undo jumboframe enable to prevent jumbo frames from passing through one or multiple Ethernet interfaces. By default, the switch allows jumbo frames within 9216 bytes to pass through Ethernet interfaces. Examples # Configure the switch to allow jumbo frames within 9216 bytes to pass through GigabitEthernet 1/0/1.

  • Page 30: Link-delay Mode Up

    link-delay mode up Syntax link-delay delay-time mode up undo link-delay View Ethernet interface view Default level 2: System level Parameters delay-time: Sets the link down suppression interval, ranging from 2 to 10 seconds. Description Use link-delay delay-time mode up to enable an Ethernet interface to suppress link down events. When the physical link of the interface goes down, the interface suppresses the link down event and starts a timer.

  • Page 31: Loopback-detection Action

    Description Use loopback to enable loopback testing on an Ethernet interface. Use undo loopback to disable loopback testing on an Ethernet interface. By default, loopback testing is disabled on Ethernet interfaces. Enable loopback testing for troubleshooting purposes, such as identifying an Ethernet problem. NOTE: During loopback testing, the speed, duplex, mdi, and shutdown commands are not available.

  • Page 32: Loopback-detection Control Enable

    <Sysname> system-view [Sysname] loopback-detection enable [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] loopback-detection enable [Sysname-GigabitEthernet1/0/1] loopback-detection action shutdown # Configure the trunk port GigabitEthernet 1/0/2 to shut down when a loop is detected. <Sysname> system-view [Sysname] loopback-detection enable [Sysname] interface gigabitethernet 1/0/2 [Sysname-GigabitEthernet1/0/2] port link-type trunk [Sysname-GigabitEthernet1/0/2] loopback-detection enable [Sysname-GigabitEthernet1/0/2] loopback-detection control enable...

  • Page 33: Loopback-detection Enable

    loopback-detection enable Syntax loopback-detection enable undo loopback-detection enable View System view, Ethernet interface view Default level 2: System level Parameters None Description Use loopback-detection enable to enable loopback detection globally in system view or on interfaces in Ethernet interface. To use loopback detection on an Ethernet interface, you must enable the function both globally and on the port.

  • Page 34: Loopback-detection Interval-time

    Examples # Enable loopback detection on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] loopback-detection enable [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/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 35: Mdi

    Description Use loopback-detection per-vlan enable to enable loopback detection in each VLAN on trunk or hybrid ports. Use undo loopback-detection per-vlan enable to disable loopback detection in all but the PVID on trunk or hybrid ports. By default, a trunk port or hybrid port performs loopback detection only in its PVID. The loopback-detection per-vlan enable command is not applicable to access ports.

  • Page 36: Multicast-suppression

    [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] mdi across multicast-suppression multicast-suppression { ratio | pps max-pps | kbps max-kbps } undo multicast-suppression View Ethernet interface view Default level 2: System level Parameters ratio: Sets the multicast suppression threshold as a percentage of the maximum interface rate, ranging from 1 to 100.

  • Page 37: Port Bridge Enable

    port bridge enable Syntax port bridge enable undo port bridge enable View Ethernet interface view Default level 2: System level Parameters None Description Use port bridge enable to enable bridging on a Ethernet interface. Use undo port bridge enable to disable bridging on the Ethernet interface. By default, bridging is not enabled on Ethernet interfaces.

  • Page 38: Reset Packet-drop Interface

    <Sysname> reset counters interface gigabitethernet 1/0/1 reset packet-drop interface Syntax reset packet-drop interface [ interface-type [ interface-number ] ] View Any view Default level 2: System level Parameters interface-type: Specify an interface type. interface-number: Specify an interface number. Description Use reset packet-drop interface to clear statistics of dropped packets on an interface or multiple interfaces.

  • Page 39: Speed

    Description CAUTION: After you shut down an Ethernet interface with this command, it cannot forward packets, even if it is physically connected. Use shutdown to shut down an Ethernet interface. Use undo shutdown to bring up an Ethernet interface. By default, an Ethernet interface is in up state. Examples # Shut down and then bring up GigabitEthernet 1/0/1.

  • Page 40: Speed Auto

    For an Ethernet copper port, use the speed command to set its speed to match the speed of the peer interface. For a fiber port, use the speed command to set its speed to match the rate of a pluggable transceiver. Related commands: duplex and speed auto.

  • Page 41: Storm-constrain

    [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] speed auto 10 1000 storm-constrain Syntax storm-constrain { broadcast | multicast | unicast } { pps | kbps | ratio } max-values min-values undo storm-constrain { all | broadcast | multicast | unicast } View Ethernet interface view Default level 2: System level...

  • Page 42: Storm-constrain Control

    <Sysname> system-view [Sysname] interface gigabitethernet 1/0/2 [Sysname-GigabitEthernet1/0/2] storm-constrain broadcast kbps 2000 1500 # Enable multicast storm control on GigabitEthernet 1/0/3, setting the upper and lower thresholds to 80% and 15%. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/3 [Sysname-GigabitEthernet1/0/3] storm-constrain multicast ratio 80 15 storm-constrain control Syntax storm-constrain control { block | shutdown }...

  • Page 43: Storm-constrain Enable Trap

    undo storm-constrain enable log View Ethernet interface view Default level 2: System level Parameters None Description Use storm-constrain enable log to enable an Ethernet interface to log storm control threshold events. Logged events include traffic exceeding the upper threshold and traffic falling below the lower threshold from the upper threshold.

  • Page 44: Storm-constrain Interval

    Examples # Disable GigabitEthernet 1/0/1 from sending out storm control threshold event traps. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] undo storm-constrain enable trap storm-constrain interval Syntax storm-constrain interval seconds undo storm-constrain interval 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.

  • Page 45: Virtual-cable-test

    Parameters ratio: Sets the unknown unicast suppression threshold as a percentage of the maximum interface rate, ranging from 1 to 100. The smaller the percentage, the less unknown unicast traffic is allowed to pass through. pps max-pps: Specifies the maximum number of unknown unicast packets that the Ethernet interface can forward per second.

  • Page 46

    Description Use virtual-cable-test to test the cable connection of an Ethernet interface. The test results are displayed within five seconds. The following cable states are available: Normal—The cable is in good condition. • Abnormal—Any fault other than a short or open circuit is detected. •...

  • Page 47: 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 Use default to restore the default settings for the loopback or null interface. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.

  • Page 48: Display Interface Loopback

    Default level 2: System level Parameters text: Creates an interface description, a string of 1 to 80 characters. Valid characters and symbols include English letters (A to Z, a to z), digits (0 to 9), special English characters, spaces, and other Unicode characters and symbols.

  • Page 49

    down: Displays information about interfaces in DOWN state and the causes. If you do not specify this keyword, this command displays information about interfaces in all states. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

  • Page 50

    Field Description State of the data link layer protocol: up (spoofing). Spoofing refers to the spoofing attribute of the interface. When the network layer Line protocol current state protocol state of the interface is displayed as up, the corresponding link may not exist, or the corresponding link is non-permanent and established on demand.

  • Page 51: Display Interface Null

    Field Description If the network layer protocol state of an interface is shown as UP, Protocol: (s) - spoofing but its link is an on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). Interface Abbreviated interface name.

  • Page 52: Interface Loopback

    exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display interface null to display information about the null interface. Because Null 0 interface is the only null interface on a device, this command displays information about Null 0 interface, even if you do not specify the 0 keyword.

  • Page 53: Interface Null

    View System view Default level 2: System level Parameters interface-number: Loopback interface number, ranging from 0 to 127. Description Use interface loopback to create a loopback interface or enter loopback interface view. Use undo interface loopback to remove a loopback interface. Related commands: display interface loopback.

  • Page 54: Reset Counters Interface Loopback

    reset counters interface loopback Syntax reset counters interface [ loopback [ interface-number ] ] View User view Default level 2: System level Parameters interface-number: Number of the loopback interface, which can be the number of any existing loopback interface. With this argument, the command clears statistics on a specified loopback interface. Description Use reset counters interface loopback to clear statistics on loopback interfaces.

  • Page 55: Shutdown

    Examples # Clear statistics on interface Null 0. <Sysname> reset counters interface null 0 shutdown Syntax shutdown undo shutdown View Loopback interface view Default level 2: System level Parameters None Description Use shutdown to shut down the loopback interface. Use undo shutdown to bring up the loopback interface. By default, a loopback interface is up.

  • Page 56: 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 57

    undo interface range name name View System view Default level 2: System level Parameters name: Interface range name, a case-sensitive string of 1 to 32 characters. interface-list: Interface list in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-5>.

  • Page 58

    # Enter the view of interface range named myEthPort. <Sysname> system-view [Sysname] interface range name myEthPort [Sysname-if-range-myEthPort]...

  • Page 59: 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. display mac-address Syntax display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic | static ] [ interface interface-type...

  • Page 60: Display Mac-address Aging-time

    If you execute this command without specifying any parameters, it displays information of all MAC address entries on the device, including unicast MAC address entries and static multicast MAC address entries. If you execute this command using only the vlan keyword or the count keyword, or only these two keywords, it displays information of unicast MAC address entries and static multicast MAC address entries.

  • Page 61: Display Mac-address Mac-learning

    Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.

  • Page 62: Display Mac-address Statistics

    Examples # Display MAC address learning status of all Ethernet ports. <Sysname> display mac-address mac-learning Mac address learning status of the switch: enable PortName Learning Status GigabitEthernet1/0/1 enable GigabitEthernet1/0/2 enable GigabitEthernet1/0/3 enable GigabitEthernet1/0/4 enable Table 13 Command output Field Description Mac-address learning status of the switch Global MAC address learning status (enabled or disabled).

  • Page 63: Mac-address (interface View)

    Dynamic Multicast Static Multicast Total Multicast Table 14 Command output Field Description MAC address type: • Dynamic Unicast • Static Unicast • MAC TYPE Total Unicast • Dynamic Multicast • Static Multicast • Total Multicast LEARNED Dynamically learned MAC addresses USER-DEFINED User defined MAC addresses (dynamic and static) MAC addresses generated by the system (for example, 802.1x and MAC...

  • Page 64: Mac-address (system View)

    By default, no MAC address entry is configured on an interface. The MAC address entries configuration cannot survive a reboot unless you save it. The dynamic MAC address table entries, however, are lost at next reboot whether or not you save the configuration. Related commands: display mac-address.

  • Page 65: Mac-address Mac-learning Disable

    interface interface-type interface-number: Specifies an outbound interface by its type and number. Description Use mac-address to add or modify a MAC address entry. Use undo mac-address to remove one or all MAC address entries. By default, no MAC address entry is configured in the system. A static or blackhole MAC address entry will not be overwritten by a dynamic MAC address entry.

  • Page 66: Mac-address Max-mac-count

    You may need to disable MAC address learning to prevent the MAC address table from being • saturated. For example, when your device is being attacked by many packets with different source MAC addresses, it affects the update of the MAC address table. •...

  • Page 67: Mac-address Timer

    Use undo mac-address max-mac-count to restore the default maximum number of MAC addresses that can be learned on an Ethernet port. By default, no MAC learning limit is configured. Related commands: mac-address and mac-address timer. Examples # Set the maximum number of MAC addresses that can be learned on port GigabitEthernet 1/0/1 to 600.

  • Page 68: 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 69: 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 70: 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 71: 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 72: Display Interface

    Default level 2: System level Parameters text: Specifies the interface description, a string of 1 to 80 characters. Description Use description to set a description for an interface. Fore example, you can include information such as the purpose of the interface for the ease of management. Use undo description to restore the default setting.

  • Page 73

    regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display interface to display aggregate interface information. If bridge-aggregation is not specified, this command displays information about all interfaces. If bridge-aggregation is specified without any interface number specified, this command displays information about all aggregate interfaces.

  • Page 74: Display Lacp System-id

    Table 15 Command output Field Description The Layer 2 interface status: • DOWN ( Administratively )—The interface is administratively shut down with the shutdown command. Bridge-Aggregation1 current state • DOWN—The interface is administratively up but physically down (possibly because no physical link is present or the link is faulty). •...

  • Page 75: Display Link-aggregation Load-sharing Mode

    Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression.

  • Page 76

    |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.

  • Page 77: Display Link-aggregation Member-port

    display link-aggregation member-port Syntax display link-aggregation member-port [ interface-list ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-list: Specifies a list of link aggregation member ports, in the format interface-type interface-number [ to interface-type interface-number ], where interface-type interface-number indicates the port type and port number.

  • Page 78

    G -- Defaulted, H -- Expired GigabitEthernet1/0/2: Aggregation Interface: Bridge-Aggregation2 Local: Port Number: 7 Port Priority: 32768 Oper-Key: 3 Flag: {ACG} Remote: System ID: 0x8000, 0000-0000-0000 Port Number: 0 Port Priority: 32768 Oper-Key: 0 Flag: {EF} Received LACP Packets: 0 packet(s) Illegal: 0 packet(s) Sent LACP Packets: 0 packet(s) Table 18 Command output...

  • Page 79: Display Link-aggregation Summary

    display link-aggregation summary Syntax display link-aggregation summary [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

  • Page 80: Display Link-aggregation Verbose

    Field Description Load sharing type: Loadsharing Type • Shar—Load sharing. • NonS—Non-load sharing. Local system ID, which comprises the system LACP priority and the Actor System ID system MAC address. AGG Interface Type and number of the aggregate interface. AGG Mode Aggregation group type.

  • Page 81

    Use display link-aggregation verbose to display information about all aggregation groups. The bridge-aggregation keyword is available only when you create Layer 2 aggregate interfaces on the device. Examples # Display detailed information about the aggregation group corresponding to Layer 2 aggregate interface Bridge-Aggregation 1, which is a dynamic aggregation group.

  • Page 82: Enable Snmp Trap Updown

    Table 20 Command output Field Description Load sharing type: Loadsharing Type • Shar—Load sharing. • NonS—Non-load sharing. Port Status Port state: Selected or Unselected. LACP state flags: • A—LACP is enabled. • B—Indicates the LACP short timeout. • C—The sending system detects that the link is aggregatable. Flags •...

  • Page 83: Interface Bridge-aggregation

    Parameters None Description Use enable snmp trap updown to enable linkUp/linkDown trap generation for the aggregate interface. Use undo enable snmp trap updown to disable linkUp/linkDown trap generation for the aggregate interface. By default, linkUp/linkDown trap generation is enabled for an aggregate interface. For an aggregate interface to generate linkUp/linkDown traps when its link state changes, you must also enable linkUp/linkDown trap generation globally with the snmp-agent trap enable [ standard [ linkdown | linkup ] * ] command.

  • Page 84: Lacp Period Short

    [Sysname-Bridge-Aggregation1] lacp period short Syntax lacp period short undo lacp period View Ethernet interface view Default level 2: System level Parameters None Description Use lacp period short to set the LACP timeout interval on a port to the short timeout interval (1 second). Use undo lacp period to restore the default setting.

  • Page 85: Link-aggregation Load-sharing Mode

    Examples # Set the system LACP priority to 64. <Sysname> system-view [Sysname] lacp system-priority 64 link-aggregation load-sharing mode Syntax In system view: link-aggregation load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } * undo link-aggregation load-sharing mode In Layer 2 aggregate interface view: link-aggregation load-sharing mode { destination-ip | destination-mac | source-ip | source-mac } * undo link-aggregation load-sharing mode View...

  • Page 86: Link-aggregation Load-sharing Mode Local-first

    Destination MAC address • • Source IP address and destination IP address Source MAC address and destination MAC address • In Layer 2 aggregate interface view, the switch supports the following load sharing criteria and combinations: Load-sharing criteria automatically determined based on the packet type •...

  • Page 87: Link-aggregation Mode

    <Sysname> system-view [Sysname] undo link-aggregation load-sharing mode local-first link-aggregation mode Syntax link-aggregation mode dynamic undo link-aggregation mode View Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use the link-aggregation mode dynamic command to configure an aggregation group to operate in dynamic aggregation mode.

  • Page 88: Link-aggregation Selected-port Minimum

    Description Use link-aggregation port-priority to set the aggregation priority of a port. Use undo link-aggregation port-priority to restore the default setting. The default aggregation priority of a port is 32768. Examples # Set the aggregation priority of port GigabitEthernet 1/0/1 to 64. <Sysname>...

  • Page 89: Reset Counters Interface

    undo port link-aggregation group View Ethernet interface view Default level 2: System level Parameters number: Specifies the number of the aggregate interface corresponding to an aggregation group. The number argument ranges from 1 to 128. Description Use port link-aggregation group to assign the Ethernet interface to the specified aggregation group. Use undo port link-aggregation group to remove the Ethernet interface from the aggregation group to which it belongs.

  • Page 90: Reset Lacp Statistics

    The bridge-aggregation keyword becomes available only after you create Layer 2 aggregate • interfaces on the device. Examples # Clear the statistics of Layer 2 aggregate interface Bridge-Aggregation 1. <Sysname> reset counters interface bridge-aggregation 1 reset lacp statistics Syntax reset lacp statistics [ interface interface-list ] View User view Default level...

  • Page 91

    By default, aggregate interfaces are up. Examples # Shut down Layer 2 aggregate interface Bridge-Aggregation 1. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] shutdown...

  • Page 92: 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 93: Port-isolate Enable

    port-isolate enable Syntax port-isolate enable undo port-isolate enable View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use port-isolate enable to assign a port to an isolation group. Use undo port-isolate enable to remove a port from the isolation group. •...

  • Page 94

    [Sysname-GigabitEthernet1/0/2] quit [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port-isolate enable...

  • Page 95: 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 96: Display Stp

    Parameters None Description Use check region-configuration to display MST region pre-configuration information, including the region name, revision level, and VLAN-to-instance mapping settings. Two or more spanning tree devices belong to the same MST region only if they are configured with the same format selector (0 by default, not configurable), MST region name, MST region revision level, and the same VLAN-to-instance mapping entries in the MST region, and if they are connected via a physical link.

  • Page 97

    Default level 1: Monitor level Parameters instance instance-id: Displays the status and statistics of a specific MSTI. The value of instance-id ranges from 0 to 32, where 0 represents the common internal spanning tree (CIST). interface interface-list: Displays the spanning tree status and statistics on the ports specified by a port list, format interface-list interface-type...

  • Page 98

    Examples # In MSTP mode, display the brief spanning tree status and statistics of MSTI 0 on ports GigabitEthernet 1/0/1 through GigabitEthernet 1/0/4. <Sysname> display stp instance 0 interface gigabitethernet 1/0/1 to gigabitethernet 1/0/4 brief MSTID Port Role STP State Protection GigabitEthernet1/0/1 ALTE...

  • Page 99

    Digest-Snooping :disabled TC or TCN received Time since last TC :0 days 0h:5m:42s ----[Port1(GigabitEthernet1/0/1)][FORWARDING]---- Port Protocol :enabled Port Role :CIST Designated Port Port Priority :128 Port Cost(Legacy) :Config=auto / Active=200 Desg. Bridge/Port :32768.000f-e200-2200 / 128.2 Port Edged :Config=disabled / Active=disabled Point-to-point :Config=auto / Active=true Transmit Limit...

  • Page 100

    Table 24 Command output Field Description CIST bridge ID, which comprises the device’s priority in the CIST and its MAC address. For example, in output "32768.000f-e200-2200", the value preceding CIST Bridge the dot is the device’s priority in the CIST, and the value following the dot is the device’s MAC address.

  • Page 101

    Field Description The port is an edge port or non-edge port. • Port Edged Config—Configured value. • Active—Actual value. The port is connected to a point-to-point link or not. • Point-to-point Config—Configured value. • Active—Actual value. Transmit Limit Maximum number of packets sent within each hello time. Protection type on the port: •...

  • Page 102: Display Stp Abnormal-port

    Field Description Forward delay(s) Port state transition delay (in seconds). Hello time(s) Interval (in seconds) for the root bridge to send BPDUs. Max hops Maximum hops in the MSTI. display stp abnormal-port Syntax display stp abnormal-port [ | { begin | exclude | include } regular-expression ] View Any view Default level...

  • Page 103: Display Stp Bpdu-statistics

    Field Description Reason that the port was blocked: • ROOT-Protected—Root guard function. • LOOP-Protected—Loop guard function. Reason • Formatcompatibility-Protected—MSTP BPDU format incompatibility protection function. • InconsistentPortType-Protected—Port type inconsistent protection function. • InconsistentPvid-Protected—PVID inconsistent protection function. display stp bpdu-statistics Syntax display stp bpdu-statistics [ interface interface-type interface-number [ instance instance-id ] ] [ | { begin | exclude | include } regular-expression ] View Any view...

  • Page 104

    If you specify a port, this command displays the BPDU statistics on the port. • Examples # In MSTP mode, display the BPDU statistics of all MSTIs on GigabitEthernet 1/0/1. <Sysname> display stp bpdu-statistics interface gigabitethernet 1/0/1 Port: GigabitEthernet1/0/1 Instance-independent: Type Count Last Updated...

  • Page 105: Display Stp Down-port

    Timeout BPDUs MAX-hoped BPDUs TC detected TC sent TC received Table 26 Command output Field Description Port Port name. Instance-independent Statistics not related to any particular MSTI. Type Statistical item. Looped-back BPDUs BPDUs sent and then received by the same port. Max-Aged BPDUs BPDUs whose max age was exceeded.

  • Page 106: Display Stp History

    Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.

  • Page 107

    |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.

  • Page 108: Display Stp Region-configuration

    display stp region-configuration Syntax display stp region-configuration [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.

  • Page 109: Display Stp Root

    Field Description MSTI mode: • Mode Default—The default instance MSTI 0. • Static—The static MSTI. display stp root Syntax display stp root [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.

  • Page 110: Display Stp Tc

    display stp tc Syntax display stp [ instance instance-id ] tc [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 0: Visit level Parameters instance instance-id: Displays the statistics of TC/TCN BPDUs received and sent by all ports in a particular MSTI.

  • Page 111: Instance

    Table 31 Command output Field Description Port Port name. Receive Number of TC/TCN BPDUs received on each port. Send Number of TC/TCN BPDUs sent by each port. instance Syntax instance instance-id vlan vlan-list undo instance instance-id [ vlan vlan-list ] View MST region view Default level...

  • Page 112: Region-name

    region-name Syntax region-name name undo region-name View MST region view Default level 2: System level Parameters name: Specifies the MST region name, a string of 1 to 32 characters. Description Use region-name to configure the MST region name. Use undo region-name to restore the default MST region name. By default, the MST region name of a device is its MAC address.

  • Page 113: Revision-level

    Description Use reset stp to clear the MSTP statistics. The MSTP statistics include the numbers of TCN BPDUs, configuration BPDUs, RST BPDUs and MST BPDUs sent/received through the specified ports. The STP BPDUs and TCN BPDUs are counted only for the CIST.

  • Page 114: Stp Bpdu-protection

    stp bpdu-protection Syntax stp bpdu-protection undo stp bpdu-protection View System view Default level 2: System level Parameters None Description Use stp bpdu-protection to enable the BPDU guard function. Use undo stp bpdu-protection to disable the BPDU guard function. By default, the BPDU guard function is disabled. Examples # Enable the BPDU guard function.

  • Page 115: Stp Compliance

    Each MST region is considered as a device, and the configured network diameter of the switched network is only effective for the CIST (or the common root bridge), not for MSTIs. Related commands: stp timer forward-delay, stp timer hello, and stp timer max-age. Examples # In MSTP mode, set the network diameter of the switched network to 5.

  • Page 116: Stp Config-digest-snooping

    stp config-digest-snooping Syntax stp config-digest-snooping undo stp config-digest-snooping View System view, Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use stp config-digest-snooping to enable Digest Snooping. Use undo stp config-digest-snooping to disable Digest Snooping. The feature is disabled by default.

  • Page 117: Stp Edged-port

    Parameters instance instance-id: Sets the path cost of the ports in a particular MSTI. The value of instance-id ranges from 0 to 32, where 0 represents the CIST. cost: Specifies the path cost of the port, with an effective range that depends on the path cost calculation standard adopted.

  • Page 118: Stp Enable

    Default level 2: System level Parameters enable: Configures the ports as edge ports. disable: Configures the ports as non-edge ports. Description Use stp edged-port enable to configure the ports as edge ports. Use stp edged-port disable to configure the ports as non-edge ports. Use undo stp edged-port to restore the default.

  • Page 119: Stp Loop-protection

    Parameters None Description Use stp enable to enable the spanning tree feature globally. Use undo stp enable to disable the spanning tree feature. By default, the spanning tree feature is disabled globally and enabled on all ports. Configured in system view, the setting takes effect globally. Configured in Ethernet interface view, the setting takes effect only on the interface.

  • Page 120: Stp Max-hops

    Use undo stp loop-protection to restore the default. By default, the loop guard function is disabled. Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface. Configured on a member port in an aggregation group, the setting takes effect only after the port leaves the aggregation group.

  • Page 121: Stp Mode

    View System view, Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use stp mcheck to perform the mCheck operation globally or on a port. If a port on a device running MSTP or RSTP mode connects to an STP device, the port will automatically migrate to the STP mode.

  • Page 122: Stp No-agreement-check

    Default level 2: System level Parameters stp: Configures the spanning tree device to operate in STP mode. rstp: Configures the spanning tree device to operate in RSTP mode. mstp: Configures the spanning tree device to operate in MSTP mode. Description Use stp mode to configure the spanning tree operating mode.

  • Page 123: Stp Pathcost-standard

    <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp no-agreement-check stp pathcost-standard Syntax stp pathcost-standard { dot1d-1998 | dot1t | legacy } undo stp pathcost-standard View System view Default level 2: System level Parameters dot1d-1998: Configures the device to calculate the default path cost for ports based on IEEE 802.1d- 1 998.

  • Page 124: Stp Port Priority

    Parameters auto: Specifies automatic detection of the link type. force-false: Specifies the non-point-to-point link type. force-true: Specifies the point-to-point link type. Description Use stp point-to-point to configure the link type of the ports. Use undo stp point-to-point to restore the default. The default setting is auto and the spanning tree device automatically detects whether a port connects to a point-to-point link.

  • Page 125: Stp Port-log

    priority: Specifies a port priority, in the range of 0 to 240 in steps of 16 (as in 0, 16, 32). Description Use stp port priority to set the priority of the ports. Use undo stp port priority to restore the default. By default, the port priority is 128.

  • Page 126: Stp Priority

    By default, this function is enabled. Examples # In MSTP mode, enable outputting port state transition information for MSTI 2. <Sysname> system-view [Sysname] stp port-log instance 2 %Aug 16 00:49:41:856 2006 Sysname MSTP/3/MSTP_DISCARDING: Instance 2's GigabitEthernet1/0/1 has been set to discarding state! %Aug 16 00:49:41:856 2006 Sysname MSTP/3/MSTP_DISCARDING: Instance 2's GigabitEthernet1/0/2 has been set to forwarding state! The output shows that GigabitEthernet 1/0/1 in MSTI 2 transitioned to the discarding state and...

  • Page 127: Stp Region-configuration

    stp region-configuration Syntax stp region-configuration undo stp region-configuration View System view Default level 2: System level Parameters None Description Use stp region-configuration to enter MST region view. Use undo stp region-configuration to restore the default MST region configurations. These are the default settings for the MST region: The MST region name of the device is the MAC address of the device.

  • Page 128: Stp Root Secondary

    Description Use stp root primary to configure the device as the root bridge. Use undo stp root to restore the default. By default, a device is not a root bridge. To set an MSTP device as the root bridge in a specific MSTI, use this command with the MSTI specified. To set an MSTP device in the CIST or an STP/RSTP device as the root bridge, use this command without specifying any MSTI.

  • Page 129: Stp Root-protection

    stp root-protection Syntax stp root-protection undo stp root-protection View Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use stp root-protection to enable the root guard function on the ports. Use undo stp root-protection to restore the default. By default, the root guard function is disabled.

  • Page 130: Stp Tc-protection Threshold

    Description Use stp tc-protection enable to enable the TC-BPDU attack guard function for the device. Use stp tc-protection disable to disable the TC-BPDU attack guard function for the device. By default, the TC-BPDU attack guard function is enabled. Examples # Disable the TC-BPDU attack guard function for the device. <Sysname>...

  • Page 131: Stp Timer Forward-delay

    Parameters None Description Use stp tc-snooping to enable topology change (TC) snooping. Use undo stp tc-snooping to disable TC snooping. By default, TC snooping disabled. TC snooping and STP are mutually exclusive. Before enabling TC snooping, first disable STP globally. TC snooping does not take effect on the ports on which BPDU tunneling is enabled for STP.

  • Page 132: Stp Timer Hello

    Related commands: stp timer hello, stp timer max-age, and stp bridge-diameter. Examples # In MSTP mode, set the forward delay timer to 20 seconds. <Sysname> system-view [Sysname] stp timer forward-delay 2000 stp timer hello Syntax stp timer hello time undo stp timer hello View System view Default level...

  • Page 133: Stp Timer-factor

    View System view Default level 2: System level Parameters time: Sets the max age in 0.01 seconds, in the range of 600 to 4000 in increments of 100 (as in 600, 700, 800). Description Use stp timer max-age to set the max age timer of the device. Use undo stp timer max-age to restore the default.

  • Page 134: Stp Transmit-limit

    After the network topology is stabilized, each non-root-bridge device forwards configuration BPDUs to the surrounding devices at the interval of hello time to check whether any link is faulty. If a device does not receive a BPDU from the upstream device within nine times the hello time, it will assume that the upstream device has failed and start a new spanning tree calculation process.

  • Page 135: Vlan-mapping Modulo

    [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp transmit-limit 5 vlan-mapping modulo Syntax vlan-mapping modulo modulo View MST region view Default level 2: System level Parameters modulo: Sets the modulo value, in the range of 1 to 32. Description Use vlan-mapping modulo to map VLANs in the MST region to MSTIs according to the specified modulo value, quickly creating a VLAN-to-instance mapping table.

  • Page 136: Bpdu Tunneling Configuration Commands

    BPDU tunneling configuration commands bpdu-tunnel dot1q Syntax In Layer 2 Ethernet interface view: bpdu-tunnel dot1q { cdp | dldp | eoam | gvrp | hgmp | lacp | lldp | pagp | pvst | stp | udld | vtp } undo bpdu-tunnel dot1q { cdp | dldp | eoam | gvrp | hgmp | lacp | lldp | pagp | pvst | stp | udld | vtp } In Layer 2 aggregate interface view:...

  • Page 137: Bpdu-tunnel Tunnel-dmac

    You cannot enable BPDU tunneling on a member port of a service loopback group. Before enabling BPDU tunneling for DLDP, EOAM, GVRP, HGMP, LLDP, or STP on a port, disable the protocol on the port first. To enable BPDU tunneling for PVST (which is a spanning tree protocol) on a port, disable STP first and then enable BPDU tunneling for STP on the port.

  • Page 138: 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 139

    View VLAN view, VLAN interface view Default level 2: System level Parameters text: Specifies the description of a VLAN or VLAN interface. The string can include case-sensitive letters, digits, special characters such as tilde (~), exclamation point (!), at sign (@), pound sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon...

  • Page 140: Display Interface Vlan-interface

    display interface vlan-interface Syntax display interface [ vlan-interface ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ] display interface vlan-interface vlan-interface-id [ brief ] [ | { begin | exclude | include } regular-expression ] View Any view...

  • Page 141: Field Description

    0 packets input, 0 bytes, 0 drops 0 packets output, 0 bytes, 0 drops # Display brief information for VLAN-interface 2. <Sysname> display interface vlan-interface 2 brief The brief information of interface(s) under route mode: Link: ADM - administratively down; Stby - standby Protocol: (s) - spoofing Interface Link Protocol Main IP...

  • Page 142: Display Vlan

    Field Description Time when the reset counters interface vlan-interface command was last used to clear the interface statistics. Last clearing of counters Never indicates the reset counters interface command has never been used on the interface since the device’s startup. Last 300 seconds input: 0 bytes/sec Average rate of input packets in the last 300 seconds (in bps and pps).

  • Page 143

    Default level 1: Monitor level Parameters vlan-id1: Displays information about a VLAN specified by VLAN ID, in the range of 1 to 4094. vlan-id1 to vlan-id2: Displays information about VLANs specified by a VLAN ID range. The vlan-id2 argument cannot be smaller than the vlan-id1 argument. all: Displays all VLAN information but the reserved VLANs.

  • Page 144: Interface Vlan-interface

    2001::1, subnet is 2001::/64 [TENTATIVE] Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: none Table 33 Command output Field Description VLAN Type VLAN type, static or dynamic. Route interface Indicates whether the VLAN interface is configured or not. Description Description of the VLAN.

  • Page 145: Ip Address

    Description Use interface vlan-interface to create a VLAN interface and enter its view or enter the view of an existing VLAN interface. Use undo interface vlan-interface to remove the specified VLAN interface. Create the VLAN before you create the VLAN interface. To configure an IP address for a VLAN interface that will perform IP routing, use the ip address command in VLAN interface view.

  • Page 146: Mtu

    To remove the primary IP address, use the undo ip address ip-address { mask | mask-length } • command. To remove a secondary IP address, use the undo ip address [ ip-address { mask | mask-length } • [ sub ] ] command Related commands: display ip interface (Layer 3—IP Services Command Reference).

  • Page 147: Reset Counters Interface Vlan-interface

    Default level 2: System level Parameters text: Specifies a VLAN name, a string of 1 to 32 characters. The string can include case-sensitive letters, digits, special characters such as tilde (~), exclamation point (!), at sign (@), pound sign (#), dollar sign ($), percent sign (%), caret (^), ampersand sign (&), asterisk (*), left brace({), right brace (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon...

  • Page 148: Shutdown

    If the vlan-interface-id argument is specified, this command clears the statistics of the specified VLAN interface. Related commands: display interface vlan-interface. Examples # Clear the statistics on VLAN-interface 2. <Sysname> reset counters interface vlan-interface 2 shutdown Syntax shutdown undo shutdown View VLAN interface view Default level...

  • Page 149: 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 150: Port-based Vlan Configuration Commands

    <Sysname> system-view [Sysname] vlan 4 to 100 Please wait..... Done. 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.

  • Page 151: Port

    Table 34 Command output Field Description Interface Port name PVID PVID of the port VLAN passing VLANs for which the port allows packets to pass through Tagged VLANs for which the port sends packets without removing VLAN tags Untagged VLANs for which the port sends packets after removing VLAN tags port Syntax port interface-list...

  • Page 152: Port Access Vlan

    port access vlan Syntax port access vlan vlan-id undo port access vlan View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. Verify that the VLAN specified by the VLAN ID already exists.

  • Page 153: Port Hybrid Vlan

    View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. Description Use port hybrid pvid to configure the PVID of the hybrid port. Use undo port hybrid pvid to restore the default.

  • Page 154

    undo port hybrid vlan vlan-list View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-list: Specifies a list of VLANs that the hybrid ports will be assigned to, in the format of [ vlan-id1 [ to vlan-id2 ] ]&<1- 1 0>, where vlan-id1 and vlan-id2 represent VLAN IDs and each range from 1 to 4094 and &<1- 1 0>...

  • Page 155: Port Link-type

    Configuring GigabitEthernet1/0/3... Done. The output shows that GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1. port link-type Syntax port link-type { access | hybrid | trunk } undo port link-type View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level...

  • Page 156: Port Trunk Permit Vlan

    [Sysname-Bridge-Aggregation1] port link-type hybrid port trunk permit vlan Syntax port trunk permit vlan { vlan-list | all } undo port trunk permit vlan { vlan-list | all } View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-list: Specifies a list of VLANs that the trunk ports will be assigned to, in the format of [ vlan-id1 [ to...

  • Page 157: Port Trunk Pvid

    [Sysname-GigabitEthernet1/0/1] port link-type trunk [Sysname-GigabitEthernet1/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 158: 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 GigabitEthernet 1/0/1. <Sysname>...

  • Page 159: Display Mac-vlan Interface

    regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Description Use display mac-vlan to display the specified MAC address-to-VLAN entries. If mac-address mac-address is specified but mask is not specified, only the MAC address-to-VLAN entry containing the specified MAC address is displayed. Examples # Display all the MAC address-to-VLAN entries.

  • Page 160: Mac-vlan Enable

    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 161: Mac-vlan Mac-address

    mac-vlan mac-address Syntax mac-vlan mac-address mac-address [ mask mac-mask ] vlan vlan-id [ priority pri ] undo mac-vlan { all | mac-address mac-address [ mask mac-mask ] | vlan vlan-id } View System view Default level 2: System level Parameters mac-address mac-address: Specifies a MAC address.

  • Page 162: Port Pvid Disable

    undo mac-vlan trigger enable View Layer 2 Ethernet port view Default level 2: System level Parameters None Description Use mac-vlan trigger enable to enable dynamic MAC-based VLAN assignment. The port configured with this command will be dynamically assigned to VLANs based on the source MAC addresses of the received packets.

  • Page 163: Vlan Precedence

    Use undo port pvid disable to restore the default. By default, when a port receives a packet with an unknown source MAC address that does not match any MAC address-to-VLAN entry, it forwards the packet in its PVID. Examples # Disable the PVID of GigabitEthernet 1/0/1 from forwarding packets whose source MAC addresses do not match any MAC address-to-VLAN entry.

  • Page 164: Protocol-based Vlan Configuration Commands

    Protocol-based VLAN configuration commands display protocol-vlan interface Syntax display protocol-vlan interface { interface-type interface-number1 [ to interface-type interface-number2 ] | all } [ | { begin | exclude | include } regular-expression ] View Any view Default level 2: System level Parameters interface-type interface-number1: Specifies an interface by its type and number.

  • Page 165: Display Protocol-vlan Vlan

    display protocol-vlan vlan Syntax display protocol-vlan vlan { vlan-id1 [ to vlan-id2 ] | all } [ | { begin | exclude | include } regular-expression ] View Any view Default level 2: System level Parameters vlan-id1: Specifies a protocol-based VLAN ID, in the range of 1 to 4094. vlan-id1 to vlan-id2: Displays protocol-based VLAN information of a VLAN range from vlan-id1 to vlan-id2.

  • Page 166: Port Hybrid Protocol-vlan

    Table 37 Command output Field Description VLAN ID ID of the protocol-based VLAN bound to the port Protocol Index Protocol template index Protocol Type Protocol type specified by the protocol template port hybrid protocol-vlan Syntax port hybrid protocol-vlan vlan vlan-id { protocol-index [ to protocol-end ] | all } undo port hybrid protocol-vlan { vlan vlan-id { protocol-index [ to protocol-end ] | all } | all } View Layer 2 Ethernet interface view, Layer 2 aggregate interface view...

  • Page 167: Protocol-vlan

    Examples # Associate the hybrid port GigabitEthernet 1/0/1 with protocol 0 (IPv4) in VLAN 2. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] protocol-vlan ipv4 [Sysname-vlan2] quit [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-type hybrid [Sysname-GigabitEthernet1/0/1] port hybrid vlan 2 untagged Please wait... Done [Sysname-GigabitEthernet1/0/1] port hybrid protocol-vlan vlan 2 0 # Associate the hybrid Layer 2 aggregate interface Bridge-Aggregation 1 with protocol 0 in VLAN 2.

  • Page 168

    mode: Configures a user-defined protocol template for the VLAN, which could also have the following encapsulation formats: ethernetii, llc, and snap. ethernetii etype etype-id: Matches Ethernet II encapsulation format and the corresponding protocol type values. The etype-id argument is the protocol type ID of inbound packets, in the range of 0x0600 to 0xFFFF (excluding 0x0800, 0x809B, 0x8137, and 0x86DD).

  • Page 169: Ip Subnet-based Vlan Configuration Commands

    [Sysname] vlan 3 [Sysname-vlan3] protocol-vlan ipv4 # Create an ARP protocol template for VLAN 3 (ARP code is 0x0806) to make VLAN 3 transmit ARP packets. • To use Ethernet encapsulation, use this command: [Sysname-vlan3] protocol-vlan mode ethernetii etype 0806 To use 802.3 encapsulation, use this command: •...

  • Page 170: Display Ip-subnet-vlan Vlan

    192.168.1.0 255.255.255.0 Table 38 Command output Field Description Subnet-Index Index of the IP subnet IP ADDRESS IP address of the subnet (either an IP address or a network address) NET MASK Mask of the IP subnet display ip-subnet-vlan vlan Syntax display ip-subnet-vlan vlan { vlan-id1 [ to vlan-id2 ] | all } [ | { begin | exclude | include } regular-expression ] View...

  • Page 171: Ip-subnet-vlan

    Table 39 Command output Field Description Subnet Index IP subnet index. IP Address IP address of the subnet. It can be an IP address or a network address. Subnet Mask Mask of the IP subnet. ip-subnet-vlan Syntax ip-subnet-vlan [ ip-subnet-index ] ip ip-address [ mask ] undo ip-subnet-vlan { ip-subnet-index [ to ip-subnet-end ] | all } View VLAN view...

  • Page 172: Port Hybrid Ip-subnet-vlan

    port hybrid ip-subnet-vlan Syntax port hybrid ip-subnet-vlan vlan vlan-id undo port hybrid ip-subnet-vlan { vlan vlan-id | all } View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. all: Specifies all VLANs.

  • Page 173

    <Sysname> system-view [Sysname] vlan 3 [Sysname-vlan3] ip-subnet-vlan ip 192.168.1.0 255.255.255.0 [Sysname-vlan3] quit [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port hybrid vlan 3 untagged Please wait... Done Configuring GigabitEthernet1/0/1... Done. Configuring GigabitEthernet1/0/2... Done. Configuring GigabitEthernet1/0/3... Done. [Sysname-Bridge-Aggregation1] port hybrid ip-subnet-vlan vlan 3 The output shows that GigabitEthernet 1/0/1, GigabitEthernet 1/0/2, and GigabitEthernet 1/0/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1.

  • Page 174: Isolate-user-vlan Configuration Commands

    Isolate-user-VLAN configuration commands display isolate-user-vlan Syntax display isolate-user-vlan [ isolate-user-vlan-id ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters isolate-user-vlan-id: Specifies an isolate-user-VLAN ID, in the range of 1 to 4094. |: Filters command output by specifying a regular expression.

  • Page 175

    Untagged Ports: GigabitEthernet1/0/2 GigabitEthernet1/0/3 GigabitEthernet1/0/4 VLAN ID: 3 VLAN Type: static Isolate-user-VLAN type : secondary Route Interface: not configured Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: GigabitEthernet1/0/2 GigabitEthernet1/0/3 VLAN ID: 4 VLAN Type: static Isolate-user-VLAN type : secondary Route Interface: not configured Description: VLAN 0004 Name: VLAN 0004...

  • Page 176: Isolate-user-vlan

    isolate-user-vlan Syntax isolate-user-vlan isolate-user-vlan-id secondary secondary-vlan-id1 [ to secondary-vlan-id2 ] undo isolate-user-vlan isolate-user-vlan-id [ secondary secondary-vlan-id1 [ to secondary-vlan-id2 ] ] View System view Default level 2: System level Parameters isolate-user-vlan-id: Specifies an isolate-user-VLAN ID, in the range of 1 to 4094. Do not specify VLAN 1 for this argument.

  • Page 177: Isolate-user-vlan Enable

    isolate-user-vlan enable Syntax isolate-user-vlan enable undo isolate-user-vlan enable View VLAN view Default level 2: System level Parameters None Description Use isolate-user-vlan enable to configure the VLAN as an isolate-user-VLAN. Use undo isolate-user-vlan enable to remove the isolate-user-VLAN configuration for the VLAN. By default, no VLAN is an isolate-user-VLAN.

  • Page 178

    When you use the port isolate-user-vlan vlan-id promiscuous command on a port that is operating in promiscuous mode, the device automatically executes the undo port isolate-user-vlan command to cancel the promiscuous mode of the port first. If you specify an isolate-user-VLAN in the command, the switch automatically assigns the target port to both the specified VLAN and all secondary VLANs associated with it.

  • Page 179: Port Isolate-user-vlan Host

    [Sysname-GigabitEthernet1/0/1] undo port isolate-user-vlan [Sysname-GigabitEthernet1/0/1] display this interface GigabitEthernet1/0/1 port link-mode bridge port link-type hybrid undo port hybrid vlan 1 port hybrid vlan 20 untagged port hybrid pvid vlan 2 return # Assign access port GigabitEthernet 1/0/1 to VLAN 10, which is not an isolate-user-VLAN, configure the port to operate in promiscuous mode in VLAN 10, and then cancel the configuration.

  • Page 180

    Default level 2: System level Parameters None Description Use port isolate-user-vlan host to configure a port to operate in host mode. Use undo port isolate-user-vlan to restore the default. By default, a port does not operate in promiscuous mode or host mode. If the port has been assigned to a secondary VLAN, the switch automatically assigns the target port to the isolate-user-VLAN associated with the secondary VLAN.

  • Page 181

    port hybrid pvid vlan 20 return...

  • Page 182: Voice Vlan Configuration Commands

    Voice VLAN configuration commands 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. For more information about regular expressions, see Fundamentals Configuration Guide.

  • Page 183: Display Voice Vlan State

    Field Description Mask Masks of the OUI addresses supported Description Description strings of the OUI addresses supported display voice vlan state Syntax display voice vlan state [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters...

  • Page 184: Voice Vlan Aging

    Field Description Security mode of the voice VLAN: • Voice VLAN security mode Security—Security mode. • Normal—Normal mode. Voice VLAN aging time Aging time of the voice VLAN. Voice VLAN enabled port and its Voice VLAN-enabled port and its voice VLAN assignment mode. mode PORT Voice VLAN-enabled port name.

  • Page 185: Voice Vlan Enable

    voice vlan enable Syntax voice vlan vlan-id enable undo voice vlan [ vlan-id ] enable View Layer 2 Ethernet interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, in the range of 2 to 4096. Description Use voice vlan enable to enable the voice VLAN feature and configure a VLAN as the voice VLAN for the Ethernet port.

  • Page 186: Voice Vlan Mode Auto

    oui: Specifies the OUI address you want to remove, in the format of H-H-H. For example, 1234- 1 200-0000. An OUI address is the logic AND result of mac-address and oui-mask. An OUI address cannot be a broadcast address, a multicast address, or an all-zero address. Description Use voice vlan mac-address to allow packets carrying the specified OUI address to pass through.

  • Page 187: Voice Vlan Qos

    Description Use voice vlan mode auto to configure the port to operate in automatic voice VLAN assignment mode. Use undo voice vlan mode auto to configure the port to operate in manual voice VLAN assignment mode. By default, a port operates in automatic voice VLAN assignment mode. The voice VLAN modes of different ports are independent of one another.

  • Page 188: Voice Vlan Qos Trust

    <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] voice vlan qos 5 45 voice vlan qos trust Syntax voice vlan qos trust undo voice vlan qos View Layer 2 Ethernet interface view Default level 2: System level Parameters None Description Use voice vlan qos trust to configure the interface to trust the priority settings carried in incoming voice traffic.

  • Page 189

    Default level 2: System level Parameters None Description Use voice vlan security enable to enable the voice VLAN security mode. Use undo voice vlan security enable to disable the voice VLAN security mode. By default, the voice VLAN security mode is enabled. When you enable the security mode for a voice VLAN, only voice traffic can be transmitted in the voice VLAN.

  • Page 190: 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 191: Display Garp Timer

    <Sysname> display garp statistics interface gigabitethernet 1/0/1 to gigabitethernet 1/0/2 GARP statistics on port GigabitEthernet1/0/1 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded GARP statistics on port GigabitEthernet1/0/2 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded display garp timer Syntax...

  • Page 192: Display Gvrp Local-vlan

    Garp Join Time : 20 centiseconds Garp Leave Time : 60 centiseconds Garp LeaveAll Time : 1000 centiseconds Garp Hold Time : 10 centiseconds display gvrp local-vlan Syntax display gvrp local-vlan interface interface-type interface-number [ | { begin | exclude | include } regular-expression ] View Any view...

  • Page 193

    Parameters interface interface-type interface-number: Specifies an interface by its type and number. vlan vlan-id: Specifies a VLAN ID, ranging from 1 to 4094. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.

  • Page 194: Display Gvrp Statistics

    Field Description Registrar state machine records the registration of attributes declared by other participants. Its state can be INN, LV, L3, L2, L1, MT, INR, LVR, L3R, L2R, L1R, MTR, INF, LVF, L3F, L2F, L1F, and MTF. Each state consists of two or three letters or numbers with the following meanings: •...

  • Page 195: Display Gvrp Status

    GVRP statistics on port GigabitEthernet1/0/1 GVRP Status : Enabled GVRP Running : YES GVRP Failed Registrations GVRP Last Pdu Origin : 0000-0000-0000 GVRP Registration Type : Normal Table 45 Command output Field Description GVRP Status Indicates whether GVRP is enabled or disabled. GVRP Running Indicates whether GVRP is running.

  • Page 196: Display Gvrp Vlan-operation

    display gvrp vlan-operation Syntax display gvrp vlan-operation interface interface-type interface-number [ | { begin | exclude | include } regular-expression ] View Any view Default level 0: Visit level Parameters interface interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression.

  • Page 197: Garp Timer Join

    Parameters timer-value: Hold timer (in centiseconds), which must be a multiple of 5 and range from 10 (inclusive) to half the Join timer (inclusive). Description Use garp timer hold to set the GARP Hold timer for an Ethernet port or Layer-2 aggregate interface. Use undo garp timer hold to restore the default of the GARP Hold timer.

  • Page 198: Garp Timer Leave

    garp timer leave Syntax garp timer leave timer-value undo garp timer leave View Ethernet interface view, Layer-2 aggregate interface view Default level 2: System level Parameters timer-value: Leave timer (in centiseconds), which must be a multiple of 5 and range from twice the Join timer (exclusive) to the LeaveAll timer (exclusive).

  • Page 199: Gvrp

    Use undo garp timer leaveall to restore the default. This may fail if the default is beyond the valid value range for the LeaveAll timer. By default, the LeaveAll timer is 1000 centiseconds. NOTE: To keep the dynamic VLANs learned through GVRP stable, do not set the LeaveAll timer smaller than its default value.

  • Page 200: Gvrp Registration

    gvrp registration Syntax gvrp registration { fixed | forbidden | normal } undo gvrp registration View Ethernet interface view, Layer-2 aggregate interface view Default level 2: System level Parameters fixed: Sets the GVRP registration mode to fixed. forbidden: Sets the GVRP registration mode to forbidden. normal: Sets the GVRP registration mode to normal.

  • Page 201

    As an individual port in the form of interface-type interface-number • • As a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end-port number specified by interface-number2 must be greater than the start port number specified by interface-number1. Description Use reset garp statistics to clear the GARP statistics on the specified ports.

  • Page 202: 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 203: Qinq Enable

    qinq enable Syntax qinq enable undo qinq enable View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use qinq enable to enable basic QinQ on the Ethernet ports. Use undo qinq enable to disable basic QinQ on the Ethernet ports. By default, basic QinQ is disabled on Ethernet ports.

  • Page 204: Qinq Ethernet-type Service-tag

    Table 46 Common protocol type values Protocol type Value 0x0806 0x0200 RARP 0x8035 0x0800 IPv6 0x86DD PPPoE 0x8863/0x8864 MPLS 0x8847/0x8848 IPX/SPX 0x8137 IS-IS 0x8000 LACP 0x8809 802.1X 0x888E Cluster 0x88A7 Reserved 0xFFFD/0xFFFE/0xFFFF Description Use qinq ethernet-type customer-tag to configure the TPID value in CVLAN tags. Use undo qinq ethernet-type customer-tag to restore the TPID value in CVLAN tags to the system default.

  • Page 205: Qinq Transparent-vlan

    Description Use qinq ethernet-type service-tag to configure the TPID value in SVLAN tags. Use undo qinq ethernet-type service-tag to restore the TPID value in SVLAN tags to the default setting. By default, the TPID value in SVLAN tags is 0x8100. On a port with basic QinQ not enabled, the switch judges whether a frame is VLAN tagged based on the SVLAN TPID value on the port.

  • Page 206

    <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-type trunk [Sysname-GigabitEthernet1/0/1] port trunk permit vlan 2 3 50 to 100 [Sysname-GigabitEthernet1/0/1] qinq enable [Sysname-GigabitEthernet1/0/1] qinq transparent-vlan 2 3 50 to 100...

  • Page 207: Vlan Mapping Configuration Commands

    VLAN mapping configuration commands VLAN mapping is achieved through QoS policies. For QoS policy configuration commands, see ACL and QoS Command Reference. nest Syntax nest top-most vlan-id vlan-id undo nest top-most View Traffic behavior view Default level 2: System level Parameters vlan-id vlan-id: Specifies a VLAN tag ID, ranging from 1 to 4094.

  • Page 208: Remark Service-vlan-id

    Default level 2: System level Parameters vlan-id: Specifies a customer VLAN (CVLAN) ID, ranging from 1 to 4094. Description Use remark customer-vlan-id to add a CVLAN marking action to a traffic behavior. Use undo remark customer-vlan-id to remove the action from the traffic behavior. The remark customer-vlan-id action cannot be applied to a VLAN or applied globally.

  • Page 209: 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: Displays the LLDP information to be sent out of the interface specified by its type and number.

  • Page 210

    (MED inventory information of master board) HardwareRev : REV.A FirmwareRev : 109 SoftwareRev : 5.20 Alpha 2101 SerialNum : NONE Manufacturer name : HP Model name : HP Comware Asset tracking identifier : Unknown LLDP local-information of port 1[GigabitEthernet1/0/1]: Port ID subtype : Interface name Port ID : GigabitEthernet1/0/1...

  • Page 211

    Table 47 Command output Field Description Global LLDP local-information Global LLDP information to be sent. Chassis ID Bridge MAC address of the device. Supported capabilities: • System capabilities supported Bridge—Switching is supported. • Router—Routing is supported. Enabled capabilities: • System capabilities enabled Bridge—Switching is enabled.

  • Page 212: Display Lldp Neighbor-information

    Field Description Auto-negotiation enabled Indicates whether or not auto-negotiation is enabled on the port. OperMau Speed and duplex state of the port. PoE supported Indicates whether or not PoE is supported on the port. Link aggregation supported Indicates whether or not link aggregation is supported. Link aggregation enabled Indicates whether or not link aggregation is enabled.

  • Page 213

    Parameters brief: Displays the summary of LLDP information sent from the neighboring devices. If this keyword is not specified, this command displays detailed LLDP information sent from the neighboring devices. interface interface-type interface-number: Displays the LLDP information sent from the neighboring devices received through a port specified by its type and number.

  • Page 214

    Port and protocol VLAN ID(PPVID) : 1 Port and protocol VLAN supported : Yes Port and protocol VLAN enabled : No VLAN name of VLAN 1: VLAN 0001 Auto-negotiation supported : Yes Auto-negotiation enabled : Yes OperMau : speed(1000)/duplex(Full) Power port class : PD PSE power supported : No...

  • Page 215

    Field Description ID type of the port that connects the LLDP neighboring device to the local device: • Interface alias • Port component • MAC address Port ID type • Network address (the IP address type, such as ipv4) • Interface name •...

  • Page 216

    Field Description Indicates whether or not auto-negotiation is enabled on the port that Auto-negotiation enabled connects the LLDP neighboring device to the local device. Speed and duplex state on the port that connects the LLDP OperMau neighboring device to the local device. PoE device type of the LLDP neighboring device: •...

  • Page 217

    Field Description Power source type of an LLDP neighboring device which is a PSE device: • Unknown—Unknown power supply PoE PSE power source • Primary—Primary power supply • Backup—Backup power supply PD power type of an LLDP neighboring device which is a PD device: •...

  • Page 218: Display Lldp Statistics

    Field Description This field appears only when the device connects to a device of an unknown vendor. TLV information Information contained in unknown organizationally specific TLV. Local Interface Local port that receives the LLDP information. display lldp statistics Syntax display lldp statistics [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view...

  • Page 219: Display Lldp Status

    The number of LLDP error frames The number of LLDP TLVs discarded The number of LLDP TLVs unrecognized The number of LLDP neighbor information aged out : 0 The number of CDP frames transmitted The number of CDP frames received The number of CDP frames discarded The number of CDP error frames Table 49 Command output...

  • Page 220

    <Sysname> display lldp status Global status of LLDP: Enable The current number of LLDP neighbors: 0 The current number of CDP neighbors: 0 LLDP neighbor information last changed time: 0 days,0 hours,0 minutes,0 seconds Transmit interval : 30s Hold multiplier Reinit delay : 2s Transmit delay...

  • Page 221: Display Lldp Tlv-config

    Field Description Number of neighbors Number of LLDP neighbors connecting to the port. Number of MED neighbors Number of MED neighbors connecting to the port. Number of CDP neighbors Number of CDP neighbors connecting to the port. Number of sent optional TLV Number of optional TLVs contained in an LLDPDU sent through the port.

  • Page 222

    Port VLAN ID TLV Port And Protocol VLAN ID TLV VLAN Name TLV IEEE 802.3 extend TLV: MAC-Physic TLV Power via MDI TLV Link Aggregation TLV Maximum Frame Size TLV LLDP-MED extend TLV: Capabilities TLV Network Policy TLV Location Identification TLV Extended Power via MDI TLV Inventory TLV Table 51 Command output...

  • Page 223: 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...

  • Page 224: Lldp Compliance Admin-status Cdp

    View Layer 2 Ethernet interface view Default level 2: System level Parameters interval: Sets the LLDP polling interval, ranging from 1 to 30 seconds. Description Use lldp check-change-interval to enable LLDP polling and set the polling interval. Use undo lldp check-change-interval to restore the default. By default, LLDP polling is disabled.

  • Page 225: Lldp Compliance Cdp

    <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] lldp compliance admin-status cdp txrx lldp compliance cdp 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. Use undo lldp compliance cdp to restore the default.

  • Page 226: Lldp Encapsulation Snap

    Description Use lldp enable to enable LLDP. Use undo lldp enable to disable LLDP. By default, LLDP is enabled on a port, and enabled globally. LLDP takes effect on a port only when LLDP is enabled both globally and on the port. Examples # Disable LLDP on GigabitEthernet 1/0/1.

  • Page 227: Lldp Hold-multiplier

    View System view Default level 2: System level Parameters count: Sets the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. The argument ranges from 1 to 10. Description Use lldp fast-count to set the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. Use undo lldp fast-count to restore the default.

  • Page 228: Lldp Management-address-format String

    <Sysname> system-view [Sysname] lldp hold-multiplier 6 lldp management-address-format string Syntax lldp management-address-format string undo lldp management-address-format View Layer 2 Ethernet interface 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.

  • Page 229: Lldp Notification Remote-change Enable

    Use undo lldp management-address-tlv to disable management address advertising in LLDPDUs. By default, the management address is advertised through LLDPDUs. The management address is the main IP address of the lowest-ID VLAN carried on the port. If none of the carried VLANs is assigned an IP address, no management address will be advertised.

  • Page 230: Lldp Timer Reinit-delay

    View System view Default level 2: System level Parameters interval: Sets the LLDP trap transmit interval, ranging from 5 to 3600 seconds. Description Use lldp timer notification-interval to set the LLDP trap transmit interval. Use undo lldp timer notification-interval to restore the default. By default, the LLDP trap transmit interval is 5 seconds.

  • Page 231: Lldp Timer Tx-interval

    View System view Default level 2: System level Parameters delay: Sets the LLDPDU transmit delay, ranging from 1 to 8192 seconds. Description Use lldp timer tx-delay to set the LLDPDU transmit delay. Use undo lldp timer tx-delay to restore the default. By default, the LLDPDU transmit delay is 2 seconds.

  • Page 232: Lldp Tlv-enable

    Related commands: lldp timer tx-delay. Examples # Set the LLDPDU transmit interval to 20 seconds. <Sysname> system-view [Sysname] lldp timer tx-interval 20 lldp tlv-enable Syntax lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1- 1 0>...

  • Page 233

    mac-physic: Advertises MAC/PHY configuration/status TLVs. max-frame-size: Advertises maximum frame size TLVs. power: Advertises power via MDI TLVs and power stateful control TLVs. med-tlv: Advertises LLDP-MED TLVs. capability: Advertises LLDP-MED capabilities TLVs. inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID.

  • Page 234: Lldp Voice-vlan

    lldp voice-vlan Syntax lldp voice-vlan vlan-id undo lldp voice-vlan View Layer 2 Ethernet interface view Default level 2: System level Parameters vlan-id: Specifies a voice VLAN by its ID, which ranges from 1 to 4094. Description Use lldp voice-vlan vlan-id to configure a port to advertise a specific voice VLAN ID to the connected IP phone through LLDP.

  • Page 235: Service Loopback Group Configuration Commands

    Service loopback group configuration commands display service-loopback group Syntax display service-loopback group [ number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters number: ID of the service loopback group to be displayed. If no service loopback group is specified, information of all service loopback groups is displayed.

  • Page 236: Port Service-loopback Group

    Field Description Service type of the service loopback group: Service Type • Tunnel—Supports unicast tunnel traffic Member Member ports of the service loopback group Status Port state, which can be selected or unselected port service-loopback group Syntax port service-loopback group number undo port service-loopback group View Layer 2 Ethernet interface view...

  • Page 237

    Parameters number: Service loopback group ID, ranging from 1 to 1024. type: Specifies the service type of a service loopback group. tunnel: Specifies the service type of a service loopback group as Tunnel (unicast tunnel service). Description Use service-loopback group to create a service loopback group and specify its service type. Use undo service-loopback group to remove a service loopback group.

  • Page 238: Layer 2 Forwarding Configuration Commands

    Layer 2 forwarding configuration commands cut-through enable Syntax cut-through enable undo cut-through enable View System view Default level 2: System level Parameters None Description Use the cut-through enable command to enable cut-through forwarding. Use the undo cut-through enable command to disable cut-through forwarding. By default, cut-through forwarding is disabled.

  • Page 239: Support And Other Resources

    Support and other resources Contacting HP For worldwide technical support information, see the HP support website: http://www.hp.com/support Before contacting HP, collect the following information: Product model names and numbers • • Technical support registration number (if applicable) Product serial numbers •...

  • Page 240: Conventions

    Conventions This section describes the conventions used in this documentation set. Command conventions Convention Description Boldface Bold text represents commands and keywords that you enter literally as shown. Italic Italic text represents arguments that you replace with actual values. Square brackets enclose syntax choices (keywords or arguments) that are optional. Braces enclose a set of required syntax choices separated by vertical bars, from which { x | y | ...

  • Page 241

    Network topology icons Represents a generic network device, such as a router, switch, or firewall. Represents a routing-capable device, such as a router or Layer 3 switch. Represents a generic switch, such as a Layer 2 or Layer 3 switch, or a router that supports Layer 2 forwarding and other Layer 2 features.

  • Page 242: Index

    Index A B C D E F G I J L M N P Q R S U V W display link-aggregation load-sharing mode,67 display link-aggregation member-port,69 active region-configuration,87 display link-aggregation summary,71 display link-aggregation verbose,72 display lldp local-information,201 bpdu-tunnel dot1q,128 display lldp neighbor-information,204 bpdu-tunnel...

  • Page 243

    enable snmp trap updown,74 lldp encapsulation snap,218 lldp fast-count,218 lldp hold-multiplier,219 flow-control,18 lldp management-address-format string,220 flow-control receive enable,18 lldp management-address-tlv,220 flow-interval,19 lldp notification remote-change enable,221 lldp timer notification-interval,221 lldp timer reinit-delay,222 garp timer hold,188 lldp timer tx-delay,222 garp timer join,189 lldp timer tx-interval,223 garp timer...

  • Page 244

    port hybrid ip-subnet-vlan,164 storm-constrain enable log,34 port hybrid protocol-vlan,158 storm-constrain enable trap,35 port hybrid pvid,144 storm-constrain interval,36 port hybrid vlan,145 bpdu-protection,106 port isolate-user-vlan host,171 bridge-diameter,106 port isolate-user-vlan promiscuous,169 compliance,107 port link-aggregation group,80 config-digest-snooping,108 port link-type,147 cost,108 port pvid disable,154 edged-port,109 port service-loopback group,228 enable,1 10...

  • Page 245

    voice vlan qos,179 voice vlan qos trust,180 Websites,231 voice vlan security enable,180...

Comments to this Manuals

Symbols: 0
Latest comments: