Follow these steps to configure a management address to be advertised and its encoding format on one
or a group of ports:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter Layer 2
Ethernet interface
view
interface
interface-type
interface-number
Enter
Ethernet
interface
view or port
group view
Enter port group view
port-group manual
port-group-name
Required
Use either command.
Allow LLDP to advertise the
management address in LLDPDUs and
configure the advertised management
address
lldp management-address-tlv
[
ip-address
]
Optional
By default, the management
address is sent through LLDPDUs.
For a Layer 2 Ethernet port, the
management address is the main IP
address of the lowest-ID VLAN
carried on the port. If none of the
carried VLANs is assigned an IP
address, no management address
will be advertised.
Configure the encoding format of the
management address as character
string
lldp
management-address-format
string
Optional
By default, the management
address is encapsulated in the
numeric format.
Setting other LLDP parameters
The Time To Live 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 configure the TTL of locally sent LLDPDUs, which determines how
long information about the local device can be saved on a neighbor device. The TTL is expressed using
the following formula:
TTL = Min (65535, (TTL multiplier × LLDPDU transmit interval))
As the expression shows, the TTL can be up to 65535 seconds. TTLs greater than 65535 will be rounded
down to 65535 seconds.
Follow these steps to change the TTL multiplier:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Set the TTL multiplier
lldp hold-multiplier
value
Optional
4 by default.
Set the LLDPDU transmit interval
lldp timer tx-interval
interval
Optional
30 seconds by default
Set LLDPDU transmit delay
lldp timer tx-delay
delay
Optional
2 seconds by default
173