H3C MSR Series Command Reference Manual

H3C MSR Series Command Reference Manual

Comware 5 layer 2 - lan switching
Hide thumbs Also See for MSR Series:
Table of Contents

Advertisement

Quick Links

H3C MSR Router Series
Comware 5 Layer 2 - LAN Switching
Command Reference
New H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: MSR-CMW520-R2516
Document version: 20180820-C-1.13

Advertisement

Table of Contents
loading

Summary of Contents for H3C MSR Series

  • Page 1 H3C MSR Router Series Comware 5 Layer 2 - LAN Switching Command Reference New H3C Technologies Co., Ltd. http://www.h3c.com Software version: MSR-CMW520-R2516 Document version: 20180820-C-1.13...
  • Page 2 The information in this document is subject to change without notice. All contents in this document, including statements, information, and recommendations, are believed to be accurate, but they are presented without warranty of any kind, express or implied. H3C shall not be liable for technical or editorial errors or omissions contained herein.
  • Page 3 Preface This command reference describes the multicast configuration commands for Ethernet link aggregation, Port isolation, MSTP, VLAN, GVRP, LLDP, and so on. This preface includes the following topics about the documentation: • Audience. • Conventions. • Documentation feedback. Audience This documentation is intended for: •...
  • Page 4 Symbols Convention Description An alert that calls attention to important information that if not understood or followed WARNING! can result in personal injury. An alert that calls attention to important information that if not understood or followed CAUTION: can result in data loss, data corruption, or damage to hardware or software. An alert that calls attention to essential information.
  • Page 5 Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
  • Page 6: Table Of Contents

    Contents MAC address table configuration commands ·········································· 1     display mac-address ············································································································ 1   display mac-address aging-time ····························································································· 2   display mac-address mac-learning ·························································································· 3   mac-address (interface view) ································································································· 4   mac-address (system view) ··································································································· 4   mac-address mac-learning disable ·························································································· 6  ...
  • Page 7   display stp abnormal-port ···································································································· 53   display stp bpdu-statistics ··································································································· 54   display stp down-port ········································································································· 57   display stp history ·············································································································· 57   display stp region-configuration ···························································································· 58   display stp root ················································································································· 59   display stp tc ···················································································································· 60  ...
  • Page 8 GVRP configuration commands ······················································ 115     display garp statistics ······································································································· 115   display garp timer ············································································································ 116   display gvrp local-vlan ······································································································ 117   display gvrp state ············································································································ 117   display gvrp statistics ······································································································· 118   display gvrp status ··········································································································· 119  ...
  • Page 9: Mac Address Table Configuration Commands

    MAC address table configuration commands The MAC address table can contain only Layer 2 Ethernet ports. This document covers only the static, dynamic, and destination blackhole MAC address entries. display mac-address Use display mac-address to display information about the MAC address table. Syntax display mac-address [ mac-address [ vlan vlan-id ] | [ [ dynamic | static ] [ interface interface-type interface-number ] | blackhole ] [ vlan vlan-id ] [ count ] ] [ | { begin | exclude | include }...
  • Page 10: Display Mac-Address Aging-Time

    Table 1 Command output Field Description MAC ADDR MAC address. VLAN ID ID of the VLAN to which the MAC address belongs. State of a MAC address entry: • Config static—Static entry manually configured by the user. • STATE Config dynamic—Dynamic entry manually configured by the user. •...
  • Page 11: Display Mac-Address Mac-Learning

    The output shows that the aging time of dynamic entries in the MAC address table is 300 seconds. Related commands • mac-address (system view) • mac-address (interface view) • mac-address timer • display mac-address display mac-address mac-learning Use display mac-address mac-learning to display the MAC address learning status of the specified or all Layer 2 Ethernet ports.
  • Page 12: Mac-Address (Interface View)

    mac-address (interface view) Use mac-address to add or modify a MAC address entry on a specified interface. Use undo mac-address to remove a MAC address entry on the interface. Syntax mac-address { dynamic | static } mac-address vlan vlan-id undo mac-address { dynamic | static } mac-address vlan vlan-id Default No MAC address entry is configured.
  • Page 13 undo mac-address [ blackhole | dynamic | static ] [ mac-address ] vlan vlan-id undo mac-address [ dynamic | static ] mac-address interface interface-type interface-number vlan vlan-id undo mac-address [ dynamic | static ] interface interface-type interface-number Default No MAC address entry is configured. Views System view Default command level...
  • Page 14: Mac-Address Mac-Learning Disable

    mac-address mac-learning disable Use mac-address mac-learning disable to disable MAC address learning on a Layer 2 Ethernet interface. Use undo mac-address mac-learning disable to enable MAC address learning on a Layer 2 Ethernet interface. Syntax mac-address mac-learning disable undo mac-address mac-learning disable Default MAC address learning is enabled.
  • Page 15 Syntax mac-address max-mac-count { count | disable-forwarding } undo mac-address max-mac-count [ disable-forwarding ] Default The maximum number of MAC addresses that can be learned on a port varies with device models, and frames received are forwarded when the upper limit is reached. Views Layer 2 Ethernet interface view, port group view Default command level...
  • Page 16: Mac-Address Timer

    Hardware Command compatibility MSR 930 MSR 20-1X MSR 20 MSR 30 Supported only on an MIM-FSW module MSR 50 Supported only on an FIC-FSW module MSR 2600 MSR3600-51F Supported only on an FIC-FSW module Examples # Set the maximum number of MAC addresses that can be learned on port Ethernet 1/1 to 600. After this upper limit is reached, frames received with unknown source MAC addresses on the port are not forwarded.
  • Page 17 • A long aging interval causes the MAC address table to retain outdated entries and fail to accommodate the latest network changes. • A short aging interval results in removal of valid entries and unnecessary broadcasts that affect the performance of the device. Examples # Set the aging timer for dynamic MAC address entries to 500 seconds.
  • Page 18: Layer 2 Forwarding Configuration Commands

    Layer 2 forwarding configuration commands display mac-forwarding statistics Use display mac-forwarding statistics to display Layer 2 forwarding statistics. Syntax display mac-forwarding statistics [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters...
  • Page 19: Reset Mac-Forwarding Statistics

    Output frames:100 Output bytes:23 Filtered:0 Invalid Tag:0 Table 3 Command output Field Description Total received Total number of received Ethernet frames. Filtered Number of frames filtered out by 802.1Q Tagged VLAN inbound filtering rules. STP discarded Number of Ethernet frames dropped on the ingress ports blocked by STP. Broadcast Number of received broadcast frames.
  • Page 20: Vlan Configuration Commands

    VLAN configuration commands Basic VLAN configuration commands bandwidth Use bandwidth to set the expected bandwidth for a VLAN-interface. Use undo bandwidth to cancel the configuration. Syntax bandwidth bandwidth-value undo bandwidth Views VLAN-interface view Default command level 2: System level Parameters bandwidth-value: Sets the expected bandwidth in the range of 1 to 4,294,967,295 kbps.
  • Page 21: Description

    Usage guidelines CAUTION: The default command might interrupt ongoing network services. Make sure you are fully aware of the impacts of this command when you use it in a live network. This command might fail to restore the default settings for some commands for reasons such as command dependencies and system restrictions.
  • Page 22: Display Interface Vlan-Interface

    • To use Unicode characters or symbols in an interface description, install the specific input method editor and log in to the device through remote login software that supports the character type. • When the length of a description string reaches or exceeds the maximum line width on the terminal software, the software starts a new line, possibly breaking a Unicode character into two and creating garbled characters at the end of a line.
  • Page 23 begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines If you do not provide the vlan-interface keyword, this command displays information about all interfaces.
  • Page 24 Field Description have failed). • UP—Both the administrative state and the physical state of the VLAN-interface are up. Link layer protocol state of a VLAN-interface: • Line protocol current state DOWN—The protocol state of the VLAN-interface is down. • UP—The protocol state of the VLAN-interface is up. Description Description string of a VLAN-interface.
  • Page 25: Display Vlan

    Field Description recover its physical state, perform the undo shutdown command. Protocol Protocol connection state of the interface: UP, DOWN, or UP(s). Main IP Main IP address of the interface. Description Description of the interface. Cause of a DOWN physical link. If the port has been shut down with the shutdown command, this field displays Administratively.
  • Page 26: Interface Vlan-Interface

    <Sysname> display vlan 2 VLAN ID: 2 VLAN Type: static Route interface: not configured Description: VLAN 0002 Name: VLAN 0002 Tagged Ports: none Untagged Ports: Ethernet1/1 Ethernet1/2 Ethernet1/3 # Display VLAN 3 information. <Sysname> display vlan 3 VLAN ID: 3 VLAN Type: static Route Interface: configured IP Address: 1.1.1.1...
  • Page 27: Ip Address

    undo interface vlan-interface vlan-interface-id Views System view Default command level 2: System level Parameters vlan-interface-id: Specifies a VLAN-interface number in the range of 1 to 4094. Usage guidelines Create the VLAN before you create the VLAN-interface. To configure an IP address for a VLAN-interface that will perform IP routing, use the ip address command in VLAN-interface view.
  • Page 28: Mac-Address

    Usage guidelines To connect a VLAN to multiple subnets, assign one primary IP address and multiple secondary IP addresses to a VLAN-interface. The maximum number of IP addresses that can be assigned to a VLAN-interface is 512. When you configure IP addresses for a VLAN-interface, follow these rules: •...
  • Page 29: Mtu

    Use mtu to set the MTU for a VLAN-interface. Use undo mtu to restore the default. Syntax mtu size undo mtu Default The MTU of a VLAN-interface is 1500 bytes. Views VLAN-interface view Default command level 2: System level Parameters size: Sets the MTU in the range of 46 to 1500 bytes.
  • Page 30: Reset Counters Interface Vlan-Interface

    (}), left parenthesis ((), right parenthesis ()), left bracket ([), right bracket (]), left angle bracket (<), right angle bracket (>), hyphen (-), underscore(_), plus sign (+), equal sign (=), vertical bar (|), back slash (\), colon (:), semi-colon (;) quotation marks ("), apostrophe ('), comma (,), dot (.), and slash (/), spaces, and other Unicode characters and symbols.
  • Page 31: Vlan

    Use undo shutdown to cancel the action of shutting down a VLAN-interface. Syntax shutdown undo shutdown Default A VLAN-interface is not manually shut down. The VLAN-interface is up if one or more ports in the VLAN is up, and goes down if all ports in the VLAN go down. Views VLAN-interface view Default command level...
  • Page 32 Default command level 2: System level Parameters vlan-id1, vlan-id2: Specifies a VLAN ID in the range of 1 to 4094. vlan-id1 to vlan-id2: Specifies a VLAN range. vlan-id2 must be no smaller than vlan-id1. all: Creates or removes all VLANs except reserved VLANs. The keyword is not supported when the maximum number of VLANs that can be created on a router is less than 4094.
  • Page 33: Port-Based Vlan Configuration Commands

    Port-based VLAN configuration commands display port Use display port to display information about the hybrid or trunk ports on the device, including the port names, PVIDs, and allowed VLAN IDs. Syntax display port { hybrid | trunk } [ | { begin | exclude | include } regular-expression ] Views Any view Default command level...
  • Page 34: Port

    port Use port to assign the specified access ports to the VLAN. Use undo port to remove the specified access ports from the VLAN. Syntax port interface-list undo port interface-list Default All ports are in VLAN 1. All ports are access ports. However, you can manually configure the port type.
  • Page 35 Default command level 2: System level Parameters vlan-id: Specifies a VLAN ID in the range of 1 to 4094. Make sure that the VLAN specified by the VLAN ID already exists. Usage guidelines The following matrix shows the command and hardware compatibility in Layer 2 aggregate interface view: Hardware Command compatibility...
  • Page 36: Port Hybrid Pvid

    PVID of a hybrid port, it does not affect the setting of the PVID on the port. H3C recommends that you set the same PVID for the local and remote hybrid ports. You must use the port hybrid vlan command to configure the hybrid port to permit the packets from the PVID to pass through.
  • Page 37: Port Hybrid Vlan

    • If the system fails to apply the configuration to an aggregation member port, it skips the port and moves to the next member port. Examples # Configure VLAN 100 as the PVID of the hybrid port Ethernet 1/1. <Sysname> system-view [Sysname] vlan 100 [Sysname-vlan100] quit [Sysname] interface ethernet 1/1...
  • Page 38 Hardware Command compatibility MSR800 MSR 900 MSR900-E MSR 930 MSR 20-1X MSR 20 MSR 30 MSR 50 MSR 2600 MSR3600-51F A hybrid port can carry multiple VLANs. If you execute the port hybrid vlan command multiple times, the VLANs the hybrid port carries are the set of VLANs specified by vlan-list in each execution. The configuration made in Ethernet interface view applies only to the port.
  • Page 39: Port Link-Type

    <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type hybrid [Sysname-Bridge-Aggregation1] port hybrid vlan 2 untagged Please wait... Done. Configuring Ethernet1/1... Done. Configuring Ethernet1/2... Done. Configuring Ethernet1/3... Done. The output shows that Ethernet 1/1, Ethernet 1/2, and Ethernet 1/3 are the member ports of the aggregation group corresponding to Bridge-Aggregation 1.
  • Page 40: Port Trunk Permit Vlan

    Hardware Command compatibility MSR 50 MSR 2600 MSR3600-51F To change the link type of a port from trunk to hybrid or vice versa, you must first set the link type to access. If an access port on an MSR 2600-10 router is configured with the IP source guard binding feature, you cannot configure the link type of this port as trunk or hybrid.
  • Page 41 Default command level 2: System level Parameters vlan-list: Specifies a list of VLANs that the trunk ports will be assigned to in the format of { vlan-id1 [ to vlan-id2 ] }&<1-10>, where vlan-id1 and vlan-id2 represent VLAN IDs and each range from 1 to 4094, vlan-id2 must be no smaller than vlan-id1, and &<1-10>...
  • Page 42: Port Trunk Pvid

    [Sysname-Ethernet1/1] port trunk permit vlan 2 4 50 to 100 Please wait... Done. # Assign the trunk Layer 2 aggregate interface Bridge-Aggregation 1 to VLAN 2. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] port link-type trunk [Sysname-Bridge-Aggregation1] port trunk permit vlan 2 Please wait...
  • Page 43 Hardware Command compatibility MSR 30 MSR 50 MSR 2600 MSR3600-51F You can use a nonexistent VLAN as the PVID for a trunk port. If you use the undo vlan command to remove the PVID of a trunk port, it does not affect the setting of the PVID on the port. The local and remote trunk ports must use the same PVID for the traffic of the PVID to be transmitted correctly.
  • Page 44: Super Vlan Configuration Commands

    Super VLAN configuration commands The following matrix shows the super VLAN configuration commands and hardware compatibility: Hardware Super VLAN compatibility MSR800 MSR 900 MSR900-E MSR 930 MSR 20-1X MSR 20 Available only on fixed Layer 2 Ethernet interfaces of MSR 30-11E and MSR 30-11F routers and on MSR MSR 30 30-10 and MSR 30-11 routers installed with XMIM Layer 2 switching modules.
  • Page 45 Subvlan ID : VLAN ID: 2 VLAN Type: static It is a Super VLAN. Route Interface: configured IP Address: 10.153.17.41 Subnet Mask: 255.255.252.0 Description: VLAN 0002 Name: VLAN 0002 Tagged Ports: none Untagged Ports: none VLAN ID: 3 VLAN Type: static It is a Sub VLAN.
  • Page 46: Subvlan

    Field Description Indicates whether a VLAN-interface is configured or not for the sub-VLAN or Route Interface super VLAN. IP address of the VLAN-interface configured for the sub-VLAN or super IP Address VLAN. Subnet mask of the VLAN-interface configured for the sub-VLAN or super Subnet Mask VLAN.
  • Page 47: Supervlan

    You can configure DHCP, Layer 3 multicast, dynamic routing, and NAT for the VLAN-interface of a super VLAN. However, only DHCP can take effect. H3C recommends not configuring VRRP for the VLAN-interface of a super VLAN, because the configuration affects network performance.
  • Page 48: Voice Vlan Configuration Commands

    Voice VLAN configuration commands The following matrix shows the voice VLAN configuration commands and hardware compatibility: Hardware Voice VLAN compatibility MSR800 MSR 900 MSR900-E MSR 930 MSR 20-1X MSR 20 Available only on fixed Layer 2 Ethernet interfaces of MSR 30 MSR 30-11E and MSR 30-11F routers and on routers installed with MIM and XMIM Layer 2 switching modules.
  • Page 49: Display Voice Vlan State

    Examples # Display the supported OUI addresses and their masks and descriptions. <Sysname> display voice vlan oui Oui Address Mask Description 0001-e300-0000 ffff-ff00-0000 Siemens phone 0003-6b00-0000 ffff-ff00-0000 Cisco phone 0004-0d00-0000 ffff-ff00-0000 Avaya phone 0060-b900-0000 ffff-ff00-0000 Philips/NEC phone 00d0-1e00-0000 ffff-ff00-0000 Pingtel phone 00e0-7500-0000 ffff-ff00-0000 Polycom phone...
  • Page 50: Voice Vlan Aging

    Voice VLAN enabled port and its mode: PORT VLAN MODE ----------------------------------------------- Ethernet1/1 AUTO Ethernet1/2 AUTO Table 9 Command output Field Description Maximum of Voice VLANs Maximum number of voice VLANs supported by the system. Current Voice VLANs Number of existing voice VLANs. Security mode of the voice VLAN: Security for security mode;...
  • Page 51: Voice Vlan Enable

    received on the port until the aging time expires, the system automatically removes the port from the voice VLAN. This aging time applies only to the ports in automatic voice VLAN assignment mode. Examples # Configure the voice VLAN aging time as 100 minutes. <Sysname>...
  • Page 52: Voice Vlan Mode Auto

    Default The system is configured with the default OUI addresses. You can remove the default OUI addresses, and then add recognizable OUI addresses manually. Table 10 Default OUI addresses Number OUI address Vendor 0001-E300-0000 Siemens phone 0003-6B00-0000 Cisco phone 0004-0D00-0000 Avaya phone 00D0-1E00-0000 Pingtel phone...
  • Page 53: Voice Vlan Security Enable

    Use undo voice vlan mode auto to configure the port to operate in manual voice VLAN assignment mode. Syntax voice vlan mode auto undo voice vlan mode auto Default A port operates in automatic voice VLAN assignment mode. Views Ethernet interface view Default command level 2: System level Usage guidelines...
  • Page 54 Examples # Disable voice VLAN security mode. <Sysname> system-view [Sysname] undo voice vlan security enable...
  • Page 55: Spanning Tree Configuration Commands

    MST region–related parameters by using the active region-configuration command or enable the spanning tree feature by using the stp enable command. H3C recommends that you use the check region-configuration command to determine whether the MST region configurations to be activated are correct. Run this command only when they are correct.
  • Page 56: Display Stp

    VLAN-to-instance mapping entries in the MST region, and if they are connected through a physical link. H3C recommends that you use this command to determine whether the MST region configurations to be activated are correct. Activate them only when they are correct.
  • Page 57 Views Any view Default command level 1: Monitor level Parameters instance instance-id: Displays the status and statistics information of a specific MSTI. The minimum value of instance-id is 0, representing the CIST, and the maximum value of instance-id is 15. interface interface-list: Displays the spanning tree status and statistics on the ports specified by a port list, in the format of interface-list = { interface-type interface-number [ to interface-type interface-number ] }&<1-10>, where &<1-10>...
  • Page 58 Ethernet1/4 DESI FORWARDING NONE Table 12 Command output 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. • BACK—The port is a backup port. •...
  • Page 59 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 BPDU Received TCN: 0, Config: 0, RST: 0, MST: 0 -------[MSTI 1 Global Info]-------...
  • Page 60 Field Description CIST root port ID. "0.0" indicates that the device is the root, and there is no root CIST RootPortId port. VLAN root port ID. "0.0" indicates that the device is the root, and there is no root Root PortId port.
  • Page 61: 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. • RemHop—Remaining hops. BPDU Sent Statistics on sent BPDUs. BPDU Received Statistics on received BPDUs. MSTI RegRoot/IRPC MSTI regional root/internal path cost.
  • Page 62: Display Stp Bpdu-Statistics

    exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # In MSTP mode, display information about ports blocked by spanning tree protection functions. <Sysname>...
  • Page 63 • If you do not specify any MSTI or port, this command displays the BPDU statistics of all MSTIs on all ports. The displayed information is sorted by port name and by MSTI ID on each port. • If you specify a port but not an MSTI, this command displays the BPDU statistics of all MSTIs on the port.
  • Page 64 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 15 Command output Field Description Port Port name. Instance-independent Statistics not related to any particular MSTI. Type Statistical item.
  • Page 65: Display Stp Down-Port

    display stp down-port Use display stp down-port to display information about ports shut down by spanning tree protection functions. Syntax display stp down-port [ | { begin | exclude | include } regular-expression ] Views Any view Default command level 1: Monitor level Parameters |: Filters command output by specifying a regular expression.
  • Page 66: Display Stp Region-Configuration

    Parameters instance instance-id: Displays the historical port role calculation information for a specific MSTI. The minimum value of instance-id is 0, representing the CIST, and the maximum value of instance-id is |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
  • Page 67: Display Stp Root

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

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

    include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines In STP or RSTP mode, the displayed information is sorted by port name. In MSTP mode, follow these guidelines: •...
  • Page 70: Region-Name

    Usage guidelines If you specify no VLAN in the undo instance command, all VLANs mapped to the specified MSTI will be remapped to the CIST. You cannot map the same VLAN to different MSTIs. If you map a VLAN that has been mapped to an MSTI to a new MSTI, the old mapping will be automatically removed.
  • Page 71: Reset Stp

    Related commands • instance • revision-level • vlan-mapping modulo • display stp region-configuration • check region-configuration • active region-configuration reset stp Use reset stp to clear the MSTP statistics information. Syntax reset stp [ interface interface-list ] Views User view Default command level 1: Monitor level Parameters...
  • Page 72: Stp Bpdu-Protection

    Default command level 2: System level Parameters level: Specifies an MSTP revision level in the range of 0 to 65535. Usage guidelines The MSTP revision level, the MST region name, and the VLAN-to-instance mapping table of a device determine the device's MST region. When the MST region name and VLAN-to-instance mapping table are both the same for two MST regions, they can still be differentiated by their MSTP revision levels.
  • Page 73: Stp Bridge-Diameter

    stp bridge-diameter Use stp bridge-diameter to specify the network diameter, the maximum possible number of stations between any two terminal devices on the switched network. Use undo stp bridge-diameter to restore the default. Syntax stp bridge-diameter diameter undo stp bridge-diameter Default The network diameter of the switched network is 7.
  • Page 74 Default A port automatically recognizes the formats of received MSTP packets and determines the formats of MSTP packets to be sent based on the recognized formats. Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Parameters auto: Configures the ports to recognize the MSTP BPDU format automatically and determine the...
  • Page 75: Stp Config-Digest-Snooping

    stp config-digest-snooping Use stp config-digest-snooping to enable Digest Snooping. Use undo stp config-digest-snooping to disable Digest Snooping. Syntax stp config-digest-snooping undo stp config-digest-snooping Default The feature is disabled by default. Views System view, Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines...
  • Page 76: Stp Cost

    Examples # Enable Digest Snooping on Ethernet 1/1 and then globally. <Sysname> system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] stp config-digest-snooping [Sysname-Ethernet1/1] quit [Sysname] stp config-digest-snooping Related commands display stp stp cost Use stp cost to set the path cost of the port or ports. Use undo stp cost to restore the default.
  • Page 77: Stp Edged-Port

    Command compatibility in Layer 2 Hardware aggregate interface view MSR 930 MSR 20-1X MSR 20 MSR 30 MSR 50 MSR 2600 MSR3600-51F Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
  • Page 78 When the network topology changes, an edge port will not cause a temporary loop. You can enable the port to transit to the forwarding state rapidly by configuring it as an edge port. H3C recommends that you configure ports directly connecting to user terminals as edge ports.
  • Page 79: Stp Enable

    stp enable Use stp enable to enable the spanning tree feature. Use undo stp enable to disable the spanning tree feature. Syntax stp enable undo stp enable Default The spanning tree feature is enabled on all ports and is globally disabled. Views System view, Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level...
  • Page 80: Stp Loop-Protection

    Examples # In MSTP mode, enable the spanning tree feature globally. <Sysname> system-view [Sysname] stp enable # In MSTP mode, disable the spanning tree feature on port Ethernet 1/1. <Sysname> system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] undo stp enable Related commands stp mode stp loop-protection Use stp loop-protection to enable the loop guard function on the ports.
  • Page 81: Stp Max-Hops

    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. You cannot configure edge port settings and loop guard, or configure root guard and loop guard on a port at the same time.
  • Page 82 Syntax stp mcheck Views System view, Ethernet interface view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines The following matrix shows the command and hardware compatibility: Command compatibility in Layer 2 Hardware aggregate interface view MSR800 MSR 900 MSR900-E...
  • Page 83: Stp Mode

    Examples # Perform mCheck on Ethernet 1/1. <Sysname> system-view [Sysname] interface ethernet 1/1 [Sysname-Ethernet1/1] stp mcheck Related commands stp mode stp mode Use stp mode to configure the spanning tree operating mode. Use undo stp mode to restore the default. Syntax stp mode { mstp | rstp | stp } undo stp mode...
  • Page 84: Stp Pathcost-Standard

    undo stp no-agreement-check Default No Agreement Check is disabled. Views Ethernet interface view, port group view, Layer 2 aggregate interface view Default command level 2: System level Usage guidelines The following matrix shows the command and hardware compatibility: Command compatibility in Layer 2 Hardware aggregate interface view MSR800...
  • Page 85: Stp Point-To-Point

    Syntax stp pathcost-standard { dot1d-1998 | dot1t | legacy } undo stp pathcost-standard Default The default standard used by the device is legacy. Views System view Default command level 2: System level Parameters dot1d-1998: Configures the device to calculate the default path cost for ports based on IEEE 802.1d-1998.
  • Page 86 You can configure the link type as point-to-point for a Layer 2 aggregate interface or a port that operates in full duplex mode. H3C recommends that you use the default setting to let the device automatically detect the port link type.
  • Page 87: Stp Port Priority

    stp port priority Use stp port priority to set the priority of the ports. Use undo stp port priority to restore the default. Syntax stp [ instance instance-id ] port priority priority undo stp [ instance instance-id ] port priority Default The port priority is 128.
  • Page 88: Stp Port-Log

    Port priority affects the role of a port in a spanning tree. The smaller the value, the higher the port priority. If all ports on your device use the same priority value, the port priority depends on the port index. The smaller the index, the higher the priority. Examples # In MSTP mode, set the priority of port Ethernet 1/3 to 16 in MSTI 2.
  • Page 89: Stp Priority

    stp priority Use stp priority to set the priority of the device. Use undo stp priority to restore the default priority. Syntax stp [ instance instance-id ] priority priority undo stp [ instance instance-id ] priority Default The device priority is 32768. Views System view Default command level...
  • Page 90: Stp Root Primary

    • The MSTP revision level is 0. After you enter MST region view, you can configure the MST region-related parameters, including the region name, VLAN-to-instance mappings, and revision level. Examples # Enter MST region view. <Sysname> system-view [Sysname] stp region-configuration [Sysname-mst-region] stp root primary Use stp root primary to configure the device as the root bridge.
  • Page 91: Stp Root-Protection

    Syntax stp [ instance instance-id ] root secondary undo stp [ instance instance-id ] root Default A device is not a secondary root bridge. Views System view Default command level 2: System level Parameters instance instance-id: Configures the device as a secondary root bridge in a particular MSTI. The minimum value of instance-id is 0, representing the CIST, and the maximum value of instance-id is Usage guidelines To set an MSTP device as a secondary root bridge in a specific MSTI, use this command with the...
  • Page 92: Stp Tc-Protection

    Command compatibility in Layer 2 Hardware aggregate interface view MSR800 MSR 900 MSR900-E MSR 930 MSR 20-1X MSR 20 MSR 30 MSR 50 MSR 2600 MSR3600-51F Configured in Ethernet interface view, the setting takes effect only on the interface. Configured in port group view, the setting takes effect on all member ports in the port group. Configured in Layer 2 aggregate interface view, the setting takes effect only on the aggregate interface.
  • Page 93: Stp Tc-Protection Threshold

    Usage guidelines With the TC-BPDU guard function, you can set the maximum number of immediate forwarding address entry flushes that the device can perform every a certain period of time (10 seconds). For TC-BPDUs received in excess of the limit, the device performs a forwarding address entry flush when the time period expires.
  • Page 94: Stp Timer Hello

    H3C recommends not setting the forward delay with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let spanning tree protocols automatically calculate optimal settings of the forward delay timer.
  • Page 95: Stp Timer Max-Age

    H3C recommends not setting the hello time with this command. Instead, you can specify the network diameter of the switched network by using the stp bridge-diameter command and let spanning tree protocols automatically calculate optimal settings of the hello timer.
  • Page 96: Stp Timer-Factor

    You can avoid such unwanted spanning tree calculations by lengthening the timeout time (by setting the timeout factor to 4 or more), saving the network resources. H3C recommends that you set the timeout factor to 5, 6, or 7, for a stable network.
  • Page 97 A larger maximum transmission rate value requires more system resources. An appropriate maximum transmission rate setting can prevent spanning tree protocols from using excessive bandwidth resources during network topology changes. H3C recommends that you use the default value. Examples # Set the maximum transmission rate of port Ethernet 1/1 to 5.
  • Page 98: Vlan-Mapping Modulo

    [Sysname-Ethernet1/1] stp transmit-limit 5 vlan-mapping modulo Use vlan-mapping modulo to map VLANs in the MST region to MSTIs according to the specified modulo value, quickly creating a VLAN-to-instance mapping table. Syntax vlan-mapping modulo modulo Default All VLANs are mapped to the CIST (MSTI 0). Views MST region view Default command level...
  • Page 99: Ethernet Link Aggregation Configuration Commands

    Ethernet link aggregation configuration commands bandwidth Use bandwidth to set the expected bandwidth for an aggregate interface or subinterface. Use undo bandwidth to cancel the configuration. Syntax bandwidth bandwidth-value undo bandwidth Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level...
  • Page 100: Default

    [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] bandwidth 10000 default Use default to restore the default settings for an aggregate interface or subinterface. Syntax default Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level Usage guidelines CAUTION:...
  • Page 101: Description

    description Use description to set a description for an interface. For example, you can include information such as the purpose of the interface for the ease of management. Use undo description to restore the default setting. Syntax description text undo description Default The description of an interface is interface-name Interface.
  • Page 102: Display Interface

    display interface Use display interface to display aggregate interface information. Syntax display interface [ bridge-aggregation | route-aggregation ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ] display interface { bridge-aggregation | route-aggregation } interface-number [ brief ] [ | { begin | exclude | include } regular-expression ] Views Any view...
  • Page 103 Usage guidelines The following matrix shows the command and hardware compatibility: Hardware Command compatibility MSR800 MSR 900 MSR900-E MSR 930 MSR 20-1X MSR 20 MSR 30 MSR 50 MSR 2600 MSR3600-51F If bridge-aggregation | route-aggregation is not specified, this command displays information about all interfaces.
  • Page 104 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0 Last clearing of counters: Never Last 5 seconds input rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec Last 5 seconds output rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec 0 packets input, 0 bytes, 0 drops 0 packets output, 0 bytes, 0 drops # Display brief information about Layer 2 aggregate interface Bridge-Aggregation 1.
  • Page 105: Display Lacp System-Id

    Field Description Never indicates the reset counters interface command has never been used on the interface since the device's startup. Output queue (current message number in the urgent queue/ maximum Output queue : (Urgent queuing : number of messages allowed in the urgent queue/number of discarded Size/Length/Discards) messages).
  • Page 106: Display Link-Aggregation Member-Port

    regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Usage guidelines The system ID contains the system LACP priority and the system MAC address. Although you specify the LACP priority value in decimal format in the lacp system-priority command, it is displayed as a hexadecimal value with the display lacp system-id command.
  • Page 107 Examples # Display detailed link aggregation information for Ethernet 1/1, a member port of a static aggregation group. <Sysname> display link-aggregation member-port ethernet 1/1 Flags: A -- LACP_Activity, B -- LACP_Timeout, C -- Aggregation, D -- Synchronization, E -- Collecting, F -- Distributing, G -- Defaulted, H -- Expired Ethernet1/1: Aggregation Interface: Bridge-Aggregation1...
  • Page 108: Display Link-Aggregation Summary

    Field Description • G—The sending system receives frames in default state. • H—The sending system receives frames in expired state. Aggregation Interface Aggregate interface to which the member port belongs. Local Information about the local end. Port Priority Aggregation priority of the port. Oper-key Operational key.
  • Page 109: Display Link-Aggregation Verbose

    Aggregation Mode: S -- Static, D -- Dynamic Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing Actor System ID: 0x8000, 000f-e267-6c6a Partner ID Select Unselect Share Interface Mode Ports Ports Type ------------------------------------------------------------------------- BAGG1 none NonS BAGG10 0x8000, 000f-e267-57ad Shar Table 24 Command output Field Description Aggregate interface type:...
  • Page 110 The following matrix shows the bridge-aggregation keyword and hardware compatibility: Hardware keyword compatibility MSR800 MSR 900 MSR900-E MSR 930 MSR 20-1X MSR 20 MSR 30 MSR 50 MSR 2600 MSR3600-51F route-aggregation: Displays detailed information about the Layer 3 aggregation groups corresponding to Layer 3 aggregate interfaces.
  • Page 111 To display the information about all Layer 2 or Layer 3 aggregation groups, use the display link-aggregation verbose bridge-aggregation display link-aggregation verbose route-aggregation command. To display the information about all aggregation groups, use the display link-aggregation verbose command. The bridge-aggregation or route-aggregation keyword is available only when you create Layer 2 or Layer 3 aggregate interfaces on the device.
  • Page 112: Enable Snmp Trap Updown

    Eth0/2 32768 Eth0/3 Table 25 Command output Field Description Load sharing type: • Loadsharing Type Shar—Load sharing. • NonS—Non-load sharing. Port Status Port state: Selected or unselected. LACP state flags: • A—LACP is enabled. • B—LACP short timeout. • C—The sending system detects that the link is aggregatable. •...
  • Page 113: Interface Bridge-Aggregation

    Default LinkUp/linkDown trap generation is enabled for an aggregate interface. Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level Usage guidelines The following matrix shows the command and hardware compatibility in Layer 2 aggregate interface view: Hardware Command compatibility...
  • Page 114: Interface Route-Aggregation

    Views System view Default command level 2: System level Parameters interface-number: Specifies a Layer 2 aggregate interface by its number in the range of 1 to 1024. Usage guidelines The following matrix shows the command and hardware compatibility: Hardware Command compatibility MSR800 MSR 900 MSR900-E...
  • Page 115: Lacp Period Short

    Parameters interface-number: Specifies a Layer 3 aggregate interface by its number in the range of 1 to 16. interface-number.subnumber: Specifies a subinterface of a Layer 3 aggregate interface. The interface-number argument specifies the main interface number. The subnumber argument specifies the subinterface number and is separated from the main interface number by a dot (.).
  • Page 116: Link-Aggregation Mode

    Syntax lacp system-priority system-priority undo lacp system-priority Default The system LACP priority is 32768. Views System view Default command level 2: System level Parameters system-priority: Specifies the LACP priority of the local system, in the range of 0 to 65535. The smaller the value, the higher the system LACP priority.
  • Page 117: Link-Aggregation Port-Priority

    Hardware Command compatibility MSR 20 MSR 30 MSR 50 MSR 2600 MSR3600-51F To change the aggregation mode of an aggregation group that contains member ports, remove all the member ports from the aggregation group first. Examples # Configure the aggregation group corresponding to Bridge-Aggregation 1 to operate in dynamic aggregation mode.
  • Page 118: Mtu

    Hardware Command compatibility MSR 20 MSR 30 MSR 50 MSR 2600 MSR3600-51F When the number of ports eligible for becoming Selected ports exceeds the maximum number of Selected ports allowed in an aggregation group, changing the aggregation priority of a port might affect the aggregation state of the ports in the aggregation group.
  • Page 119 Use undo port link-aggregation group to remove the Ethernet interface from the aggregation group to which it belongs. Syntax port link-aggregation group number undo port link-aggregation group Views Ethernet interface view Default command level 2: System level Parameters number: Specifies the number of the aggregate interface corresponding to an aggregation group. The value range for this argument is 1 to 1024 for Layer 2 aggregate interfaces and 1 to 16 for Layer 3 aggregate interfaces.
  • Page 120: Reset Counters Interface

    Hardware Command compatibility MSR3600-51F A Layer 2 Ethernet interface can be assigned to a Layer 2 aggregation group only, and a Layer 3 Ethernet interface can be assigned to a Layer 3 aggregation group only. An Ethernet interface can belong to only one aggregation group. Examples # Assign Layer 2 Ethernet interface Ethernet 1/1 to Layer 2 aggregation group 1.
  • Page 121: Reset Lacp Statistics

    route-aggregation: Clears statistics for Layer 3 aggregate interfaces. interface-number: Specifies an aggregate interface by its number in the range of 1 to 1024 for Layer 2 aggregate interfaces and 1 to 16 for Layer 3 aggregate interfaces. Usage guidelines Before collecting statistics for a Layer 2 aggregate interface within a specific period, clear the existing statistics of the interface.
  • Page 122 Syntax shutdown undo shutdown Default Aggregate interfaces and subinterfaces are up. Views Layer 2 aggregate interface view, Layer 3 aggregate interface view, Layer 3 aggregate subinterface view Default command level 2: System level Usage guidelines The following matrix shows the command and hardware compatibility in Layer 2 aggregate interface view: Hardware Command compatibility...
  • Page 123: Gvrp Configuration Commands

    GVRP configuration commands display garp statistics Use display garp statistics to display the GARP statistics of the specified ports. If no ports are specified, this command displays the GARP statistics for all ports. Syntax display garp statistics [ interface interface-list ] [ | { begin | exclude | include } regular-expression ] Views Any view...
  • Page 124: Display Garp Timer

    Number of Frames Discarded GARP statistics on port Ethernet1/2 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded Related commands reset garp statistics display garp timer Use display garp timer to display GARP timers on specific ports. If no ports are specified, this command displays the GARP timers on all ports.
  • Page 125: Display Gvrp Local-Vlan

    • garp timer leave • garp timer leaveall display gvrp local-vlan Use display gvrp local-vlan to display the local VLAN information maintained by GVRP on the specified port. Syntax display gvrp local-vlan interface interface-type interface-number [ | { begin | exclude | include } regular-expression ] Views Any view...
  • Page 126: Display Gvrp Statistics

    begin: Displays the first line that matches the specified regular expression and all lines that follow. exclude: Displays all lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression. regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters. Examples # Display GVRP state machines in VLAN 2 on port Ethernet 1/1.
  • Page 127: Display Gvrp Status

    Views Any view Default command level 1: Monitor level Parameters interface interface-list: Displays the GVRP statistics of one or multiple Ethernet ports. You can specify up to 10 Ethernet port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end-port number specified by interface-number2 must be greater than the start-port number specified by interface-number1.
  • Page 128: Display Gvrp Vlan-Operation

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

    garp timer hold Use garp timer hold to set the GARP Hold timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group. Use undo garp timer hold to restore the default of the GARP Hold timer. This might fail if the default is beyond the valid value range for the Hold timer.
  • Page 130: Garp Timer Join

    garp timer join Use garp timer join to set the GARP Join timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group. Use undo garp timer join to restore the default of the GARP Join timer. This might fail if the default is beyond the valid value range for the Join timer.
  • Page 131: Garp Timer Leave

    • garp timer leave garp timer leave Use garp timer leave to set the GARP Leave timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group. Use undo garp timer leave to restore the default of the GARP Leave timer. This might fail if the default is beyond the valid value range for the Leave timer.
  • Page 132: Garp Timer Leaveall

    Related commands • display garp timer • garp timer join • garp timer leaveall garp timer leaveall Use garp timer leaveall to set the GARP LeaveAll timer. Use undo garp timer leaveall to restore the default. This might fail if the default is beyond the valid value range for the LeaveAll timer.
  • Page 133: Gvrp Registration

    Default GVRP is disabled. Views System view, Ethernet interface view, Layer-2 aggregate interface view, port group view Default command level 2: System level Usage guidelines The following matrix shows the command and hardware compatibility: Hardware Command compatibility MSR800 MSR 900 MSR900-E MSR 930 MSR 20-1X...
  • Page 134: Reset Garp Statistics

    Default The GVRP registration mode is normal. Views Ethernet interface view, Layer-2 aggregate interface view, port group view Default command level 2: System level Parameters fixed: Sets the GVRP registration mode to fixed. forbidden: Sets the GVRP registration mode to forbidden. normal: Sets the GVRP registration mode to normal.
  • Page 135 Syntax reset garp statistics [ interface interface-list ] Views User view Default command level 2: System level Parameters interface interface-list: Clears the GARP statistics of one or multiple ports. You can specify up to 10 port lists, by each of which you can specify a single port in the form of interface-type interface-number, or a port range in the form of interface-type interface-number1 to interface-type interface-number2, where the end port number specified by interface-number2 must be greater than the start port number specified by interface-number1.
  • Page 136: Lldp Configuration Commands

    Global LLDP local-information: Chassis ID : 00e0-fc00-5600 System name : Sysname System description : H3C Comware Platform Software H3C Comware Platform Software Comware Software Version 5.20, Demo 2304L01, Standard Copyright(c) 2004-2017 New H3C Technologies Co., Ltd. System capabilities supported : Bridge,Router...
  • Page 137 SoftwareRev : 5.20 Alpha 2101 SerialNum : NONE Manufacturer name : H3C Model name : H3C Comware Asset tracking identifier : Unknown LLDP local-information of port 1[Ethernet1/1]: Port ID subtype : Interface name Port ID : Ethernet1/1 Port description : Ethernet1/1 Interface...
  • Page 138 Table 28 Command output Field Description Global LLDP local-information Global LLDP information to be sent. Chassis ID Bridge MAC address of the device. Supported capabilities: • System capabilities supported Bridge—Switching is supported. • Router—Routing is supported. Enabled capabilities: • System capabilities enabled Bridge—Switching is enabled.
  • Page 139: Display Lldp Neighbor-Information

    Field Description • voice. • voiceSignaling. • guestVoice. • 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 140 : Interface name Port ID : Ethernet1/1 Port description : Ethernet1/1 Interface System name : H3C System description : H3C Comware Platform Software System capabilities supported : Bridge,Router System capabilities enabled : Bridge,Router Management address type : ipv4 Management address : 192.168.1.55...
  • Page 141 Management address interface ID : Unknown Management address OID 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...
  • Page 142 Field Description • Locally assigned—Locally-defined chassis type other than those listed above. ID that identifies the LLDP sending device, which can be a MAC Chassis ID address, a network address, an interface or some other value depending on the chassis type. Port ID representation: •...
  • Page 143 Field Description • 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 when link aggregation is disabled. Location information format: •...
  • Page 144: Display Lldp Statistics

    display lldp statistics Use display lldp statistics to display the global LLDP statistics or the LLDP statistics of a port. Syntax display lldp statistics [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] Views Any view Default command level...
  • Page 145: Display Lldp Status

    Field Description LLDP neighbor information last change time Time the neighbor information was last updated. The number of LLDP neighbor information inserted Number of times of adding neighbor information. The number of LLDP neighbor information deleted Number of times of removing neighbor information. Number of times of dropping neighbor information The number of LLDP neighbor information dropped due to lack of available memory space.
  • Page 146: Display Lldp Tlv-Config

    Admin status : Tx_Rx Trap flag : No Polling interval : 0s Number of neighbors Number of MED neighbors Number of sent optional TLV : 12 Number of received unknown TLV : 5 Table 31 Command output Field Description Global status of LLDP Indicates whether LLDP is globally enabled.
  • Page 147 Views Any view Default command level 1: Monitor level Parameters interface interface-type interface-number: Specifies a port by its type and number. |: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide. begin: Displays the first line that matches the specified regular expression and all lines that follow.
  • Page 148: Lldp Admin-Status

    Table 32 Command output Field Description LLDP tlv-config of port 1 Advertisable optional TLVs of port 1. NAME TLV type. STATUS Indicates whether a specific type of TLV is sent through a port. Indicates whether a specific type of TLV is sent through a port by DEFAULT default.
  • Page 149: 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 only receives LLDPDUs. tx: Specifies the Tx mode. A port in this mode only sends LLDPDUs. txrx: Specifies the TxRx mode.
  • Page 150: Lldp Encapsulation Snap

    Views System view, Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default command level 2: System level Usage guidelines LLDP takes effect on a port only when LLDP is enabled both globally and on the port. Examples # Disable LLDP on Ethernet 1/1.
  • Page 151: Lldp Hold-Multiplier

    Views System view Default command level 2: System level Parameters count: Sets the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered. The value range is 1 to 10. Examples # Configure the device to send four LLDPDUs each time fast LLDPDU transmission is triggered. <Sysname>...
  • Page 152: Lldp Management-Address-Format String

    lldp management-address-format string Use lldp management-address-format string to encapsulate the management address in the form of strings in TLVs. Use undo lldp management-address-format to restore the default. Syntax lldp management-address-format string undo lldp management-address-format Default The management address is encapsulated in the form of numbers in TLVs. Views Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, port group view Default command level...
  • Page 153: Lldp Notification Remote-Change Enable

    Usage guidelines An LLDPDU carries only one management address TLV. If you set the management address multiple times, the most recent configuration takes effect. In Layer 2 Ethernet interface view, if you run the lldp management-address-tlv command without specifying the ip-address argument, the advertised management address is the main IP address of the lowest-ID VLAN carried on the interface.
  • Page 154: Lldp Timer Reinit-Delay

    Default The LLDP trap transmit interval is 5 seconds. Views System view Default command level 2: System level Parameters interval: Sets the LLDP trap transmit interval in the range of 5 to 3600 seconds. Examples # Set the LLDP trap transmit interval to 8 seconds. <Sysname>...
  • Page 155: Lldp Timer Tx-Interval

    Default The LLDPDU transmit delay is 2 seconds. Views System view Default command level 2: System level Parameters delay: Sets the LLDPDU transmit delay in the range of 1 to 8192 seconds. Usage guidelines It is a good practice to set the LLDPDU transmit delay to be no greater than a quarter of the LLDPDU transmit interval.
  • Page 156: Lldp Tlv-Enable

    Examples # Set the LLDPDU transmit interval to 20 seconds. <Sysname> system-view [Sysname] lldp timer tx-interval 20 Related commands lldp timer tx-delay lldp tlv-enable Use lldp tlv-enable to configure the types of advertisable TLVs for a port or all ports in a port group. Use undo lldp tlv-enable to disable the advertising of specific types of TLVs.
  • Page 157 port-description: Advertises port description TLVs. system-capability: Advertises system capabilities TLVs. system-description: Advertises system description TLVs. system-name: Advertises system name TLVs. dot1-tlv: Advertises IEEE 802.1 organizationally specific LLDP TLVs. port-vlan-id: Advertises port VLAN ID TLVs. protocol-vlan-id [ vlan-id ]: Advertises port and protocol VLAN ID TLVs. The vlan-id argument specifies a VLAN ID in the TLVs to be advertised.
  • Page 158: Lldp Voice-Vlan

    To enable the device to advertise multiple types of TLVs, you can execute the lldp tlv-enable command multiple times without the all keyword specified. Examples # Enable the device to advertise link aggregation TLVs of the IEEE 802.3 organizationally specific TLVs on Ethernet 1/1.
  • Page 159: Port Isolation Configuration Commands

    Port isolation configuration commands The H3C MSR series routers support only one isolation group that is created automatically as isolation group 1. You can neither remove the isolation group nor create other isolation groups. display port-isolate group Use display port-isolate group to display information about port isolation group 1.
  • Page 160 Syntax port-isolate enable undo port-isolate enable Views Layer 2 Ethernet interface view, Layer 2 aggregate interface view, port group view Default command level 2: System level Usage guidelines The following matrix shows the command and hardware compatibility in Layer 2 aggregate interface view: Hardware Command compatibility...
  • Page 161 [Sysname-port-group-manual-aa] group-member ethernet 1/1 [Sysname-port-group-manual-aa] group-member ethernet 1/2 [Sysname-port-group-manual-aa] group-member ethernet 1/3 [Sysname-port-group-manual-aa] group-member ethernet 1/4 [Sysname-port-group-manual-aa] port-isolate enable # Assign Layer 2 aggregate interface Bridge-Aggregation 1 and its member ports to the isolation group. <Sysname> system-view [Sysname] interface bridge-aggregation 1 [Sysname-Bridge-Aggregation1] quit [Sysname] interface Ethernet 1/1 [Sysname-Ethernet1/1] port link-aggregation group 1...
  • Page 162: Vlan Termination Configuration Commands

    VLAN termination configuration commands dot1q ethernet-type Use dot1q ethernet-type to set the TPID value in the outermost VLAN tag of packets received and sent by the interface. Use undo dot1q ethernet-type to restore the default. Syntax dot1q ethernet-type hex-value undo dot1q ethernet-type Default The TPID value for the outmost VLAN tag of VLAN-tagged packets received and sent by the interface is 0x8100.
  • Page 163: Vlan-Type Dot1Q Vid

    Usage guidelines After you execute the dot1q ethernet-type command, only packets whose TPID in the outermost VLAN tag is 0x8100 or the value you configured will be processed as VLAN-tagged packets. When sending a packet, the interface sets the TPID value in the outermost VLAN tag to the configured value, and sets the TPID values in the other VLAN tags to 0x8100 if the packet carries two or more layers of VLAN tags.
  • Page 164 [Sysname-Ethernet1/1.1] vlan-type dot1q vid 2 # Configure Virtual-Ethernet 1.1 to terminate VLAN-tagged packets with VLAN ID 2. <Sysname> system-view [Sysname] interface virtual-ethernet 1.1 [Sysname-Virtual-Ethernet1.1] vlan-type dot1q vid 2...
  • Page 165: Index

    Index A B C D E G I L M N P R S V display stp root,59 display stp tc,60 active region-configuration,47 display supervlan,36 display vlan,17 display voice vlan oui,40 bandwidth,91 display voice vlan state,41 bandwidth,12 dot1q ethernet-type,154 check region-configuration,47 enable snmp trap updown,104...
  • Page 166 compliance,65 config-digest-snooping,67 mac-address,20 cost,68 mac-address (interface view),4 edged-port,69 mac-address (system view),4 enable,71 mac-address mac-learning disable,6 loop-protection,72 mac-address max-mac-count,6 max-hops,73 mac-address timer,8 mcheck,73 mtu,110 mode,75 mtu,21 no-agreement-check,75 pathcost-standard,76 name,21 point-to-point,77 stp port priority,79 port-log,80 port,26 priority,81 port access vlan,26 region-configuration,81 port hybrid pvid,28 stp root primary,82...

Table of Contents