- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
10-LLDP commands | 421.36 KB |
display lldp local-information
display lldp neighbor-information
lldp compliance admin-status cdp
lldp global tlv-enable basic-tlv management-address-tlv
lldp ignore-pvid-inconsistency
lldp management-address-format string
lldp notification med-topology-change enable
lldp notification remote-change enable
lldp timer notification-interval
LLDP commands
For POS interfaces, LLDP is not supported on the POS interfaces on the CSPEX-1204 card.
cdp voice-vlan
Use cdp voice-vlan to set the voice VLAN ID carried in CDP frames.
Use undo cdp voice-vlan to restore the default.
Syntax
cdp voice-vlan vlan-id
undo cdp voice-vlan
Default
No voice VLAN ID is configured to be carried in CDP frames.
Views
Layer 2 Ethernet interface view
FlexE physical interface view
Layer 2 FlexE logical interface view
Default command level
network-admin
Parameters
vlan-id: Specifies a voice VLAN ID to be advertised, in the range of 1 to 4094.
Usage guidelines
With this command configured, CDP frames sent to IP phones from the interface carry the voice VLAN ID specified in this command. IP phones use the voice VLAN ID to send voice traffic.
Examples
# Set the voice VLAN ID carried in CDP frames to 100.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] cdp voice-vlan 100
display lldp local-information
Use display lldp local-information to display local LLDP information.
Syntax
display lldp local-information [ global | interface interface-type interface-number ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
global: Displays the global local LLDP information.
interface interface-type interface-number: Specifies a port by its type and number.
Usage guidelines
If you do not specify any keywords or arguments, the command displays all local LLDP information, which includes the following:
· The global LLDP information.
· The LLDP information about the LLDP-enabled ports in up state.
Examples
# Display all local LLDP information.
<Sysname> display lldp local-information
Global LLDP local-information:
Chassis ID : 00e0-fc00-5600
System name : Sysname
System description :
H3C Comware Platform Software, Software Version 7.1.075, ESS 8315
H3C CR16006-F
Copyright (c) 2004-2022 New H3C Technologies Co., Ltd. All rights reserved.
System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge
System capabilities enabled : Bridge, Router, Customer Bridge
MED information:
Device class : Connectivity device
MED inventory information of master board:
HardwareRev : VER.A
FirmwareRev : 146
SoftwareRev : 7.1.075 8315
SerialNum : Unknown
Manufacturer name : H3C
Model name : CR16006-F
Asset tracking identifier : Unknown
LLDP local-information of port 8833[M-GigabitEthernet0/0/0]:
Port ID type : Interface name
Port ID : M-GigabitEthernet0/0/0
Port description : M-GigabitEthernet0/0/0 Interface
LLDP agent nearest-bridge management address:
Management address type : IPv4
Management address : 192.168.2.108
Management address interface type : IfIndex
Management address interface ID : 8833
Management address OID : 0
LLDP agent nearest-nontpmr management address:
Management address type : All802
Management address : 00fc-fd56-d801
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
LLDP agent nearest-customer management address:
Management address type : All802
Management address : 00fc-fd56-d801
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
Link aggregation supported : No
Link aggregation enabled : No
Aggregation port ID : 0
Auto-negotiation supported : No
Auto-negotiation enabled : No
OperMau : Speed(0)/Duplex(Unknown)
Power port class : PD
PSE power supported : No
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Maximum frame size : 0
Transmit Tw : 0 us
Receive Tw : 0 us
Fallback Tw : 0 us
Echo Transmit Tw : 0 us
Echo Receive Tw : 0 us
PoE PSE power source : Unknown
Port PSE priority : Unknown
Port available power value : 0.0 w
Table 1 Command output
Field |
Description |
Chassis ID |
Bridge MAC address of the device. |
System capabilities supported |
Supported capabilities: · Bridge—Switching is supported. · Router—Routing is supported. · Repeater—Signal repeating is supported. · Telephone—The local device can act as a telephone. · DocsisCableDevice—The local device can act as a DOCSIS-compliant cable device. · StationOnly—The local device can act as a station only. · Customer Bridge—The customer bridge feature is supported. · Service Bridge—The service bridge feature is supported. · TPMR—The TPMR feature is supported. · Other—Features other than those listed above are supported. |
System capabilities enabled |
Enabled capabilities: · Bridge—Switching is enabled. · Router—Routing is enabled. · Repeater—Signal repeating is supported. · Telephone—The local device is acting as a telephone. · DocsisCableDevice—The local device is acting as a DOCSIS-compliant cable device. · StationOnly—The local device is acting as a station only. · Customer Bridge—The customer bridge feature is enabled. · Service Bridge—The service bridge feature is enabled. · TPMR—The TPMR feature is enabled. · Other—Features other than those listed above are 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 act as a normal terminal device. · Class III—Communication terminal device. It supports the IP communication systems of end users, and can also act as a normal terminal device or media terminal device. |
MED inventory information of master board |
MED inventory information about the MPU. |
HardwareRev |
Hardware version. |
FirmwareRev |
Firmware version. |
SoftwareRev |
Software version. |
SerialNum |
Serial number. |
Manufacturer name |
Device manufacturer. |
Model name |
Device model. |
Port ID type |
Port ID type: · MAC address. · Interface name. |
Port ID |
Port ID, the value of which depends on the port ID type. |
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. |
Auto-negotiation supported |
Indicates whether autonegotiation is supported on the port. |
Auto-negotiation enabled |
Indicates whether autonegotiation is enabled on the port. |
OperMau |
Speed and duplex state of the port. |
Power port class |
PoE port class: · PSE—Power sourcing equipment. · PD—Powered device. |
PSE power supported |
Indicates whether the device can operate as a PSE. |
PSE power enabled |
Indicates whether the device is operating as a PSE. |
PSE pairs control ability |
Indicates whether the pair selection ability is available. |
Power pairs |
Power supply mode: · Signal—Uses data pairs to supply power. · Spare—Uses spare pairs to supply power. |
Port power classification |
Power class of the PD: · Class 0. · Class 1. · Class 2. · Class 3. · Class 4. |
Power type |
Power supply type: · Type 1 PD. · Type 2 PD. · Type 1 PSE. · Type 2 PSE. |
Power source |
Power source: · When the power supply type is PSE, options are: ¡ Unknown—Unknown power supply. ¡ Primary—Primary power supply. ¡ Backup—Backup power supply. ¡ Reserved. · When the power supply type is PD, options are: ¡ Unknown—Unknown power supply. ¡ PSE—PSE power supply. ¡ Local—Local power supply. ¡ PSE and local—PSE and local power supplies. |
Power priority |
· Unknown. · Critical. · High. · Low. |
PD requested power value |
PD requested power in watts. |
PSE allocated power value |
PSE allocated power in watts. |
Link aggregation supported |
Indicates whether link aggregation is supported on the port. |
Link aggregation enabled |
Indicates whether link aggregation is enabled on the port. |
Aggregation port ID |
Member port ID, which is 0 when link aggregation is disabled. |
Congestion notification TLV info |
Quantitized Congestion Notification TLV information. |
Dot1p |
802.1p priority. |
CNPV |
Indicates whether the 802.1p priority value is configured as a CNPV: · Yes · No If the 802.1p priority value is configured as a CNPV, the QCN feature is enabled for packets that have the 802.1p priority value. |
Ready |
Indicates whether the 802.1p priority value is mapped to an alternate priority value on the port: · Yes—The 802.1p priority value is not mapped to an alternate priority value. · No—The 802.1p priority value is mapped to an alternate priority value. |
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 value. |
Location format |
Location information format: · Invalid—The location information is invalid. · Coordinate-based LCI—The location information is coordinate-based. · Civic Address LCI—Typical address information. · ECS ELIN—Telephone number for urgencies. |
PoE PSE power source |
PSE power source type: · Unknown—Unknown power supply. · Primary—Primary power supply. · Backup—Backup power supply. |
PoE PD power source |
PD power source type: · 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 PSE ports: · Unknown. · Critical. · High. · Low. |
Port PD priority |
PoE power receiving priority of PD ports: · Unknown. · Critical. · High. · Low. |
Port available power value |
Available PoE power on PSE ports, or power needed on PD ports, in watts. |
Transmit Tw |
Sleep time of the local client, in μs. |
Receive Tw |
Sleep time of the peer client expected by the local client, in μs. |
Fallback Tw |
Candidate sleep time of the peer client expected by the local client, in μs. |
Echo Transmit Tw |
Sleep time of the peer client, in μs. This field displays zero when one of the following cases occurs: · The local client has not received the sleep time of the peer client. · The sleep time of the peer client is 0 μs. |
Echo Receive Tw |
Sleep time of the local client expected by the peer client, in μs. This field displays zero when one of the following cases occurs: · The local client has not received the expected sleep time from the peer client. · The sleep time of the local client expected by the peer client is 0 μs. |
display lldp neighbor-information
Use display lldp neighbor-information to display the LLDP information received from the neighboring devices.
Syntax
display lldp neighbor-information [ [ [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ] [ verbose ] ] | list [ system-name system-name ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies a port by its type and number. If you do not specify this option, the command displays the LLDP information that all ports receive from the neighboring devices.
agent: Specifies an agent type. If you do not specify an agent type, the command displays the LLDP information that all LLDP agents receive from the neighboring devices.
nearest-bridge: Specifies nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
verbose: Displays the detailed LLDP information that the local device receives from the neighboring devices. If you do not specify this keyword, the command displays the brief LLDP information that the local device receives from the neighboring devices.
list: Displays the LLDP information that the local device receives from the neighboring devices in the form of a list.
system-name system-name: Displays the LLDP information that the local device receives from a neighboring device specified by its system name. The system-name argument is a string of 1 to 255 characters. If you do not specify this option, the command displays the LLDP information that the local device receives from all neighboring devices in a list.
Examples
# Display the detailed LLDP information that the nearest bridge agents on all ports received from the neighboring devices.
<Sysname> display lldp neighbor-information agent nearest-bridge verbose
LLDP neighbor-information of port 214[Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-bridge:
LLDP neighbor index : 1
Update time : 0 days, 0 hours, 31 minutes, 48 seconds
Chassis type : MAC address
Chassis ID : 586a-b103-b0b6
Port ID type : Interface name
Port ID : Ten-GigabitEthernet3/1/1
Time to live : 120
Port description : Ten-GigabitEthernet3/1/1 Interface
System name : Sysname1
System description :
H3C Comware Platform Software, Software Version 5.20 Release 5206
H3C S5120-58C-HI
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 : 192.168.2.11
Management address interface type : IfIndex
Management address interface ID : 57
Management address OID : 0
Port VLAN ID(PVID) : 12
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
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : Speed(1000)/Duplex(Full)
Power port class : PD
PSE power supported : No
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Maximum frame size : 9216
# Display the detailed LLDP information that all LLDP agents on all ports received from the neighboring devices. (DCBX is IEEE Std 802.1Qaz-2011.)
<Sysname> display lldp neighbor-information verbose
LLDP neighbor-information of port 1[Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-bridge:
LLDP Neighbor index : 1
Update time : 0 days, 0 hours, 1 minutes, 1 seconds
Chassis type : MAC address
Chassis ID : 000f-0055-0002
Port ID type : Interface name
Port ID : Ten-GigabitEthernet3/1/1
Time to live : 121
Port description : Ten-GigabitEthernet3/1/1 Interface
System name : Sysname
System description : H3C Comware Platform Software
System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge
System capabilities enabled : Bridge, Router, Customer Bridge
Management address type : IPv4
Management address : 192.168.1.55
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
DCBX control info:
Oper version : Standard
DCBX ETS configuration info:
CBS : False
Max TCs : 8
CoS Local Priority Percentage TSA
0 0 15 ETS
1 1 0 SP
2 2 15 ETS
3 3 14 ETS
4 4 14 ETS
5 5 14 ETS
6 6 14 ETS
7 7 14 ETS
DCBX ETS recommendation info:
CoS Local Priority Percentage TSA
0 0 15 ETS
1 1 0 SP
2 2 15 ETS
3 3 14 ETS
4 4 14 ETS
5 5 14 ETS
6 6 14 ETS
7 7 14 ETS
DCBX PFC info:
P0-0 P1-1 P2-1 P3-1 P4-0 P5-0 P6-0 P7-0
Number of traffic classes supported: 8
Value of MBC: 0
DCBX APP info:
Selected Field Protocol ID Priority
UDP/DCCP 100 0x3
TCP/SCTP 200 0x3
Ethertype 0x1234 0x3
Ethertype 0x8906 0x3
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 12
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : Yes
VLAN name of VLAN 12: VLAN 0012
Management VLAN ID : 5
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : Speed(1000)/Duplex(Full)
Power port class : PD
PSE power supported : Yes
PSE power enabled : Yes
PSE pairs control ability : Yes
Power pairs : Signal
Port power classification : Class 0
Power type : Type 2 PD
Power source : PSE and local
Power priority : High
PD requested power value : 21.1 w
PSE allocated power value : 15.3 w
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 52
Maximum frame size : 1500
Transmit Tw : 100 us
Receive Tw : 90 us
Fallback Tw : 90 us
Echo Transmit Tw : 0 us
Echo Receive Tw : 0 us
Device class : Connectivity device
HardwareRev : Unknown
FirmwareRev : Unknown
SoftwareRev : Unknown
SerialNum : Unknown
Manufacturer name : Unknown
Model name : Unknown
Asset tracking identifier : Unknown
Location format : Civic Address LCI
Location information :
What(1) Country(CN)
CA type CA value
0 Chinese
1 Zhejiang
2 Hangzhou
MED port information:
Media policy type : Unknown
Unknown policy : No
VLAN tagged : No
Media policy VLANID : 1000
Media policy L2 priority : 6
Media policy DSCP : 10
PoE PSE power source : Primary
Port PSE priority : Low
Port available power value : 2.2 w
Unknown basic TLV:
TLV type : 23
TLV information : 0x00140014
Unknown organizationally-defined TLV:
TLV OUI : 00-12-bb
TLV subtype : 21
Index : 1
TLV information : 0x556e6b6e 6f776e
CDP neighbor-information of port 1[Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-bridge:
CDP neighbor index : 4
Chassis ID : SEP00260B5C0548
Port ID : Port 1
Software version : SCCP41.8-4-1S
Platform version : Cisco IP Phone 7941
Duplex : Full
Time to live : 180
LLDP neighbor-information of port 1[Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-nontpmr:
LLDP Neighbor index : 1
Update time : 0 days, 0 hours, 1 minutes, 1 seconds
Chassis type : MAC address
Chassis ID : 000f-0055-0002
Port ID type : Interface name
Port ID : Ten-GigabitEthernet3/1/1
Time to live : 121
Port description : Ten-GigabitEthernet3/1/1 Interface
System name : Sysname
System description : H3C Comware Platform Software
System capabilities supported : Bridge, Router, Customer Bridge, Service Bridge
System capabilities enabled : Bridge, Router, Customer Bridge
Management address type : IPv4
Management address : 192.168.1.55
Management address interface type : IfIndex
Management address interface ID : Unknown
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 12
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : Yes
VLAN name of VLAN 12: VLAN 0012
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : Speed(1000)/Duplex(Full)
Power port class : PD
PSE power supported : Yes
PSE power enabled : Yes
PSE pairs control ability : Yes
Power pairs : Signal
Port power classification : Class 0
Power type : Type 2 PD
Power source : PSE and local
Power priority : High
PD requested power value : 21.1 w
PSE allocated power value : 15.3 w
Link aggregation supported : Yes
Link aggregation enabled : Yes
Aggregation port ID : 52
Congestion notification TLV info:
Dot1p CNPV Ready
0 Yes Yes
1 No No
2 No No
3 No No
4 Yes No
5 Yes Yes
6 No No
7 No No
Maximum frame size : 1500
Transmit Tw : 100 us
Receive Tw : 90 us
Fallback Tw : 90 us
Echo Transmit Tw : 0 us
Echo Receive Tw : 0 us
Device class : Connectivity device
HardwareRev : Unknown
FirmwareRev : Unknown
SoftwareRev : Unknown
SerialNum : Unknown
Manufacturer name : Unknown
Model name : Unknown
Asset tracking identifier : Unknown
Location format : Civic Address LCI
Location information :
What(1) Country(CN)
CA type CA value
0 Chinese
1 Zhejiang
2 Hangzhou
MED port information:
Media policy type : Unknown
Unknown policy : No
VLAN tagged : No
Media policy VLANID : 1000
Media policy L2 priority : 6
Media policy DSCP : 10
PoE PSE power source : Primary
Port PSE priority : Low
Port available power value: 2.2 w
Unknown basic TLV:
TLV type : 23
TLV information : 0x00140014
Unknown organizationally-defined TLV:
TLV OUI : 00-12-bb
TLV subtype : 21
Index : 1
TLV information : 0x556e6b6e 6f776e
# Display the brief LLDP information that all LLDP agents on all ports received from the neighboring devices.
<Sysname> display lldp neighbor-information
LLDP neighbor-information of port 52[Ten-GigabitEthernet3/1/3]:
LLDP agent nearest-bridge:
LLDP neighbor index : 1
ChassisID/subtype : 9023-b46d-8000/MAC address
PortID/subtype : Ten-GigabitEthernet3/1/4/Interface name
Capabilities : Bridge, Router, Customer Bridge
LLDP neighbor-information of port 52[Ten-GigabitEthernet3/1/3]:
LLDP agent nearest-nontpmr:
LLDP neighbor index : 6
ChassisID/subtype : 0011-2233-4400/MAC address
PortID/subtype : 000c-29f5-c715/MAC address
Capabilities : None
# Display the brief LLDP information that all LLDP agents received from all neighboring devices in a list.
<Sysname> display lldp neighbor-information list
Chassis ID : * -- --Nearest nontpmr bridge neighbor
# -- --Nearest customer bridge neighbor
Default -- -- Nearest bridge neighbor
LocalIf Nbr chassis ID Nbr port ID Nbr system name
XGE3/1/1 6e72-2a82-0200 GigabitEthernet0/0 -
Table 2 Command output
Field |
Description |
|
LLDP neighbor-information of port 1 |
LLDP information received through port 1. |
|
Update time |
Time when LLDP information about a neighboring device was last updated. |
|
Chassis type |
Chassis ID type: · 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 |
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 ID type of the neighboring device. |
|
Port ID type |
Port ID type: · 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 |
Value of the type of the port ID. |
|
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: · Repeater—Signal repeating is supported. · Bridge—Switching is supported. · Router—Routing is supported. · Telephone—The neighboring device can act as a telephone. · DocsisCableDevice—The neighboring device can act as a DOCSIS-compliant cable device. · StationOnly—The neighboring device can act as a station only. · Customer Bridge—The customer bridge feature is enabled. · Service Bridge—The service bridge feature is enabled. · TPMR—The TPMR feature is enabled. · Other—Features other than those listed above are supported. |
|
System capabilities enabled |
Capabilities enabled on the neighboring device: · Repeater—Signal repeating is enabled. · Bridge—Switching is enabled. · Router—Routing is enabled. · Telephone—The neighboring device is acting as a telephone. · DocsisCableDevice—The neighboring device is acting as a DOCSIS-compliant cable device. · StationOnly—The neighboring device is acting as a station only. · Customer Bridge—The customer bridge feature is enabled. · Service Bridge—The service bridge feature is enabled. · TPMR—The TPMR feature is enabled. · Other—Features other than those listed above are supported. |
|
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 12 |
Name of VLAN 12. |
|
Auto-negotiation supported |
Indicates whether autonegotiation is supported on the port. |
|
Auto-negotiation enabled |
Indicates whether autonegotiation is enabled on the port. |
|
OperMau |
Speed and duplex state on the port. |
|
Power port class |
PoE port class: · PSE—Power sourcing equipment. · PD—Powered device. |
|
PSE power supported |
Indicates whether the device can operate as a PSE. |
|
PSE power enabled |
Indicates whether the device is operating as a PSE. |
|
PSE pairs control ability |
Indicates whether the pair selection ability is available. |
|
Power pairs |
Power supply mode: · Signal—Uses data pairs to supply power. · Spare—Uses spare pairs to supply power. |
|
Port power classification |
Power class of the PD: · Class 0. · Class 1. · Class 2. · Class 3. · Class 4. |
|
Power type |
Power supply type: · Type 1 PD. · Type 2 PD. · Type 1 PSE. · Type 2 PSE. |
|
Power source |
Power source: · When the power supply type is PSE, options are: ¡ Unknown—Unknown power supply. ¡ Primary—Primary power supply. ¡ Backup—Backup power supply. ¡ Reserved. · When the power supply type is PD, options are: ¡ Unknown—Unknown power supply. ¡ PSE—PSE power supply. ¡ Local—Local power supply. ¡ PSE and local—PSE and local power supplies. |
|
Power priority |
· Unknown. · Critical. · High. · Low. |
|
PD requested power value |
PD requested power in watts. |
|
PSE allocated power value |
PSE allocated power in watts. |
|
Link aggregation supported |
Indicates whether link aggregation is supported. |
|
Link aggregation enabled |
Indicates whether link aggregation is enabled. |
|
Congestion notification TLV info |
Quantitized Congestion Notification TLV information. |
|
Dot1p |
802.1p priority. |
|
CNPV |
Indicates whether the 802.1p priority value is configured as a CNPV: · Yes · No If the 802.1p priority value is configured as a CNPV, the QCN feature is enabled for packets that have the 802.1p priority value. |
|
Ready |
Indicates whether the 802.1p priority value is mapped to an alternate priority value on the port: · Yes—The 802.1p priority value is not mapped to an alternate priority value. · No—The 802.1p priority value is mapped to an alternate priority value. |
|
Device class |
MED device class: · Connectivity device—Network device. · Class I—Normal terminal device. · Class II—Media terminal device. · Class III—Communication terminal device. |
|
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 VLAN ID |
ID of the media VLAN. |
|
Media policy L2 priority |
Layer 2 priority. |
|
Media policy DSCP |
DSCP value. |
|
Location format |
Location information format: · Invalid—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. |
|
PoE PSE power source |
PSE power source type: · Unknown—Unknown power supply. · Primary—Primary power supply. · Backup—Backup power supply. |
|
PoE PD power source |
PD power source type: · 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 PSE ports: · Unknown. · Critical. · High. · Low. |
|
Port PD priority |
PoE power receiving priority of PD ports: · Unknown. · Critical. · High. · Low. |
|
Port available power value |
Available PoE power on PSE ports, or power needed on PD ports, in watts. |
|
HardwareRev |
Hardware version. |
|
FirmwareRev |
Firmware version. |
|
SoftwareRev |
Software version. |
|
SerialNum |
Serial number. |
|
Manufacturer name |
Device manufacturer. |
|
Model name |
Device model. |
|
TLV type |
Unknown basic TLV type. |
|
TLV information |
Information contained in the unknown basic TLV type. |
|
Unknown organizationally-defined TLV |
Unknown organizationally specific TLV. |
|
TLV OUI |
OUI of the unknown organizationally specific TLV. |
|
TLV subtype |
Unknown organizationally specific TLV subtype. |
|
Index |
Unknown organization index. |
|
Capabilities |
Capabilities enabled on the neighboring device: · Repeater—Signal repeating is enabled. · Bridge—Switching is enabled. · Router—Routing is enabled. · Telephone—The neighboring device is acting as a telephone. · DocsisCableDevice—The neighboring device is acting as a DOCSIS-compliant cable device. · StationOnly—The neighboring device is acting as a station only. · Other—Features other than those listed above are supported. · None—The neighboring device does not advertise this TLV. |
|
Chassis ID : * -- -- Nearest nontpmr bridge neighbor #-- -- Nearest customer bridge neighbor |
Chassis ID flag: · An asterisk (*) indicates the nearest non-TPMR bridge neighbor. · A pound sign (#) indicates the nearest customer bridge neighbor. |
|
Transmit Tw |
Sleep time of the local client, in μs. |
|
LocalIf |
Local interface that received the LLDP information. |
|
Nbr chassis ID |
Chassis ID of the LLDP neighbor. The chassis ID value varies by the chassis ID subtype of the neighbor. |
|
Nbr port ID |
Port ID of the LLDP neighbor. The port ID value varies by the port ID subtype of the neighbor. |
|
Nbr system name |
System name of the LLDP neighbor. |
|
Receive Tw |
Expected sleep time for the peer client of the local client, in μs. |
|
Fallback Tw |
Candidate expected sleep time for the peer client of the local client, in μs. |
|
Echo Transmit Tw |
Sleep time of the peer client, in μs. This field displays zero when one of the following cases occurs: · The local client has not received the sleep time of the peer client. · The sleep time of the peer client is 0 μs. |
|
Echo Receive Tw |
Expected sleep time for the local client of the peer client, in μs. This field displays zero when one of the following cases occurs: · The local client has not received the expected sleep time of the peer client. · The expected sleep time of the peer client is 0 μs. |
|
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 ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ] ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
global: Displays the global LLDP statistics.
interface interface-type interface-number: Specifies a port by its type and number.
agent: Specifies an LLDP agent type. If you do not specify an agent type, the command displays the statistics for all LLDP agents.
nearest-bridge: Specifies nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Usage guidelines
If you do not specify any keywords or arguments, the 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 [Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-bridge:
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
LLDP agent nearest-nontpmr:
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
LLDP agent nearest-customer:
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
# Display the LLDP statistics for the nearest customer bridge agents on Ten-GigabitEthernet 3/1/1.
<Sysname> display lldp statistics interface Ten-GigabitEthernet3/1/1 agent nearest-customer
LLDP statistics information of port 1 [Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-customer:
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
Table 3 Command output
Field |
Description |
LLDP statistics global information |
Global LLDP statistics. |
LLDP neighbor information last change time |
Time when the neighbor information was last updated. |
The number of LLDP neighbor information inserted |
Number of times neighbor information was added. |
The number of LLDP neighbor information deleted |
Number of times neighbor information was removed. |
The number of LLDP neighbor information dropped |
Number of times neighbor information was dropped due to lack of available memory space. |
display lldp status
Use display lldp status to display LLDP status.
Syntax
display lldp status [ interface interface-type interface-number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies a port by its type and number. If you do not specify this option, the command displays the global LLDP status and the LLDP status of all ports.
agent: Specifies an LLDP agent type. If you do not specify an agent type, the command displays the status information for all LLDP agents.
nearest-bridge: Specifies nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Examples
# Display the global LLDP status and the LLDP status of each port.
<Sysname> display lldp status
Global status of LLDP: Enable
Bridge mode of LLDP: customer-bridge
The current number of LLDP neighbors: 5
The current number of CDP neighbors: 0
LLDP neighbor information last changed time: 0 days, 0 hours, 4 minutes, 40 seconds
Transmit interval : 30s
Fast transmit interval : 1s
Transmit max credit : 5
Hold multiplier : 4
Reinit delay : 2s
Trap interval : 5s
Fast start times : 3
LLDP status information of port 1 [Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-bridge:
Port status of LLDP : Enable
Admin status : TX_RX
Trap flag : No
MED trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 5
Number of MED neighbors : 2
Number of CDP neighbors : 0
Number of sent optional TLV : 12
Number of received unknown TLV : 5
LLDP agent nearest-nontpmr:
Port status of LLDP : Enable
Admin status : TX_RX
Trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 5
Number of MED neighbors : 2
Number of CDP neighbors : 0
Number of sent optional TLV : 12
Number of received unknown TLV : 5
LLDP agent nearest-customer:
Port status of LLDP : Enable
Admin status : TX_RX
Trap flag : No
Polling interval : 0s
Number of LLDP neighbors : 5
Number of MED neighbors : 2
Number of CDP neighbors : 0
Number of sent optional TLV : 12
Number of received unknown TLV : 5
Table 4 Command output
Field |
Description |
Bridge mode of LLDP |
LLDP bridge mode: service-bridge or customer-bridge. |
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 |
LLDP frame transmission interval. |
Hold multiplier |
TTL multiplier. |
Reinit delay |
LLDP reinitialization delay. |
Transmit max credit |
Token bucket size for sending LLDP frames. |
Trap interval |
Trap transmission interval. |
Fast start times |
Number of LLDP frames sent each time fast LLDP frame 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 operating mode of the port: · TX_RX—The port can send and receive LLDP frames. · Rx_Only—The port can only receive LLDP frames. · Tx_Only—The port can only send LLDP frames. · Disable—The port cannot send or receive LLDP frames. |
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 LLDP frame sent through the port. |
Number of received unknown TLV |
Number of unknown TLVs contained in a received LLDP frame. |
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 ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ]
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
interface interface-type interface-number: Specifies a port by its type and number. If you do not specify this option, the command displays the types of advertisable optional TLVs of all ports.
agent: Specifies an LLDP agent type. If you do not specify an agent type, the command displays the types of advertisable optional LLDP TLVs for all LLDP agents.
nearest-bridge: Specifies nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Examples
# Display the types of advertisable optional LLDP TLVs of interface Ten-GigabitEthernet 3/1/1.
<Sysname> display lldp tlv-config interface ten-gigabitethernet 3/1/1
LLDP tlv-config of port 1[Ten-GigabitEthernet3/1/1]:
LLDP agent nearest-bridge:
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 NO NO
Port And Protocol VLAN ID TLV NO NO
VLAN Name TLV NO NO
DCBX TLV NO NO
EVB TLV NO NO
Link Aggregation TLV YES YES
Management VID TLV NO NO
IEEE 802.3 extend TLV:
MAC-Physic TLV YES YES
Power via MDI TLV YES YES
Maximum Frame Size TLV YES YES
LLDP-MED extend TLV:
Capabilities TLV YES YES
Network Policy TLV NO NO
Location Identification TLV NO NO
Extended Power via MDI TLV YES YES
Inventory TLV YES YES
LLDP agent nearest-nontpmr:
NAME STATUS DEFAULT
Basic optional TLV:
Port Description TLV NO NO
System Name TLV NO NO
System Description TLV NO NO
System Capabilities TLV NO NO
Management Address TLV NO NO
IEEE 802.1 extend TLV:
Port VLAN ID TLV NO NO
Port And Protocol VLAN ID TLV NO NO
VLAN Name TLV NO NO
DCBX TLV NO NO
EVB TLV NO NO
Link Aggregation TLV NO NO
Management VID TLV NO NO
IEEE 802.3 extend TLV:
MAC-Physic TLV NO NO
Power via MDI TLV NO NO
Maximum Frame Size TLV NO NO
LLDP-MED extend TLV:
Capabilities TLV NO NO
Network Policy TLV NO NO
Location Identification TLV NO NO
Extended Power via MDI TLV NO NO
Inventory TLV NO NO
LLDP agent nearest-customer:
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 NO NO
Port And Protocol VLAN ID TLV NO NO
VLAN Name TLV NO NO
DCBX TLV NO NO
EVB TLV NO NO
Link Aggregation TLV YES YES
Management VID TLV NO NO
IEEE 802.3 extend TLV:
MAC-Physic TLV NO NO
Power via MDI TLV NO NO
Maximum Frame Size TLV NO NO
LLDP-MED extend TLV:
Capabilities TLV NO NO
Network Policy TLV NO NO
Location Identification TLV NO NO
Extended Power via MDI TLV NO NO
Inventory TLV NO NO
Table 5 Command output
Field |
Description |
LLDP tlv-config of port 1 |
Advertisable optional TLVs of port 1. |
NAME |
TLV type. |
STATUS |
Indicates whether the type of TLV is sent through a port. |
DEFAULT |
Indicates whether the type of TLV is sent through a port by default. |
Basic optional TLV |
Basic optional TLVs: · Port Description TLV. · System Name TLV. · System Description TLV. · System Capabilities TLV. · Management Address TLV. · Congestion notification TLV. |
IEEE 802.1 extended TLV |
IEEE 802.1 organizationally specific TLVs: · Port PVID TLV. · Port and protocol VLAN ID TLV. · VLAN name TLV. · DCBX TLV. · Management VID 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. |
Inventory TLV |
Inventory TLVs: · Hardware Revision TLV. · Firmware Revision TLV. · Software Revision TLV. · Serial Number TLV. · Manufacturer Name TLV. · Model name TLV. · Asset ID TLV. |
l2protocol transparent enable
Use l2protocol transparent enable to enable packet transparent transmission for a protocol.
Use undo l2protocol transparent enable to disable packet transparent transmission for a protocol.
Syntax
l2protocol transparent lldp enable
undo l2protocol transparent lldp enable
Default
Packet transparent transmission is disabled for a protocol.
Views
Layer 3 Ethernet interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate interface view
Layer 3 aggregate subinterface view
Layer 3 FlexE logical interface
Layer 3 FlexE logical subinterface
Predefined user roles
network-admin
Parameters
lldp: Specifies LLDP.
Usage guidelines
This feature applies to L2VPN networks such as VPLS and VPWS. Without this feature, Layer 3 interfaces as ACs will discard LLDP packets, preventing inter-site user network interconnection through Layer 2 protocols. After you configure this feature on a PE, Layer 3 interfaces as ACs can receive packets of a protocol, and the device will transparently forward these packets. The transparently forwarded packets do not require encapsulating tunnel packets with multicast destination MAC addresses. These packets are sent through the PW to the peer PE, and ultimately forwarded to the corresponding user sites.
This feature takes effect only on the following cards:
Card type |
Mark |
CEPC cards |
CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ8L3A, CEPC-CQ16L1, CEPC-DQ2L1-G |
CSPEX cards |
CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1502XA, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-2304X-LG, CSPEX-2612XA, CSPEX-2612X3A |
SPE cards |
RX-SPE200, RX-SPE200-E |
To avoid errors on devices connected to a Layer 3 interface that is enabled with packet transparent transmission for LLDP, disable LLDP on that interface.
If different subinterfaces of the same main interface are bound to the same VSI on a single card, enabling packet transparent transmission on one subinterface will apply to all other subinterfaces regardless of whether packet transparent transmission is enabled on these subinterfaces.
Examples
# Enable packet transparent transmission for LLDP on Ten-GigabitEthernet 3/1/1.1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1.1
[Sysname-Ten-GigabitEthernet3/1/1.1] l2protocol transparent lldp enable
lldp admin-status
Use lldp admin-status to set the LLDP operating mode.
Use undo lldp admin-status to restore the default.
Syntax
In Layer 2/Layer 3 Ethernet interface view, management Ethernet interface view, or FlexE logical interface view:
lldp [ agent { nearest-customer | nearest-nontpmr } ] admin-status { disable | rx | tx | txrx }
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] admin-status
In Layer 2/Layer 3 aggregate interface view:
lldp agent { nearest-customer | nearest-nontpmr } admin-status { disable | rx | tx | txrx }
undo lldp agent { nearest-customer | nearest-nontpmr } admin-status
In standard POS interface view, IRF physical interface view, or FlexE physical interface view:
lldp admin-status { disable | rx | tx | txrx }
undo lldp admin-status
Default
The nearest bridge agent operates in TxRx mode, and the nearest customer bridge agent and nearest non-TPMR bridge agent operate in Disable mode.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Standard POS interface view
IRF physical interface view
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type in Ethernet or management Ethernet interface view, the command sets the operating mode for nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
disable: Specifies the Disable mode. A port in this mode cannot send or receive LLDP frames.
rx: Specifies the Rx mode. A port in this mode can only receive LLDP frames.
tx: Specifies the Tx mode. A port in this mode can only send LLDP frames.
txrx: Specifies the TxRx mode. A port in this mode can send and receive LLDP frames.
Usage guidelines
In standard POS interface view, IRF physical interface view, or FlexE physical interface view, only nearest bridge agents are supported.
Examples
# Set the LLDP operating mode to Rx for the nearest customer bridge agents on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp agent nearest-customer admin-status rx
lldp check-change-interval
Use lldp check-change-interval to enable LLDP polling and set the polling interval.
Use undo lldp check-change-interval to disable LLDP polling.
Syntax
In Layer 2/Layer 3 Ethernet interface view, management Ethernet interface view, or FlexE logical interface view:
lldp [ agent { nearest-customer | nearest-nontpmr } ] check-change-interval interval
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] check-change-interval
In Layer 2/Layer 3 aggregate interface view:
lldp agent { nearest-customer | nearest-nontpmr } check-change-interval interval
undo lldp agent { nearest-customer | nearest-nontpmr } check-change-interval
In standard POS interface view, IRF physical interface view, or FlexE physical interface view:
lldp check-change-interval interval
undo lldp check-change-interval
Default
LLDP polling is disabled.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Standard POS interface view
IRF physical interface view
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type in Ethernet or management Ethernet interface view, the command enables LLDP polling and sets the polling interval for nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
interval: Sets the LLDP polling interval in the range of 1 to 30 seconds.
Examples
# Enable LLDP polling and set the polling interval to 30 seconds for the nearest customer bridge agents on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp agent nearest-customer check-change-interval 30
lldp compliance admin-status cdp
Use lldp compliance admin-status cdp to set the operating mode of CDP-compatible LLDP.
Use undo lldp compliance admin-status cdp to restore the default.
Syntax
lldp compliance admin-status cdp { disable | rx | txrx }
undo lldp compliance admin-status cdp
Default
CDP-compatible LLDP operates in Disable mode.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Parameters
disable: Specifies the Disable mode. CDP-compatible LLDP in this mode cannot receive or transmit CDP packets.
rx: Specifies the Rx mode. CDP-compatible LLDP in this mode can receive but cannot send CDP packets.
txrx: Specifies the TxRx mode. CDP-compatible LLDP in this mode can send and receive CDP packets.
Usage guidelines
For your device to work with Cisco IP phones, you must perform the following tasks:
· Enable CDP-compatible LLDP globally.
· Configure CDP-compatible LLDP to operate in TxRx mode on the specified ports.
Examples
# Enable CDP-compatible LLDP globally and configure CDP-compatible LLDP to operate in TxRx mode on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] lldp compliance cdp
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp compliance admin-status cdp txrx
Related commands
lldp compliance cdp
lldp compliance cdp
Use lldp compliance cdp to enable CDP compatibility.
Use undo lldp compliance cdp to disable CDP compatibility.
Syntax
lldp compliance cdp
undo lldp compliance cdp
Default
CDP compatibility is disabled.
Views
System view
Predefined user roles
network-admin
Usage guidelines
The maximum TTL that CDP allows is 255 seconds. To make CDP-compatible LLDP work correctly with Cisco IP phones, set the LLDP frame transmission interval to be no more than 1/3 of the TTL value.
Examples
# Enable CDP compatibility.
<Sysname> system-view
[Sysname] lldp compliance cdp
Related commands
lldp hold-multiplier
lldp timer tx-interval
lldp enable
Use lldp enable to enable LLDP on a port.
Use undo lldp enable to disable LLDP on a port.
Syntax
lldp enable
undo lldp enable
Default
LLDP is enabled on ports except Layer 3 Ethernet subinterfaces and Layer 3 aggregate subinterfaces.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Standard POS interface view
IRF physical interface view
FlexE physical interface view
FlexE logical interface view
Layer 3 Ethernet subinterface view
Layer 3 aggregate subinterface view
Predefined user roles
network-admin
Usage guidelines
LLDP takes effect on a port only when LLDP is enabled both globally and on the port.
The enabling or disabling configuration of LLDP on an aggregate interface will not be synchronized to its member ports.
A Layer 3 Ethernet subinterface or Layer 3 aggregate subinterface can be enabled with LLDP only when the following conditions are met:
· The single-layer VLAN tag is terminated.
· The interface to which the subinterface belongs is enabled with LLDP.
A Layer 3 Ethernet subinterface or Layer 3 aggregate subinterface supports advertising only basic TLVs.
The proxy mode of a Layer 3 Ethernet subinterface or Layer 3 aggregate subinterface is consistent with that of the corresponding interface.
Examples
# Disable LLDP on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] undo lldp enable
Related commands
lldp global enable
lldp encapsulation snap
Use lldp encapsulation snap to set the encapsulation format for LLDP frames to SNAP.
Use undo lldp encapsulation to restore the default.
Syntax
In Layer 2/Layer 3 Ethernet interface view or management Ethernet interface view:
lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation snap
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation
In Layer 2/Layer 3 aggregate interface view:
lldp agent { nearest-customer | nearest-nontpmr } encapsulation snap
undo lldp agent { nearest-customer | nearest-nontpmr } encapsulation
In standard POS interface view or IRF physical interface view:
lldp encapsulation snap
undo lldp encapsulation
Default
The encapsulation format for LLDP frames is Ethernet II.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Standard POS interface view
IRF physical interface view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type in Ethernet or management Ethernet interface view, the command sets the LLDP frame encapsulation format for nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Usage guidelines
LLDP-CDP packets use only SNAP encapsulation.
Examples
# Set the encapsulation format for LLDP frames to SNAP on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp encapsulation snap
lldp fast-count
Use lldp fast-count to set the number of LLDP frames sent each time fast LLDP frame transmission is triggered.
Use undo lldp fast-count to restore the default.
Syntax
lldp fast-count count
undo lldp fast-count
Default
Four LLDP frames are sent each time fast LLDP frame transmission is triggered.
Views
System view
Predefined user roles
network-admin
Parameters
count: Sets the number of LLDP frames sent each time fast LLDP frame transmission is triggered. The value range is 1 to 8.
Examples
# Configure the device to send five LLDP frames each time fast LLDP frame transmission is triggered.
<Sysname> system-view
[Sysname] lldp fast-count 5
lldp global enable
Use lldp global enable to enable LLDP globally.
Use undo lldp global enable to disable LLDP globally.
Syntax
lldp global enable
undo lldp global enable
Default
LLDP is disabled globally.
Views
System view
Predefined user roles
network-admin
Usage guidelines
LLDP takes effect on a port only when LLDP is enabled both globally and on the port.
Examples
# Disable LLDP globally.
<Sysname> system-view
[Sysname] undo lldp global enable
Related commands
lldp enable
lldp global tlv-enable basic-tlv management-address-tlv
Use lldp global tlv-enable basic-tlv management-address-tlv to enable advertisement of the management address TLV globally and set the management address to be advertised.
Use undo lldp global tlv-enable basic-tlv management-address-tlv to disable advertisement of the management address TLV globally.
Syntax
lldp [ agent { nearest-customer | nearest-nontpmr } ] global tlv-enable basic-tlv management-address-tlv [ ipv6 ] { ip-address | interface loopback interface-number | interface m-gigabitethernet interface-number | interface vlan-interface interface-number }
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] global tlv-enable basic-tlv management-address-tlv [ [ ipv6 ] { ip-address | interface loopback interface-number | interface m-gigabitethernet interface-number | interface vlan-interface interface-number } ]
Default
Advertisement of the management address TLV is disabled globally.
Views
System view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type, this command applies to the nearest bridge agent.
· nearest-customer: Specifies the nearest customer bridge agent.
· nearest-nontpmr: Specifies the nearest non-TPMR bridge agent.
ipv6: Specifies an IPv6 management address. If you do not specify this keyword, an IPv4 management address will be advertised.
ip-address: Specifies the management address to be advertised.
interface loopback interface-number: Specifies a loopback interface by its number in the range of 0 to 127. The IP address of the loopback interface will be advertised as the management address. The value range for the interface-number argument is 0 to 4095.
interface m-gigabitethernet interface-number: Specifies an M-GigabitEthernet interface by its number. The IP address of the M-GigabitEthernet interface will be advertised as the management address.
interface vlan-interface interface-number: Specifies a VLAN interface by is number in the range of 1 to 4094. The IP address of the VLAN interface will be advertised as the management address.
Usage guidelines
You can configure advertisement of the management address TLV globally and on a per-interface basis. The device selects the management address TLV advertisement setting for an interface in the following order:
1. Interface-based setting, configured by using the lldp tlv-enable command with the management-address-tlv keyword.
2. Global setting, configured by using the lldp global tlv-enable basic-tlv management-address-tlv command.
3. Default setting for the interface.
By default:
¡ The nearest bridge agent and nearest customer bridge agent advertise the management address TLV.
¡ The nearest non-TPMR bridge agent does not advertise the management address TLV.
The IPv4 or IPv6 address of the LLDP frame sending port will be advertised as the management address when the following conditions exist:
· The ip-address argument is not configured.
· The specified loopback interface, M-GigabitEthernet interface, or VLAN interface does not have an IPv4 or IPv6 address, or the specified interface does not exist.
If the LLDP frame sending port does not have an IPv4 or IPv6 address, the MAC address of the port will be advertised.
The device supports advertising the IPv4 and IPv6 addresses of the LLDP frame sending ports as the management addresses at the same time. If you specify the ipv6 keyword, the management address is the IPv6 address. If you do not specify the ipv6 keyword, the management address is the IPv4 address.
If you configure the IP addresses of the same type multiple times, the most recent configuration takes effect.
Examples
# Enable advertisement of the management address TLV globally and set the advertised management address to 192.168.1.1.
<Sysname> system-view
[Sysname] lldp agent nearest-customer global tlv-enable basic-tlv management-address-tlv 192.168.1.1
Related commands
lldp tlv-enable
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
Predefined user roles
network-admin
Parameters
value: Sets the TTL multiplier in the range of 2 to 10.
Usage guidelines
The TTL TLV carried in an LLDPDU determines how long the device information carried in the LLDPDU can be saved on a recipient device.
By setting the TTL multiplier, you can set the TTL of locally sent LLDP frames. The TTL is expressed by using the following formula:
TTL = Min (65535, (TTL multiplier × LLDP frame transmission interval + 1))
As the expression shows, the TTL can be up to 65535 seconds.
Examples
# Set the TTL multiplier to 6.
<Sysname> system-view
[Sysname] lldp hold-multiplier 6
Related commands
lldp ignore-pvid-inconsistency
Use lldp ignore-pvid-inconsistency to disable LLDP PVID inconsistency check.
Use undo lldp ignore-pvid-inconsistency to enable LLDP PVID inconsistency check.
Syntax
lldp ignore-pvid-inconsistency
undo lldp ignore-pvid-inconsistency
Default
LLDP PVID inconsistency check is enabled.
Views
System view
Default command level
network-admin
Usage guidelines
By default, when the system receives an LLDP packet, it compares the PVID value contained in the packet with the PVID configured on the receiving interface. If the two PVIDs do not match, a log message will be printed to notify the user.
You can disable PVID inconsistency check if different PVIDs are required on a link.
Examples
# Disable LLDP PVID inconsistency check.
<Sysname> system-view
[Sysname] lldp ignore-pvid-inconsistency
lldp management-address
Use lldp management-address to enable generation of ARP or ND entries based on received management address TLVs on an interface.
Use undo lldp management-address to restore the default.
Syntax
In Layer 3 Ethernet interface view or FlexE logical interface view:
lldp management-address { arp-learning | nd-learning } [ vlan vlan-id ]
undo lldp management-address { arp-learning | nd-learning }
In Layer 3 aggregate interface view:
lldp agent nearest-nontpmr management-address { arp-learning | nd-learning } [ vlan vlan-id ]
undo lldp agent nearest-nontpmr management-address { arp-learning | nd-learning }
Default
Generation of ARP or ND entries based on received management address TLVs is disabled on an interface.
Views
Layer 3 Ethernet interface view
Layer 3 aggregate interface view
FlexE logical interface view
Default command level
network-admin
Parameters
agent: Specifies an LLDP agent type.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
arp-learning: Generates an ARP entry if the received management address TLV contains an IPv4 address.
nd-learning: Generates an ND entry if the received management address TLV contains an IPv6 address.
vlan vlan-id: Specifies a VLAN ID in the range of 1 to 4094. Include this option in the command to generate the ARP or ND entry for the Layer 3 Ethernet subinterface, Layer 3 aggregate subinterface, or FlexE logical subinterface associated with the specified VLAN ID in Dot1q termination. If the specified VLAN is not associated with any Layer 3 Ethernet subinterface, Layer 3 aggregate subinterface, or FlexE logical subinterface, or if no VLAN is specified, LLDP generates the entry for the current Layer 3 Ethernet interface, Layer 3 aggregate interface, or FlexE logical interface.
Usage guidelines
You can enable the device to generate both ARP entries and ND entries.
Examples
# Configure LLDP to generate an ARP entry for the Layer 3 Ethernet subinterface after Ten-GigabitEthernet 3/1/1 receives an IPv4 management address TLV. The Layer 3 Ethernet subinterface is associated with VLAN 4094 in Dot1q termination.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp management-address arp-learning vlan 4094
# Configure LLDP to generate an ARP entry for the Layer 3 aggregate subinterface after Layer 3 aggregate interface 1 receives an IPv4 management address TLV. The Layer 3 aggregate subinterface is associated with VLAN 4094 in Dot1q termination.
<Sysname> system-view
[Sysname] interface route-aggregation 1
[Sysname-Route-Aggregation1] lldp management-address arp-learning vlan 4094
Related commands
lldp source-mac vlan
lldp management-address-format string
Use lldp management-address-format string to set the encoding format of the management address to string.
Use undo lldp management-address-format to restore the default.
Syntax
In Layer 2/Layer 3 Ethernet interface view, management Ethernet interface view, or FlexE logical interface view:
lldp [ agent { nearest-customer | nearest-nontpmr } ] management-address-format string
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] management-address-format
In Layer 2/Layer 3 aggregate interface view:
lldp agent { nearest-customer | nearest-nontpmr } management-address-format string
undo lldp agent { nearest-customer | nearest-nontpmr } management-address-format
In standard POS interface view or FlexE physical interface view:
lldp management-address-format string
undo lldp management-address-format
Default
The encoding format of the management address is numeric.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Standard POS interface view
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type in Ethernet or management Ethernet interface view, the command sets the encoding format of the management address for nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Usage guidelines
LLDP neighbors must use the same encoding format for the management address.
The device supports only the numeric encoding format for IPv6 management addresses.
Examples
# Set the encoding format of the management address to string for the nearest customer bridge agents on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp agent nearest-customer management-address-format string
lldp max-credit
Use lldp max-credit to set the token bucket size for sending LLDP frames.
Use undo lldp max-credit to restore the default.
Syntax
lldp max-credit credit-value
undo lldp max-credit
Default
The token bucket size for sending LLDP frames is 5.
Views
System view
Predefined user roles
network-admin
Parameters
credit-value: Specifies the token bucket size for sending LLDP frames, in the range of 1 to 100.
Examples
# Set the token bucket size for sending LLDP frames to 10.
<Sysname> system-view
[Sysname] lldp max-credit 10
lldp mode
Use lldp mode to configure LLDP to operate in service bridge mode.
Use undo lldp mode to restore the default.
Syntax
lldp mode service-bridge
undo lldp mode
Default
LLDP operates in customer bridge mode.
Views
System view
Predefined user roles
network-admin
Parameters
service-bridge: Specifies the service bridge mode.
Usage guidelines
The LLDP agent types supported by LLDP depend on the LLDP bridge mode:
· Service bridge mode—LLDP supports nearest bridge agents and nearest non-TPMR bridge agents. LLDP processes the LLDP frames with destination MAC addresses for these agents and transparently transmits the LLDP frames with other destination MAC addresses in the VLAN.
· Customer bridge mode—LLDP supports nearest bridge agents, nearest non-TPMR bridge agents, and nearest customer bridge agents. LLDP processes the LLDP frames with destination MAC addresses for these agents and transparently transmits the LLDP frames with other destination MAC addresses in the VLAN.
The bridge mode configuration takes effect only when LLDP is enabled globally. If LLDP is disabled globally, LLDP can only operate in customer bridge mode.
Examples
# Configure LLDP to operate in service bridge mode.
<Sysname> system-view
[Sysname] lldp mode service-bridge
Related commands
lldp global enable
lldp notification med-topology-change enable
Use lldp notification med-topology-change enable to enable LLDP-MED trapping.
Use undo lldp notification med-topology-change enable to disable LLDP-MED trapping.
Syntax
lldp notification med-topology-change enable
undo lldp notification med-topology-change enable
Default
LLDP-MED trapping is disabled.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Usage guidelines
In the early stage of networking, the network topology changes frequently. If this command is used, the device will frequently send trap information to the network management system, which increases the system burden and wastes resources. As a best practice, do not enable LLDP-MED trapping in the early stage of networking.
Examples
# Enable LLDP-MED trapping on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp notification med-topology-change enable
lldp notification remote-change enable
Use lldp notification remote-change enable to enable LLDP trapping.
Use undo lldp notification remote-change enable to disable LLDP trapping.
Syntax
In Layer 2/Layer 3 Ethernet interface view, management Ethernet interface view, or FlexE logical interface view:
lldp [ agent { nearest-customer | nearest-nontpmr } ] notification remote-change enable
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] notification remote-change enable
In Layer 2/Layer 3 aggregate interface view:
lldp agent { nearest-customer | nearest-nontpmr } notification remote-change enable
undo lldp agent { nearest-customer | nearest-nontpmr } notification remote-change enable
In standard POS interface view, IRF physical interface view, or FlexE physical interface view:
lldp notification remote-change enable
undo lldp notification remote-change enable
Default
LLDP trapping is disabled.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Standard POS interface view
IRF physical interface view
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type in Ethernet or management Ethernet interface view, the command enables LLDP trapping for nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Usage guidelines
In the early stage of networking, the network topology changes frequently. If this command is used, the device will frequently send trap information to the network management system, which increases the system burden and wastes resources. As a best practice, do not enable LLDP trapping in the early stage of networking.
Examples
# Enable LLDP trapping for the nearest customer bridge agent on Ten-GigabitEthernet 3/1/1.
<Sysname> system-view
[Sysname] interface Ten-GigabitEthernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp agent nearest-customer notification remote-change enable
lldp source-mac vlan
Use lldp source-mac vlan to set the source MAC address of LLDP frames to the MAC address of the Layer 3 Ethernet subinterface/Layer 3 aggregate subinterface/FlexE logical subinterface associated with the specified VLAN.
Use undo lldp source-mac to restore the default.
Syntax
lldp source-mac vlan vlan-id
undo lldp source-mac
Default
The source MAC address of LLDP frames is the MAC address of the port.
Views
Layer 3 Ethernet interface view
Layer 3 aggregate interface view
FlexE logical interface view
Default command level
network-admin
Parameters
vlan-id: Specifies a VLAN ID in the range of 1 to 4094. After the argument is specified, the source MAC address of LLDP frames is the MAC address of the Layer 3 Ethernet subinterface, Layer 3 aggregate subinterface, or FlexE logical subinterface associated with the VLAN in Dot1q termination. If the specified VLAN has not been associated with a Layer 3 Ethernet subinterface, Layer 3 aggregate subinterface, or FlexE logical subinterface, the source MAC address of LLDP frames is the MAC address of the port.
Examples
# Set the source MAC address of LLDP frames to the MAC address of the Layer 3 Ethernet subinterface associated with VLAN 4094 in Dot1q termination.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp source-mac vlan 4094
# Set the source MAC address of LLDP frames to the MAC address of the Layer 3 aggregate subinterface associated with VLAN 4094 in Dot1q termination.
<Sysname> system-view
[Sysname] interface route-aggregation 1
[Sysname-Route-Aggregation1] lldp source-mac vlan 4094
Related commands
lldp management-address arp-learning
lldp timer fast-interval
Use lldp timer fast-interval to set an interval for fast LLDP frame transmission.
Use undo lldp timer fast-interval to restore the default.
Syntax
lldp timer fast-interval interval
undo lldp timer fast-interval
Default
The interval for fast LLDP frame transmission is 1 second.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Sets an interval for fast LLDP frame transmission, in the range of 1 to 3600 seconds.
Examples
# Set the interval for fast LLDP frame transmission to 2 seconds.
<Sysname> system-view
[Sysname] lldp timer fast-interval 2
lldp timer notification-interval
Use lldp timer notification-interval to set the LLDP trap and LLDP-MED trap transmission 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 and LLDP-MED trap transmission interval is 30 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Sets the LLDP trap and LLDP-MED trap transmission interval in the range of 5 to 3600 seconds.
Usage guidelines
The influences of the LLDP trap and LLDP-MED trap transmission interval are as follows:
· If the interval value is large, the trap sending frequency is low, which occupies fewer system resources. This is suitable for scenarios where the network topology on the device changes frequently. However, do not set the interval to a too large value. If the interval value is too large, the network management system cannot identify neighbor changes in time, which will cause the network topology on the device not to update in time.
· If the interval value is small, the trap sending frequency is high. This is suitable for topology-sensitive scenarios. However, do not set the interval to a too small value. If the interval value is too small, the network management system will frequently refresh the neighbor status information. This will not only occupies too many system resources but also cause network topology vibration on the device.
Examples
# Set both the LLDP trap and LLDP-MED trap transmission 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 reinitialization 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 reinitialization delay is 2 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
delay: Sets the LLDP reinitialization delay in the range of 1 to 10 seconds.
Examples
# Set the LLDP reinitialization delay to 4 seconds.
<Sysname> system-view
[Sysname] lldp timer reinit-delay 4
lldp timer tx-interval
Use lldp timer tx-interval to set the LLDP frame transmission interval.
Use undo lldp timer tx-interval to restore the default.
Syntax
lldp timer tx-interval interval
undo lldp timer tx-interval
Default
The LLDP frame transmission interval is 30 seconds.
Views
System view
Predefined user roles
network-admin
Parameters
interval: Sets the LLDP frame transmission interval in the range of 5 to 32768 seconds.
Examples
# Set the LLDP frame transmission interval to 20 seconds.
<Sysname> system-view
[Sysname] lldp timer tx-interval 20
lldp tlv-enable
Use lldp tlv-enable to configure the types of advertisable TLVs on a port.
Use undo lldp tlv-enable to disable the advertising of the specified types of TLVs on a port.
Syntax
In Layer 2 Ethernet interface view or Layer 2 FlexE logical interface view:
· For nearest bridge agents:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation | dcbx | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy [ vlan-id ] | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation | dcbx | protocol-vlan-id | vlan-name | management-vid } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy [ vlan-id ] | power-over-ethernet | location-id } }
· For nearest non-TPMR bridge agents:
lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | evb | port-vlan-id | link-aggregation } }
lldp tlv-enable dot1-tlv { protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] }
undo lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | evb | port-vlan-id | link-aggregation } }
undo lldp tlv-enable dot1-tlv { protocol-vlan-id | vlan-name | management-vid }
· For nearest customer bridge agents:
lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation } }
lldp tlv-enable dot1-tlv { protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] }
undo lldp agent nearest-customer tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation } }
undo lldp tlv-enable dot1-tlv { protocol-vlan-id | vlan-name | management-vid }
In Layer 3 Ethernet interface view or Layer 3 FlexE logical interface view:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id } }
undo lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } }
In management Ethernet interface view:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | power-over-ethernet | location-id } }
undo lldp agent { nearest-nontpmr | nearest-customer } tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | link-aggregation } }
In Layer 2 aggregate interface view:
lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | evb | port-vlan-id } }
lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
lldp tlv-enable dot1-tlv { protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] }
undo lldp agent nearest-nontpmr tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | evb | port-vlan-id } }
undo lldp agent nearest-customer tlv-enable { basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id } }
undo lldp tlv-enable dot1-tlv { protocol-vlan-id | vlan-name | management-vid }
In Layer 3 aggregate interface view:
lldp agent { nearest-nontpmr | nearest-customer } tlv-enable basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name }
lldp agent nearest-nontpmr tlv-enable basic-tlv management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ]
undo lldp agent { nearest-nontpmr | nearest-customer } tlv-enable basic-tlv { all | management-address-tlv [ ipv6 ] [ ip-address ] | port-description | system-capability | system-description | system-name }
undo lldp agent nearest-nontpmr tlv-enable basic-tlv management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ]
In standard POS interface view:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } }
In IRF physical interface view:
lldp tlv-enable basic-tlv { port-description | system-capability | system-description | system-name }
undo lldp tlv-enable basic-tlv { port-description | system-capability | system-description | system-name }
In FlexE physical interface view:
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] | management-vid [ mvlan-id ] } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy [ vlan-id ] | power-over-ethernet | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address tel-number } } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name | management-address-tlv [ ipv6 ] [ ip-address ] } | dot1-tlv { all | port-vlan-id | link-aggregation | protocol-vlan-id | vlan-name | management-vid } | dot3-tlv { all | mac-physic | max-frame-size | power } | med-tlv { all | capability | inventory | network-policy [ vlan-id ] | power-over-ethernet | location-id } }
Default
On Layer 2 Ethernet interfaces:
· The nearest bridge agent advertises all supported TLVs except the following TLVs:
¡ Port and protocol VLAN ID TLVs.
¡ VLAN name TLVs.
¡ DCBX TLVs.
¡ Management VLAN ID TLVs.
¡ Location identification TLVs.
· The nearest customer bridge agent advertises all the supported basic management TLVs and port VLAN ID TLVs and link aggregation TLVs in the IEEE 802.1 organizationally specific TLV set.
On Layer 3 Ethernet interfaces or management Ethernet interfaces:
· The nearest bridge agent advertises the following TLVs:
¡ Link aggregation TLVs in the 802.1 organizationally specific TLV set.
¡ All supported 802.3 organizationally specific TLVs.
¡ All supported LLDP-MED TLVs except the network policy TLVs and location identification TLVs.
· The nearest non-TPMR bridge agent does not advertise any TLVs.
· The nearest customer bridge agent advertises all supported basic management TLVs and link aggregation TLVs in the IEEE 802.1 organizationally specific TLV set.
On Layer 2 aggregate interfaces:
· The nearest customer bridge agent advertises all supported basic management TLVs and port VLAN ID TLV in the IEEE 802.1 organizationally specific TLV set.
On Layer 3 aggregate interfaces:
· The nearest non-TPMR bridge agent does not advertise any TLVs.
· The nearest customer bridge agent advertises all supported basic management TLVs.
On standard POS interfaces:
· The nearest customer bridge agent and non-TPMR bridge agent are not supported.
· The nearest bridge agent advertises all supported basic management TLVs,
IRF physical interfaces advertise all supported types of TLVs.
On FlexE physical interfaces:
· The nearest customer bridge agent and non-TPMR bridge agent are not supported.
· The nearest bridge agent advertises all supported TLVs except the following:
¡ QCN TLVs.
¡ Location identification TLVs.
¡ Port and protocol VLAN ID TLVs.
¡ VLAN name TLVs.
¡ Management VLAN ID TLVs.
¡ EEE TLVs.
On Layer 2 FlexE logical interfaces:
· The nearest bridge agent advertises all supported TLVs except the following TLVs:
¡ DCBX TLVs.
¡ Location identification TLVs.
¡ Port and protocol VLAN ID TLVs.
¡ VLAN name TLVs.
¡ QCN TLVs.
¡ Management VLAN ID TLVs.
¡ Energy-Efficient Ethernet TLVs.
· The nearest customer bridge agent advertises all the supported basic management TLVs and link aggregation TLVs and port VLAN ID TLVs in the IEEE 802.1 organizationally specific TLV set.
On Layer 3 FlexE logical interfaces:
· The nearest bridge agent advertises all supported TLVs except the following TLVs:
¡ Energy-Efficient Ethernet TLVs.
¡ Location identification TLVs.
¡ All the 802.1 organizationally specific TLVs except link aggregation TLVs.
· The nearest non-TPMR bridge agent does not advertise any TLVs.
· The nearest customer bridge agent advertises all supported basic management TLVs and link aggregation TLVs in the IEEE 802.1 organizationally specific TLV set.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
Standard POS interface view
IRF physical interface view
FlexE physical interface view
FlexE logical interface view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type in Ethernet or management Ethernet interface view, the command configures the types of advertisable TLVs for nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
all: Advertises all TLVs of the specified type. This keyword enables the interface to advertise following TLVs:
· All basic LLDP TLVs if the all keyword is specified for basic-tlv.
· All IEEE 802.1 organizationally specific LLDP TLVs if the all keyword is specified for dot1-tlv.
· All IEEE 802.3 organizationally specific LLDP TLVs if the all keyword is specified for dot3-tlv.
· All LLDP-MED TLVs except location identification TLVs if the all keyword is specified for med-tlv.
basic-tlv: Advertises basic LLDP TLVs.
management-address-tlv [ ipv6 ] [ ip-address | interface loopback interface-number ]: Advertises management address TLVs. The ipv6 keyword indicates that the management address to be advertised is in IPv6 format. The ip-address argument specifies the management address to be advertised. The interface loopback interface-number option specifies the management address as the IP address of a loopback interface specified by its number. By default, the following rules apply:
· When you execute the lldp tlv-enable command:
¡ For a Layer 2 Ethernet or aggregate interface, FlexE physical interface, or Layer 2 FlexE logical interface, the IPv4/IPv6 address of the VLAN interface that meets the following requirements will be advertised as the management address:
- In up state.
- The corresponding VLAN ID is the lowest among the VLANs permitted on the interface.
If you specify the ipv6 keyword, the IPv6 address of the VLAN interface will be advertised. If you do not specify the ipv6 keyword, both the IPv4 and IPv6 addresses of the VLAN interface will be advertised.
If none of the VLAN interfaces of the permitted VLANs is assigned an IP address or all VLAN interfaces are down, the MAC address of the interface will be advertised.
¡ For a Layer 3 Ethernet interface or Layer 3 FlexE logical interface, the IPv4/IPv6 address of the interface will be advertised when the following conditions exist:
- The ip-address argument is not configured.
- The specified loopback interface does not have an IPv4/IPv6 address, or the specified loopback interface does not exist.
If you specify the ipv6 keyword, the IPv6 address of the interface will be advertised. If you do not specify the ipv6 keyword, both the IPv4 and IPv6 addresses of the interface will be advertised.
If the interface does not have an IP address, the MAC address of the interface will be advertised.
¡ For a management Ethernet interface or standard POS interface, the IPv4/IPv6 address of the interface will be advertised when the ip-address argument is not configured.
If you specify the ipv6 keyword, the IPv6 address of the interface will be advertised. If you do not specify the ipv6 keyword, both the IPv4 and IPv6 addresses of the interface will be advertised.
If the interface does not have an IP address, the MAC address of the interface will be advertised.
¡ For a Layer 3 aggregate interface, the IPv4/IPv6 address of the interface will be advertised when the following conditions exist:
- The ip-address argument is not configured.
- The specified loopback interface does not have an IPv4/IPv6 address, or the specified loopback interface does not exist.
If you specify the ipv6 keyword, the IPv6 address of the interface will be advertised. If you do not specify the ipv6 keyword, both the IPv4 and IPv6 addresses of the interface will be advertised.
If the interface does not have an IP address, the MAC address of the interface will be advertised.
· When you execute the undo lldp tlv-enable command:
¡ For a Layer 3 Ethernet interface, management Ethernet interface, Layer 3 aggregate interface, or Layer 3 FlexE logical interface:
- If you do not specify ip-address, ipv6, or interface loopback interface-number, the interface does not advertise any management address TLVs.
- If you specify ip-address, ipv6, or interface loopback interface-number, the interface advertises the default management address TLVs.
¡ For a Layer 2 Ethernet interface, Layer 2 aggregate interface, standard POS interface, or FlexE physical interface:
- If you do not specify ipv6 or ip-address, the interface does not advertise any management address TLVs.
- If you specify ipv6 or ip-address, the interface advertises the default management address 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.
dcbx: Advertises the DCBX TLV. DCBX TLVs are not supported in the current software version.
evb: Advertises the EVB module TLVs, which are not supported in the current software version.
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. The VLAN ID is in the range of 1 to 4094, and the default is 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. The VLAN ID is in the range of 1 to 4094, and the default is the lowest VLAN ID on the port. If you do not specify a VLAN ID and the port is not assigned to any VLAN, the PVID of the port is advertised.
management-vid [ mvlan-id ]: Advertises management VLAN ID TLVs. The mvlan-id argument specifies a management VLAN ID in the TLVs to be advertised. The management VLAN ID is in the range of 1 to 4094. If you do not specify this option, the value 0 is advertised, which means that the LLDP agent is not configured with a management VLAN ID.
link-aggregation: Advertises link aggregation TLVs.
dot3-tlv: Advertises IEEE 802.3 organizationally specific LLDP TLVs.
mac-physic: Advertises MAC/PHY configuration/status TLVs.
max-frame-size: Advertises maximum frame size TLVs.
power: Advertises power in 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 typical address information about the network device in location identification TLVs .
device-type: Sets a device type value in the range of 0 to 2:
· Value 0 specifies a DHCP server.
· Value 1 specifies a network device.
· Value 2 specifies an LLDP-MED endpoint.
country-code: Sets a country code defined in ISO 3166.
{ ca-type ca-value }&<1-10>: Configures address information. ca-type represents the address information type in the range of 0 to 255. ca-value represents address information, a string of 1 to 250 characters. &<1-10> indicates that you can specify up to 10 ca-type ca-value pairs.
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 [ vlan-id ]: Advertises network policy TLVs. vlan-id specifies the voice VLAN ID to be advertised, in the range of 1 to 4094.
power-over-ethernet: Advertises extended power-via-MDI TLVs.
Usage guidelines
The nearest bridge agent is not supported on aggregate interfaces.
You can enable the device to advertise multiple types of TLVs by using this command without the all keyword specified.
If the MAC/PHY configuration/status TLV is not advertisable, none of the LLDP-MED TLVs will be advertised whether or not they are advertisable. If the LLDP-MED capabilities TLV is not advertisable, the other LLDP-MED TLVs will not be advertised regardless of whether or not they are advertisable.
The port and protocol VLAN ID, VLAN name, and management VLAN ID TLVs in IEEE 802.1 organizationally specific LLDP TLVs can be configured only for nearest bridge agents. The configuration can be inherited by nearest customer bridge agents and nearest non-TPMR bridge agents.
Examples
# Enable the nearest customer bridge agents on Ten-GigabitEthernet 3/1/1 to advertise link aggregation TLVs of the IEEE 802.1 organizationally specific TLVs.
<Sysname> system-view
[Sysname] interface ten-gigabitethernet 3/1/1
[Sysname-Ten-GigabitEthernet3/1/1] lldp agent nearest-customer tlv-enable dot1-tlv link-aggregation
reset lldp statistics
Use reset lldp statistics to clear LLDP statistics on ports.
Syntax
reset lldp statistics [ interface interface-type interface number ] [ agent { nearest-bridge | nearest-customer | nearest-nontpmr } ]
Views
User view
Predefined user roles
network-admin
Parameters
interface interface-type interface-number: Specifies a port by its type and number. If you do not specify this option, the command clears LLDP statistics on all ports.
agent: Specifies an agent type. If you do not specify an agent type, the command clears LLDP statistics for all LLDP agents.
nearest-bridge: Specifies nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Usage guidelines
If you do not specify any parameters, the reset lldp statistics command clears LLDP statistics on all ports but does not clear global LLDP statistics.
Examples
# Clear LLDP statistics on all ports.
<Sysname> reset lldp statistics
Related commands
display lldp statistic