Configuring LLDP and LLDP-MED
Command
Step 5
end
Step 6
copy running-config startup-config
Beginning in privileged EXEC mode, follow these steps to enable LLDP on an interface when it has been
disabled:
Command
Step 1
configure terminal
Step 2
interface interface-id
Step 3
lldp transmit
Step 4
lldp receive
Step 5
end
Step 6
copy running-config startup-config
This example shows how to enable LLDP on an interface.
Switch# configure terminal
Switch(config)# interface GigabitEthernet0/1
Switch(config-if)# lldp transmit
Switch(config-if)# lldp receive
Switch(config-if)# end
Configuring LLDP-MED TLVs
By default, the switch only sends LLDP packets until it receives LLDP-MED packets from the end
device. The device continues to send LLDP-MED packets until it only receives LLDP packets.
By using the lldp interface configuration command, you can configure the interface not to send the TLVs
listed in
Table 21-2
LLDP-MED TLV
inventory-management
location
network-policy
power-management
Catalyst 2960 Switch Software Configuration Guide
21-6
Purpose
Return to privileged EXEC mode.
(Optional) Save your entries in the configuration file.
Purpose
Enter global configuration mode.
Specify the interface on which you are enabling LLDP-MED, and
enter interface configuration mode.
LLDP packets are sent on the interface.
LLDP packets are received on the interface.
Return to privileged EXEC mode.
(Optional) Save your entries in the configuration file.
Table
21-2.
LLDP-MED TLVs
Description
LLDP-MED inventory management TLV
LLDP-MED location TLV
LLDP-MED network policy TLV
LLDP-MED power management TLV
Chapter 21
Configuring LLDP and LLDP-MED
OL-8603-04