- Table of Contents
-
- H3C WX6103 Access Controller Switch Interface Board Command Reference-6W102
- 00-Preface
- 01-Login Commands
- 02-VLAN Commands
- 03-IP Addressing and IP Performance Commands
- 04-QinQ-BPDU Tunneling Commands
- 05-Port Correlation Commands
- 06-Link Aggregation Commands
- 07-MAC Address Table Management Commands
- 08-Port Security Commands
- 09-MSTP Commands
- 10-IP Routing-GR Overview Commands
- 11-IPv4 Routing Commands
- 12-IP Source Guard Commands
- 13-DLDP Commands
- 14-Multicast Commands
- 15-LLDP Commands
- 16-sFlow Commands
- 17-ARP Commands
- 18-DHCP Commands
- 19-ACL Commands
- 20-QoS Commands
- 21-Port Mirroring Commands
- 22-UDP Helper Commands
- 23-SNMP-RMON Commands
- 24-NTP Commands
- 25-DNS Commands
- 26-File System Management Commands
- 27-Information Center Commands
- 28-System Maintaining and Debugging Commands
- 29-NQA Commands
- 30-SSH Commands
- 31-SSL-HTTPS Commands
- 32-PKI Commands
- 33-Track Commands
- 34-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
15-LLDP Commands | 86.71 KB |
display lldp local-information
display lldp neighbor-information
lldp notification remote-change enable
lldp timer notification-interval
1 LLDP Configuration Commands
The term switch in this document refers to a switch in a generic sense or an access controller configured with the switching function unless otherwise specified.
LLDP Configuration Commands
display lldp local-information
Syntax
display lldp local-information [ global | interface interface-type interface-number ]
View
Any view
Parameters
global: Displays the global LLDP information.
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp local-information command to display the global LLDP information or the information contained in the LLDP TLVs to be sent to neighboring devices through a port.
If no keyword or argument is specified, this command displays all the LLDP information to be sent, including the global LLDP information and the LLDP information about the LLDP-enabled ports.
Examples
# Display all the LLDP information to be sent.
<Sysname> display lldp local-information
Global LLDP local-information:
Chassis ID : 000f-e255-0010
System name : H3C
System description : H3C WX6103
System capabilities supported : Repeater,Bridge,Router
System capabilities enabled : Repeater,Bridge,Router
MED information
Device class: Connectivity device
HardwareRev : B
FirmwareRev : 1.12
SoftwareRev : 5.20
SerialNum : NONE
Manufacturer name : H3C
Model name : H3C EWPX1G24XA0
Asset tracking identifier : Unknown
LLDP local-information of port 8[GigabitEthernet0/0/8]:
Port ID subtype : Interface name
Port ID : GigabitEthernet0/0/8
Port description : GigabitEthernet0/0/8 Interface
Management address type : ipV4
Management address : 192.168.3.20
Management address interface type : IfIndex
Management address interface ID : 55
Management address OID : 0
Port VLAN ID(PVID): 10
Port and protocol VLAN ID(PPVID) : 10
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : No
VLAN name of VLAN 10: VLAN 0010
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : speed(1000)/duplex(Full)
Power port class : PSE
PSE power supported : Yes
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame Size: 9216
MED information
Media policy type : Unknown
Unknown Policy : Yes
VLAN tagged : No
Media policy VlanID : 0
Media policy L2 priority : 0
Media policy Dscp : 0
PoE PSE power source : Primary
Port PSE Priority : Low
Port Available power value: 15.4(w)
Table 1-1 Description on the fields of the display lldp local-information command
Field |
Description |
Global LLDP local-information |
The global LLDP information |
Chassis ID |
Device MAC address |
System name |
System name of the device |
System description |
System description |
System capabilities supported |
Supported capabilities, which can be: l Bridge, indicating switching l Router, indicating routing l Repeater, indicating forwarding |
System capabilities enabled |
Currently enabled capabilities, which can be: l Bridge, indicating switching is currently enabled. l Router, indicating routing is currently enabled. l Repeater, indicating forwarding is currently enabled. |
PoE device type |
PoE device type |
MED information |
MED information |
Device class |
MED device type |
(MED inventory information of master board) |
MED inventory information of the master board |
HardwareRev |
Hardware version |
FirmwareRev |
Firmware version |
SoftwareRev |
Software version |
SerialNumber |
Serial number |
Manufacturer name |
Device manufacturer |
Model name |
Device model |
Asset tracking identifier |
Asset tracking ID |
LLDP local-information of port number interface-type interface-number |
LLDP information about a port |
Port ID subtype |
Port ID type |
Port ID |
Port ID |
Port description |
Port description |
Management address type |
Management address type |
Management address |
Management address |
Management address interface type |
Type of the interface identified by the management address |
Management address interface ID |
ID of the interface identified by the management address |
Management address OID |
Management address object ID |
Port VLAN ID(PVID) |
Port VLAN ID |
Port and protocol VLAN ID(PPVID) |
Port protocol VLAN ID |
Port and protocol VLAN supported |
Indicates whether protocol VLAN is supported on the port. |
Port and protocol VLAN enabled |
Indicates whether protocol VLAN is enabled on the port. |
VLAN name of VLAN ID |
Name of the VLAN identified by the VLAN ID |
Auto-negotiation supported |
Indicates whether auto-negotiation is supported on the port. |
Auto-negotiation enabled |
State of auto-negotiation |
OperMau |
Current speed and duplex state of the port |
Power port class |
PoE device type, which can be : l PSE, indicating a power supply device l PD, indicating a powered device |
PSE power supported |
Indicates whether or not the device can operate as a PSE. |
PSE power enabled |
Indicates whether or not the device is operating as a PSE. |
PSE pairs control ability |
Indicates whether or not the PSE-PD pair control is available. |
Power pairs |
PoE mode, which can be Signal or Spare. |
Port power classification |
Port power classification of the PD, which can be: l Class0 l Class1 l Class2 l Class3 l Class4 |
Link aggregation supported |
Indicates whether or not link aggregation is supported. |
Link aggregation enabled |
Indicates whether or not link aggregation is enabled. |
Aggregation port ID |
Aggregation group ID, which is 0 if link aggregation is not enabled. |
Maximum frame Size |
Maximum frame size supported |
MED information |
MED LLDP information |
Media policy type |
Media policy type, which can be: l Voice, indicating the device is capable of processing voice data. l Unknown, indicating the media policy is unknown. |
Unknown Policy |
Indicates whether or not the media policy is unknown. |
VLAN tagged |
Indicates whether packets of the voice VLAN are tagged. |
Media Policy VlanID |
ID of the voice VLAN |
Media Policy L2 priority |
Layer 2 priority |
Media Policy Dscp |
DSCP precedence |
Location format |
Location format, which can be: l Civic Address LCI, indicating normal address information. l ECS ELIN, indicating telephone number for urgencies. |
Location Information |
Location information |
PoE PSE power source |
PSE type, which can be: l Primary, indicating a primary power supply l Backup, indicating a backup power supply |
Port PSE Priority |
Port PSE priority, which can be : l Unknown l Critical l High l Low |
Port Available power value |
PoE power |
display lldp neighbor-information
Syntax
display lldp neighbor-information [ interface interface-type interface-number ] [ brief ]
View
Any view
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
brief: Displays the LLDP information in brief.
Description
Use the display lldp neighbor-information command to display the LLDP information about the neighboring devices received through a port.
With no keyword/argument specified, this command displays the LLDP information received through all the ports.
Examples
# Display the LLDP information received through all the ports.
<Sysname> display lldp neighbor-information
LLDP neighbor-information of port 8[GigabitEthernet0/0/8]:
Neighbor index : 1
Update time : 0 days,5 hours,26 minutes,13 seconds
Chassis type : MAC address
Chassis ID : 000f-e211-bcef
Port ID type : Interface name
Port ID : GigabitEthernet0/0/8
Port description : GigabitEthernet0/0/8 Interface
System name : H3C
System description : H3C WX6103
System capabilities supported : Repeater,Bridge,Router
System capabilities enabled : Repeater,Bridge,Router
Management address type : ipV4
Management address : 192.168.3.3
Management address interface type : IfIndex
Management address interface ID : 56
Management address OID : 0
Port VLAN ID(PVID): 10
Port and protocol VLAN ID(PPVID) : 10
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : No
VLAN name of VLAN 10: VLAN 0010
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
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame Size: 9216
LLDP neighbor-information of port 24[GigabitEthernet1/0/24]:
Neighbor index : 1
Update time : 0 days,5 hours,19 minutes,10 seconds
Chassis type : MAC address
Chassis ID : 000f-e233-5577
Port ID type : Interface name
Port ID : GigabitEthernet1/0/30
Port description : GigabitEthernet1/0/30 Interface
System name : H3C
System description : H3C WX6103
System capabilities supported : Repeater,Bridge,Router
System capabilities enabled : Repeater,Bridge,Router
Management address type : ipV4
Management address : 192.168.0.151
Management address interface type : IfIndex
Management address interface ID : 36
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 1
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : No
VLAN name of VLAN 1: VLAN 0001
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : speed(1000)/duplex(Full)
Power port class : PD
PSE power supported : No
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame Size: 9216
Neighbor index : 2
Update time : 0 days,5 hours,19 minutes,10 seconds
Chassis type : MAC address
Chassis ID : 000f-e200-6504
Port ID type : Interface name
Port ID : GigabitEthernet0/0/23
Port description : GigabitEthernet0/0/23 Interface
System name : H3C
System description : R&D Hangzhou, H3C Technology Co., Ltd.
System capabilities supported : Repeater,Bridge,Router
System capabilities enabled : Repeater,Bridge,Router
Management address type : ipV4
Management address : 192.168.0.72
Management address interface type : IfIndex
Management address interface ID : 51
Management address OID : 0
Port VLAN ID(PVID): 1
Port and protocol VLAN ID(PPVID) : 1
Port and protocol VLAN supported : Yes
Port and protocol VLAN enabled : No
VLAN name of VLAN 1: VLAN 0001
Auto-negotiation supported : Yes
Auto-negotiation enabled : Yes
OperMau : speed(100)/duplex(Full)
Power port class : PSE
PSE power supported : Yes
PSE power enabled : No
PSE pairs control ability : No
Power pairs : Signal
Port power classification : Class 0
Link aggregation supported : Yes
Link aggregation enabled : No
Aggregation port ID : 0
Maximum frame Size: 1536
Table 1-2 Description on the fields of the display lldp neighbor-information command
Field |
Description |
LLDP neighbor-information |
LLDP information about a neighboring device |
LLDP neighbor-information of Port number interface-type interface number |
LLDP information received through a specific port |
Neighbor index |
Neighbor index |
Update time |
Time when the LLDP information about a neighboring device is latest updated. |
Chassis type |
Chassis information, which can be: l Chassis component l Interface alias l Port component l MAC address l Network address l Interface name l Locally assigned (indicating the local configuration) |
Chassis ID |
Value of chassis type |
Port ID type |
Port information, which can be: l Interface alias l Port component l MAC address l Network Address l Interface name l Agent circuit ID l Locally assigned (indicating the local configuration) |
Port ID |
Value of port ID type |
Port description |
Port description |
System name |
System name of the neighboring device |
System description |
System description of the neighboring device |
System capabilities supported |
Capabilities supported on the neighboring device, which can be: l Bridge, indicating switching l Router, indicating routing l Repeater, indicating forwarding |
System capabilities enabled |
Capabilities currently enabled on the neighboring device, which can be: l Bridge, indicating switching is currently enabled. l Router, indicating routing is currently enabled. l Repeater, indicating forwarding is currently enabled. |
Management address type |
Management address type |
Management address |
Management address |
Management address interface type |
Type of the interface identified by the management address |
Management address interface ID |
Management address interface ID |
Management address OID |
Management address object ID |
Port VLAN ID |
Port VLAN ID |
Port and protocol VLAN ID(PPVID) |
Port protocol VLAN ID |
Port and protocol VLAN supported |
Indicates whether protocol VLAN is supported. |
Port and protocol VLAN enabled |
Indicates whether protocol VLAN is enabled. |
VLAN name of VLAN 1 |
Name of he port VLAN |
Auto-negotiation supported |
Indicates whether auto-negotiation is supported. |
Auto-negotiation enabled |
State of auto-negotiation |
OperMau |
Current speed and duplex state |
Power port class |
PoE device type, which can be: l PSE, indicating a power supply device. l PD, indicating a powered device. |
PSE power supported |
Indicates whether or not the device can operate as a PSE. |
PSE power enabled |
Indicates whether or not the device is operating as a PSE. |
PSE pairs control ability |
Indicates whether or not the PSE-PD pair control is available. |
Power pairs |
PoE mode, which can be Signal or Spare. |
Port power classification |
Port power classification of the PD, which can be the following: l Class0 l Class1 l Class2 l Class3 l Class4 |
Link aggregation supported |
Indicates whether or not link aggregation is supported. |
Link aggregation enabled |
Indicates whether or not link aggregation is enabled. |
Aggregation port ID |
Aggregation group ID, which is 0 if link aggregation is not enabled. |
Maximum frame Size |
Maximum frame size supported |
display lldp statistics
Syntax
display lldp statistics [ global | interface interface-type interface-number ]
View
Any view
Parameters
global: Displays the global LLDP statistics.
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp statistics command to display the global LLDP statistics or the LLDP statistics of a port.
If no keyword/argument is specified, this command displays all the LLDP statistics.
Examples
# Display all the LLDP statistics.
<Sysname> display lldp statistics
lldp statistics global Information:
Neighbor information last change time:0 days,5 hours,26 minutes,13 seconds
The number of neighbor information inserted : 37
The number of neighbor information deleted : 26
The number of neighbor information dropped : 0
The number of neighbor information aged out : 4
lldp statistics Information of port 1 [GigabitEthernet0/0/1]:
The number of frames transmitted : 5476
The number of frames received : 26810
The number of frames discarded : 0
The number of error frames : 0
The number of TLVs discarded : 0
The number of TLVs unrecognized : 0
The number of neighbor information aged out : 1
……
<Omitted>
Table 1-3 Description on the fields of the display lldp statistics command
Field |
Description |
lldp statistics global information |
Global LLDP statistics |
Neighbor information last change time |
Time the neighbor information is latest updated |
The number of neighbors inserted |
Number of times of adding neighbor information |
The number of neighbors deleted |
Number of times of removing neighbor information |
The number of neighbors dropped |
Number of times of dropping neighbor information due to lack of available memory space |
The number of neighbors aged out |
Number of the neighbor information entries that have aged out |
lldp statistics Information of port number interface-type interface-number |
LLDP statistics of a port |
The number of frames transmitted |
Total number of the frames transmitted through the port |
The number of frames received |
Total number of the frames received through the port |
The number of frames discarded |
Total number of the frames dropped on the port |
The number of error frames |
Total number of the error frames on the port |
The number of TLVs discarded |
Total number of the TLVs dropped on the port |
The number of TLVs unrecognized |
Total number of the TLVs that cannot be recognized on the port |
The number of neighbor information aged out |
Number of the neighbor information entries that have aged out on the port |
display lldp status
Syntax
display lldp status [ interface interface-type interface-number ]
View
Any view
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp status command to display the LLDP status of a port.
If no port is specified, this command displays the LLDP status of all the ports.
Examples
# Display the LLDP status of all the ports.
<Sysname> display lldp status
Global status of LLDP: Enable
The current number of neighbors: 7
Neighbor information last changed time: 0 days,5 hours,26 minutes,13 seconds
Transmit interval : 30s
Hold multiplier : 4
Reinit delay : 2s
Transmit delay : 2s
Trap interval : 5s
Fast start times : 3
Port 1 [GigabitEthernet0/0/1]:
Port status of LLDP : Enable
Admin status : Tx_Rx
Trap flag : No
Roll time : 0s
Number of neighbors: 3
Number of MED neighbors : 0
Number of sent optional TLV : 22
Number of received unknown TLV : 0
……
<Omitted>
Table 1-4 Description on the fields of the display lldp status command
Field |
Description |
Global status of LLDP |
Indicating whether or not LLDP is globally enabled |
The current number of neighbors |
Total number of the neighbor devices |
Neighbor information last changed time |
Time when the neighbor information is latest updated |
Transmit interval |
Interval to send LLDPDU |
Hold multiplier |
TTL multiplier |
Reinit delay |
Initialization delay |
Transmit delay |
Delay period to send LLDPDUs |
Trap interval |
Interval to send traps |
Fast start times |
Number of the LLDPDUs to be sent successively when a new neighboring device is detected |
Port number interface-type interface-number |
Port LLDP status |
Port status of LLDP |
Indicates whether or not LLDP is enabled on the port. |
Admin status |
LLDP mode of the port, which can be: l TxRx. A port in this mode sends and receives LLDPDUs. l Rx_Only. A port in this mode receives LLDPDUs only. l Tx_Only. A port in this mode sends LLDPDUs only. l Disable. A port in this mode does not send or receive LLDPDUs. |
Trap Flag |
Indicates whether or not trap is enabled. |
Roll time |
LLDP polling interval. A value of 0 indicates LLDP polling is disabled. |
Number of neighbors |
Number of the neighbors connecting to the port |
Number of MED neighbors |
Number of the MED neighbors connecting to the port |
Number of sent optional TLV |
Number of the optional TLVs contained in an LLDPDU sent through the port |
Number of received unknown TLV |
Number of the unknown TLVs contained in a received LLDPDU |
display lldp tlv-config
Syntax
display lldp tlv-config [ interface interface-type interface-number ]
View
Any view
Parameters
interface interface-type interface-number: Specifies a port by its type and number.
Description
Use the display lldp tlv-config command to display the TLVs that are currently sent through a port.
If no port is specified, this command displays all the TLVs that are currently sent through all the ports.
Examples
# Display all the TLVs that are currently sent through all the ports.
<Sysname> display lldp tlv-config
LLDP tlv-config of port 1[GigabitEthernet0/0/1]:
NAME STATUS DEFAULT
Basic optional TLV:
Port Description TLV YES YES
System Name TLV YES YES
System Description TLV YES YES
System Capabilities TLV YES YES
Management Address TLV YES YES
IEEE 802.1 extend TLV:
Port VLAN ID TLV YES YES
Port And Protocol VLAN ID TLV YES YES
VLAN Name TLV YES YES
IEEE 802.3 extend TLV:
MAC-Physic TLV YES YES
Power via MDI TLV YES YES
Link Aggregation TLV YES YES
Maximum Frame Size TLV YES YES
LLDP-MED extend TLV:
Capabilities TLV YES YES
Network Policy TLV YES YES
Location Identification TLV NO NO
Extended Power via MDI TLV YES YES
Inventory TLV YES YES
……
<Omitted>
Table 1-5 Description on the fields of the display lldp tlv-config command
Field |
Description |
LLDP tlv-config of port number interface-type interface-number |
TLVs that are currently sent through a port |
NAME |
TLV type |
STATUS |
Indicates whether or not TLVs of a specific type are currently sent through a port |
DEFAULT |
Indicates whether or not TLVs of a specific type are sent through a port by default |
Basic optional TLV |
Basic TLVs, including: l Port description TLV l System name TLV l System description TLV l System capabilities TLV l Management address TLV |
IEEE 802.1 extend TLV |
IEEE 802.1 extended TLVs, including: l Port VLAN ID TLV l Port and protocol VLAN ID TLV l VLAN name TLV |
IEEE 802.3 extend TLV |
IEEE 802.3 extended TLVs, including: l MAC-Physic TLV l Power via MDI TLV l Link aggregation TLV l Maximum frame size TLV |
LLDP-MED extend TLV |
MED related LLDP TLVs, including: l Capabilities TLV l Network Policy TLV l Extended Power-via-MDI TLV l Location Identification TLV l Inventory TLV, which can be hardware revision TLV, firmware revision TLV, software revision TLV, serial number TLV, manufacturer name TLV, model name TLV, and asset id TLV. |
lldp admin-status
Syntax
lldp admin-status { disable | rx | tx | txrx }
undo lldp admin-status
View
Ethernet interface view, port group view
Parameters
disable: Specifies the Disable mode. A port in this mode does not send or receive LLDPDUs.
rx: Specifies the Rx mode. A port in this mode receives LLDPDUs only.
tx: Specifies the Tx mode. A port in this mode sends LLDPDUs only.
txrx: Specifies the TxRx mode. A port in this mode sends and receives LLDPDUs.
Description
Use the lldp admin-status command to specify the LLDP operating mode for a port or all the ports in a port group.
Use the undo lldp admin-status command to restore the default LLDP operating mode.
The default LLDP operating mode is TxRx.
Examples
# Configure the LLDP operating mode as Rx for GigabitEthernet 0/0/3.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] lldp admin-status rx
lldp check-change-interval
Syntax
lldp check-change-interval value
undo lldp check-change-interval
View
Ethernet interface view, port group view
Parameters
value: LLDP polling interval to be set, in the range 1 to 30 (in seconds).
Description
Use the lldp check-change-interval command to enable LLDP polling and set the polling interval.
Use the undo lldp check-change-interval command to restore the default.
By default, LLDP polling is disabled.
With LLDP polling enabled, LLDP detects for local configuration changes periodically. A local configuration change triggers LLDPDU sending, through which neighboring devices can be informed of the configuration change timely.
Examples
# Enable LLDP polling on GigabitEthernet 0/0/3, setting the polling interval to 30 seconds.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] lldp check-change-interval 30
lldp enable
Syntax
lldp enable
undo lldp enable
View
System view, Ethernet interface view, port group view
Parameters
None
Description
Use the lldp enable command to enable LLDP.
Use the undo lldp enable command to disable LLDP.
By default, LLDP is enabled on a port. Whether LLDP is enabled globally varies with device models.
Note that LLDP takes effect on a port only when it is enabled both globally and on the port.
Examples
# Disable LLDP on GigabitEthernet 0/0/3.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] undo lldp enable
lldp fast-count
Syntax
lldp fast-count value
undo lldp fast-count
View
System view
Parameters
value: Number of the LLDPDUs to be sent successively when a new neighboring device is detected. This argument ranges from 1 to 10.
Description
Use the lldp fast-count command to set the number of the LLDPDUs to be sent successively when a new neighboring device is detected.
Use the undo lldp fast-count command to restore the default.
By default, the number is 3.
Examples
# Configure to send four LLDP successively when a new neighboring device is detected.
<Sysname> system-view
[Sysname] lldp fast-count 4
lldp hold-multiplier
Syntax
lldp hold-multiplier value
undo lldp hold-multiplier
View
System view
Parameters
value: TTL multiplier, in the range 2 to 10.
Description
Use the lldp hold-multiplier command to set the TTL multiplier.
Use the undo lldp hold-multiplier command to restore the default.
The TTL multiplier defaults to 4.
You can set the TTL of the local device information by configuring the TTL multiplier.
The TTL of the information about a device is determined by the following expression:
TTL multiplier × LLDPDU sending interval.
You can set the TTL of the local device information by configuring the TTL multiplier. Note that the TTL can be up to 65535 seconds. TTLs longer than it will be rounded off to 65535 seconds.
To enable local device information to be updated on neighboring devices before being aged out, make sure the interval to send LLDPDUs is shorter than the TTL of the local device information.
Examples
# Set the TTL multiplier to 6.
<Sysname> system-view
[Sysname] lldp hold-multiplier 6
lldp management-address-tlv
Syntax
lldp management-address-tlv [ ip-address ]
undo lldp management-address-tlv
View
Ethernet interface view, port group view
Parameters
ip-address: Management address to be set.
Description
Use the lldp management-address-tlv command to enable the management address sending. This command also sets the management address.
Use the undo lldp management-address-tlv command to disable management address sending.
By default, the management address is sent through LLDPDUs, and the management address is the primary IP address of the VLAN with the least VLAN ID among the VLANs whose packets are permitted on the port. If the primary IP address is not configured, the management address is 127.0.0.1. For information about VLAN, refer to VLAN in H3C WX6103 Access Controller Switch Interface Board Configuration Guide.
Note that an LLDPDU carries only one management address. If you set the management address repeatedly, the latest one takes effect.
Examples
# Set the management address to 192.6.0.1 for GigabitEthernet 0/0/3.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] lldp management-address-tlv 192.6.0.1
lldp notification remote-change enable
Syntax
lldp notification remote-change enable
undo lldp notification remote-change enable
View
Ethernet interface view, port group view
Parameters
None
Description
Use the lldp notification remote-change enable command to enable trap for a port or all the ports in a port group.
Use the undo lldp notification remote-change enable command to restore the default.
By default, trap is disabled on a port.
Examples
# Enable trap for GigabitEthernet 0/0/3.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] lldp notification remote-change enable
lldp timer notification-interval
Syntax
lldp timer notification-interval value
undo lldp timer notification-interval
View
System view
Parameters
value: Interval to send trap messages, in the range 5 to 3600 (in seconds).
Description
Use the lldp timer notification-interval command to set the interval to send trap messages.
Use the undo lldp timer notification-interval command to restore the default.
By default, the interval to send trap messages is 5 seconds.
Examples
# Set the interval to send trap messages to 8 seconds.
<Sysname> system-view
[Sysname] lldp timer notification-interval 8
lldp timer reinit-delay
Syntax
lldp timer reinit-delay value
undo lldp timer reinit-delay
View
System view
Parameters
value: Initialization delay period to be set, in the range 1 to 10 (in seconds).
Description
Use the lldp timer reinit-delay command to set the initialization delay period.
Use the undo lldp timer reinit-delay command to restore the default.
By default, the initialization delay period is 2 seconds.
Examples
# Set the initialization delay period to 4 seconds.
<Sysname> system-view
[Sysname] lldp timer reinit-delay 4
lldp timer tx-delay
Syntax
lldp timer tx-delay value
undo lldp timer tx-delay
View
System view
Parameters
value: Delay period to send LLDPDUs, in the range 1 to 8192 (in seconds).
Description
Use the lldp timer tx-delay command to set the delay period to send LLDPDUs.
Use the undo lldp timer tx-delay command to restore the default.
By default, the delay period to send LLDPDUs is 2 seconds.
Examples
# Set the delay period to send LLDPDUs to 4 seconds.
<Sysname> system-view
[Sysname] lldp timer tx-delay 4
lldp timer tx-interval
Syntax
lldp timer tx-interval value
undo lldp timer tx-interval
View
System view
Parameters
value: Interval to send LLDPDUs, in the range 5 to 32768 (in seconds).
Description
Use the lldp timer tx-interval command to set the interval to send LLDPDUs.
Use the undo lldp timer tx-interval command to restore the default.
By default, the interval to send LLDPDUs is 30seconds.
To enable local device information to be updated on neighboring devices before being aged out, make sure the interval to send LLDPDUs is shorter than the TTL of the local device information.
Examples
# Set the interval to send LLDPDUs to 20 seconds.
<Sysname> system-view
[Sysname] lldp timer tx-interval 20
lldp tlv-enable
Syntax
lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id [ vlan-id ] | vlan-name [ vlan-id ] } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | location-id { civic-address device-type country-code { ca-type ca-value }&<1-10> | elin-address Tel-Number } | network-policy | power-over-ethernet | inventory } }
undo lldp tlv-enable { basic-tlv { all | port-description | system-capability | system-description | system-name } | dot1-tlv { all | port-vlan-id | protocol-vlan-id | vlan-name } | dot3-tlv { all | link-aggregation | mac-physic | max-frame-size | power } | med-tlv { all | capability | location-id | network-policy | power-over-ethernet | inventory } }
View
Ethernet interface view, port group view
Parameters
all: Sends all the basic LLDP TLVs, all the IEEE 802.1 defined LLDP TLVs, or all the IEEE 802.3 defined LLDP TLVs; or sends all the MED related LLDP TLVs except location identification TLVs.
basic-tlv: Sends basic LLDP TLVs.
port-description: Sends port description TLVs.
system-capability: Sends system capabilities TLVs.
system-description: Sends system description TLVs.
system-name: Sends system name TLVs.
dot1-tlv: Sends IEEE 802.1 defined LLDP TLVs.
port-vlan-id: Sends port VLAN ID TLVs.
protocol-vlan-id: Sends port and protocol VLAN ID TLVs.
vlan-name: Sends VLAN name TLVs.
vlan-id: ID of the VLAN the TLVs (port and protocol VLAN ID TLVs or VLAN name TLVs) concerning which are to be sent. This argument defaults to the least protocol VLAN ID.
dot3-tlv: Sends IEEE 802.3 defined LLDP TLVs.
link-aggregation: Sends link aggregation group TLVs.
mac-physic: Sends MAC/PHY configuration/status TLVs.
max-frame-size: Sends maximum frame size TLVS.
power: Sends power via MDI TLVs.
med-tlv: Sends MED related LLDP TLVs.
capability: Sends LLDP-MED capabilities TLVs.
location-id: Sends location identification TLVS.
civic-address: Inserts the address information about the intermediate device in location identification TLVs .
device-type: Device type value. A value of 0 specifies DHCP server; a value of 1 specifies switch, and a value of 2 specifies LLDP-MED endpoint.
country-code: Country code, confirming to ISO 3166.
ca-type: Location information type, in the range 0 to 255.
ca-value: Location information, a string of 1 to 255 characters.
elin-address: Inserts telephone numbers for urgencies in location identification TLVs.
Tel-Number: Telephone number for urgencies, a string of 10 to 25 characters.
network-policy: Sends network policy TLVs.
power-over-ethernet: Sends extended power-via-MDI TLVs.
inventory: Sends hardware revision TLVs, firmware revision TLVs, software revision TLVs, serial number TLVs, manufacturer name TLVs, model name TLVs, and asset ID TLVs.
Description
Use the lldp tlv-enable command to enable the sending of specific TLVs for a port or all the ports in a port group.
Use the undo lldp tlv-enable command to disable the sending of specific TLVs.
By default, all the TLVs except location identification TLVs are sent.
Note that:
l To enable MED related LLDP TLV sending, you need to enable LLDP-MED capabilities TLV sending first. Conversely, to disable LLDP-MED capabilities TLV sending, you need to disable the sending of other MED related LLDP TLV.
l To disable MAC/PHY configuration/status TLV sending, you need to disable LLDP-MED capabilities TLV sending first.
l Specifying the all keyword for basic LLDP TLVs and organization defined LLDP TLVs (including IEEE 802.1 defined LLDP TLVs and IEEE 802.3 defined LLDP TLVs) enables sending of all the corresponding LLDP TLVs. For MED related LLDP TLVs, the all keyword enables sending of all the MED related LLDP TLVs except location identification TLVs.
l Enabling the sending of LLDP-MED capabilities TLVs also enables the sending of MAC/PHY configuration/status TLVs.
l You can specify to send multiple types of TLVs by executing the lldp tlv-enable command repeatedly.
Examples
# Enable the sending of link aggregation group TLVs on GigabitEthernet 0/0/3.
<Sysname> system-view
[Sysname] interface GigabitEthernet 0/0/3
[Sysname-GigabitEthernet0/0/3] lldp tlv-enable dot3-tlv link-aggregation