Enables or disables LLDP operation on the switch.
The
no
form of the command, regardless of individual LLDP port configurations, prevents the switch from
transmitting outbound LLDP advertisements and causes the switch to drop all LLDP advertisements received
from other devices.
The switch preserves the current LLDP configuration when LLDP is disabled. After LLDP is disabled, the
information in the LLDP neighbors database remains until it times-out.
(Default: Enabled)
Disabling LLDP
switch(config)# no lldp run
Changing the packet transmission interval (CLI)
This interval controls how often active ports retransmit advertisements to their neighbors.
Syntax:
lldp refresh-interval <5-32768>
Changes the interval between consecutive transmissions of LLDP advertisements on any given port.
(Default: 30 seconds)
NOTE:
The
refresh-interval
must be greater than or equal to (4 x
delay-interval
). (The default
delay-interval
is 2). For example, with the default
delay-interval
, the lowest
refresh-
interval
you can use is 8 seconds (4 x 2=8). Thus, if you want a
refresh-interval
of 5
seconds, you must first change the delay interval to 1 (that is, 4 x 1 5). If you want to change the
delay-interval
, use the
setmib
command.
Time-to-Live for transmitted advertisements
The Time-to-Live value (in seconds) for all LLDP advertisements transmitted from a switch is controlled by the
switch that generates the advertisement and determines how long an LLDP neighbor retains the advertised data
before discarding it. The Time-to-Live value is the result of multiplying the
refresh-interval
by the
holdtime-multiplier
.
Changing the time-to-live for transmitted advertisements (CLI)
For more information, see
Time-to-Live for transmitted advertisements
on page 225.
Syntax:
lldp holdtime-multiplier <2-10>
Changes the multiplier an LLDP switch uses to calculate the Time-to-Live for the LLDP advertisements it
generates and transmits to LLDP neighbors. When the Time-to-Live for a given advertisement expires, the
advertised data is deleted from the neighbor switch's MIB.
(Default: 4; Range 2–10)
Example:
If the refresh-interval on the switch is 15 seconds and the
holdtime-multiplier
is at the default, the Time-to-
Live for advertisements transmitted from the switch is 60 seconds (4 x 15).
To reduce the Time-to-Live, you could lower the
holdtime-interval
to 2, which would result in a Time-to-Live
of 30 seconds.
Chapter 7 Configuring for Network Management Applications
225