Page 2
SecPro, SecPoint, SecEngine, SecPath, Comware, Secware, Storware, NQA, VVG, V G, V G, PSPT, XGbus, N-Bus, TiGem, InnoVision and HUASAN are trademarks of Hangzhou H3C Technologies Co., Ltd. All other trademarks that may be mentioned in this manual are the property of their respective owners Notice The information in this document is subject to change without notice.
Page 3
Preface The H3C S5120-SI documentation set includes 10 command references, which describe the commands and command syntax options for the H3C S5120-SI Switch Series, Release 1505. 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: • display link-aggregation load-sharing mode • lacp period short • link-aggregation lacp traffic-redirect-notification enable Ethernet link aggregation • commands link-aggregation load-sharing mode • link-aggregation load-sharing mode local-first Modified commands: The lacp port-priority command is changed to link-aggregation port-priority. Port isolation 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-SI documentation set The H3C S5120-SI documentation set includes: Category Documents Purposes Marketing brochures Describe product specifications and benefits.
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 & Documents > Technical Documents] –...
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.
# Set the broadcast suppression threshold to 20% on all ports in manual port group group1. <Sysname> system-view [Sysname] port-group manual group1 [Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1 [Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2 [Sysname-port-group-manual-group1] broadcast-suppression 20 description Syntax description text undo description View Ethernet interface view Default level 2: System level...
display interface Syntax display interface [ interface-type ] [ brief [ down ] ] [ | { begin | exclude | include } regular-expression ] display interface interface-type interface-number [ brief ] [ | { begin | exclude | include } regular-expression ] View Any view...
Page 15
Broadcast MAX-ratio: 100% Unicast MAX-ratio: 100% Multicast MAX-ratio: 100% PVID: 1 Mdi type: auto Port link-type: access Tagged VLAN ID : none Untagged VLAN ID : 1 Port priority: 0 Last clearing of counters: Never Peak value of input: 1205 bytes/sec, at 2000-04-26 12:02:26 Peak value of output: 299 bytes/sec, at 2000-04-26 12:00:51 Last 300 seconds input: 7 packets/sec 659 bytes/sec 0%...
Page 16
Field Description 100Mbps-speed mode, half-duplex The interface operates at 100 Mbps and in half duplex mode. mode Link speed type is autonegotiation The interface will negotiate a speed with its peer. link duplex type is autonegotiation The interface will negotiate a duplex mode with its peer. The Maximum Frame Length The maximum Ethernet frame length allowed on the interface Broadcast suppression threshold as a percentage of the interface...
Page 17
Field Description Inbound frames shorter than 64 bytes, in correct format, and runts containing valid CRCs. Inbound frames larger than the maximum frame length supported on the interface: • For an Ethernet interface that does not permit jumbo frames, giants refer to frames larger than 1518 bytes (without VLAN tags) or 1522 giants bytes (with VLAN tags).
Page 18
Field Description Number of packet drops because the output rate of the interface - underruns exceeded the output queuing capability. This is a low-probability hardware anomaly. Number of packets dropped because the transmit buffer of the - buffer failures interface ran low. Number of packets that failed to be transmitted, for example, because aborts of Ethernet collisions.
<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 Description NULL0 UP(s) Vlan1 192.168.0.89 The brief information of interface(s) under bridge mode: Link: ADM - administratively down;...
Page 20
GE1/0/45 1G(a) F(a) # Display the brief information about all but Ethernet interfaces. <Sysname> display interface brief | exclude GE The brief information of interface(s) under route mode: Link: ADM - administratively down; Stby - standby Protocol: (s) - spoofing Interface Link Protocol Main IP Description...
Field Description The brief information of interface(s) under bridge Brief information about Layer 2 interfaces mode: If the speed of an interface is automatically negotiated, its speed attribute includes the auto negotiation flag, letter a in parentheses. Speed or Duplex: (a)/A - If the duplex mode of an interface is automatically negotiated, its duplex mode auto;...
display loopback-detection Syntax display loopback-detection [ | { 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. begin: Displays the first line that matches the specified regular expression and all lines that follow.
|: 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 the lines that do not match the specified regular expression. include: Displays all lines that match the specified regular expression.
Page 24
View Any view Default level 1: Monitor level Parameters broadcast: Displays broadcast storm control settings and statistics. multicast: Displays multicast storm control settings and statistics. unicast: Displays 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.
Field Description Packet forwarding status, which may be one of the following: • normal – The port is forwarding traffic normally. Status • control – The port is in controlled mode (the actual mode depends on the CtrMode setting, which may be block or shutdown). Status of the storm control threshold event trap switch: •...
flow-control Syntax flow-control undo flow-control View Ethernet interface view Default level 2: System level Parameters None Description Use the flow-control command to enable flow control on an Ethernet interface. Use the undo flow-control command to disable flow control on the Ethernet interface. By default, generic flow control on an Ethernet interface is disabled.
Description Use the flow-interval command to set the interface statistics polling interval. Use the undo flow-interval command to restore the default interval. Examples # Set the statistics polling interval to 100 seconds on GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitEthernet 1/0/1 [Sysname-GigabitEthernet1/0/1] flow-interval 100 group-member Syntax...
Default level 2: System level Parameters delay-time: Sets a link down suppression interval, in seconds. The value range is 2 to 10. Description Use the link-delay command to set the link down suppression interval on an Ethernet interface. Use the undo link-delay command to restore the default. By default, the link down suppression is disabled.
View System view, Ethernet interface view, port group view Default level 2: System level Parameters None 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.
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. The default loopback detection interval is 30 seconds. Related commands: display loopback-detection. Examples # Set the loopback detection interval to 10 seconds. <Sysname>...
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. The single-port loopback detection function is available when the switch is performing multi-port •...
[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.
Parameters ratio: Sets the multicast suppression threshold as a percentage of the port transmission capability, in the range 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, the value range is 1 to 1488100.
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. With this function enabled, a port, after being idle for a period, enters the power save mode.
Normally, 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 dropped. The bridging function enables an Ethernet port to forward such packets. Examples # Enable bridging on Layer 2 Ethernet interface GigabitEthernet 1/0/1.
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. •...
speed Syntax speed { 10 | 100 | 1000 | auto } undo speed View Ethernet interface view Default level 2: System level Parameters 10: Sets the interface speed to 10 Mbps. The optical interface does not support the 10 keyword. 100: Sets the interface speed to 100 Mbps.
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. Use the undo speed command to restore the default.
pps: Sets storm control thresholds in pps. max-values: Sets the upper threshold, in pps. The value range is 1 to 1488100. min-values: Sets the lower threshold. The value range for this argument is 1 to max-values. Avoid setting the lower threshold to be the same as the upper threshold. Description Use the storm-constrain command to enable broadcast, multicast, or unknown unicast storm control on an Ethernet port.
By default, no action is taken on an Ethernet interface when a type of traffic exceeds the upper storm control threshold. Examples # Configure interface GigabitEthernet 1/0/1 to block the traffic detected crossing the upper storm control threshold. <Sysname> system-view [Sysname] interface gigabitEthernet 1/0/1 [Sysname-GigabitEthernet1/0/1] storm-constrain control block storm-constrain enable log...
Default level 2: System level Parameters None Description Use the storm-constrain enable trap command to enable an Ethernet interface to send storm control threshold event traps. Triggering events include traffic exceeding the upper threshold and traffic falling below the lower threshold from the upper threshold. Use the undo storm-constrain enable trap command to disable trap message sending.
[Sysname] storm-constrain interval 60 unicast-suppression Syntax unicast-suppression { ratio | pps max-pps | kbps max-kbps } undo unicast-suppression View Ethernet interface view, port group view Default level 2: System level Parameters ratio: Sets the unicast suppression threshold as a percentage of the port transmission capability, in the range 1 to 100.
[Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/1 [Sysname-port-group-manual-group1] group-member gigabitethernet 1/0/2 [Sysname-port-group-manual-group1] unicast-suppression 20 virtual-cable-test Syntax virtual-cable-test View Ethernet interface view Default level 2: System level Parameters None Description Use the virtual-cable-test command to test the cable connection of an Ethernet interface. The test results are displayed within five seconds.
Page 46
Return loss: - db Near-end crosstalk: - db NOTE: The Pair Impedance mismatch field takes two values: yes for match, and no for mismatch.
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 50
Field Description 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 • bytes/sec indicates the average number of bytes sent per second.
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 Table 7 for the description on the fields in the display interface null command output. NOTE: Because the S5120-SI Switch Series does not count the average input/output rate or input/output packets of interface Null 0, these fields are displayed as “0”...
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.
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.
Description Use the display mac-address command to display information about the MAC address table. If you execute this command without specifying any parameters, it displays information about all MAC address entries on the device, including unicast MAC address entries and static multicast MAC address entries.
Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see 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.
vlan vlan-id: Specifies an existing VLAN to which the Ethernet interface belongs, where vlan-id is the specified VLAN ID, ranging from 1 to 4094. Description Use the mac-address command to add or modify a MAC address entry on a specified interface. Use the undo mac-address command to remove a MAC address entry on the interface.
vlan vlan-id: Specifies an existing VLAN to which the Ethernet interface belongs, where vlan-id is the specified VLAN ID, in the range 1 to 4094. dynamic: Specifies dynamic MAC address entries. Aging time is set for these entries. static: Specifies static MAC address entries. These entries do not age, but you can add or remove them. interface interface-type interface-number: Specifies an outbound interface by its type and number.
Use the undo mac-address max-mac-count command to restore the default maximum number of MAC addresses that can be learned on an Ethernet port. By default, no MAC learning limit is configured. If the command is executed in interface view, the configuration takes effect on the current interface. If the command is executed in port group view, the configuration takes effect on all ports belonging to the port group.
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.
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.
<Sysname> display interface bridge-aggregation brief down The brief information of interface(s) under bridge mode: Link: ADM - administratively down; Stby - standby Interface Link Cause BAGG1 Administratively Table 10 Output description Field Description The Layer 2 aggregate interface status, which can be: •...
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. 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 66
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 link-aggregation load-sharing mode command to display global link-aggregation load sharing criterion or criteria.
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 68
D -- Synchronization, E -- Collecting, F -- Distributing, 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)
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.
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 71
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.
GE1/0/2 32768 GE1/0/3 Table 15 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. •...
Default level 2: System level 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.
aggregation group. At the same time, the member ports of the aggregation group, if any, leave the aggregation group. 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 period short Syntax lacp period short undo lacp period...
To prevent traffic interruption, you need to 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.
link-aggregation load-sharing mode Syntax System view: link-aggregation load-sharing mode { destination-ip | destination-mac | destination-port | source-ip | source-mac | source-port } * undo link-aggregation load-sharing mode View System view Default level 2: System level Parameters destination-ip: Performs load sharing in link aggregation groups based on destination IP address. destination-mac: Performs load sharing in link aggregation groups based on destination MAC address.
Default level 2: System level Parameters None Description Use the link-aggregation load-sharing mode local-first command to enable local-first load sharing for link aggregation. Use the undo link-aggregation load-sharing mode local-first command to disable local-first load sharing for link aggregation. By default, local-first load sharing is enabled for link aggregation. Examples # Disable local-first load sharing for link aggregation.
link-aggregation mode Syntax link-aggregation mode dynamic undo link-aggregation mode View Layer 2 aggregate interface view Default level 2: System level Parameters None Description Use the link-aggregation mode dynamic command to configure an aggregation group to work in dynamic aggregation mode. Use the undo link-aggregation mode command to restore the default.
Use the undo port link-aggregation group command to remove the current Ethernet interface from the aggregation group to which it belongs. An Ethernet interface can belong to only one aggregation group. Examples # Assign Layer 2 Ethernet interface GigabitEthernet 1/0/1 to Layer 2 aggregation group 1. <Sysname>...
View User 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. 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.
Port isolation configuration commands display port-isolate group Syntax display port-isolate group [ group-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters group-number: Specifies an isolation group number. The value range varies with devices. |: Filters command output by specifying a regular expression.
Group members: GigabitEthernet1/0/1 Table 16 Output description Field Description Port-isolate group information Display the information of a port-isolation group Uplink port support Indicates whether the uplink port is supported. Group ID Isolation group number Group members Isolated ports in the isolation group port-isolate enable Syntax port-isolate enable group group-number...
[Sysname-GigabitEthernet1/0/1] quit [Sysname] interface GigabitEthernet 1/0/2 [Sysname-GigabitEthernet1/0/2] port-isolate enable group 2 port-isolate group Syntax port-isolate group group-number undo port-isolate group { group-number | all } View System view Default level 2: System level Parameters group-number: Specifies the number of the isolation group, the value ranges from 1 to 4. all: Removes all isolation groups.
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.
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.
Region name :000fe26a58ed Revision level Configuration digest :0x41b5018aca57daa8dcfdba2984d99d06 Instance Vlans Mapped 1 to 9, 11 to 4094 Table 17 Output description Field Description Format selector of the MST region, which is 0 by default and Format selector cannot be configured. Region name MST region name.
Page 87
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. If you do not specify any MSTI or port, this command will display the MSTP information of all MSTIs on all ports.
Page 88
Table 18 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. • BACK—The port is a backup port. •...
Page 89
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 90
Field Description CIST root port ID. “0.0” indicates that the switch is the root and there is no root CIST RootPortId port. BPDU-Protection Indicates whether BPDU protection is enabled globally. Bridge Config- Indicates whether Digest Snooping is enabled globally on the bridge. Digest-Snooping TC or TCN received Number of received TC/TCN packets.
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.
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 93
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 94
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 21 Output description Field Description 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.
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 15, where 0 represents the CIST.
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 23 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).
display stp region-configuration Syntax display stp region-configuration [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
display stp root Syntax display stp root [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters |: Filters command output by specifying a regular expression. For more information about regular expressions, see the Fundamentals Configuration Guide.
Default level 0: Visit level Parameters instance instance-id: Displays the statistics of TC/TCN BPDUs received and sent by all ports in a particular MSTI. The instance-id argument ranges from 0 to 15, where 0 represents the CIST. slot slot-number: Displays the statistics of TC/TCN BPDUs received and sent by all ports on the specified IRF member device.
undo instance instance-id [ vlan vlan-list ] View MST region view Default level 2: System level Parameters instance-id: Specifies an MSTI ID, ranging from 0 to 15, where 0 represents the CIST. vlan vlan-list: Specifies a VLAN list in the format of vlan-list = { vlan-id [ to vlan-id2 }&<1- 1 0>, in which vlan-id represents the VLAN ID and ranges from 1 to 4094.
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. By default, the MST region name of a switch is its MAC address. The MST region name, the VLAN-to-instance mapping table, and the MSTP revision level of a switch jointly determine the switch's MST region.
revision-level Syntax revision-level level undo revision-level View MST region view Default level 2: System level Parameters level: Specifies an MSTP revision level, ranging from 0 to 65535. Description Use the revision-level command to configure the MSTP revision level. Use the undo revision-level command to restore the default MSTP revision level. By default, the MSTP revision level is 0.
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. Examples # Enable the BPDU guard function. <Sysname> system-view [Sysname] stp bpdu-protection stp bridge-diameter Syntax...
undo stp compliance View Layer 2 Ethernet interface view, port group view, Layer 2 aggregate interface view Default level 2: System level Parameters auto: Configures the port(s) to recognize the MSTP BPDU format automatically and determine the format of MSTP BPDUs to send. dot1s: Configures the port(s) to receive and send only standard-format (802.1s-compliant) MSTP BPDUs.
Description Use the stp config-digest-snooping command to enable Digest Snooping. Use the undo stp config-digest-snooping command to disable Digest Snooping. The feature is disabled by default. Configured in system view, the setting takes effect globally. 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 ports in the port group.
Description Use the stp cost command to set the path cost of the port(s) in the specified MSTI or all MSTIs. Use the undo stp cost command to restore the system default. By default, the switch automatically calculates the path costs of ports in each MSTI based on the corresponding standard.
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. Otherwise, the port can be blocked and changes to the forwarding state after a period twice the Forward Delay.
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 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.
<Sysname> system-view [Sysname] stp ignored vlan 1 to 10 stp loop-protection Syntax stp loop-protection undo stp loop-protection 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 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.
Default level 2: System level Parameters hops: Sets the maximum hops, ranging from 1 to 40. Description Use the stp max-hops command to set the maximum hops of the MST region on the switch. Use the undo stp max-hops command to restore the maximum hops to the default setting. Setting the maximum hops of MST regions is to limit the sizes of MST regions.
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.
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 no-agreement-check command to enable No Agreement Check on the port(s). Use the undo stp no-agreement-check command to disable No Agreement Check on the port(s). By default, No Agreement Check is disabled.
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.
If the physical link to which the port connects is not a point-to-point link and you manually set it to be one, your configuration may cause temporary loops. Related commands: display stp. Examples # Configure the link connecting GigabitEthernet 1/0/3 as a point-to-point link. <Sysname>...
[Sysname] interface gigabitethernet 1/0/3 [Sysname-GigabitEthernet1/0/3] stp instance 2 port priority 16 stp port-log Syntax stp port-log { all | instance instance-id } undo stp port-log { all | instance instance-id } View System view Default level 2: System level Parameters all: Enables output of port state transition information for all MSTIs.
Parameters instance instance-id: Sets the priority of the switch in a MSTI. The instance-id argument ranges from 0 to 15, where 0 represents the CIST. priority: Specifies the priority of the switch, in the range of 0 to 61440 in steps of 4096. You can set up to 16 priority values, such as 0, 4096, 8192…, on the switch.
stp root primary Syntax stp [ instance instance-id ] root primary undo stp [ instance instance-id ] root 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 15, where 0 represents the CIST.
Description Use the stp root secondary command to configure the switch as a secondary root bridge. Use the undo stp root command to restore the default. By default, a switch is not a secondary root bridge. You can configure one or more secondary root bridges for each MSTI. When the root bridge of an MSTI fails or is shut down, the secondary root bridge can take over the role of the root bridge of the specified MSTI.
Examples # Enable the root guard function for GigabitEthernet 1/0/1. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] stp root-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.
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.
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.
BPDU that has expired, that MSTI needs to be re-calculated. The max age is meaningless for MSTIs. 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.
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.
vlan-mapping modulo Syntax vlan-mapping modulo modulo View MST region view Default level 2: System level Parameters modulo: Sets the modulo value, ranging from 1 to 15. 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.
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.
[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 128
0 packets input, 0 bytes, 0 drops 0 packets output, 0 bytes, 0 drops Table 28 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.
Field Description Total number and size (in bytes) of the sent packets of the interface and 0 packets output, 0 bytes, 0 drops the number of the dropped packets. This information is displayed only 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 }...
Parameters vlan-interface-id: Specifies a VLAN interface number, ranging from 1 to 4094. 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.
[Sysname-Vlan-interface1] ip address 1.1.0.1 255.255.255.0 name Syntax name text undo name View VLAN view Default level 2: System level Parameters text: Specifies the VLAN name, a string of 1 to 32 characters. Spaces and special characters can be included in the name. Description Use the name command to configure a name for the current VLAN.
Before collecting the traffic statistics within a specific period of time on an interface, you need to clear the existing statistics first. • If the vlan-interface-id argument is not specified, this command clears the statistics of all VLAN interfaces. If the vlan-interface-id argument is specified, this command clears the statistics of the specified •...
Page 134
undo vlan { vlan-id1 [ to vlan-id2 ] | all } View System view Default level 2: System level Parameters vlan-id1, vlan-id2: Specifies a VLAN ID, ranging from 1 to 4094. vlan-id1 to vlan-id2: Specifies a VLAN range. 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 device is less than 4094.
Field Description 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. port Syntax port interface-list...
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. Description Use the port access vlan command to assign the current access ports to the specified VLAN.
Page 138
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.
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>...
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 142
Parameters vlan-id-list: Specifies a list of VLANs that the trunk ports 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.
[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;...
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 145
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. 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. |: Filters command output by specifying a regular expression.
Field Description The state of a MAC address-to-VLAN entry: • S—The MAC address-to-VLAN entry is configured statically. • D—The MAC address-to-VLAN entry is configured automatically through STATE the authentication server. • S&D—The MAC address-to-VLAN entry is configured both statically and dynamically.
View Layer 2 Ethernet port view 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.
the relationship between a group of MAC addresses and a VLAN, and a priority value. Another table contains the MAC address-to-VLAN entries configured without the mask keyword specified. A MAC address-to-VLAN entry of this type describes the relationship between a single MAC address and a VLAN, and a priority value.
ip-subnet-vlan: Specifies to match VLANs based on IP subnet settings preferentially. Description Use the vlan precedence command to set the order of VLAN matching. Use the undo vlan precedence command to restore the default. 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.
Description Use the display protocol-vlan interface command to display information about protocol-based VLANs for the specified ports. Examples # Display protocol-based VLAN information on GigabitEthernet 1/0/1. [Sysname] display protocol-vlan interface gigabitethernet 1/0/1 Interface: GigabitEthernet1/0/1 VLAN ID Protocol Index Protocol Type ====================================================== ipv4 Table 32 Output description...
Description Use the display protocol-vlan vlan command to display the protocols and protocol indexes configured on the specified VLANs. Related commands: display vlan. Examples # Display the protocols and protocol indexes configured on all protocol-based-VLANs. <Sysname> display protocol-vlan vlan all VLAN ID:2 Protocol Index Protocol Type...
Page 153
The configuration made in Layer 2 aggregate interface view applies to the aggregate interface and its aggregation member ports. • If the system fails to apply the configuration to the aggregate interface, it stops applying the configuration to aggregation member ports. If the system fails to apply the configuration to an aggregation member port, it skips the port and •...
Page 155
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...
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.
Table 34 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.
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.
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.
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.
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 •...
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.
<Sysname> display garp statistics interface gigabitethernet 1/0/1 to gigabitethernet 1/0/2 GARP statistics on port GigabitEthernet1/0/1 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded GARP statistics on port GigabitEthernet1/0/2 Number of GVRP Frames Received Number of GVRP Frames Transmitted Number of Frames Discarded display garp timer Syntax...
Garp 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 Default level 0: Visit level...
Page 167
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. exclude: Displays all lines that do not match the specified regular expression.
Field Description The Registrar state machine records the registration of attributes declared by other participants. Its state can be INN, LV, L3, L2, L1, MT, INR, LVR, L3R, L2R, L1R, MTR, INF, LVF, L3F, L2F, L1F, and MTF. Each state consists of two or three letters or numbers with the following meanings: •...
GVRP statistics on port GigabitEthernet1/0/1 GVRP Status : Enabled GVRP Running : YES GVRP Failed Registrations GVRP Last Pdu Origin : 0000-0000-0000 GVRP Registration Type : Normal Table 37 Output description Field Description GVRP Status Indicates whether GVRP is enabled or disabled GVRP Running Indicates whether GVRP is running GVRP Failed Registrations...
display gvrp vlan-operation Syntax display gvrp vlan-operation interface interface-type interface-number [ | { begin | exclude | include } regular-expression ] View Any view Default level 0: Visit level Parameters interface interface-type interface-number: Specifies an interface by its type and number. |: Filters command output by specifying a regular expression.
Parameters timer-value: Hold timer setting (in centiseconds), which must be a multiple of 5 in the range of 10 (inclusive) and half of the Join timer setting (inclusive). One second equals 100 centiseconds. Description Use the garp timer hold command to set the GARP Hold timer for an Ethernet port, Layer-2 aggregate interface, or all ports in a port group.
garp timer leave Syntax garp timer leave timer-value undo garp timer leave View Ethernet interface view, Layer-2 aggregate interface view, port group view 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).
Use the undo garp timer leaveall command to restore the default. This may fail if the default is beyond the valid value range for the LeaveAll timer. By default, the setting of the LeaveAll timer is 1000 centiseconds. Related commands: display garp timer and garp timer leave. Examples # Set the leaveall timer to 100 centiseconds, assuming that the Leave timer on every port is set to 60 centiseconds.
gvrp registration Syntax gvrp registration { fixed | forbidden | normal } undo gvrp registration View Ethernet interface view, Layer-2 aggregate interface view, port group view Default level 2: System level Parameters fixed: Sets the GVRP registration mode to fixed. forbidden: Sets the GVRP registration mode to forbidden.
Page 175
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. If no ports are specified, this command clears the GARP statistics on all ports. Description Use the reset garp statistics command to clear the GARP statistics on the specified ports or all ports if no ports are specified.
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 •...
Configured in Layer 2 aggregate interface view, this command takes effect on the Layer 2 aggregate interface and the member ports in its aggregation group. You can configure this command on a Layer 2 aggregate interface and its member ports separately. Configured on an aggregation member port, this command takes effect immediately.
Examples # Configure GigabitEthernet 1/0/1 to tag frames with outer VLAN 10. <Sysname> system-view [Sysname] interface gigabitethernet 1/0/1 [Sysname-GigabitEthernet1/0/1] qinq enable [Sysname-GigabitEthernet1/0/1] qinq vid 10 # Configure all the ports in port group 1 to tag frames with outer VLAN 10. <Sysname>...
LLDP configuration commands display lldp local-information Syntax display lldp local-information [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ] View Any view Default level 1: Monitor level Parameters global: Displays the global LLDP information to be sent. interface interface-type interface-number: Displays the LLDP information to be sent out the interface specified by its type and number.
Page 182
(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 : GigabitEthernet1/0/1...
Page 183
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 39 Output description Field Description Global LLDP local-information The global LLDP information to be sent.
Page 184
Field Description 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. Port and protocol VLAN Port protocol VLAN ID. ID(PPVID) Port and protocol VLAN Indicates whether protocol VLAN is supported on the port.
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 186
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 187
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 188
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 189
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.
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 191
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...
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.
Number of CDP neighbors Number of sent optional TLV : 12 Number of received unknown TLV : 5 Table 42 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 194
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.
Inventory TLV Table 43 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.
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.
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.
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.
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.
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.
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.
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 205
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 206
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.
Index A B C D E F G I J L M N P Q R S U V display mac-address aging-time,45 display mac-address statistics,46 active region-configuration,73 display mac-vlan,133 display mac-vlan interface,135 display port,124 bpdu-drop any,73 display port-group manual,1 1 broadcast-suppression,1 display port-isolate group,70...
Need help?
Do you have a question about the S5120-SI Series and is the answer not in the manual?
Questions and answers