A SERVICE OF

logo

27-7
Software Configuration Guide—Release 15.0(2)SG
OL-23818-01
Chapter 27 Configuring LLDP, LLDP-MED, and Location Service
Configuring LLDP and LLDP-MED, and Location Service
This example shows how to globally enable LLDP:
Switch# configure terminal
Switch(config)# lldp run
Switch(config)# end
Disabling and Enabling LLDP on an Interface
LLDP is disabled globally on all supported interfaces. You must enable LLDP globally to allow a device
to send LLDP packets. However, no changes are required at the interface level.
You can configure the interface to selectively not to send and receive LLDP packets with the
no lldp transmit and no lldp receive commands.
Note If the interface is configured as a tunnel port, LLDP is automatically disabled.
To disable LLDP on an interface, perform this task:
To enable LLDP on an interface once it has been disabled, perform this task:
This example shows how to enable LLDP on an interface:
Switch# configure terminal
Switch(config)# interface GigabitEthernet 1/1
Switch(config-if)# lldp transmit
Switch(config-if)# lldp receive
Switch(config-if)# end
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# interface interface-id
Specifies the interface on which you are disabling LLDP, and enter
interface configuration mode.
Step 3
Switch(config)# no lldp transmit
Disallows sending LLDP packets on the interface.
Step 4
Switch(config)# no lldp receive
Disallows receiving LLDP packets on the interface.
Step 5
Switch(config)# end
Returns to privileged EXEC mode.
Step 6
Switch(config)# copy running-config
startup-config
Saves your entries in the configuration file.
Command Purpose
Step 1
Switch# configure terminal
Enters global configuration mode.
Step 2
Switch(config)# interface interface-id
Specifies the interface on which you are enabling LLDP, and enter
interface configuration mode.
Step 3
Switch(config)# lldp transmit
Sends LLDP packets on the interface.
Step 4
Switch(config)# lldp receive
Receives LLDP packets on the interface.
Step 5
Switch(config)# end
Returns to privileged EXEC mode.
Step 6
Switch# copy running-config
startup-config
Saves your entries in the configuration file.