H3C S5120-EI Series Command Reference Manual

H3C S5120-EI Series Command Reference Manual

Lan switching
Hide thumbs Also See for S5120-EI Series:
Table of Contents

Advertisement

Quick Links

H3C S5120-EI Series Ethernet Switches
Layer 2 - LAN Switching Command Reference
Hangzhou H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release 2208
Document version: 6W100-20101224

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5120-EI Series and is the answer not in the manual?

Questions and answers

Summary of Contents for H3C S5120-EI Series

  • Page 1 H3C S5120-EI Series Ethernet Switches Layer 2 - LAN Switching Command Reference Hangzhou H3C Technologies Co., Ltd. http://www.h3c.com Software version: Release 2208 Document version: 6W100-20101224...
  • Page 2 Copyright © 2010, Hangzhou H3C Technologies Co., Ltd. and its licensors All rights reserved No part of this manual may be reproduced or transmitted in any form or by any means without prior written consent of Hangzhou H3C Technologies Co., Ltd.
  • Page 3 Preface The H3C S5120-EI documentation set includes 10 command references, which describe the commands and command syntax options for the S5120-EI Series Ethernet Switches, Release2208. The Layer 2 – LAN Switching Command Reference describes LAN switching configuration commands. It covers commands for implementing flow control and load balancing, isolating users in the same VLAN, eliminating Layer 2 loops, dividing VLANs, and modifying VLAN tags of packets.
  • Page 4 Command reference Added and modified commands Added commands: reset counters interface null Loopback and null interface Modified commands: reset counters interface is changed into configuration commands reset counters interface loopback MAC address table None configuration commands MAC Information None configuration commands Added commands: •...
  • Page 5 An alert that calls attention to essential information. IMPORTANT An alert that contains additional or supplementary information. NOTE An alert that provides helpful information. About the H3C S5120-EI documentation set The H3C S5120-EI documentation set includes: Category Documents Purposes Product Marketing brochures Describe product specifications and benefits.
  • Page 6 Obtaining documentation You can access the most up-to-date H3C product documentation on the World Wide Web at http://www.h3c.com. Click the links on the top navigation bar to obtain different categories of product documentation: [Technical Support &...
  • Page 7 Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
  • Page 8: Table Of Contents

    Contents Ethernet interface configuration commands ··············································································································· 1 General Ethernet interface configuration commands ····································································································1 broadcast-suppression ·············································································································································1 description·································································································································································2 display counters························································································································································3 display counters rate ················································································································································4 display interface ·······················································································································································5 display interface brief ··········································································································································· 10 display loopback-detection··································································································································· 14 display packet-drop interface······························································································································· 15 display packet-drop summary ······························································································································ 16 display port combo ···············································································································································...
  • Page 9 Loopback and null interface configuration commands····························································································46 Loopback and null interface configuration commands ······························································································ 46 description······························································································································································ 46 display interface loopback ··································································································································· 47 display interface null ············································································································································· 50 interface loopback ················································································································································ 51 interface null··························································································································································· 51 reset counters interface loopback ························································································································ 52 reset counters interface null ·································································································································· 52 shutdown ································································································································································...
  • Page 10 display port-isolate group····································································································································· 89 port-isolate enable ················································································································································· 90 MSTP configuration commands·································································································································92 MSTP configuration commands ···································································································································· 92 active region-configuration··································································································································· 92 bpdu-drop any ······················································································································································· 92 check region-configuration ··································································································································· 93 display stp ······························································································································································ 94 display stp abnormal-port····································································································································· 99 display stp bpdu-statistics ···································································································································100 display stp down-port··········································································································································103 display stp history················································································································································104 display stp region-configuration ························································································································105 display stp root ····················································································································································106...
  • Page 11 VLAN configuration commands ····························································································································· 136 VLAN configuration commands··································································································································136 description····························································································································································136 display interface vlan-interface ··························································································································137 display vlan··························································································································································139 interface vlan-interface········································································································································140 ip address ····························································································································································141 name ·····································································································································································142 reset counters interface vlan-interface ···············································································································142 shutdown ······························································································································································143 vlan ·······································································································································································144 Port-based VLAN configuration commands···············································································································145 display port ··························································································································································145 port········································································································································································146 port access vlan···················································································································································147 port hybrid pvid···················································································································································147 port hybrid vlan ···················································································································································149 port link-type ························································································································································150...
  • Page 12 voice vlan qos······················································································································································182 voice vlan qos trust··············································································································································183 voice vlan security enable ··································································································································184 GVRP configuration commands ····························································································································· 185 GVRP configuration commands··································································································································185 display garp statistics··········································································································································185 display garp timer ···············································································································································186 display gvrp local-vlan········································································································································187 display gvrp state ················································································································································187 display gvrp statistics ··········································································································································189 display gvrp status···············································································································································190 display gvrp vlan-operation ·······························································································································190 garp timer hold····················································································································································191 garp timer join ·····················································································································································192...
  • Page 13: Ethernet Interface Configuration Commands

    Ethernet interface configuration commands General Ethernet interface configuration commands broadcast-suppression Syntax broadcast-suppression { ratio | pps max-pps | kbps max-kbps } undo broadcast-suppression View Ethernet interface view, port group view Default level 2: System level Parameters ratio: Sets the broadcast suppression threshold as a percentage of the port transmission capability, in the range 1 to 100.
  • Page 14: Description

    NOTE: If you set different broadcast suppression thresholds in Ethernet interface view or port-group view • multiple times, the one configured last takes effect. For a particular type of traffic, configure either storm suppression or storm control, but not both. If both •...
  • Page 15: Display Counters

    The default description of an interface is the interface name plus Interface. For example, GigabitEthernet1/0/1 Interface. Related commands: display interface. Examples # Change the description of interface GigabitEthernet 1/0/1 to lanswitch-interface. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] description lanswitch-interface display counters Syntax display counters { inbound | outbound } interface [ interface-type ] [ | { begin | exclude | include }...
  • Page 16: Display Counters Rate

    GE1/0/4 Overflow: more than 14 decimal digits(7 digits for column "Err"). --: not supported. Table 1 Output description Field Description Interface Abbreviated interface name. Total number of packets received or sent through the interface. You can specify Total (pkts) the direction of the packets by using the inbound or outbound keyword. Total number of broadcast packets received/sent through the interface.
  • Page 17: Display Interface

    Description Use the display counters rate command to display traffic rate statistics over the last sampling interval. The statistics cover only interfaces in up state. If an interface type is specified, the command displays traffic rate statistics for all up interfaces of the specified type. If no interface type is specified, the command displays traffic rate statistics for all up interfaces that have traffic counters.
  • Page 18 Default level 1: Monitor level Parameters interface-type: Specifies an interface type. interface-number: Specifies an interface number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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 19 Untagged VLAN ID : 1 Port priority: 0 Peak value of input: 0 bytes/sec, at 2000-04-26 17:18:22 Peak value of output: 0 bytes/sec, at 2000-04-26 17:18:22 Last 300 seconds input: 0 packets/sec 0 bytes/sec -% Last 300 seconds output: 0 packets/sec 0 bytes/sec -% Input (total): 0 packets, 0 bytes 0 unicasts, 0 broadcasts, 0 multicasts, 0 pauses...
  • Page 20 Field Description Tagged VLAN ID VLANs for which the port sends packets without removing VLAN tags. Untagged VLAN ID VLANs for which the port sends packets after removing VLAN tags. Peak value of input Peak value of inbound traffic, in Bps. Peak value of output Peak value of outbound traffic, in Bps.
  • Page 21 Field Description • Length error frames—Frames whose 802.3 length fields did not accord with the actual frame length (46 bytes to 1500 bytes). Number of inbound packets dropped because the receive buffer of the - ignored port ran low. - parity errors Total number of frames with parity errors.
  • Page 22: Display Interface Brief

    Field Description The interface is physically down because the aggregate interface DOWN ( Link-Aggregation corresponding to the aggregation group to which it belongs was shut down interface down ) with the shutdown command. DOWN ( OAM connection The interface is physically down because an OAM connection fails to be failure ) established on it or the current OAM connection is disconnected.
  • Page 23 If both the interface type and interface number are specified, this command displays information • about the specified interface. Examples # Display brief information about all interfaces. <Sysname> display interface 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 24 The brief information of interface(s) under bridge mode: Link: ADM - administratively down Speed or Duplex: (a)/A - auto; H - half; F - full Type: A - access; T - trunk; H - hybrid Interface Link Speed Duplex Type PVID Description GE1/0/3 GE1/0/3 100M(a) F(a)
  • Page 25 Field Description on-demand link or not present at all, its protocol attribute includes the spoofing flag (an s in parentheses). This attribute is typical of interface Null 0 and the loopback interfaces. Interface Interface name. Physical link state of the interface: •...
  • Page 26: Display Loopback-Detection

    Field Description The port was brought down with the shutdown command. To restore the Administratively physical state of the interface, use the undo shutdown command. Link-Aggregation interface The aggregate interface corresponding to the aggregation group to which the down current interface belongs was shut down with the shutdown command. OAM connection fails (possibly because the connection fails to be established OAM connection failure or the current connection is disconnected).
  • Page 27: Display Packet-Drop Interface

    display packet-drop interface Syntax display packet-drop interface [ interface-type [ interface-number ] ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface-type: Specifies an interface type as GE port or 10-GE port. interface-number: Specifies an interface number.
  • Page 28: Display Packet-Drop Summary

    Field Description non-forwarding state. display packet-drop summary Syntax display packet-drop 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 the Fundamentals Configuration Guide.
  • Page 29: Display Port-Group Manual

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

    |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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 31 Parameters broadcast: Displays broadcast storm control settings and statistics. multicast: Displays multicast storm control settings and statistics. unicast: Displays unknown unicast storm control settings and statistics. interface interface-type interface-number: Specifies an interface by its type and number with the interface-type interface-number argument. |: Filters command output by specifying a regular expression.
  • Page 32: Duplex

    Field Description • On—The port sends threshold event traps. • Off—The port does not send threshold event traps. Status of the storm control threshold event log switch: • On—The port sends threshold event log messages. • Off—The port does not send threshold event log messages. Number of times the forwarding state of the interface changes.
  • Page 33: Flow-Control Receive Enable

    View Ethernet interface view Default level 2: System level Parameters None Description Use the flow-control command to enable TxRx mode generic flow control on an Ethernet interface. Use the undo flow-control command to disable generic flow control on the Ethernet interface. TxRx mode flow control enables an Ethernet interface to receive common pause frames from its peer, and send common pause frames to notify its peer of congestions.
  • Page 34: Flow-Interval

    By default, Rx flow control is disabled on Ethernet interfaces. With the flow-control receive enable command configured, an interface can receive, but not send flow control frames. When the interface receives a flow control frame from its peer, it suspends sending packets to the peer.
  • Page 35: Interface

    View Port group view Default level 2: System level Parameters interface-list: Specifies a Ethernet interface list, in the format of interface-type interface-number [ to interface-type interface-number ] &<1- 1 0>, where &<1- 1 0> indicates that you can specify up to 10 ports or port ranges.
  • Page 36: Link-Delay

    undo jumboframe enable View Ethernet interface view, port group view Default level 2: System level Parameters .None Description Use the jumboframe enable command to allow frames no longer than 9216 bytes to pass through an Ethernet interface. Use the undo jumboframe enable command to prevent frames longer than 1536 bytes from passing through an Ethernet interface.
  • Page 37: Link-Delay Mode Up

    Link down suppression setting does not take effect on administratively down events. When you shut down the port with the shutdown command, the port reports the event without delay. H3C does not recommend that you use this command on ports that are disabled with RRPP, MSTP, or •...
  • Page 38: Loopback

    • port with the undo shutdown command, the port reports the event without delay. • H3C does not recommend that you use this command on ports that are disabled with RRPP, MSTP, or Smart Link. Examples # Enable link up suppression on port GigabitEthernet 1/0/1, setting the suppression interval to 10 seconds.
  • Page 39: Loopback-Detection Action

    [Sysname-GigabitEthernet1/0/1] loopback internal Loop internal succeeded! loopback-detection action Syntax loopback-detection action { no-learning | semi-block | shutdown } undo loopback-detection action View Ethernet interface view, port group view Default level 2: System level Parameters no-learning: Disables MAC address learning on the interface. semi-block: Blocks all packets but STP BPDUs.
  • Page 40: Loopback-Detection Control Enable

    loopback-detection control enable Syntax loopback-detection control enable undo loopback-detection control enable View Ethernet interface view, port group view Default level 2: System level Parameters None Description Use the loopback-detection control enable command to enable loopback detection control on trunk or hybrid ports.
  • Page 41: Loopback-Detection Interval-Time

    Description Use the loopback-detection enable command to enable loopback detection globally in system view or on ports in Ethernet interface or port group view. To use loopback detection on an Ethernet port, you must enable the function both globally and on the port. Use the undo loopback-detection enable command to disable loopback detection globally or on ports.
  • Page 42: Loopback-Detection Multi-Port-Mode Enable

    View System view Default level 2: System level Parameters time: Sets the loopback detection interval, ranging from 5 to 300 seconds. Description Use the loopback-detection interval-time command to set the loopback detection interval. Use the undo loopback-detection interval-time command to restore the default loopback detection interval.
  • Page 43: Loopback-Detection Per-Vlan Enable

    Related commands: loopback-detection enable, loopback-detection interval-time, loopback-detection control enable, loopback-detection per-vlan enable, and loopback-detection action. NOTE: To enable multi-port loopback detection, you must configure the loopback-detection multi-port-mode enable and loopback-detection enable commands in system view, and the loopback-detection enable command in the view of the related interfaces. Examples # Enable multi-port loopback detection to monitor loops between GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
  • Page 44: Mdi

    [Sysname-GigabitEthernet1/0/1] loopback-detection per-vlan enable Syntax mdi { across | auto | normal } undo mdi View Ethernet interface view Default level 2: System level Parameters across: Sets the MDI mode to across. In this mode, pins 1 and 2 of the port are receive pins, and pins 3 and 6 are transmit pins.
  • Page 45: Port Auto-Power-Down

    Parameters ratio: Sets the multicast suppression threshold as a percentage of the port transmission capability, ranging from 1 to 100. The smaller the percentage, the less multicast traffic is allowed to pass through. pps max-pps: Sets the multicast suppression threshold in pps to limit the number of multicast packets passing through the Ethernet port per second.
  • Page 46: Port Bridge Enable

    undo port auto-power-down View Ethernet interface view, port group view Default level 2: System level Parameters None Description Use the port auto-power-down command to enable auto power-down on Ethernet interfaces for energy efficiency. Use the undo port auto-power-down to restore the default. By default, auto power-down is disabled on Ethernet interfaces.
  • Page 47: Port-Group Manual

    Use the undo port bridge enable command to disable bridging on the Ethernet interface. By default, bridging is not enabled on Ethernet interfaces. If the outgoing interface in the MAC address entry for a packet is the same as the incoming interface where the packet arrived, the packet is usually dropped.
  • Page 48: Reset Packet-Drop Interface

    Parameters interface-type: Specifies an interface type as GE port or 10-GE port.. interface-number: Specifies an interface number. Description Use the reset counters interface command to clear the statistics of an interface. Before collecting traffic statistics for a specific period of time on an interface, clear the old statistics first. If no interface type is specified, this command clears statistics for all interfaces.
  • Page 49: Shutdown

    <Sysname> reset packet-drop interface shutdown Syntax shutdown undo shutdown View Ethernet interface view, management Ethernet interface view, port group view Default level 2: System level Parameters None Description Use the shutdown command to shut down an Ethernet interface. Use the undo shutdown command to bring up an Ethernet interface. By default, an Ethernet interface is in the up state.
  • Page 50: Speed

    speed Syntax speed { 10 | 100 | 1000 | 10000 | auto } undo speed View Ethernet interface view Default level 2: System level Parameters 10: Sets the interface speed to 10 Mbps. The optical port of an SFP port does not support the keywords. 100: Sets the interface speed to 100 Mbps.
  • Page 51: Storm-Constrain

    View Ethernet interface view Default level 2: System level Parameters 10: Sets 10 Mbps as an option for speed auto negotiation. 100: Sets 100 Mbps as an option for speed auto negotiation. 1000: Sets 1000 Mbps as an option for speed auto negotiation. Description Use the speed auto command to set options for speed auto negotiation.
  • Page 52 (unicast-suppression, multicast-suppression, and broadcast-suppression) on a port. An upper threshold must be greater than or equal to the corresponding lower threshold. H3C does not • recommend you to configure the same value for the two thresholds.
  • Page 53: Storm-Constrain Control

    storm-constrain control Syntax storm-constrain control { block | shutdown } undo storm-constrain control View Ethernet interface view Default level 2: System level Parameters block: Blocks the traffic detected crossing the upper storm control threshold. This action does not affect the forwarding of other types of traffic. shutdown: Shuts down the interface when a type of traffic exceeds the upper storm control threshold.
  • Page 54: Storm-Constrain Enable Trap

    Description Use the storm-constrain enable log command to enable an Ethernet interface to log storm control threshold events. Logged events include traffic exceeding the upper threshold and traffic falling below the lower threshold from the upper threshold. Use the undo storm-constrain enable log command to disable log sending. By default, a storm control-enabled port sends out log messages when monitored traffic exceeds the upper threshold or falls below the lower threshold from the upper threshold.
  • Page 55: Unicast-Suppression

    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. Description Use the storm-constrain interval command to set the traffic polling interval of the storm control module. Use the undo storm-constrain interval command to restore the default.
  • Page 56: Virtual-Cable-Test

    For a Gigabit port, the value range is 1 to 1000000. • • For a 10-Gigabit port, the value range is 1 to 10000000. Description Use the unicast-suppression command to set the unknown unicast suppression threshold on an Ethernet interface view or a group of Ethernet interfaces in port group view. Use the undo unicast-suppression command to restore the default.
  • Page 57 Description Use the virtual-cable-test command 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 58: Loopback And Null Interface Configuration Commands

    Loopback and null interface configuration commands Loopback and null interface configuration commands description Syntax description text undo description View Loopback interface view, Null 0 interface view Default level 2: System level Parameters text: Description of the interface, a string of 1 to 80 characters, which supports spaces, characters and symbols found in standard English (such as numbers and case-sensitive letters), special English, and other characters or symbols that conform to the Unicode standard.
  • Page 59: Display Interface Loopback

    Examples # Configure the description of loopback interface Loopback 1 as loopback1. <Sysname> system-view [Sysname] interface loopback 1 [Sysname- loopback1] description loopback1 display interface loopback Syntax display interface loopback [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ] display interface loopback interface-number [ brief ] [ | { begin | exclude | include } regular-expression ] View Any view...
  • Page 60 Line protocol current state: UP (spoofing) Description: LoopBack0 Interface The Maximum Transmit Unit is 1536 Internet protocol processing : disabled Physical is Loopback Last clearing of counters: Never Last 300 seconds input: 0 bytes/sec, 0 bits/sec, 0 packets/sec Last 300 seconds output: 0 bytes/sec, 0 bits/sec, 0 packets/sec 0 packets input, 0 bytes, 0 drops 0 packets output, 0 bytes, 0 drops...
  • Page 61 Field Description second. • bits/sec indicates the average number of bits received per second. Average output rate over the last 300 seconds, where: • packets/sec indicates the average number of packets sent per second. Last 300 seconds output: 0 bytes/sec, 0 bits/sec, 0 packets/sec •...
  • Page 62: Display Interface Null

    display interface null Syntax display interface null [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ] display interface null 0 [ brief ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 63: Interface Loopback

    NOTE: Because the S5120-EI series Ethernet switches do not count the average input/output rate or input/output packets of interface Null 0, these fields are displayed as “0” in the display interface null command output.
  • Page 64: Reset Counters Interface Loopback

    Description Use the interface null command to enter null interface view. A device has only one null interface, interface Null 0. Interface Null 0 is always up. You cannot remove or shut down it. Related commands: display interface null. Examples # Enter Null 0 interface view.
  • Page 65: Shutdown

    Default level 2: System level Parameters 0: Number of the null interface, which is fixed at 0. Description Use the reset counters interface null command to clear statistics on the null interface. Before collecting traffic statistics within a specific period of time on the null interface, clear the existing statistics.
  • Page 66: Mac Address Table Configuration Commands

    MAC address table configuration commands NOTE: MAC address table configurations apply only to Layer 2 Ethernet ports and Layer 2 aggregate • interfaces. This document covers only the configuration of static, dynamic, and blackhole unicast MAC address • table entries. For more information about the configuration of static multicast MAC address table entries, IP Multicast Configuration Guide see the MAC address table configuration commands...
  • Page 67 begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display mac-address command to display information about the MAC address table.
  • Page 68: Display Mac-Address Aging-Time

    Field Description Aging time: • AGING TIME AGING—The entry is aging. • NOAGED—The entry does not age. 1 mac address(es) found One MAC address entry is found. display mac-address aging-time Syntax display mac-address aging-time [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 69: Display Mac-Address Statistics

    Default level 1: Monitor level Parameters interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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 70: Mac-Address (Interface View)

    Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the 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 71: Mac-Address (System View)

    View Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters dynamic: Specifies dynamic MAC address entries. Aging time is set for these entries. static: Specifies static MAC address entries. They do not age, but you can add or remove them. mac-address: Specifies a MAC address in the format of H-H-H, where 0s at the beginning of each H (16-bit hexadecimal digit) can be omitted.
  • Page 72: Mac-Address Mac-Learning Disable

    View System view Default level 2: System level Parameters blackhole: Specifies destination blackhole MAC address entries. These entries do not age, but you can add or remove them. The packets whose destination MAC addresses match destination blackhole MAC address entries are dropped. mac-address: Specifies a MAC address in the format of H-H-H, where 0s at the beginning of each H (16-bit hexadecimal digit) can be omitted.
  • Page 73: Mac-Address Max-Mac-Count (Interface View)

    View System view, Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use the mac-address mac-learning disable command to disable MAC address learning. Depending on the view that you entered, you can disable it globally, on a Layer 2 interface or a group of Ethernet ports. Use the undo mac-address mac-learning disable command to enable MAC address learning.
  • Page 74: Mac-Address Timer

    View Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters count: Sets the maximum number of MAC addresses that can be learned on a port. The value ranges from 0 to 4096. When the argument takes 0, the VLAN is not allowed to learn MAC addresses. Description Use the mac-address max-mac-count count command to configure the maximum number of MAC addresses that can be learned on a port.
  • Page 75 Set the aging timer appropriately: • A long aging interval may cause the MAC address table to retain outdated entries and fail to accommodate the latest network changes. A short aging interval may result in removal of valid entries and unnecessary broadcasts that may •...
  • Page 76: Mac Information Configuration Commands

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

    mac-address information enable (system view) Syntax mac-address information enable undo mac-address information enable View System view Default level 2: System level Parameters None Description Use the mac-address information enable command to enable MAC Information globally. Use the undo mac-address information enable command to disable MAC Information globally. By default, MAC Information is disabled globally.
  • Page 78: Mac-Address Information Mode

    <Sysname> system-view [Sysname] mac-address information interval 200 mac-address information mode Syntax mac-address information mode { syslog | trap } undo mac-address information mode { syslog | trap } View System view Default level 2: System level Parameters syslog: Specifies that the device sends Syslog messages to inform the remote network management device of MAC address changes.
  • Page 79 Description Use the mac-address information queue-length command to set the MAC Information queue length. Use the undo mac-address information queue-length command to restore the default. By default, the MAC Information queue length is 50. Setting the MAC Information queue length to 0 indicates that the device sends a Syslog or trap message to the network management device as soon as a new MAC address is learned or an existing MAC address is deleted.
  • Page 80: Ethernet Link Aggregation Configuration Commands

    Ethernet link aggregation configuration commands Ethernet link aggregation configuration commands description Syntax description text undo description View Layer 2 aggregate interface view Default level 2: System level Parameters text: Specifies the 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 81 View Any view Default level 1: Monitor level Parameters interface-number: Specifies an existing aggregate interface number. The value range for the interface-number argument is the set of all existing aggregate interface numbers. brief: Displays brief interface information. If you do not specify this keyword, this command displays detailed interface information.
  • Page 82 0 CRC, 0 frame, - overruns, 0 aborts - ignored, - parity errors Output (total): 829 packets, 58795 bytes 7 unicasts, 790 broadcasts, 32 multicasts, 0 pauses Output (normal): 829 packets, - bytes 7 unicasts, 790 broadcasts, 32 multicasts, 0 pauses Output: 0 output errors, - underruns, - buffer failures 0 aborts, 0 deferred, 0 collisions, 0 late collisions 0 lost carrier, - no carrier...
  • Page 83: Display Lacp System-Id

    Field Description Stby - standby • ADM—The interface has been administratively shut down. To recover its physical layer state, perform the undo shutdown command. • Stby—The interface is operating as a backup interface. If the speed of an interface is automatically negotiated, its speed attribute includes the auto negotiation flag, letter a in parentheses.
  • Page 84: Display Link-Aggregation Load-Sharing Mode

    Examples # Display the local system ID. <Sysname> display lacp system-id Actor System ID: 0x8000, 0000-fc00-6504 Table 16 Output description Field Description The local system ID, which comprises the LACP system priority (0x8000 Actor System ID: 0x8000, in this sample output) and the system MAC address (0000-fc00-6504 in 0000-fc00-6504 this sample output).
  • Page 85 Examples # Display the default global link-aggregation load sharing criteria. <Sysname> display link-aggregation load-sharing mode Link-Aggregation Load-Sharing Mode: Layer 2 traffic: ingress-port, destination-mac address, source-mac address Layer 3 traffic: destination-ip address, source-ip address # Display the configured global link-aggregation load sharing criteria. <Sysname>...
  • Page 86: 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 of interface-type interface-number [ to interface-type interface-number ], where interface-type interface-number indicates port type and port number.
  • Page 87 G -- Defaulted, H -- Expired GigabitEthernet1/0/2: Aggregation Interface: Bridge-Aggregation10 Local: Port Number: 2 Port Priority: 32768 Oper-Key: 2 Flag: {ACDEF} Remote: System ID: 0x8000, 000f-e267-6c6a Port Number: 26 Port Priority: 32768 Oper-Key: 2 Flag: {ACDEF} Received LACP Packets: 5 packet(s) Illegal: 0 packet(s) Sent LACP Packets: 7 packet(s) Table 18 Output description...
  • Page 88: 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 the Fundamentals Configuration Guide.
  • Page 89: Display Link-Aggregation Verbose

    Field Description Aggregation group type: • Aggregation Mode S for static link aggregation. • D for dynamic aggregation. Load sharing type: • Loadsharing Type Shar for load sharing. • NonS for non-load sharing. Local system ID, which comprises the system LACP priority and the Actor System ID system MAC address.
  • Page 90 To display the information of a specific Layer 2 aggregation group, use the display link-aggregation verbose bridge-aggregation interface-number command. To display the information of all aggregation groups, use the display link-aggregation verbose command. The bridge-aggregation keyword becomes available only after you create Layer 2 aggregate interfaces on the device.
  • Page 91: Enable Snmp Trap Updown

    Table 20 Output description Field Description Load sharing type: • Loadsharing Type Shar for load sharing. • NonS for non-load sharing. Port Status Port state: Selected or unselected. LACP state flags: • A—LACP is enabled. • B—Indicates the LACP short timeout. •...
  • Page 92: Interface Bridge-Aggregation

    Parameters None Description Use the enable snmp trap updown command to enable link state trapping for the aggregate interface. Use the undo enable snmp trap updown command to disable link state trapping for the aggregate interface. By default, link state trapping is enabled for an aggregate interface. With the link state trapping function enabled, an aggregate interface generates linkUp trap messages when its link goes up, and linkDown trap messages when its link goes down.
  • Page 93: Lacp Port-Priority

    Examples # Create Layer 2 aggregate interface Bridge-Aggregation 1 and enter its view. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] lacp port-priority Syntax lacp port-priority port-priority undo lacp port-priority View Ethernet interface view Default level 2: System level Parameters port-priority: Sets a port LACP priority, ranging from 0 to 65535. The smaller the value, the higher the port LACP priority.
  • Page 94: Lacp System-Priority

    Description Use the lacp period short command to set the LACP timeout interval on a port to the short timeout interval (1 second). Use the undo lacp period command to restore the default. The default LACP timeout interval is the long timeout interval (30 seconds). Examples # Set the LACP timeout interval on port GigabitEthernet 1/0/1 to the short timeout interval (1 second).
  • Page 95: Link-Aggregation Load-Sharing Mode

    To prevent traffic interruption, enable link-aggregation traffic redirection on devices at both ends of the aggregate link. H3C recommends that you do not enable both MSTP and link-aggregation traffic redirection. If they are both enabled, light packet loss may occur when a card or device reboots.
  • Page 96 destination-mac: Performs load sharing in link aggregation groups based on destination MAC address. destination-port: Performs load sharing in link aggregation groups based on destination port. ingress-port: Performs load sharing in link aggregation groups based on ingress port. source-ip: Performs load sharing in link aggregation groups based on source IP address. Support for this keyword depends on your device model and current view.
  • Page 97: Link-Aggregation Load-Sharing Mode Local-First

    Examples # Configure the destination MAC address as the global link-aggregation load sharing criterion. <Sysname> system-view [Sysname] link-aggregation load-sharing mode destination-mac # Configure the destination MAC address as the load sharing criterion specific to the link aggregation group of the Bridge-Aggregation 1 interface. <Sysname>...
  • Page 98: Port Link-Aggregation Group

    Parameters None Description Use the link-aggregation mode dynamic command to configure an aggregation group to work in dynamic aggregation mode. Use the undo link-aggregation mode command to restore the default. By default, an aggregation group works in static aggregation mode. To change the aggregation mode of an aggregation group that contains member ports, remove all the member ports from the aggregation group first.
  • Page 99: Reset Counters Interface

    reset counters interface Syntax reset counters interface [ bridge-aggregation [ interface-number ] ] View User view Default level 2: System level Parameters bridge-aggregation: Clears statistics for Layer 2 aggregate interfaces. interface-number: Specifies an aggregate interface number. If the interface-number argument is not specified, this command clears statistics of all aggregate interfaces of the specified type.
  • Page 100: Shutdown

    Description Use the reset lacp statistics command to clear the LACP statistics on the specified member ports or all member ports, if no member ports are specified. Related commands: display link-aggregation member-port. Examples # Clear the LACP statistics on all link aggregation member ports. <Sysname>...
  • Page 101: Port Isolation Configuration Commands

    Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display port-isolate group command to display information about isolation group 1. The S5120-EI series switches support only one isolation group. Examples # Display information about isolation group 1.
  • Page 102: Port-Isolate Enable

    port-isolate enable Syntax port-isolate enable undo port-isolate enable View Ethernet interface view, Layer 2 aggregate interface view, port group view Default level 2: System level Parameters None Description Use the port-isolate enable command to assign a port to the isolation group. Use the undo port-isolate enable command to remove a port from the isolation group.
  • Page 103 [Sysname-Bridge-Aggregation1] quit [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port link-aggregation group 1 [Sysname-GigabitEthernet1/0/1] quit [Sysname] interface gigabitethernet 1/0/2 [Sysname-GigabitEthernet1/0/2] port link-aggregation group 1 [Sysname-GigabitEthernet1/0/2] quit [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port-isolate enable...
  • Page 104: Mstp Configuration Commands

    MSTP by using the stp enable command in the case that MSTP is not enabled. H3C recommends that you use the check region-configuration command to determine whether the MST region configurations to be activated are correct and that you run this command only if they are correct.
  • Page 105: Check Region-Configuration

    H3C recommends that you use this command to determine whether the MST region configurations to be activated are correct and that you activate them only if they are correct.
  • Page 106: Display Stp

    [Sysname-mst-region] check region-configuration Admin Configuration Format selector Region name :000fe26a58ed Revision level Configuration digest :0x41b5018aca57daa8dcfdba2984d99d06 Instance Vlans Mapped 1 to 9, 11 to 4094 Table 22 Output description Field Description Format selector of the MST region, which is 0 by default and Format selector cannot be configured.
  • Page 107 include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display stp command to display the MSTP status and statistics. Based on the MSTP status and statistics, you can analyze and maintain the network topology or check whether MSTP is working normally.
  • Page 108 GigabitEthernet1/0/3 DESI FORWARDING NONE GigabitEthernet1/0/4 DESI FORWARDING NONE Table 23 display stp brief command output description Field Description MSTID MSTI ID in the MST region. Port Port name, corresponding to each MSTI. Port role: • ALTE—The port is an alternate port. •...
  • Page 109 Port Edged :Config=disabled / Active=disabled Point-to-point :Config=auto / Active=true Transmit Limit :10 packets/hello-time Protection Type :None MST BPDU Format :Config=auto / Active=legacy Port Config- Digest-Snooping :disabled Rapid transition :false Num of Vlans Mapped :1 PortTimes :Hello 2s MaxAge 20s FwDly 15s MsgAge 2s RemHop 20 BPDU Sent :186 TCN: 0, Config: 0, RST: 0, MST: 186...
  • Page 110 Field Description CIST regional root ID and internal path cost (the path cost from the switch to the CIST RegRoot/IRPC CIST regional root). CIST root port ID. “0.0” indicates that the switch is the root and there is no root CIST RootPortId port.
  • Page 111: Display Stp Abnormal-Port

    Field Description Major parameters for the port: • Hello—Hello timer • MaxAge—Max Age timer PortTimes • FWDly—Forward delay timer • MsgAge—Message Age timer • Remain Hop—Remaining hops BPDU Sent Statistics on sent BPDUs. BPDU Received Statistics on received BPDUs. MSTI RegRoot/IRPC MSTI regional root/internal path cost.
  • Page 112: Display Stp Bpdu-Statistics

    include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters. Description Use the display stp abnormal-port command to display information about ports blocked by the following STP protection functions: Root guard function •...
  • Page 113 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, which is a case sensitive string of 1 to 256 characters. Description Use the display stp bpdu-statistics command to display the BPDU statistics on port(s). If you do not specify any MSTI or port, this command displays the BPDU statistics of all MSTIs on all ports.
  • Page 114 Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs MAX-hoped BPDUs TC detected TC sent TC received Instance 2: Type Count Last Updated --------------------------- ---------- ----------------- Timeout BPDUs MAX-hoped BPDUs TC detected TC sent TC received Table 26 Output description Field Description Port...
  • Page 115: Display Stp Down-Port

    Field Description TC Received TC BPDUs received. display stp down-port Syntax display stp down-port [ | { 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 the Fundamentals Configuration Guide.
  • Page 116: Display Stp History

    display stp history Syntax display stp [ instance instance-id ] history [ slot slot-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 0: Visit level Parameters instance instance-id: Displays the historical port role calculation information of a particular MSTI. The instance-id argument ranges from 0 to 16, where 0 represents the CIST.
  • Page 117: Display Stp Region-Configuration

    Port GigabitEthernet1/0/2 Role change : ALTER->ROOT Time : 2009/02/08 00:22:56 Port priority : 0.00e0-fc01-6510 0 0.00e0-fc01-6510 128.2 Table 28 Output description Field Description Port Port name. A role change of the port (“Age” means that the change was caused by expiration Role change of the received configuration BPDU).
  • Page 118: Display Stp Root

    Instance Vlans Mapped 21 to 4094 1 to 10 11 to 20 Table 29 Output description Field Description Format selector MSTP-defined format selector. The value is 0 and is not configurable. Region name MST region name. Revision level of the MST region. It can be configured by using the Revision level revision-level command and defaults to 0.
  • Page 119: Display Stp

    Field Description Internal path cost. The switch automatically calculates the default path cost of a IntPathCost port, or alternatively, you can use the stp cost command to configure the path cost of a port. Root Port Root port name (displayed only if a port of the switch is the root port of MSTIs). display stp tc Syntax display stp [ instance instance-id ] tc [ slot slot-number ] [ | { begin | exclude | include }...
  • Page 120: Instance

    -------------- STP slot 1 TC or TCN count ------------- MSTID Port Receive Send GigabitEthernet1/0/1 GigabitEthernet1/0/2 Table 31 Output description 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...
  • Page 121: Region-Name

    [Sysname-mst-region] instance 1 vlan 2 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 the region-name command to configure the MST region name. Use the undo region-name command to restore the default MST region name.
  • Page 122: Revision-Level

    Description Use the reset stp command to clear the MSTP statistics. The MSTP statistics includes 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 123: 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 the stp bpdu-protection command to enable the BPDU guard function. Use the undo stp bpdu-protection command to disable the BPDU guard function. By default, the BPDU guard function is disabled.
  • Page 124: Stp Compliance

    In MSTP mode, each MST region is regarded as a device. The network diameter configuration is only effective for the CIST, not for MSTIs. The network diameter configuration is effective only on the common root bridge. Related commands: stp timer forward-delay, stp timer hello, and stp timer max-age. Examples # Set the network diameter of the switched network to 5.
  • Page 125: Stp Config-Digest-Snooping

    stp config-digest-snooping Syntax stp config-digest-snooping undo stp config-digest-snooping View System view, Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use the stp config-digest-snooping command to enable Digest Snooping. Use the undo stp config-digest-snooping command to disable Digest Snooping.
  • Page 126: Stp Edged-Port

    Default level 2: System level Parameters instance instance-id: Sets the path cost of the port(s) in a particular MSTI. The instance-id argument ranges from 0 to 16, where 0 represents the CIST. cost: Specifies the path cost of the port, with an effective range depends on the path cost calculation standard adopted.
  • Page 127: Stp Enable

    When the network topology changes, an edge port will not cause a temporary loop. You can enable the port to transition to the forwarding state rapidly by configuring it as an edge port. H3C recommends that you configure the ports directly connecting to the user terminals as edge ports.
  • Page 128: Stp Loop-Protection

    View System view, Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use the stp enable command to enable MSTP globally in system view, on a port in interface view, or on multiple ports in port group view.
  • Page 129: Stp Max-Hops

    Default level 2: System level Parameters None Description Use the stp loop-protection command to enable the loop guard function on the port(s). Use the undo stp loop-protection command to restore the system default. By default, the loop guard function is disabled. Configured in Layer 2 Ethernet interface view, the setting takes effect on the current interface only.
  • Page 130: Stp Mcheck

    Examples # Set the maximum hops of the MST region on the switch to 35. <Sysname> system-view [Sysname] stp max-hops 35 stp mcheck Syntax stp mcheck View System view, Layer 2 Ethernet interface view, Layer 2 aggregate interface view Default level 2: System level Parameters None...
  • Page 131: Stp Mode

    stp mode Syntax stp mode { stp | rstp | mstp } undo stp mode View System view Default level 2: System level Parameters stp: Configures the MSTP-enabled switch to work in STP-compatible mode. rstp: Configures an MSTP-enabled switch to work in RSTP mode. mstp: Configures an MSTP-enabled switch to work in MSTP mode.
  • Page 132: Stp Pathcost-Standard

    Configured in Layer 2 Ethernet interface view, the setting takes effect on the current interface only. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface. Configured on a member port in an aggregation group, the setting takes effect only after the port leaves the aggregation group.
  • Page 133: Stp Point-To-Point

    If the current port is a Layer 2 aggregate interface or if it works in full duplex mode, you can configure the link to which the current port connects as a point-to-point link. H3C recommends that you use the default setting to let MSTP automatically detect the link status.
  • Page 134: Stp Port Priority

    stp port priority Syntax stp [ instance instance-id ] port priority priority undo stp [ instance instance-id ] port priority View Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters instance instance-id: Sets the priority of the current port(s) in a particular MSTI.
  • Page 135: Stp Priority

    View System view Default level 2: System level Parameters all: Enables output of port state transition information for all MSTIs. instance instance-id: Enables output of port state transition information for the specified MSTI. The instance-id argument ranges from 0 to 16, where 0 represents the CIST. Description Use the stp port-log command to enable output of port state transition information for the specified MSTI or all MSTIs.
  • Page 136: Stp Region-Configuration

    Description Use the stp priority command to set the priority of the switch. Use the undo stp priority command to restore the default priority. By default, the priority is 32768. Examples # Set the priority of the switch in MSTI 1 to 4096. <Sysname>...
  • Page 137: Stp Root Secondary

    View System view Default level 2: System level Parameters instance instance-id: Configures the switch as the root bridge in a particular MSTI. The instance-id argument ranges from 0 to 16, where 0 represents the CIST. Description Use the stp root primary command to configure the switch as the root bridge. Use the undo stp root command to restore the system default.
  • Page 138: Stp Root-Protection

    MSTI. If multiple secondary root bridges exist, the secondary root bridge with the lowest MAC address will become the root bridge. After specifying a switch as a secondary root bridge, you cannot change its priority. Related commands: stp priority and stp root primary. Examples # Specify the switch as a secondary root bridge of MSTI 0.
  • Page 139: Stp Tc-Protection

    stp tc-protection Syntax stp tc-protection enable stp tc-protection disable View System view Default level 2: System level Parameters None Description Use the stp tc-protection enable command to enable the TC-BPDU attack guard function for the switch. Use the stp tc-protection disable command to disable the TC-BPDU attack guard function for the switch. By default, the TC-BPDU attack guard function is enabled.
  • Page 140: Stp Timer Forward-Delay

    H3C does not recommend you to set the forward delay by using this command. Instead, you can use the stp bridge-diameter command to set the network diameter and let MSTP automatically calculates the forward delay according to the network size.
  • Page 141: Stp Timer Max-Age

    BPDU timeout. H3C does not recommend you to set the hello time by using this command. Instead, you can use the stp bridge-diameter command to set the network diameter and let MSTP automatically calculates the hello time according to the network size.
  • Page 142: Stp Timer-Factor

    H3C does not recommend you to set the max age by using this command. Instead, you can use the stp bridge-diameter command to set the network diameter and let MSTP automatically calculates the max age according to the network size. When the network diameter is the default value, the max age is also set to the default.
  • Page 143: Stp Transmit-Limit

    A larger maximum transmission rate value requires more system resources. An appropriate maximum transmission rate setting can limit the speed at which a port sends BPDUs and prevent MSTP from using excessive bandwidth resources during network topology changes. H3C recommends that you use the default value.
  • Page 144 Parameters modulo: Sets the modulo value, ranging from 1 to 16. Description Use the vlan-mapping modulo command to map VLANs in the current MST region to MSTIs according to the specified modulo value, quickly creating a VLAN-to-instance mapping table. By default, all VLANs are mapped to the CIST (MSTI 0). You cannot map the same VLAN to different MSTIs.
  • Page 145: Bpdu Tunneling Configuration Commands

    BPDU tunneling configuration commands BPDU tunneling configuration commands bpdu-tunnel dot1q Syntax In Ethernet interface view or port group 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 146: Bpdu-Tunnel Tunnel-Dmac

    Settings made in Ethernet interface view or Layer 2 aggregate interface view take effect only on the current port; settings made in port group view take effect on all ports in the port group. Before enabling BPDU tunneling for DLDP, EOAM, GVRP, HGMP, LLDP, or STP on a port, disable the protocol on the port.
  • Page 147 By default, the destination multicast MAC address for BPDUs is 0x010F-E200-0003. Examples # Set the destination multicast MAC address for BPDUs to 0x0100-0CCD-CDD0. <Sysname> system-view [Sysname] bpdu-tunnel tunnel-dmac 0100-0ccd-cdd0...
  • Page 148: Vlan Configuration Commands

    VLAN configuration commands VLAN configuration commands description Syntax description text undo description View VLAN view, VLAN interface view Default level 2: System level Parameters text: Specifies a description for a VLAN or VLAN interface. 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 149: Display Interface Vlan-Interface

    [Sysname] vlan 2 [Sysname-vlan2] description sales-private # Change the description of VLAN-interface 2 to linktoPC56. <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] quit [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] description linktoPC56 display interface vlan-interface Syntax display interface vlan-interface [ vlan-interface-id ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 150 0 packets input, 0 bytes, 0 drops 0 packets output, 0 bytes, 0 drops Table 32 Output description Field Description The physical state of a VLAN interface: • DOWN ( Administratively )—The administrative state of the VLAN interface is down because it has been shut down with the shutdown command.
  • Page 151: Display Vlan

    Field Description if the current VLAN interface supports collecting interface statistics. display vlan Syntax display vlan [ vlan-id1 [ to vlan-id2 ] | all | dynamic | reserved | static ] [ | { begin | exclude | include } regular-expression ] View Any view...
  • Page 152: Interface Vlan-Interface

    Name: VLAN 0002 Tagged Ports: none Untagged Ports: GigabitEthernet1/0/1 GigabitEthernet1/0/2 GigabitEthernet1/0/3 # Display VLAN 3 information. <Sysname> display vlan 3 VLAN ID: 3 VLAN Type: static Route Interface: configured IP Address: 1.1.1.1 Subnet Mask: 255.255.255.0 Description: VLAN 0003 Name: VLAN 0003 Tagged Ports: none Untagged Ports: none...
  • Page 153: Ip Address

    Description Use the interface vlan-interface command to create a VLAN interface and enter its view or enter the view of an existing VLAN interface. Use the undo interface vlan-interface command to remove the specified VLAN interface. You must create the VLAN before you create the VLAN interface. To configure an IP address for a VLAN interface to perform IP routing, use the ip address command in VLAN interface view.
  • Page 154: Name

    To remove all IP addresses, use the undo ip address command without any parameter. • • 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 •...
  • Page 155: Shutdown

    View User view Default level 2: System level Parameters vlan-interface-id: Specifies a VLAN interface number. Description Use the reset counters interface vlan-interface command to clear the statistics on a VLAN interface. Before collecting the traffic statistics within a specific period of time on an interface, you need to clear the existing statistics first.
  • Page 156: Vlan

    Examples # Shut down VLAN-interface 2 and then bring it up. <Sysname> system-view [Sysname] interface vlan-interface 2 [Sysname-Vlan-interface2] shutdown [Sysname-Vlan-interface2] undo shutdown vlan Syntax vlan { vlan-id1 [ to vlan-id2 ] | all } undo vlan { vlan-id1 [ to vlan-id2 ] | all } View System view Default level...
  • Page 157: Port-Based Vlan Configuration Commands

    [Sysname-vlan2] # Create VLAN 4 through VLAN 100. <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...
  • Page 158: Port

    555, 600-611, 1000, 2006-2008 Table 34 Output description Field Description Interface Port name. PVID Default VLAN ID of the port. VLAN passing VLANs whose packets are allowed to pass through the port. Tagged VLANs whose packets are required to pass through the port tagged. Untagged VLANs whose packets are required to pass through the port untagged.
  • Page 159: Port Access Vlan

    port access vlan Syntax port access vlan vlan-id undo port access vlan View Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, ranging from 1 to 4094. Make sure that the VLAN specified by the VLAN ID already exists.
  • Page 160 For more information about Layer 2 aggregate interfaces, see the Layer 2—LAN Switching Configuration Guide. H3C recommends that you set the same default VLAN ID for the local and remote hybrid ports. After configuring the default VLAN for a hybrid port, you must use the port hybrid vlan command to configure the hybrid port to allow packets from the default VLAN to pass through, so that the port can forward packets from the default VLAN.
  • Page 161: Port Hybrid Vlan

    port hybrid vlan Syntax port hybrid vlan vlan-id-list { tagged | untagged } undo port hybrid vlan vlan-id-list View Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters vlan-id-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-id ranges from 1 to 4094 and &<1- 1 0>...
  • Page 162: Port Link-Type

    <Sysname> system-view [Sysname] vlan 2 [Sysname-vlan2] quit [Sysname] port-group manual 2 [Sysname-port-group-manual-2] group-member gigabitethernet 1/0/1 to gigabitethernet 1/0/6 [Sysname-port-group-manual-2] port link-type hybrid [Sysname-port-group-manual-2] port hybrid vlan 2 untagged Configuring GigabitEthernet1/0/1... Done. Configuring GigabitEthernet1/0/2... Done. Configuring GigabitEthernet1/0/3... Done. Configuring GigabitEthernet1/0/4... Done. Configuring GigabitEthernet1/0/5...
  • Page 163: Port Trunk Permit Vlan

    In port group view, this command applies to all ports in the port group. For more information about port groups, see the Layer 2—LAN Switching Configuration Guide. The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its aggregation member ports.
  • Page 164 Parameters vlan-id-list: Specifies a list of VLANs that the trunk port(s) will be assigned to. This argument is expressed in the format of [vlan-id1 [ to vlan-id2 ] ]&<1- 1 0>, where vlan-id ranges from 1 to 4094 and &<1- 1 0> indicates that you can specify up to 10 VLAN IDs or VLAN ID ranges.
  • Page 165: Port Trunk Pvid

    [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port trunk permit vlan 13 15 Please wait... Done. Error: Failed to configure on interface GigabitEthernet1/0/2! This port is not a Trunk port! Configuring GigabitEthernet1/0/3... Done. Among the output fields, the message “Please wait... Done” indicates that the configuration on Bridge-aggregation 1 succeeded;...
  • Page 166: Mac Address-Based Vlan Configuration Commands

    After configuring the default VLAN for a trunk port, you must use the port trunk permit vlan command to configure the trunk port to allow packets from the default VLAN to pass through, so that the port can forward packets from the default VLAN. Related commands: port link-type and port trunk permit vlan.
  • Page 167 mac-address mac-address: Displays the MAC address-to-VLAN entry containing the specified MAC address. mask mac-mask: Displays the MAC address-to-VLAN entries with their MAC addresses in the specified range. Support for this keyword-argument combination depends on the device model. static: Displays the statically configured MAC address-to-VLAN entries. vlan vlan-id: Displays the MAC address-to-VLAN entries associated with the specified VLAN.
  • Page 168: Display Mac-Vlan Interface

    Field Description • D—The MAC address-to-VLAN entry is configured automatically through the authentication server. • S&D—The MAC address-to-VLAN entry is configured both statically and dynamically. display mac-vlan interface Syntax display mac-vlan interface [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 169: Mac-Vlan Mac-Address

    Default level 2: System level Parameters None Description Use the mac-vlan enable command to enable MAC address-based VLAN on a port. Use the undo mac-vlan enable command to disable MAC address-based VLAN on a port. By default, MAC address-based VLAN is disabled on a port. Examples # Enable MAC address-based VLAN on GigabitEthernet 1/0/1.
  • Page 170: Mac-Vlan Trigger Enable

    After associate MAC addresses with a VLAN, if you specifies the 802.1p priority value corresponding to the specified MAC address, you still need to use the qos trust dot1p command in interface view to configure the interface to use the 802.1p priority in incoming packets for priority mapping. For details about this command, see the ACL and QoS Command Reference.
  • Page 171: Port Pvid Disable

    port pvid disable Syntax port pvid disable undo port pvid disable View Layer 2 Ethernet port view Default level 2: System level Parameters None Description Use the port pvid disable command to disable the default VLAN of the current port from forwarding packets whose source MAC addresses do not match any MAC address-to-VLAN mapping.
  • Page 172: Protocol-Based Vlan Configuration Commands

    By default, VLANs are matched based on MAC addresses preferentially. This command only applies to VLANs based on a single MAC address and IP subnet-based VLANs. If both the MAC address-based VLAN function and the IP subnet-based VLAN function are created on a port, MAC address-to-VLAN mappings are matched preferentially, and the left VLAN entries (VLAN entries based on a single MAC address and IP subnet-based VLANs) are matched as configured by the vlan precedence command.
  • Page 173: Display Protocol-Vlan Vlan

    VLAN ID Protocol Index Protocol Type ====================================================== ipv4 Table 36 Output description Field Description VLAN ID ID of the protocol-based VLAN bound to the port. Protocol Index Protocol template index. Protocol Type Protocol type specified by the protocol template. display protocol-vlan vlan Syntax display protocol-vlan vlan { vlan-id1 [ to vlan-id2 ] | all } [ | { begin | exclude | include } regular-expression ]...
  • Page 174: Port Hybrid Protocol-Vlan

    Protocol Index Protocol Type ====================================================== ipv4 ipv6 VLAN ID:3 Protocol Index Protocol Type ====================================================== ipv4 ipv6 For more information about the output fields, see Table 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 Ethernet interface view, port group view, Layer 2 aggregate interface view...
  • Page 175 Create a VLAN and associate it with specified protocols. • • Configure the link type as hybrid. Configure the port to allow the protocol-based VLAN to pass through. • Related commands: display protocol-vlan interface. Examples # Associate the hybrid port GigabitEthernet 1/0/1 with protocol 0 (AppleTalk) in VLAN 2. <Sysname>...
  • Page 176: Protocol-Vlan

    protocol-vlan Syntax protocol-vlan [ protocol-index ] { at | ipv4 | ipv6 | ipx { ethernetii | llc | raw | snap } | mode { ethernetii etype etype-id | llc { dsap dsap-id [ ssap ssap-id ] | ssap ssap-id } | snap etype etype-id } } undo protocol-vlan { protocol-index [ to protocol-end ] | all } View VLAN view...
  • Page 177: Ip Subnet-Based Vlan Configuration Commands

    CAUTION: dsap-id ssap-id Do not configure both the arguments in the protocol-vlan command as 0xe0 or • 0xff when configuring the user-defined template for llc encapsulation. Otherwise, the encapsulation format of the matching packets will be the same as that of the ipx llc or ipx raw packets, respectively. dsap-id ssap-id When either of the...
  • Page 178: Display Ip-Subnet-Vlan Vlan

    View Any view Default level 2: System level Parameters interface-list: Specifies an Ethernet port list in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1- 1 0>, where interface-type interface-number represents the port type and port number and &<1- 1 0> indicates that you can specify up to 10 ports or port ranges.
  • Page 179: Ip-Subnet-Vlan

    View Any view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, ranging from 1 to 4094. to: Specifies a VLAN ID range. The argument after this keyword must be greater than or equal to the one before this keyword. all: Specifies all the VLANs.
  • Page 180: Port Hybrid Ip-Subnet-Vlan

    View VLAN view Default level 2: System level Parameters ip-subnet-index: Specifies a beginning IP subnet index, ranging from 0 to 1 1. The value can be configured by users, or automatically numbered by system based on the order in which the IP subnets or IP addresses are associated with the VLAN.
  • Page 181 Description Use the port hybrid ip-subnet-vlan command to associate the current Ethernet port with the specified IP subnet-based VLAN. Use the undo port hybrid ip-subnet-vlan command to remove the association. On an Ethernet port associated with an IP subnet-based VLAN, if the source IP address of a received untagged packet belongs to the corresponding IP subnet, the port tags the packet with the corresponding VLAN tag.
  • Page 182 [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 access Please wait... Done. Configuring GigabitEthernet1/0/2... Done. Configuring GigabitEthernet1/0/3........... Done. [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port hybrid vlan 3 untagged Please wait... Done. Configuring GigabitEthernet1/0/2... Done. Configuring GigabitEthernet1/0/3...
  • Page 183: Isolate-User-Vlan Configuration Commands

    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, ranging from 1 to 4094. |: Filters command output by specifying a regular expression.
  • Page 184 Tagged Ports: none Untagged Ports: GigabitEthernet1/0/2 GigabitEthernet1/0/3 GigabitEthernet1/0/4 VLAN ID: 3 VLAN Type: static Isolate-user-VLAN type : secondary Route Interface: configured IP Address: 2.2.2.2 Subnet Mask: 255.255.255.0 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...
  • Page 185: Isolate-User-Vlan

    isolate-user-vlan Syntax isolate-user-vlan isolate-user-vlan-id secondary secondary-vlan-id [ to secondary-vlan-id ] undo isolate-user-vlan isolate-user-vlan-id [ secondary secondary-vlan-id [ to secondary-vlan-id ] ] View System view Default level 2: System level Parameters isolate-user-vlan-id: Specifies an isolate-user-VLAN ID, ranging from 1 to 4094. secondary secondary-vlan-id [ to secondary-vlan-id ]: Specifies a secondary VLAN ID or a secondary VLAN ID range.
  • Page 186: Isolate-User-Vlan Enable

    [Sysname] isolate-user-vlan 2 secondary 3 to 4 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 the isolate-user-vlan enable command to configure the current VLAN as an isolate-user-VLAN. Use the undo isolate-user-vlan enable command to remove the isolate-user-VLAN configuration for the current VLAN.
  • Page 187: Port Isolate-User-Vlan

    Use the undo isolated-vlan enable command to restore the default. By default, ports in the same secondary VLAN can communicate with one another at Layer 2. After you configure the isolated-vlan enable command in secondary VLAN view, you cannot assign •...
  • Page 188 [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] port isolate-user-vlan host # Configure the Layer 2 aggregate interface Bridge-Aggregation 1 as a hybrid port and then configure it as an upstream port. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port isolate-user-vlan promiscuous...
  • Page 189: Voice Vlan Configuration Commands

    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 the Fundamentals Configuration Guide.
  • Page 190: Display Voice Vlan State

    0060-b900-0000 ffff-ff00-0000 Philips/NEC phone 00e0-7500-0000 ffff-ff00-0000 Polycom phone 00e0-bb00-0000 ffff-ff00-0000 3com phone Table 40 Output description Field Description Oui Address OUI addresses supported. 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...
  • Page 191: Voice Vlan Aging

    Table 41 Output description Field Description Voice VLAN system capacity Maximum number of voice VLANs supported by the system. Current Voice VLAN Count Number of existing voice VLANs. Security mode of the voice VLAN: Security for security mode; Normal for Voice VLAN security mode normal mode.
  • Page 192: Voice Vlan Enable

    voice vlan enable Syntax voice vlan vlan-id enable undo voice vlan [ vlan-id ] enable View Ethernet interface view Default level 2: System level Parameters vlan-id: Specifies a VLAN ID, ranging from 2 to 4096. Description Use the voice vlan enable command to enable the voice VLAN feature and configure a VLAN as the voice VLAN for the current Ethernet port.
  • Page 193: Voice Vlan Mode Auto

    description text: Specifies a string that describes the OUI address. The string is of 1 to 30 case-sensitive characters. oui: Specifies the OUI address to be removed, in the format of H-H-H, such as 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 address of all 0s or all 1s.
  • Page 194: Voice Vlan Qos

    Parameters None Description Use the voice vlan mode auto command to configure the current port to operate in automatic voice VLAN assignment mode. Use the undo voice vlan mode auto command to configure the current port to operate in manual voice VLAN assignment mode.
  • Page 195: Voice Vlan Qos Trust

    NOTE: Configure the QoS priority settings for voice VLAN traffic on an interface before enabling voice VLAN • on the interface. If the configuration order is reversed, the priority settings will fail. The voice vlan qos command and the voice vlan qos trust command can overwrite the other. When you •...
  • Page 196: Voice Vlan Security Enable

    [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] voice vlan qos trust voice vlan security enable Syntax voice vlan security enable undo voice vlan security enable View System view Default level 2: System level Parameters None Description Use the voice vlan security enable command to enable voice VLAN security mode. Use the undo voice vlan security enable command to disable voice VLAN security mode.
  • Page 197: Gvrp Configuration Commands

    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: Specifies one or multiple ports to display the GARP statistics. You can provide up to 10 port lists.
  • Page 198: Display Garp Timer

    Examples # Display GARP statistics on ports GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2. <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...
  • Page 199: 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 200 Parameters interface interface-type interface-number: Specifies an interface by its type and number. vlan vlan-id: Specifies a VLAN ID, in the range of 1 to 4094. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
  • Page 201: Display Gvrp Statistics

    Field Description any) for Normal registration, R for Registration fixed, and F for Registration forbidden. For example, MTR stands for “Empty, Registration fixed", indicating the fixed registration mode in Empty state. display gvrp statistics Syntax display gvrp statistics [ interface interface-list ] [ | { begin | exclude | include } regular-expression ] View Any view Default level...
  • Page 202: Display Gvrp Status

    Table 44 Output description Field Description GVRP Status Indicates whether GVRP is enabled or disabled GVRP Running Indicates whether GVRP is running GVRP Failed Registrations Indicates the number of GVRP registration failures GVRP Last Pdu Origin Indicates the source MAC address in the last GVRP PDU Indicates the GVRP registration mode on the port, which GVRP Registration Type can be fixed, forbidden, or normal...
  • Page 203: Garp Timer Hold

    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. For more information about regular expressions, see the 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 204: Garp Timer Join

    Related commands: display garp timer and garp timer join. Examples # Set the GARP Hold timer to 15 centiseconds, assuming that the Join timer is 30 centiseconds. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] garp timer hold 15 garp timer join Syntax garp timer join timer-value undo garp timer join...
  • Page 205: Garp Timer Leaveall

    Default level 2: System level Parameters timer-value: Leave timer setting (in centiseconds), which must be a multiple of 5 between two times the Join timer (exclusive) and the LeaveAll timer setting (exclusive). Description Use the garp timer leave command to set the GARP Leave timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group.
  • Page 206: Gvrp

    <Sysname> system-view [Sysname] garp timer leaveall 100 gvrp Syntax gvrp undo gvrp View System view, Ethernet interface view, Layer-2 aggregate interface view, port group view Default level 2: System level Parameters None Description Use the gvrp command to enable GVRP. Use the undo gvrp command to disable GVRP.
  • Page 207: Reset Garp Statistics

    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. Description Use the gvrp registration command to configure the GVRP registration mode on a port (in Ethernet or Layer-2 aggregate interface view) or all ports in a port group (in port group view).
  • Page 208 Related commands: display garp statistics. Examples # Clear the GARP statistics on all ports. <Sysname> reset garp statistics...
  • Page 209: Qinq Configuration Commands

    QinQ configuration commands NOTE: Customer network VLANs (CVLANs) or inner VLANs refer to the VLANs that a customer uses on the • private network. Service provider network VLANs (SVLANs) or outer VLANs refer to the VLANs that a service provider •...
  • Page 210: Qinq Ethernet-Type

    <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qinq enable # Enable basic QinQ on port group 1. <Sysname> system-view [Sysname] port-group manual 1 [Sysname-port-group-manual-1] group-member gigabitethernet 1/0/1 to gigabitethernet 1/0/6 [Sysname-port-group-manual-1] qinq enable qinq ethernet-type Syntax qinq ethernet-type hex-value undo qinq ethernet-type View System view Default Level...
  • Page 211: Qinq Transparent-Vlan

    Configuration made in system view takes effect on all ports. • • The TPID value configured on the S5120-EI series switches applies to both the CVLAN tags and the SVLAN tags. Examples # Set the TPID value to 0x8200 globally.
  • Page 212: Qinq Vid

    [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qinq enable [Sysname-GigabitEthernet1/0/1] qinq transparent-vlan 2 3 50 to 100 qinq vid Syntax qinq vid vlan-id undo qinq vid vlan-id View Layer 2 ethernet interface view, Layer 2 aggregate interface view, port group view Default Level 2: System level Parameters vlan-id: Outer VLAN ID, ranging from 1 to 4094.
  • Page 213: Raw-Vlan-Id Inbound

    raw-vlan-id inbound Syntax raw-vlan-id inbound { all | vlan-list } undo raw-vlan-id inbound { all | vlan-list } View QinQ view Default Level 2: System level Parameters vlan-list: Specifies one or multiple CVLANs in the format of vlan-list = { vlan-id [ to vlan-id ] }&<1- 1 0>. You can provide up to 10 VLAN ID lists, by each of which you can specify an individual VLAN ID with the vlan-id argument, or a VLAN ID range in the format of vlan-id to vlan-id, where the second VLAN ID must be greater than the first VLAN ID.
  • Page 214: Lldp Configuration Commands

    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.
  • Page 215 MED information Device class: Connectivity device (MED inventory information of master board) HardwareRev : REV.A FirmwareRev : 109 SoftwareRev : 5.20 Alpha 2101 SerialNum : NONE Manufacturer name : Manufacturer Model name : Model Asset tracking identifier : Unknown LLDP local-information of port 1[GigabitEthernet1/0/1]: Port ID subtype : Interface name Port ID...
  • Page 216 MED information Media policy type : Unknown Unknown Policy : Yes VLAN tagged : No Media policy VlanID Media policy L2 priority : 0 Media policy Dscp PoE PSE power source : Primary Port PSE Priority : Critical Port available power value: 30.0(w) Table 46 Output description Field Description...
  • Page 217 Field Description Port description Port description. Management address interface Numbering type of the interface identified by the management address. type Management address interface Index of the interface identified by the management address. Management address OID Management address object ID. Port VLAN ID(PVID) Port VLAN ID.
  • Page 218: Display Lldp Neighbor-Information

    Field Description Media policy type: • unknown • voice • voiceSignaling • guestVoice Media policy type • guestVoiceSignaling • softPhoneVoice • videoconferencing • streamingVideo • videoSignaling Unknown Policy Indicates whether the media policy is unknown. VLAN tagged Indicates whether packets of the media VLAN are tagged. Media Policy VlanID ID of the media VLAN.
  • Page 219 Parameters brief: Displays the summary of LLDP information sent from the neighboring devices. If this keyword is not specified, this command displays the LLDP information sent from the neighboring devices in details. 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 220 Port VLAN ID(PVID): 1 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...
  • Page 221 Field Description Port information: • Interface alias • Port component • MAC address Port ID type • Network address (the IP address type, such as ipv4) • Interface name • Agent circuit ID • Locally assigned (indicating the local configuration) Port ID Port ID, the value of which depends on the port ID type.
  • Page 222 Field Description Port power classification of the PD: • Class 0 • Class 1 Port power classification • Class 2 • Class 3 • Class 4 Link aggregation supported Indicates whether link aggregation is supported. Link aggregation enabled Indicates whether link aggregation is enabled. Aggregation port ID Aggregation group ID, which is 0 if link aggregation is not enabled.
  • Page 223: Display Lldp Statistics

    Field Description Unknown organizationally-defined Unknown organizationally specific TLV. TLV OUI OUI of the unknown organizationally specific TLV. TLV subtype Unknown organizationally specific TLV subtype. Index Unknown organization index. 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 |...
  • Page 224 LLDP statistics information of port 1 [GigabitEthernet1/0/1]: The number of LLDP frames transmitted The number of LLDP frames received The number of LLDP frames discarded 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...
  • Page 225: Display Lldp Status

    display lldp status Syntax display lldp status [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters interface interface-type interface-number: Specifies a port by its type and number. |: Filters command output by specifying a regular expression.
  • Page 226: Display Lldp Tlv-Config

    Number of CDP neighbors Number of sent optional TLV : 12 Number of received unknown TLV : 5 Table 49 Output description Field Description Global status of LLDP Indicates whether LLDP is globally enabled. The current number of LLDP Total number of the LLDP neighbor devices. neighbors The current number of CDP The current number of CDP neighbors.
  • Page 227 View Any view Default level 1: Monitor level Parameters interface interface-type interface-number: Specifies a port by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
  • Page 228: Lldp Admin-Status

    Inventory TLV Table 50 Output description Field Description LLDP tlv-config of port 1 Advertisable optional TLVs of port 1. NAME TLV type. Indicates whether TLVs of a specific type are currently sent through a STATUS port. Indicates whether TLVs of a specific type are sent through a port by DEFAULT default.
  • Page 229: Lldp Check-Change-Interval

    Parameters disable: Specifies the Disable mode. A port in this mode does not send or receive LLDPDUs. rx: Specifies the Rx mode. A port in this mode receives LLDPDUs only. tx: Specifies the Tx mode. A port in this mode sends LLDPDUs only. txrx: Specifies the TxRx mode.
  • Page 230: Lldp Compliance Admin-Status Cdp

    lldp compliance admin-status cdp Syntax lldp compliance admin-status cdp { disable | txrx } View Layer 2 Ethernet interface view, port group view Default level 2: System level Parameters disable: Specifies the disable mode, where CDP-compatible LLDP cannot receive or transmit CDP packets.
  • Page 231: Lldp Enable

    By default, CDP compatibility is disabled globally. The maximum TTL allowed by CDP is 255 seconds. You can configure the TTL configuration to be no more than 255 seconds for CDP-compatible LLDP to operate with Cisco IP phones. The TTL configuration is the product of the TTL multiplier and the LLDPDU transmit interval Related commands: lldp hold-multiplier and lldp timer tx-interval.
  • Page 232: Lldp Fast-Count

    Default level 2: System level Parameters None Description Use the lldp encapsulation snap command to configure the encapsulation format for LLDPDUs as SNAP on a port or a group of ports. Use the undo lldp encapsulation command to restore the default encapsulation format for LLDPDUs. By default, Ethernet II encapsulation applies.
  • Page 233: Lldp Hold-Multiplier

    lldp hold-multiplier Syntax lldp hold-multiplier value undo lldp hold-multiplier View System view Default level 2: System level Parameters value: Sets the TTL multiplier, ranging from 2 to 10. Description Use the lldp hold-multiplier command to set the TTL multiplier. Use the undo lldp hold-multiplier command to restore the default. By default, the TTL multiplier is 4.
  • Page 234: Lldp Management-Address-Tlv

    Use the undo lldp management-address-format command to restore the default. By default, the management address is encapsulated in the form of numbers in TLVs. Examples # Configure GigabitEthernet 1/0/1 to encapsulate the management address in the form of strings in management address TLVs.
  • Page 235: Lldp Notification Remote-Change Enable

    lldp notification remote-change enable Syntax lldp notification remote-change enable undo lldp notification remote-change enable View Layer 2 Ethernet interface view, port group view Default level 2: System level Parameters None Description Use the lldp notification remote-change enable command to enable LLDP trapping for a port or all the ports in a port group.
  • Page 236: Lldp Timer Reinit-Delay

    <Sysname> system-view [Sysname] lldp timer notification-interval 8 lldp timer reinit-delay Syntax lldp timer reinit-delay delay undo lldp timer reinit-delay View System view Default level 2: System level Parameters delay: Sets the LLDP re-initialization delay, ranging from 1 to 10 seconds. Description Use the lldp timer reinit-delay command to set the LLDP re-initialization delay.
  • Page 237: Lldp Timer Tx-Interval

    Examples # Set the LLDPDU transmit delay to 4 seconds. <Sysname> system-view [Sysname] lldp timer tx-delay 4 lldp timer tx-interval Syntax lldp timer tx-interval interval undo lldp timer tx-interval View System view Default level 2: System level Parameters interval: Sets the LLDPDU transmit interval, ranging from 5 to 32768 seconds. Description Use the lldp timer tx-interval command to set the LLDPDU transmit interval.
  • Page 238 Parameters all: Advertises all the basic LLDP TLVs, all the IEEE 802.1 organizationally specific LLDP TLVs, or all the IEEE 802.3 organizationally specific LLDP TLVs when the all keyword is specified for basic-tlv, dot1-tlv, or dot3-tlv, or advertises all the LLDP-MED TLVs except location identification TLVs when the all keyword is specified for med-tlv.
  • Page 239 Description Use the lldp tlv-enable command to configure the types of advertisable TLVs for a port or all the ports in a port group. Use the undo lldp tlv-enable command to disable the advertising of specific types of TLVs. By default, all types of LLDP TLVs, except location identification TLVs, are advertisable on a Layer 2 Ethernet port.
  • Page 240: Index

    Index A B C D E F G I J L M N P Q R S U V display link-aggregation verbose,77 display lldp local-information,202 active region-configuration,92 display lldp neighbor-information,206 display lldp statistics,21 1 display lldp status,213 bpdu-drop any,92 display lldp tlv-config,214 bpdu-tunnel dot1q,133...
  • Page 241 flow-control,20 lldp hold-multiplier,221 flow-control receive enable,21 lldp management-address-format string,221 flow-interval,22 lldp management-address-tlv,222 lldp notification remote-change enable,223 lldp timer notification-interval,223 garp timer hold,191 lldp timer reinit-delay,224 garp timer join,192 lldp timer tx-delay,224 garp timer leave,192 lldp timer tx-interval,225 garp timer leaveall,193 lldp tlv-enable,225 group-member,22...
  • Page 242 port hybrid vlan,149 bridge-diameter,1 1 1 port isolate-user-vlan,175 compliance,1 12 port link-aggregation group,86 config-digest-snooping,1 13 port link-type,150 cost,1 13 port pvid disable,159 edged-port,1 14 port trunk permit vlan,151 enable,1 15 port trunk pvid,153 loop-protection,1 16 port-group manual,35 max-hops,1 17 port-isolate enable,90 mcheck,1 18 protocol-vlan,164...

Table of Contents