- Table of Contents
-
- 02-Layer 2-LAN Switching Command Reference
- 00-Preface
- 01-Ethernet interface configuration commands
- 02-Loopback and null interface configuration commands
- 03-Bulk interface configuration commands
- 04-MAC address table configuration commands
- 05-Ethernet link aggregation configuration commands
- 06-Port isolation configuration commands
- 07-Spanning tree configuration commands
- 08-BPDU tunneling configuration commands
- 09-VLAN configuration commands
- 10-GVRP configuration commands
- 11-LLDP configuration commands
- 12-Service loopback group configuration commands
- 13-MVRP commands
- Related Documents
-
Title | Size | Download |
---|---|---|
11-LLDP configuration commands | 157.43 KB |
display lldp local-information
display lldp neighbor-information·
lldp compliance admin-status cdp
lldp management-address-format string
lldp notification remote-change enable·
lldp timer notification-interval
LLDP configuration commands
display lldp local-information
Use display lldp local-information to display the LLDP information to be sent. This information, contained in the LLDP TLVs, is sent to neighbor devices.
Syntax
display lldp local-information [ global | interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
global: Displays the global LLDP information to be sent.
interface interface-type interface-number: Displays the LLDP information to be sent out of the interface specified by its type and number.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
If no keyword or argument is specified, this command displays all LLDP information to be sent. This information includes the global LLDP information and the LLDP information about the LLDP-enabled ports in up state.
Examples
# Display all LLDP information to be sent.
<Sysname> display lldp local-information
Global LLDP local-information:
Chassis ID : 00e0-fc00-5800
System name : WX5540E_LSW
System description : H3C Comware Platform Software, Software Version 5.20, Alp
ha 2607P01 H3C WX5540E-LSW Copyright (c) 2004-2013 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
System capabilities supported : Bridge,Router
System capabilities enabled : Bridge,Router
MED information
Device class: Connectivity device
(MED inventory information of master board)
HardwareRev : Ver.A
FirmwareRev : 1.01
SoftwareRev : V200R006B09D011
SerialNum : DPPMWWB123456
Manufacturer name : H3C
Model name : H3C WX5540E-LSW
Asset tracking identifier : Unknown
LLDP local-information of port 1[GigabitEthernet1/0/1]:
Port ID subtype : Interface name
Port ID : GigabitEthernet1/0/1
Port description : GigabitEthernet1/0/1 Interface
Management address type : ipv4
Management address : 192.168.11.55
Management address interface type : IfIndex
Management address interface ID : 35
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 0
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(100)/duplex(Full)
PoE supported: No
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame Size: 10000
MED information
Media policy type : Unknown
Unknown Policy : Yes
VLAN tagged : No
Media policy VlanID : 0
Media policy L2 priority : 0
Media policy Dscp : 0
LLDP local-information of port 29[Ten-GigabitEthernet1/0/29]:
Port ID subtype : Interface name
Port ID : Ten-GigabitEthernet1/0/29
Port description : Ten-GigabitEthernet1/0/29 Interface
Management address type : ipv4
Management address : 192.168.11.55
Management address interface type : IfIndex
Management address interface ID : 35
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 0
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(10000)/duplex(Full)
PoE supported: No
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 31
Maximum frame Size: 10000
MED information
Media policy type : Unknown
Unknown Policy : Yes
VLAN tagged : No
Media policy VlanID : 0
Media policy L2 priority : 0
Media policy Dscp : 0
LLDP local-information of port 30[Ten-GigabitEthernet1/0/30]:
Port ID subtype : Interface name
Port ID : Ten-GigabitEthernet1/0/30
Port description : Ten-GigabitEthernet1/0/30 Interface
Management address type : ipv4
Management address : 192.168.11.55
Management address interface type : IfIndex
Management address interface ID : 35
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 0
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(10000)/duplex(Full)
PoE supported: No
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 32
Maximum frame Size: 10000
MED information
Media policy type : Unknown
Unknown Policy : Yes
VLAN tagged : No
Media policy VlanID : 0
Media policy L2 priority : 0
Media policy Dscp : 0
LLDP local-information of port 31[Ten-GigabitEthernet1/0/31]:
Port ID subtype : Interface name
Port ID : Ten-GigabitEthernet1/0/31
Port description : Ten-GigabitEthernet1/0/31 Interface
Management address type : ipv4
Management address : 192.168.11.55
Management address interface type : IfIndex
Management address interface ID : 35
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 0
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(10000)/duplex(Full)
PoE supported: No
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 33
Maximum frame Size: 10000
MED information
Media policy type : Unknown
Unknown Policy : Yes
VLAN tagged : No
Media policy VlanID : 0
Media policy L2 priority : 0
Media policy Dscp : 0
LLDP local-information of port 32[Ten-GigabitEthernet1/0/32]:
Port ID subtype : Interface name
Port ID : Ten-GigabitEthernet1/0/32
Port description : Ten-GigabitEthernet1/0/32 Interface
Management address type : ipv4
Management address : 192.168.11.55
Management address interface type : IfIndex
Management address interface ID : 35
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 0
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(10000)/duplex(Full)
PoE supported: No
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 34
Maximum frame Size: 10000
MED information
Media policy type : Unknown
Unknown Policy : Yes
VLAN tagged : No
Media policy VlanID : 0
Media policy L2 priority : 0
Media policy Dscp : 0
Table 1 Command output
Field |
Description |
Global LLDP local-information |
Global LLDP information to be sent. |
Chassis ID |
Bridge MAC address of the device. |
System capabilities supported |
Supported capabilities: · Bridge—Switching is supported. · Router—Routing is supported. |
System capabilities enabled |
Enabled capabilities: · Bridge—Switching is enabled. · Router—Routing is enabled. |
Device class |
MED device class: · Connectivity device—Network device. · Class I—Normal terminal device. It requires the basic LLDP discovery services. · Class II—Media terminal device. It supports media streams and can also function as a normal terminal device. · Class III—Communication terminal device. It supports the IP communication systems of end users and can also function as a normal terminal device or media terminal device. |
MED inventory information of master board |
MED asset information of the main processing unit. |
HardwareRev |
Hardware version. |
FirmwareRev |
Firmware version. |
SoftwareRev |
Software version. |
SerialNum |
Serial number. |
Manufacturer name |
Device manufacturer. |
Model name |
Device model. |
LLDP local-information of port 1 |
LLDP information to be sent out of port 1. |
Port ID subtype |
Port ID type: MAC address or interface name. |
Port ID |
Port ID, the value of which depends on the port ID subtype. |
Management address interface type |
Numbering type of the interface identified by the management address. |
Management address interface ID |
Index of the interface identified by the management address. |
Management address OID |
Management address object ID. |
Port and protocol VLAN ID(PPVID) |
Port protocol VLAN ID. |
Port and protocol VLAN supported |
Indicates whether protocol VLAN is supported on the port. |
Port and protocol VLAN enabled |
Indicates whether protocol VLAN is enabled on the port. |
VLAN name of VLAN 1 |
Name of VLAN 1. |
Auto-negotiation supported |
Indicates whether auto-negotiation is supported on the port. |
Auto-negotiation enabled |
Indicates whether auto-negotiation is enabled on the port. |
OperMau |
Speed and duplex state of the port. |
PoE supported |
Indicates whether PoE is supported on the port. The WX5540E switch engine does not support PoE. |
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. |
MED information |
MED LLDP information. |
Media policy type |
Media policy type: · unknown. · 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. |
Media Policy L2 priority |
Layer 2 priority. |
Media Policy Dscp |
DSCP precedence. |
display lldp neighbor-information
Use display lldp neighbor-information to display the LLDP information carried in LLDP TLVs sent from the neighboring devices.
Syntax
display lldp neighbor-information [ brief | interface interface-type interface-number [ brief ] | list [ system-name system-name ] ] [ | { begin | exclude | include } regular-expression ]
Views
Any view
Default command level
1: Monitor level
Parameters
brief: Displays the summary of LLDP information sent from the neighboring devices. If this keyword is not specified, this command displays detailed LLDP information sent from the neighboring devices.
interface interface-type interface-number: Displays the LLDP information sent from the neighboring devices received through a port specified by its type and number. If this option is not specified, this command displays the LLDP information sent from the neighboring devices received through all ports.
list: Displays the LLDP information sent from the neighboring devices in the form of a list.
system-name system-name: Displays the LLDP information sent from a neighboring device specified by its system name. The system-name argument is a character string of 1 to 255 characters. If this option is not specified, this command displays the LLDP information sent from all neighboring devices in a list.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Usage guidelines
After the device is enabled with CDP compatibility, this command can display CDP information sent from CDP neighbors.
Examples
# Display the LLDP information sent from the neighboring devices received through all ports.
<Sysname> display lldp neighbor-information
LLDP neighbor-information of port 12[GigabitEthernet1/0/12]:
Neighbor index : 1
Update time : 7 days,16 hours,22 minutes,38 seconds
Chassis type : MAC address
Chassis ID : 00e0-fc00-3623
Port ID type : Interface name
Port ID : GigabitEthernet1/0/1
Port description : GigabitEthernet1/0/1 Interface
System name : H3C
System description : H3C Switch WX3024E-LSW Software Version 5.20, Release 3308P22
Copyright(c) 2004-2013 Hangzhou H3C Tech. Co., Ltd. All rights reserved.
System capabilities supported : Bridge,Router
System capabilities enabled : Bridge,Router
Management address type : ipv4
Management address : 140.100.1.100
Management address interface type : IfIndex
Management address interface ID : 33
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 0
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 : PSE
PSE power supported : Yes
PSE power enabled : Yes
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame Size: 10240
# Display the LLDP information sent from all neighboring devices in a list.
<Sysname> display lldp neighbor-information list
System Name Local Interface Chassis ID Port ID
System1 GE1/0/1 000f-e25d-ee91 GigabitEthernet1/0/5
System2 GE1/0/2 000f-e25d-ee92 GigabitEthernet1/0/6
System3 GE1/0/3 000f-e25d-ee93 GigabitEthernet1/0/7
Table 2 Command output
Field |
Description |
Information about LLDP neighbors: |
|
LLDP neighbor-information of port 1 |
LLDP information received through port 1. |
Neighbor index |
Index of the LLDP neighboring device. |
Update time |
Time when LLDP information about a neighboring device was last updated. |
Chassis type |
Chassis ID type of the LLDP neighboring device: · Chassis component. · Interface alias. · Port component. · MAC address. · Network address (ipv4). · Interface name. · Locally assigned—Locally-defined chassis type other than those listed above. |
Chassis ID |
Chassis ID of the LLDP neighboring device, whose value type is the chassis ID type. |
Port ID type |
ID type of the port that connects the LLDP neighboring device to the local device: · Interface alias. · Port component. · MAC address. · Network address (ipv4). · Interface name. · Agent circuit ID. · Locally assigned—Locally-defined port ID type other than those listed above. |
Port ID |
ID of the port that connects the LLDP neighboring device to the local device, whose type is the port ID type. |
Port description |
Description of the port that connects the LLDP neighboring device to the local device. |
System name |
System name of the LLDP neighboring device. If the system name of a neighboring device cannot be identified by the local device, this field displays a hyphen (-). In this case, you cannot display information about the neighboring device by using the display lldp neighbor-information list system-name system-name command. |
System description |
System description of the LLDP neighboring device. |
System capabilities supported |
Capabilities supported on the LLDP neighboring device: · Repeater—Signal repeating is supported. · Bridge—Switching is supported. · Router—Routing is supported. |
System capabilities enabled |
Capabilities enabled on the LLDP neighboring device: · Repeater—Signal repeating is enabled. · Bridge—Switching is enabled. · Router—Routing is enabled. |
Management address type |
Management address type of the port that connects the LLDP neighboring device to the local device. |
Management address |
Management address of the port that connects the LLDP neighboring device to the local device. |
Management address interface type |
Management address interface type of the port that connects the LLDP neighboring device to the local device. |
Management address interface ID |
Management address interface ID of the port that connects the LLDP neighboring device to the local device. |
Management address OID |
Management address object ID of the port that connects the LLDP neighboring device to the local device. |
Port VLAN ID |
Port VLAN ID of the port that connects the LLDP neighboring device to the local device. |
Port and protocol VLAN ID(PPVID) |
Port protocol VLAN ID of the port that connects the LLDP neighboring device to the local device. |
Port and protocol VLAN supported |
Indicates whether protocol VLAN is supported on the port that connects the LLDP neighboring device to the local device. |
Port and protocol VLAN enabled |
Indicates whether protocol VLAN is enabled on the port that connects the LLDP neighboring device to the local device. |
VLAN name of VLAN 1 |
Name of VLAN 1. |
Auto-negotiation supported |
Indicates whether auto-negotiation is supported on the port that connects the LLDP neighboring device to the local device. |
Auto-negotiation enabled |
Indicates whether auto-negotiation is enabled on the port that connects the LLDP neighboring device to the local device. |
OperMau |
Speed and duplex state on the port that connects the LLDP neighboring device to the local device. |
Power port class |
PoE device type of the LLDP neighboring device: · PSE—The LLDP neighboring device is a PSE device. · PD—The LLDP neighboring device is a powered device (a PD device or non-PSE device). |
PSE power supported |
Indicates whether the LLDP neighboring device can operate as a PSE device. |
PSE power enabled |
Indicates whether the LLDP neighboring device is operating as a PSE device. |
PSE pairs control ability |
Indicates whether the PSE-PD pair control is available on the LLDP neighboring device. |
Power pairs |
PoE mode of the LLDP neighboring device: · Signal—PoE via signal lines. · Spare—PoE via spare lines. |
Port power classification |
Port power classification of the PD of the LLDP neighboring device: · Class 0. · Class 1. · Class 2. · Class 3. · Class 4. |
Link aggregation supported |
Indicates whether link aggregation is supported on the port that connects the LLDP neighboring device to the local device. |
Link aggregation enabled |
Indicates whether link aggregation is enabled. |
Aggregation port ID |
Aggregation group ID, which is 0 when link aggregation is disabled. |
Maximum frame size |
Maximum frame size of the port that connects the LLDP neighboring device to the local device. |
Location format |
Location information format of the neighboring device which is a communication terminal with the MED device type being Class III, for example, an IP phone: · Invalid—The format of the location information is invalid. · Coordinate-based LCI—The location information is coordinate-based. · Civic Address LCI—Typical address information. · ECS ELIN—Telephone for urgencies. |
Location information |
Location information of the neighboring device which is a communication terminal with the MED device type being Class III, for example, an IP phone. |
PoE PSE power source |
PSE power type of an LLDP neighboring device which is a PSE device: · Unknown—Unknown power supply. · Primary—Primary power supply. · Backup—Backup power supply. |
PoE PD power source |
PD power type of an LLDP neighboring device which is a PD device: · Unknown—Unknown power supply. · PSE—PSE power supply. · Local—Local power supply. · PSE and local—PSE and local power supplies. |
Port PSE Priority |
PoE power supply priority of ports on an LLDP neighboring device which is a PSE device: · Unknown. · Critical. · High. · Low. |
Port PD Priority |
PoE power receiving priority of ports on an LLDP neighboring device which is a PD device: · Unknown. · Critical. · High. · Low. |
Port available power value |
· Power supplied to the port when the LLDP neighboring device is a PSE device, in watts. · Power supplied by the port when the LLDP neighboring device is a PD device, in watts. |
TLV type |
This field appears only when the device receives unknown basic TLVs. Unknown basic TLV type. |
TLV information |
This field appears only when the device receives unknown basic TLVs. Information contained in the unknown basic TLV type. |
Unknown organizationally-defined TLV |
This field appears only when the device receives unknown organizationally specific TLVs. Unknown organizationally specific TLV. |
TLV OUI |
This field appears only when the device receives unknown organizationally specific TLVs. OUI of the unknown organizationally specific TLV. |
TLV subtype |
This field appears only when the device receives unknown organizationally specific TLVs. Unknown organizationally specific TLV subtype. |
Index |
This field appears only when the device receives unknown organizationally specific TLVs. Unknown organization index. |
TLV information |
This field appears only when the device receives unknown organizationally specific TLVs. Information contained in unknown organizationally specific TLV. |
Local Interface |
Local port that receives the LLDP information. |
Information about CDP neighbors: |
|
CDP neighbor-information of port 2 |
CDP information received through port 2. |
CDP neighbor index |
Index of the CDP neighboring device. |
Chassis ID |
Name of the CDP neighboring device. |
Address |
IPv4 address of the port that connects the CDP neighboring device to the local device. |
Port ID |
ID of the port that connects the CDP neighboring device to the local device. |
Software version |
Software version of the CDP neighboring device. |
Platform |
Model of the CDP neighboring device. |
Duplex |
Duplex state of the port that connects the CDP neighboring device to the local device. |
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
1: Monitor level
Parameters
global: Displays the global LLDP statistics.
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.
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 no keyword or argument is specified, this command displays the global LLDP statistics and the LLDP statistics of all ports.
Examples
# Display the global LLDP statistics and the LLDP statistics of all ports.
<Sysname> display lldp statistics
LLDP statistics global Information:
LLDP neighbor information last change time:0 days,0 hours,4 minutes,40 seconds
The number of LLDP neighbor information inserted : 1
The number of LLDP neighbor information deleted : 1
The number of LLDP neighbor information dropped : 0
The number of LLDP neighbor information aged out : 1
LLDP statistics information of port 1 [GigabitEthernet1/0/1]:
The number of LLDP frames transmitted : 0
The number of LLDP frames received : 0
The number of LLDP frames discarded : 0
The number of LLDP error frames : 0
The number of LLDP TLVs discarded : 0
The number of LLDP TLVs unrecognized : 0
The number of LLDP neighbor information aged out : 0
The number of CDP frames transmitted : 0
The number of CDP frames received : 0
The number of CDP frames discarded : 0
The number of CDP error frames : 0
Detailed terminal display is not shown.
Table 3 Command output
Field |
Description |
LLDP statistics global information |
Global LLDP statistics. |
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. |
The number of LLDP neighbor information dropped |
Number of times of dropping neighbor information due to lack of available memory space. |
display lldp status
Use display lldp status to display LLDP status information of a port.
Syntax
display lldp status [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
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.
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 no port is specified, this command displays the global LLDP status and the LLDP status information for all ports.
Examples
# Display the global LLDP status and the LLDP status information of all ports.
<Sysname> display lldp status
Global status of LLDP: Enable
The current number of LLDP neighbors: 0
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days,0 hours,4 minutes,40 seconds
Transmit interval : 30s
Hold multiplier : 4
Reinit delay : 2s
Transmit delay : 2s
Trap interval : 5s
Fast start times : 3
Port 1 [GigabitEthernet1/0/1]:
Port status of LLDP : Enable
Admin status : Tx_Rx
Trap flag : No
Polling interval : 0s
Number of neighbors : 0
Number of MED neighbors : 0
Number of CDP neighbors : 0
Number of sent optional TLV : 23
Number of received unknown TLV : 0
Detailed terminal display is not shown.
Table 4 Command output
Field |
Description |
Global status of LLDP |
Indicates whether LLDP is globally enabled. |
LLDP neighbor information last changed time |
Time when the neighbor information was last updated. |
Transmit interval |
LLDPDU transmit interval. |
Hold multiplier |
TTL multiplier. |
Reinit delay |
LLDP re-initialization delay. |
Transmit delay |
LLDPDU transmit delay. |
Trap interval |
Trap transmit interval. |
Fast start times |
Number of LLDPDUs sent each time fast LLDPDU transmission is triggered. |
Port 1 |
LLDP status of port 1. |
Port status of LLDP |
Indicates whether LLDP is enabled on the port. |
Admin status |
LLDP mode of the port: · TxRx—The port sends and receives LLDPDUs. · Rx_Only—The port only receives LLDPDUs. · Tx_Only—The port only sends LLDPDUs. · Disable—The port does not send or receive LLDPDUs. |
Trap Flag |
Indicates whether trapping is enabled. |
Polling interval |
LLDP polling interval, which is 0 when LLDP polling is disabled. |
Number of neighbors |
Number of LLDP neighbors connecting to the port. |
Number of MED neighbors |
Number of MED neighbors connecting to the port. |
Number of CDP neighbors |
Number of CDP neighbors connecting to the port. |
Number of sent optional TLV |
Number of optional TLVs contained in an LLDPDU sent through the port. |
Number of received unknown TLV |
Number of unknown TLVs contained in all received LLDPDUs. |
display lldp tlv-config
Use display lldp tlv-config to display the types of advertisable optional LLDP TLVs of a port.
Syntax
display lldp tlv-config [ interface interface-type interface-number ] [ | { begin | exclude | include } regular-expression ]
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.
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 no port is specified, this command displays the types of advertisable optional TLVs of each port.
Examples
# Display the types of advertisable optional LLDP TLVs of interface GigabitEthernet 1/0/1.
<Sysname> display lldp tlv-config interface gigabitethernet 1/0/1
LLDP tlv-config of port 1[GigabitEthernet1/0/1]:
NAME STATUS DEFAULT
Basic optional TLV:
Port Description TLV YES YES
System Name TLV YES YES
System Description TLV YES YES
System Capabilities TLV YES YES
Management Address TLV YES YES
IEEE 802.1 extend TLV:
Port VLAN ID TLV YES YES
Port And Protocol VLAN ID TLV YES YES
VLAN Name TLV YES YES
IEEE 802.3 extend TLV:
MAC-Physic TLV YES YES
Power via MDI TLV YES YES
Link Aggregation TLV YES YES
Maximum Frame Size TLV YES YES
LLDP-MED extend TLV:
Capabilities TLV YES YES
Network Policy TLV YES YES
Location Identification TLV NO NO
Extended Power via MDI TLV YES YES
Inventory TLV YES YES
Table 5 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. |
DEFAULT |
Indicates whether a specific type of TLV is sent through a port by default. |
Basic optional TLV |
Basic TLVs: · Port description TLV. · System name TLV. · System description TLV. · System capabilities TLV. · Management address TLV. |
IEEE 802.1 extended TLV |
IEEE 802.1 organizationally specific TLVs: · Port VLAN ID TLV. · Port and protocol VLAN ID TLV. · VLAN name TLV. |
IEEE 802.3 extended TLV |
IEEE 802.3 organizationally specific TLVs: · MAC-Physic TLV. · Power via MDI TLV. · Link aggregation TLV. · Maximum frame size TLV. |
LLDP-MED extend TLV |
LLDP-MED TLVs: · Capabilities TLV. · Network Policy TLV. · Extended Power-via-MDI TLV. · Location Identification TLV. · Inventory TLV: hardware revision TLV, firmware revision TLV, software revision TLV, serial number TLV, manufacturer name TLV, model name TLV, and asset ID TLV. |
lldp admin-status
Use lldp admin-status to specify the LLDP operating mode for a port or all ports in a port group.
Use undo lldp admin-status to restore the default LLDP operating mode.
Syntax
lldp admin-status { disable | rx | tx | txrx }
undo lldp admin-status
Default
The LLDP operating mode is TxRx.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
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. A port in this mode sends and receives LLDPDUs.
Examples
# Configure the LLDP operating mode as Rx for GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp admin-status rx
lldp check-change-interval
Use lldp check-change-interval to enable LLDP polling and to set the polling interval.
Use undo lldp check-change-interval to restore the default.
Syntax
lldp check-change-interval interval
undo lldp check-change-interval
Default
LLDP polling is disabled.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
Parameters
interval: Sets the LLDP polling interval, ranging from 1 to 30 seconds.
Examples
# Enable LLDP polling on GigabitEthernet 1/0/1, setting the polling interval to 30 seconds.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp check-change-interval 30
lldp compliance admin-status cdp
Use lldp compliance admin-status cdp to configure the operating mode of CDP-compatible LLDP on a port or all ports in a port group.
Use undo lldp compliance admin-status cdp to restore the default.
Syntax
lldp compliance admin-status cdp { disable | txrx }
undo lldp compliance admin-status cdp
Default
CDP-compatible LLDP operates in disable mode.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
Parameters
disable: Specifies the disable mode, where CDP-compatible LLDP cannot receive or transmit CDP packets.
txrx: Specifies the TxRx mode, where CDP-compatible LLDP can send and receive CDP packets.
Usage guidelines
For your device to work with Cisco IP phones, you must enable CDP-compatible LLDP globally, and then configure CDP-compatible LLDP to operate in TxRx mode on the specified ports.
Examples
# Configure CDP-compatible LLDP to operate in TxRx mode on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp compliance admin-status cdp txrx
Related commands
lldp compliance cdp
lldp compliance cdp
Use lldp compliance cdp to enable global CDP compatibility.
Use undo lldp compliance cdp to restore the default.
Syntax
lldp compliance cdp
undo lldp compliance cdp
Default
CDP compatibility is globally disabled.
Views
System view
Default command level
2: System level
Usage guidelines
Because the maximum TTL allowed by CDP is 255 seconds, the TTL configuration must 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.
Examples
# Enable LLDP to be compatible with CDP globally.
<Sysname> system-view
[Sysname] lldp compliance cdp
Related commands
· lldp hold-multiplier
· lldp timer tx-interval
lldp enable
Use lldp enable to enable LLDP.
Use undo lldp enable to disable LLDP.
Syntax
lldp enable
undo lldp enable
Default
LLDP is enabled both globally and on ports.
Views
System view, Layer 2 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 GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] undo lldp enable
lldp encapsulation snap
Use lldp encapsulation snap to configure the encapsulation format for LLDPDUs as SNAP on a port or a group of ports.
Use undo lldp encapsulation to restore the default encapsulation format for LLDPDUs.
Syntax
lldp encapsulation snap
undo lldp encapsulation
Default
Ethernet II is the encapsulation format for LLDPDUs.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
Usage guidelines
The command does not apply to LLDP-CDP packets, which use only SNAP encapsulation.
Examples
# Configure the encapsulation format for LLDPDUs as SNAP on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp encapsulation snap
lldp fast-count
Use lldp fast-count to set the number of the LLDPDUs sent each time fast LLDPDU transmission is triggered.
Use undo lldp fast-count to restore the default.
Syntax
lldp fast-count count
undo lldp fast-count
Default
The number is 3.
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 argument ranges from 1 to 10.
Examples
# Configure the device to send four LLDPDUs each time fast LLDPDU transmission is triggered.
<Sysname> system-view
[Sysname] lldp fast-count 4
lldp hold-multiplier
Use lldp hold-multiplier to set the TTL multiplier.
Use undo lldp hold-multiplier to restore the default.
Syntax
lldp hold-multiplier value
undo lldp hold-multiplier
Default
The TTL multiplier is 4.
Views
System view
Default command level
2: System level
Parameters
value: Sets the TTL multiplier, ranging from 2 to 10.
Usage guidelines
You can set the TTL of the local device information by configuring the TTL multiplier.
The TTL configuration of a device is determined by the expression:
TTL multiplier × LLDPDU transmit interval
The TTL can be up to 65535 seconds. Longer TTLs is rounded off to 65535 seconds.
Examples
# Set the TTL multiplier to 6.
<Sysname> system-view
[Sysname] lldp hold-multiplier 6
Related commands
lldp timer tx-interval
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, port group view
Default command level
2: System level
Examples
# Configure GigabitEthernet 1/0/1 to encapsulate the management address in the form of strings in management address TLVs.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp management-address-format string
lldp management-address-tlv
Use lldp management-address-tlv to enable management address advertising and set the management address.
Use undo lldp management-address-tlv to disable management address advertising in LLDPDUs.
Syntax
lldp management-address-tlv [ ip-address ]
undo lldp management-address-tlv
Default
The management address is advertised through LLDPDUs. For a Layer 2 Ethernet port, the management address is the main IP address of the lowest-ID VLAN carried on the port. If none of the carried VLANs is assigned an IP address, no management addresses are advertised.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
Parameters
ip-address: Specifies a management address to be advertised in LLDPDUs.
Usage guidelines
An LLDPDU carries only one management address TLV. If you set mutliple management addresses, the most recent setting takes effect.
In Layer 2 Ethernet interface view, if you use 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. If none of the carried VLANs is assigned an IP address, no management addresses are advertised.
Examples
# Set the management address to 192.6.0.1 for GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp management-address-tlv 192.6.0.1
lldp notification remote-change enable
Use lldp notification remote-change enable to enable LLDP trapping for a port or all ports in a port group.
Use undo lldp notification remote-change enable to disable LLDP trapping.
Syntax
lldp notification remote-change enable
undo lldp notification remote-change enable
Default
LLDP trapping is disabled on ports.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
Examples
# Enable LLDP trapping for GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp notification remote-change enable
lldp timer notification-interval
Use lldp timer notification-interval to set the LLDP trap transmit interval.
Use undo lldp timer notification-interval to restore the default.
Syntax
lldp timer notification-interval interval
undo lldp timer notification-interval
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, ranging from 5 to 3600 seconds.
Examples
# Set the LLDP trap transmit interval to 8 seconds.
<Sysname> system-view
[Sysname] lldp timer notification-interval 8
lldp timer reinit-delay
Use lldp timer reinit-delay to set the LLDP re-initialization delay.
Use undo lldp timer reinit-delay to restore the default.
Syntax
lldp timer reinit-delay delay
undo lldp timer reinit-delay
Default
The LLDP re-initialization delay is 2 seconds.
Views
System view
Default command level
2: System level
Parameters
delay: Sets the LLDP re-initialization delay, ranging from 1 to 10 seconds.
Examples
# Set the LLDP re-initialization delay to 4 seconds.
<Sysname> system-view
[Sysname] lldp timer reinit-delay 4
lldp timer tx-delay
Use lldp timer tx-delay to set the LLDPDU transmit delay.
Use undo lldp timer tx-delay to restore the default.
Syntax
lldp timer tx-delay delay
undo lldp timer tx-delay
Default
The LLDPDU transmit delay is 2 seconds.
Views
System view
Default command level
2: System level
Parameters
delay: Sets the LLDPDU transmit delay, ranging from 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.
If the LLDPDU transmit delay is greater than the LLDPDU transmit interval, the device uses the LLDPDUs transmit delay as the transmit interval.
Examples
# Set the LLDPDU transmit delay to 4 seconds.
<Sysname> system-view
[Sysname] lldp timer tx-delay 4
Related commands
lldp timer tx-interval
lldp timer tx-interval
Use lldp timer tx-interval to set the LLDPDU transmit interval.
Use undo lldp timer tx-interval to restore the default.
Syntax
lldp timer tx-interval interval
undo lldp timer tx-interval
Default
The LLDPDU transmit interval is 30 seconds.
Views
System view
Default command level
2: System level
Parameters
interval: Sets the LLDPDU transmit interval, ranging from 5 to 32768 seconds.
Usage guidelines
It is a good practice to set the LLDPDU transmit interval to be no less than four times the LLDPDU transmit delay.
If the LLDPDU transmit interval is less than the LLDPDU transmit delay, the device uses the LLDPDUs transmit delay as the transmit interval.
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.
Syntax
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } | network-policy | power-over-ethernet } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id | vlan-name } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id | network-policy | power-over-ethernet } }
Default
The device can advertise on a Layer 2 Ethernet port all types of LLDP TLVs, except location identification TLVs.
Views
Layer 2 Ethernet interface view, port group view
Default command level
2: System level
Parameters
all: Advertises all basic LLDP TLVs, IEEE 802.1 organizationally specific LLDP TLVs, or IEEE 802.3 organizationally specific LLDP TLVs when the all keyword is specified for basic-tlv, dot1-tlv, or dot3-tlv in Layer 2 Ethernet interface view; or advertises all LLDP-MED TLVs except location identification TLVs when the all keyword is specified for med-tlv in Layer 2 Ethernet interface view.
basic-tlv: Advertises basic LLDP TLVs.
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, ranges from 1 to 4094, and defaults to the lowest VLAN ID on the port.
vlan-name [ vlan-id ]: Advertises VLAN name TLVs. The vlan-id argument specifies a VLAN ID in the TLVs to be advertised, ranges from 1 to 4094, and defaults to the lowest VLAN ID on the port.
dot3-tlv: Advertises IEEE 802.3 organizationally specific LLDP TLVs.
link-aggregation: Advertises link aggregation TLVs.
mac-physic: Advertises MAC/PHY configuration/status TLVs.
max-frame-size: Advertises maximum frame size TLVs.
power: Advertises power via MDI TLVs and power stateful control TLVs.
med-tlv: Advertises LLDP-MED TLVs.
capability: Advertises LLDP-MED capabilities TLVs.
inventory: Advertises the following TLVs: hardware revision, firmware revision, software revision, serial number, manufacturer name, model name, and asset ID.
location-id: Advertises location identification TLVs.
civic-address: Inserts the normal address information about the network device in location identification TLVs .
device-type: Sets a device type value, ranging from 0 to 2. Value 0 specifies a DHCP server. Value 1 specifies a switch. Value 2 specifies an LLDP-MED endpoint.
country-code: Sets a country code, corresponding to ISO 3166.
{ ca-type ca-value }&<1-10>: Configures address information, where ca-type represents the address information type, ranging from 0 to 255, ca-value represents address information, a string of 1 to 250 characters, and &<1-10> indicates that you can enter up to 10 parameters.
elin-address: Inserts telephone numbers for emergencies in location identification TLVs.
tel-number: Sets the telephone number for emergencies, a string of 10 to 25 characters.
network-policy: Advertises network policy TLVs.
power-over-ethernet: Advertises extended power-via-MDI TLVs.
Usage guidelines
To enable the device to advertise LLDP-MED TLVs, you must first enable it to advertise LLDP-MED capabilities TLVs.
To disable the device from advertising LLDP-MED capabilities TLVs, you must first disable it from advertising other LLDP-MED TLVs.
To disable the device from advertising MAC/PHY configuration/status TLVs, you must first disable it from advertising LLDP-MED capabilities TLVs.
If you enable the device to advertise LLDP-MED capabilities TLVs, you also enable it to advertise MAC/PHY configuration/status TLVs.
To enable the device to advertise multiple types of TLVs, you can execute the lldp tlv-enable command repeatedly without the all keyword specified.
Examples
# Enable the device to advertise link aggregation TLVs of the IEEE 802.3 organizationally specific TLVs on GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] lldp tlv-enable dot3-tlv link-aggregation
voice vlan track lldp
Use voice vlan track lldp to enable LLDP to automatically discover IP phones.
Use undo voice vlan track lldp to disable LLDP from automatically discovering IP phones.
Syntax
voice vlan track lldp
undo voice vlan track lldp
Default
LLDP is disabled from automatically discovering IP phones.
View
System view
Default level
2: System level
Parameters
None
Examples
# Enable the switch to automatically discover IP phones through LLDP.
<Sysname> system-view
[Sysname] voice vlan track lldp