Procedure
-
By default, the LLDP agent is enabled on all active interfaces. If LLDP was disabled, enable it with the command
lldp
.
-
By default, the LLDP agent transmits and receive on all interfaces. To customize LLDP behavior on a specific interface, use the commands
lldp transmit
and
lldp receive
.
-
By default, the LLDP agent sets the management address in all TLVs in the following order:
LLDP management IP address.
Loopback interface IP.
ROP (L3 ports) or SVI (L2 ports).
OOBM (Management interface IP).
Base MAC.
On the OOBM port, the following order is used:
LLDP management IP address,
IP address of the management interface (OOBM port).
IP address of the loopback interface.
Base MAC address of the switch.
To specify a different address, use the commands
lldp management-ipv4-address
and
lldp management-ipv6-address
-
By default, all supported TLVs are sent and received. To customize the list, use the command
lldp select-tlv
.
-
By default, support for the LLDP-MED TLV is enabled. To customize settings, use the commands
lldp med
and
lldp med-location
.
-
If required, adjust LLDP timer, holdtime, reinitialization delay, and transmit delay from their default values with the commands
lldp timer
,
lldp holdtime
,
lldp reinit
, and
lldp txdelay
.
Example
This example creates the following configuration:
- Enables LLDP support.
- Disables LLDP transmission on interface
1/1/1.
switch(config)# lldp
switch(config)# interface 1/1/1
switch(config-copp)# no lldp transmit