By setting the TTL multiplier, you can configure the TTL of locally sent LLDPDUs. 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. TTLs greater than 65535 will be
rounded down to 65535 seconds.
To set LLDP parameters:
Step
Enter system view.
1.
Set the TTL multiplier.
2.
Set
3.
transmission interval.
Set the token bucket size for
4.
sending LLDP frames.
Set the number of LLDP
5.
frames sent each time fast
LLDP frame transmission is
triggered.
Set the fast LLDP frame
6.
transmission interval.
Setting an encapsulation format for LLDP frames
LLDP frames can be encapsulated in the following formats:
•
Ethernet II—With Ethernet II encapsulation configured, an LLDP port sends LLDP frames in
Ethernet II frames.
•
SNAP—With SNAP encapsulation configured, an LLDP port sends LLDP frames in SNAP
frames.
Earlier versions of LLDP require the same encapsulation format on both ends to process LLDP
frames. To successfully communicate with a neighboring device running an earlier version of LLDP,
the local device must be set with the same encapsulation format.
To set the encapsulation format for LLDP frames to SNAP:
Step
Enter system view.
1.
Enter Layer 2/Layer 3
2.
Ethernet interface view,
management
interface
2/Layer
interface
physical interface view.
Set
3.
format for LLDP frames to
SNAP.
the
LLDP
frame
Command
system-view
Ethernet
view,
Layer
interface interface-type interface-number
3
aggregate
view,
or
IRF
•
the
encapsulation
•
Command
system-view
lldp hold-multiplier value
lldp timer tx-interval interval
lldp max-credit credit-value
lldp fast-count count
lldp timer fast-interval interval
In Layer 2/Layer 3 Ethernet interface
view
or
management
interface
lldp [ agent { nearest-customer |
nearest-nontpmr } ] encapsulation
snap
In Layer 2/Layer 3 aggregate interface
view:
lldp agent { nearest-customer |
176
Remarks
N/A
The default setting is 4.
The
default
setting
seconds.
The default setting is 5.
The default setting is 4.
The default setting is 1 second.
Remarks
N/A
N/A
Ethernet
view:
By default,
encapsulation
applies.
is
30
Ethernet
II
format