21-6
Catalyst 2960 Switch Software Configuration Guide
OL-8603-04
Chapter 21 Configuring LLDP and LLDP-MED
Configuring LLDP and LLDP-MED
Beginning in privileged EXEC mode, follow these steps to enable LLDP on an interface when it has been
disabled:
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.
Step 5
end Return to privileged EXEC mode.
Step 6
copy running-config startup-config (Optional) Save your entries in the configuration file.
Command Purpose
Command Purpose
Step 1
configure terminal Enter global configuration mode.
Step 2
interface interface-id Specify the interface on which you are enabling LLDP-MED, and
enter interface configuration mode.
Step 3
lldp transmit LLDP packets are sent on the interface.
Step 4
lldp receive LLDP packets are received on the interface.
Step 5
end Return to privileged EXEC mode.
Step 6
copy running-config startup-config (Optional) Save your entries in the configuration file.
Table 21-2 LLDP-MED TLVs
LLDP-MED TLV Description
inventory-management LLDP-MED inventory management TLV
location LLDP-MED location TLV
network-policy LLDP-MED network policy TLV
power-management LLDP-MED power management TLV