- Table of Contents
-
- 01-Access Volume
- 00-Access Volume Organization
- 01-Ethernet Interface Commands
- 02-Link Aggregation Commands
- 03-Port Isolation Commands
- 04-Service Loopback Group Commands
- 05-DLDP Commands
- 06-Smart Link Commands
- 07-LLDP Commands
- 08-VLAN Commands
- 09-GVRP Commands
- 10-QinQ Commands
- 11-BPDU Tunneling Commands
- 12-VLAN Mapping Commands
- 13-Ethernet OAM Commands
- 14-Connectivity Fault Detection Commands
- 15-EPON OLT Commands
- 16-MSTP Commands
- 17-RRPP Commands
- 18-Mirroring Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
07-LLDP Commands | 118.3 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
1 LLDP Configuration Commands
LLDP Configuration Commands
display lldp local-information
Syntax
display lldp local-information [ global | interface interface-type interface-number ]
View
Any view
Default level
1: Monitor level
Parameters
global: Displays the global LLDP information.
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp local-information command to display the global LLDP information or the information contained in the LLDP TLVs to be sent to neighboring devices through a port.
If no keyword or argument is specified, this command displays all the LLDP information to be sent, including the global LLDP information and the LLDP information about the LLDP-enabled ports.
Examples
# Display all the LLDP information to be sent.
<Sysname> display lldp local-information
Global LLDP local-information:
Chassis ID : 000f-e218-d0d1
System name : H3C
System description : R&D Hangzhou H3C Technologies Co., Ltd.
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 : 202
SoftwareRev : S7500E-CMW520-0000
SerialNum : Unknown
Manufacturer name : Unknown
Model name : Unknown
Asset tracking identifier : Unknown
LLDP local-information of port 97[GigabitEthernet2/0/1]:
Port ID subtype : Interface name
Port ID : GigabitEthernet2/0/1
Port description : GigabitEthernet2/0/1 Interface
Management address type : ipV4
Management address : 192.168.0.72
Management address interface type : IfIndex
Management address interface ID : 51
Management address OID : 0
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(100)/duplex(Full)
Power port class : PSE
PSE power supported : Yes
PSE power enabled : No
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: 1536
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
PoE PSE power source : Primary
Port PSE Priority : Low
Port Available power value: 15.4(w)
Table 1-1 display lldp local-information command output description
Field |
Description |
Global LLDP local-information |
The global LLDP information |
Chassis ID |
ID that identifies the LLDP sending device |
System name |
System name of the device |
System description |
System description |
System capabilities supported |
Supported capabilities, which can be: l Bridge, indicating switching l Router, indicating routing |
System capabilities enabled |
Currently enabled capabilities, which can be: l Bridge, indicating switching is currently enabled. l Router, indicating routing is currently enabled. |
PoE device type |
PoE device type |
MED information |
MED information |
Device class |
MED device type, which can be: l Connectivity device, indicating an intermediate device. l Class I, indicating a normal terminal device. All terminal devices that are LLDP-enabled are of this type. l Class II, indicating a media terminal device. A device of this type is media-capable. That is, besides the capabilities of a normal terminal device, it also supports media stream. l Class III, indicating a communication terminal device. A device of this type supports IP communication systems of end user. A device of this type supports all the capabilities of a normal terminal device and a media terminal device and can be used directly by end users. |
(MED inventory information of master board) |
MED inventory information of the master board |
HardwareRev |
Hardware version |
FirmwareRev |
Firmware version |
SoftwareRev |
Software version |
SerialNum |
Serial number |
Manufacturer name |
Device manufacturer |
Model name |
Device model |
Asset tracking identifier |
Asset tracking ID |
LLDP local-information of port number interface-type interface-number |
LLDP information about a port |
Port ID subtype |
Port ID type, which can be MAC address or interface name |
Port ID |
Port ID, the value of which depends on the port ID type |
Port description |
Port description |
Management address type |
Management address type |
Management address |
Management address |
Management address interface type |
Type of the interface identified by the management address |
Management address interface ID |
ID 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 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 ID |
Name of the VLAN identified by the VLAN ID |
Auto-negotiation supported |
Indicates whether auto-negotiation is supported on the port. |
Auto-negotiation enabled |
State of auto-negotiation |
OperMau |
Current speed and duplex state of the port |
Power port class |
PoE device type, which can be : l PSE, indicating a power supply device l PD, indicating a powered device |
PSE power supported |
Indicates whether or not the device can operate as a PSE. |
PSE power enabled |
Indicates whether or not the device is operating as a PSE. |
PSE pairs control ability |
Indicates whether or not the PSE-PD pair control is available. |
Power pairs |
PoE mode, which can be Signal or Spare. |
Port power classification |
Port power classification of the PD, which can be: l Class0 l Class1 l Class2 l Class3 l Class4 |
Link aggregation supported |
Indicates whether or not link aggregation is supported. |
Link aggregation enabled |
Indicates whether or not link aggregation is enabled. |
Aggregation port ID |
Aggregation group ID, which is 0 if link aggregation is not enabled. |
Maximum frame Size |
Maximum frame size supported |
MED information |
MED LLDP information |
Media policy type |
Media policy type, which can be: l unknown l voice l voiceSignaling l guestVoice l guestVoiceSignaling l softPhoneVoice l videoconferencing l streamingVideo l videoSignaling |
Unknown Policy |
Indicates whether or not the media policy is unknown. |
VLAN tagged |
Indicates whether packets of the voice VLAN are tagged. |
Media Policy VlanID |
ID of the voice VLAN |
Media Policy L2 priority |
Layer 2 priority |
Media Policy Dscp |
DSCP precedence |
Location format |
Location format, which can be: l Invalid, indicating the format of the location information is invalid. l Coordinate-based LCI, indicating the location information is coordinate-based. l Civic Address LCI, indicating normal address information. l ECS ELIN, indicating telephone number for urgencies. |
Location Information |
Location information |
PoE PSE power source |
PSE type, which can be: l Primary, indicating a primary power supply l Backup, indicating a backup power supply |
Port PSE Priority |
Port PSE priority, which can be : l Unknown l Critical l High l Low |
Port Available power value |
PoE power |
display lldp neighbor-information
Syntax
display lldp neighbor-information [ interface interface-type interface-number ] [ brief ]
View
Any view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
brief: Displays the LLDP information in brief.
Description
Use the display lldp neighbor-information command to display the LLDP information about the neighboring devices received through a port.
With no keyword/argument specified, this command displays the LLDP information received through all the ports.
Examples
# Display the LLDP information received through all the ports.
<Sysname> display lldp neighbor-information
LLDP neighbor-information of port 144[GigabitEthernet2/0/48]:
Neighbor index : 1
Update time : 0 days,1 hours,45 minutes,4 seconds
Chassis type : MAC address
Chassis ID : 000f-e22e-972b
Port ID type : Interface name
Port ID : GigabitEthernet3/0/48
Port description : GigabitEthernet3/0/48 Interface
System name : H3C
System description : R&D Hangzhou H3C Technologies Co., Ltd.
System capabilities supported : Bridge,Router
System capabilities enabled : Bridge,Router
Management address type : ipV4
Management address : 192.168.0.74
Management address interface type : IfIndex
Management address interface ID : 347
Management address OID : 0
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 : PSE
PSE power supported : Yes
PSE power enabled : No
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: 1536
Table 1-2 display lldp neighbor-information command output description
Field |
Description |
LLDP neighbor-information |
LLDP information about a neighboring device |
LLDP neighbor-information of Port number interface-type interface number |
LLDP information received through a specific port |
Neighbor index |
Neighbor index |
Update time |
Time when the LLDP information about a neighboring device is latest updated. |
Chassis type |
Chassis information, which can be: l Chassis component l Interface alias l Port component l MAC address l Network address l Interface name l Locally assigned (indicating the local configuration) |
Chassis ID |
ID that identifies the LLDP sending device, which can be a MAC address, a network address, an interface or some other value depending on the chassis type. |
Port ID type |
Port information, which can be: l Interface alias l Port component l MAC address l Network Address l Interface name l Agent circuit ID l Locally assigned (indicating the local configuration) |
Port ID |
Port ID, the value of which depends on the port ID type |
Port description |
Port description |
System name |
System name of the neighboring device |
System description |
System description of the neighboring device |
System capabilities supported |
Capabilities supported on the neighboring device, which can be: l Bridge, indicating switching l Router, indicating routing |
System capabilities enabled |
Capabilities currently enabled on the neighboring device, which can be: l Bridge, indicating switching is currently enabled. l Router, indicating routing is currently enabled. |
Management address type |
Management address type |
Management address |
Management address |
Management address interface type |
Type of the interface identified by the management address |
Management address interface ID |
Management address interface ID |
Management address OID |
Management address object ID |
Port VLAN ID |
Port VLAN ID |
Port and protocol VLAN ID(PPVID) |
Port protocol VLAN ID |
Port and protocol VLAN supported |
Indicates whether protocol VLAN is supported. |
Port and protocol VLAN enabled |
Indicates whether protocol VLAN is enabled. |
VLAN name of VLAN 1 |
Name of he port VLAN |
Auto-negotiation supported |
Indicates whether auto-negotiation is supported. |
Auto-negotiation enabled |
State of auto-negotiation |
OperMau |
Current speed and duplex state |
Power port class |
PoE device type, which can be: l PSE, indicating a power supply device. l PD, indicating a powered device. |
PSE power supported |
Indicates whether or not the device can operate as a PSE. |
PSE power enabled |
Indicates whether or not the device is operating as a PSE. |
PSE pairs control ability |
Indicates whether or not the PSE-PD pair control is available. |
Power pairs |
PoE mode, which can be Signal or Spare. |
Port power classification |
Port power classification of the PD, which can be the following: l Class0 l Class1 l Class2 l Class3 l Class4 |
Link aggregation supported |
Indicates whether or not link aggregation is supported. |
Link aggregation enabled |
Indicates whether or not link aggregation is enabled. |
Aggregation port ID |
Aggregation group ID, which is 0 if link aggregation is not enabled. |
Maximum frame Size |
Maximum frame size supported |
Device class |
Device type, which can be: l Connectivity device, indicating an intermediate device. l Class Ⅰ, indicating a normal terminal device. All terminal devices that are LLDP-enabled are of this type. l Class Ⅱ, indicating a media terminal device. A device of this type is media-capable. That is, besides the capabilities of a normal terminal device, it also supports media stream. l Class Ⅲ, indicating a communication terminal device. A device of this type supports IP communication systems of end user. A device of this type supports all the capabilities of a normal terminal device and a media terminal device and can be used directly by end users. |
Media policy type |
Media policy type, which can be: l unknown l voice l voiceSignaling l guestVoice l guestVoiceSignaling l softPhoneVoice l videoconferencing l streamingVideo l videoSignaling |
Unknown Policy |
Indicates whether or not the device can acquire media policy data |
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 |
HardwareRev |
Hardware version |
FirmwareRev |
Firmware version |
SoftwareRev |
Software version |
SerialNumber |
Serial number |
Manufacturer name |
Manufacturer name |
Model name |
Module name |
Asset tracking identifier |
Asset tracking ID |
Location format |
Location information format, which can be: l Invalid, indicating the format of the location information is invalid. l Coordinate-based LCI, indicating the location information is coordinate-based. l Civic Address LCI, indicating normal address information. l ECS ELIN, indicating a telephone for urgencies. |
Location Information |
Location information |
PoE PSE power source |
PSE type, which can be: l Primary, indicating a primary power supply l Backup, indicating a backup power supply |
PoE service type |
PoE service type |
Port PSE Priority |
Port PSE priority, which can be: l Unknown l Critical l High l Low |
Available power value |
PoE power |
Unknown basic TLV |
Unknown basic TLV |
TLV type |
Unknown basic TLV type |
TLV information |
Information contained in the unknown basic TLV type |
Unknown organizationally-defined TLV |
Unknown organization-defined TLV |
TLV OUI |
OUI of the unknown organization-defined TLV |
TLV subtype |
Unknown organization-defined TLV subtype |
Index |
Unknown organization index |
TLV information |
Information contained in unknown organization-defined TLV |
display lldp statistics
Syntax
display lldp statistics [ global | interface interface-type interface-number ]
View
Any view
Default level
1: Monitor level
Parameters
global: Displays the global LLDP statistics.
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp statistics command to display the global LLDP statistics or the LLDP statistics of a port.
If no keyword/argument is specified, this command displays all the LLDP statistics.
Examples
# Display all the LLDP statistics.
<Sysname> display lldp statistics
LLDP statistics global Information:
LLDP neighbor information last change time:0 days,1 hours,45 minutes,5 seconds
The number of LLDP neighbor information inserted : 6
The number of LLDP neighbor information deleted : 3
The number of LLDP neighbor information dropped : 0
The number of LLDP neighbor information aged out : 0
LLDP statistics Information of port 97 [GigabitEthernet2/0/1]:
The number of LLDP frames transmitted : 175
The number of LLDP frames received : 517
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
(The subsequent output, if any, is omitted.)
Table 1-3 display lldp statistics command output description
Field |
Description |
lldp statistics global information |
Global LLDP statistics |
LLDP neighbor information last change time |
Time the neighbor information is latest 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 |
The number of LLDP neighbor information aged out |
Number of the neighbor information entries that have aged out |
lldp statistics Information of port number interface-type interface-number |
LLDP statistics of a port |
The number of LLDP frames transmitted |
Total number of the LLDP frames transmitted through the port |
The number of LLDP frames received |
Total number of the LLDP frames received through the port |
The number of LLDP frames discarded |
Total number of the LLDP frames dropped on the port |
The number of LLDP error frames |
Total number of the LLDP error frames received through the port |
The number of LLDP TLVs discarded |
Total number of the LLDP TLVs dropped on the port |
The number of LLDP TLVs unrecognized |
Total number of the LLDP TLVs that cannot be recognized on the port |
The number of LLDP neighbor information aged out |
Number of the LLDP neighbor information entries that have aged out on the port |
The number of CDP frames transmitted |
Total number of the CDP frames transmitted on the port |
The number of CDP frames received |
Total number of the CDP frames received on the port |
The number of CDP frames discarded |
Total number of the CDP frames dropped on the port |
The number of CDP error frames |
Total number of the CDP error frames received on the port |
display lldp status
Syntax
display lldp status [ interface interface-type interface-number ]
View
Any view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp status command to display the LLDP status of a port.
If no port is specified, this command displays the LLDP status of all the ports.
Examples
# Display the LLDP status of all the ports.
<Sysname> display lldp status
Global status of LLDP: Enable
The current number of LLDP neighbors: 3
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days,1 hours,45 minutes,5 seconds
Transmit interval : 30s
Hold multiplier : 4
Reinit delay : 2s
Transmit delay : 2s
Trap interval : 5s
Fast start times : 3
Port 97 [GigabitEthernet2/0/1]:
Port status of LLDP : Enable
Admin status : Tx_Rx
Trap flag : No
Roll time : 0s
Number of neighbors: 1
Number of MED neighbors : 0
Number of CDP neighbors : 0
Number of sent optional TLV : 22
Number of received unknown TLV : 0
Table 1-4 display lldp status command output description
Field |
Description |
Global status of LLDP |
Indicating whether or not LLDP is globally enabled |
The current number of LLDP neighbors |
Total number of the LLDP neighbor devices |
The current number of CDP neighbors |
The current number of CDP neighbors |
LLDP neighbor information last changed time |
The last changed time of LLDP neighbor information |
Transmit interval |
Interval to send LLDPDU |
Hold multiplier |
TTL multiplier |
Reinit delay |
Initialization delay |
Transmit delay |
Delay period to send LLDPDUs |
Trap interval |
Interval to send traps |
Fast start times |
Number of the LLDPDUs to be sent successively when a new neighboring device is detected |
Port number interface-type interface-number |
Port LLDP status |
Port status of LLDP |
Indicates whether or not LLDP is enabled on the port. |
Admin status |
LLDP mode of the port, which can be: l TxRx. A port in this mode sends and receives LLDPDUs. l Rx_Only. A port in this mode receives LLDPDUs only. l Tx_Only. A port in this mode sends LLDPDUs only. l Disable. A port in this mode does not send or receive LLDPDUs. |
Trap Flag |
Indicates whether or not trap is enabled. |
Roll time |
LLDP polling interval. A value of 0 indicates LLDP polling is disabled. |
Number of neighbors |
Number of the LLDP neighbors connecting to the port |
Number of MED neighbors |
Number of the MED neighbors connecting to the port |
Number of CDP neighbors |
Number of the CDP neighbors connecting to the port |
Number of sent optional TLV |
Number of the optional TLVs contained in an LLDPDU sent through the port |
Number of received unknown TLV |
Number of the unknown TLVs contained in a received LLDPDU |
display lldp tlv-config
Syntax
display lldp tlv-config [ interface interface-type interface-number ]
View
Any view
Default level
1: Monitor level
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp tlv-config command to display the TLVs that are currently sent through a port.
If no port is specified, this command displays all the TLVs that are currently sent through all the ports.
Examples
# Display all the TLVs that are currently sent through all the ports.
<Sysname> display lldp tlv-config
LLDP tlv-config of port 97[GigabitEthernet2/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
(The subsequent output, if any, is omitted.)
Table 1-5 display lldp tlv-config command output description
Field |
Description |
LLDP tlv-config of port number interface-type interface-number |
TLVs that are currently sent through a port |
NAME |
TLV type |
STATUS |
Indicates whether or not TLVs of a specific type are currently sent through a port |
DEFAULT |
Indicates whether or not TLVs of a specific type are sent through a port by default |
Basic optional TLV |
Basic TLVs, including: l Port description TLV l System name TLV l System description TLV l System capabilities TLV l Management address TLV |
IEEE 802.1 extended TLV |
IEEE 802.1 extended TLVs, including: l Port VLAN ID TLV l Port and protocol VLAN ID TLV l VLAN name TLV |
IEEE 802.3 extended TLV |
IEEE 802.3 extended TLVs, including: l MAC-Physic TLV l Power via MDI TLV l Link aggregation TLV l Maximum frame size TLV |
LLDP-MED extend TLV |
MED related LLDP TLVs, including: l Capabilities TLV l Network Policy TLV l Location Identification TLV l Extended Power-via-MDI TLV l Inventory TLV, which can be hardware revision TLV, firmware revision TLV, software revision TLV, serial number TLV, manufacturer name TLV, model name TLV, and asset id TLV. |
lldp admin-status
Syntax
lldp admin-status { disable | rx | tx | txrx }
undo lldp admin-status
View
Ethernet interface view, port group view
Default 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 receives LLDPDUs only.
tx: Specifies the Tx mode. A port in this mode sends LLDPDUs only.
txrx: Specifies the TxRx mode. A port in this mode sends and receives LLDPDUs.
Description
Use the lldp admin-status command to specify the LLDP operating mode for a port or all the ports in a port group.
Use the undo lldp admin-status command to restore the default LLDP operating mode.
The default LLDP operating mode is TxRx.
Examples
# Configure the LLDP operating mode as Rx for GigabitEthernet 2/0/3.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] lldp admin-status rx
lldp check-change-interval
Syntax
lldp check-change-interval value
undo lldp check-change-interval
View
Ethernet interface view, port group view
Default level
2: System level
Parameters
value: LLDP polling interval to be set, in the range 1 to 30 (in seconds).
Description
Use the lldp check-change-interval command to enable LLDP polling and set the polling interval.
Use the undo lldp check-change-interval command to restore the default.
By default, LLDP polling is disabled.
With LLDP polling enabled, LLDP detects for local configuration changes periodically. A local configuration change triggers LLDPDU sending, through which neighboring devices can be informed of the configuration change timely.
Examples
# Enable LLDP polling on GigabitEthernet2/0/3, setting the polling interval to 30 seconds.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] lldp check-change-interval 30
lldp compliance admin-status cdp
Syntax
lldp compliance admin-status cdp { disable | txrx }
View
Ethernet interface view, port group view
Default Level
2: System level
Parameters
disable: Specifies the disable mode, where CDP-compatible LLDP neither receives nor transmits CDP packets.
txrx: Specifies the TxRx mode, where CDP-compatible LLDP can send and receive CDP packets.
Description
Use the lldp compliance admin-status cdp command to configure the operation mode of CDP-compatible LLDP on a port or port group.
By default, CDP-compatible LLDP operates in disable mode.
To have your device work with Cisco IP phones, you must enable CDP-compatible LLDP globally and then configure CDP-compatible LLDP to work in TxRx mode on the specified port(s).
Examples
# Configure CDP-compatible LLDP to operate in TxRx mode on GigabitEthernet 2/0/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/0/1
[Sysname-GigabitEthernet2/0/1] lldp compliance admin-status cdp txrx
lldp compliance cdp
Syntax
lldp compliance cdp
undo lldp compliance cdp
View
System view
Default Level
2: System level
Parameters
None
Description
Use the lldp compliance cdp command to enable global CDP compatibility.
Use the undo lldp compliance cdp command to restore the default.
By default, global CDP compatibility is disabled.
Note that, as the maximum TTL allowed by CDP is 255 seconds, your TTL configuration, that is, the product of the TTL multiplier and the LLDPDU transmit interval, must be no more than 255 seconds for CDP-compatible LLDP to work properly with Cisco IP phones.
Related commands: lldp hold-multiplier, lldp timer tx-interval.
Examples
# Enable LLDP to be compatible with CDP globally.
<Sysname> system-view
[Sysname] lldp compliance cdp
lldp enable
Syntax
lldp enable
undo lldp enable
View
System view, Ethernet interface view, port group view
Default level
2: System level
Parameters
None
Description
Use the lldp enable command to enable LLDP.
Use the undo lldp enable command to disable LLDP.
By default, LLDP is enabled at both the global and port levels.
Note that LLDP takes effect on a port only when it is enabled both globally and on the port.
Examples
# Disable LLDP on GigabitEthernet 2/0/3.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] undo lldp enable
lldp encapsulation snap
Syntax
lldp encapsulation snap
undo lldp encapsulation [ snap ]
View
Ethernet interface view, port group view
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.
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 2/0/3.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] lldp encapsulation snap
lldp fast-count
Syntax
lldp fast-count value
undo lldp fast-count
View
System view
Default level
2: System level
Parameters
value: Number of the LLDPDUs to be sent successively when a new neighboring device is detected. This argument ranges from 1 to 10.
Description
Use the lldp fast-count command to set the number of the LLDPDUs to be sent successively when a new neighboring device is detected.
Use the undo lldp fast-count command to restore the default.
By default, the number is 3.
Examples
# Configure to send four LLDP successively when a new neighboring device is detected.
<Sysname> system-view
[Sysname] lldp fast-count 4
lldp hold-multiplier
Syntax
lldp hold-multiplier value
undo lldp hold-multiplier
View
System view
Default level
2: System level
Parameters
value: TTL multiplier, in the range 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.
The TTL multiplier defaults to 4.
You can set the TTL of the local device information by configuring the TTL multiplier.
The TTL of the information about a device is determined by the following expression:
TTL multiplier × LLDPDU transmit interval
You can set the TTL of the local device information by configuring the TTL multiplier. Note that the TTL can be up to 65535 seconds. TTLs longer than it will be rounded off to 65535 seconds.
Related commands: lldp timer tx-interval.
Examples
# Set the TTL multiplier to 6.
<Sysname> system-view
[Sysname] lldp hold-multiplier 6
lldp management-address-format string
Syntax
lldp management-address-format string
undo lldp management-address-format
View
Ethernet interface view, port group view
Default Level
2: System level
Parameters
None
Description
Use the lldp management-address-format string command to configure the encapsulation format of the management address as strings in TLVs.
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 2/0/3 to encapsulate the management address in the form of strings in management address TLVs.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] lldp management-address-format string
lldp management-address-tlv
Syntax
lldp management-address-tlv [ ip-address ]
undo lldp management-address-tlv
View
Ethernet interface view, port group view
Default level
2: System level
Parameters
ip-address: Management address to be set.
Description
Use the lldp management-address-tlv command to enable the management address sending. This command also sets the management address.
Use the undo lldp management-address-tlv command to disable management address sending.
By default, the management address is sent through LLDPDUs, and the management address is the primary IP address of the VLAN with the least VLAN ID among the VLANs whose packets are permitted on the port. If the primary IP address is not configured, the management address is 127.0.0.1. For information about VLAN, refer to VLAN Configuration in the Access Volume.
Note that an LLDPDU carries only one management address. If you set the management address repeatedly, the latest one takes effect.
Examples
# Set the management address to 192.6.0.1 for GigabitEthernet2/0/3.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] lldp management-address-tlv 192.6.0.1
lldp notification remote-change enable
Syntax
lldp notification remote-change enable
undo lldp notification remote-change enable
View
Ethernet interface view, port group view
Default level
2: System level
Parameters
None
Description
Use the lldp notification remote-change enable command to enable trap for a port or all the ports in a port group.
Use the undo lldp notification remote-change enable command to restore the default.
By default, trap is disabled on a port.
Examples
# Enable trap for GigabitEthernet2/0/3.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] lldp notification remote-change enable
lldp timer notification-interval
Syntax
lldp timer notification-interval value
undo lldp timer notification-interval
View
System view
Default level
2: System level
Parameters
value: Interval to send trap messages, in the range 5 to 3600 (in seconds).
Description
Use the lldp timer notification-interval command to set the interval to send trap messages.
Use the undo lldp timer notification-interval command to restore the default.
By default, the interval to send trap messages is 5 seconds.
Examples
# Set the interval to send trap messages to 8 seconds.
<Sysname> system-view
[Sysname] lldp timer notification-interval 8
lldp timer reinit-delay
Syntax
lldp timer reinit-delay value
undo lldp timer reinit-delay
View
System view
Default level
2: System level
Parameters
value: Initialization delay period to be set, in the range 1 to 10 (in seconds).
Description
Use the lldp timer reinit-delay command to set the initialization delay period.
Use the undo lldp timer reinit-delay command to restore the default.
By default, the initialization delay period is 2 seconds.
Examples
# Set the initialization delay period to 4 seconds.
<Sysname> system-view
[Sysname] lldp timer reinit-delay 4
lldp timer tx-delay
Syntax
lldp timer tx-delay value
undo lldp timer tx-delay
View
System view
Default level
2: System level
Parameters
value: Delay period to send LLDPDUs, in the range 1 to 8192 (in seconds).
Description
Use the lldp timer tx-delay command to set the delay period to send LLDPDUs.
Use the undo lldp timer tx-delay command to restore the default.
By default, the delay period to send LLDPDUs is 2 seconds.
Examples
# Set the delay period to send LLDPDUs to 4 seconds.
<Sysname> system-view
[Sysname] lldp timer tx-delay 4
lldp timer tx-interval
Syntax
lldp timer tx-interval value
undo lldp timer tx-interval
View
System view
Default level
2: System level
Parameters
value: Interval to send LLDPDUs, in the range 5 to 32768 (in seconds).
Description
Use the lldp timer tx-interval command to set the interval to send LLDPDUs.
Use the undo lldp timer tx-interval command to restore the default.
By default, the interval to send LLDPDUs is 30 seconds.
To enable local device information to be updated on neighboring devices before being aged out, make sure the interval to send LLDPDUs is shorter than the TTL of the local device information.
Examples
# Set the interval to send LLDPDUs to 20 seconds.
<Sysname> system-view
[Sysname] lldp timer tx-interval 20
lldp tlv-enable
Syntax
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | location-id { civic-address device-type country-code { ca-type ca-value }&<1-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 } }
View
Ethernet interface view, port group view
Default level
2: System level
Parameters
all: Sends all the basic LLDP TLVs, all the IEEE 802.1 defined LLDP TLVs, or all the IEEE 802.3 defined LLDP TLVs; or sends all the MED related LLDP TLVs except location identification TLVs.
basic-tlv: Sends basic LLDP TLVs.
port-description: Sends port description TLVs.
system-capability: Sends system capabilities TLVs.
system-description: Sends system description TLVs.
system-name: Sends system name TLVs.
dot1-tlv: Sends IEEE 802.1 defined LLDP TLVs.
port-vlan-id: Sends port VLAN ID TLVs.
protocol-vlan-id: Sends port and protocol VLAN ID TLVs.
vlan-name: Sends VLAN name TLVs.
vlan-id: ID of the VLAN the TLVs (port and protocol VLAN ID TLVs or VLAN name TLVs) concerning which are to be sent. This argument defaults to the least protocol VLAN ID.
dot3-tlv: Sends IEEE 802.3 defined LLDP TLVs.
link-aggregation: Sends link aggregation group TLVs.
mac-physic: Sends MAC/PHY configuration/status TLVs.
max-frame-size: Sends maximum frame size TLVS.
power: Sends power via MDI TLVs.
med-tlv: Sends MED related LLDP TLVs.
capability: Sends LLDP-MED capabilities TLVs.
inventory: Sends hardware revision TLVs, firmware revision TLVs, software revision TLVs, serial number TLVs, manufacturer name TLVs, model name TLVs, and asset ID TLVs.
location-id: Sends location identification TLVS.
civic-address: Inserts the address information about the intermediate device in location identification TLVs .
device-type: Device type value. A value of 0 specifies DHCP server; a value of 1 specifies switch, and a value of 2 specifies LLDP-MED endpoint.
country-code: Country code, confirming to ISO 3166.
{ ca-type ca-value }&<1-10>: Configures address information, where ca-type represents the address information type, in the range 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 ten such parameters.
elin-address: Inserts telephone numbers for urgencies in location identification TLVs.
tel-number: Telephone number for urgencies, a string of 10 to 25 characters.
network-policy: Sends network policy TLVs.
power-over-ethernet: Sends extended power-via-MDI TLVs.
Description
Use the lldp tlv-enable command to enable the sending of specific TLVs for a port or all the ports in a port group.
Use the undo lldp tlv-enable command to disable the sending of specific TLVs.
By default, all the TLVs except location identification TLVs are sent.
Note that:
l To enable MED related LLDP TLV sending, you need to enable LLDP-MED capabilities TLV sending first. Conversely, to disable LLDP-MED capabilities TLV sending, you need to disable the sending of other MED related LLDP TLV.
l To disable MAC/PHY configuration/status TLV sending, you need to disable LLDP-MED capabilities TLV sending first.
l Specifying the all keyword for basic LLDP TLVs and organization defined LLDP TLVs (including IEEE 802.1 defined LLDP TLVs and IEEE 802.3 defined LLDP TLVs) enables sending of all the corresponding LLDP TLVs. For MED related LLDP TLVs, the all keyword enables sending of all the MED related LLDP TLVs except location identification TLVs.
l Enabling the sending of LLDP-MED capabilities TLVs also enables the sending of MAC/PHY configuration/status TLVs.
l You can specify to send multiple types of TLVs by executing the lldp tlv-enable command repeatedly.
Examples
# Enable the sending of link aggregation group TLVs on GigabitEthernet 2/0/3.
<Sysname> system-view
[Sysname] interface gigabitethernet2/0/3
[Sysname-GigabitEthernet2/0/3] lldp tlv-enable dot3-tlv link-aggregation