27-5
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
Configuring LLDP Characteristics
You can configure the frequency of LLDP updates, the amount of time to hold the information before
discarding it, the initialization delay time. You can also select the LLDP and LLDP-MED TLVs for
sending and receiving. The location service feature is available only when the switch is running the
cryptographic (encrypted) software image.
To configure these characteristics, perform this task:
Note Steps 2 through 5 can be performed in any order.
Note Use the no form of each of the LLDP commands to return to the default setting.
Table 27-1 Default LLDP Configuration
Feature Default Setting
LLDP global state Disabled
LLDP holdtime (before discarding) 120 seconds
LLDP timer (packet update frequency) 30 seconds
LLDP reinitialization delay 2 seconds
LLDP tlv-select Enabled to send and receive all TLVs
LLDP interface state Enabled
LLDP receive Enabled
LLDP transmit Enabled
LLDP med-tlv-select Enabled to send all LLDP-MED TLVs
Command Purpose
Step 1 Switch# configure terminal Enters global configuration mode.
Step 2 Switch(config)# lldp holdtime
seconds (Optional) Specifies the amount of time a receiving device should hold the
information sent by your device before discarding it.
The range is 0 to 65535 seconds; the default is 120 seconds.
Step 3 Switch(config)# lldp reinit (Optional) Specifies the delay time in seconds for LLDP to initialize on
any interface.
The range is 2 to 5 seconds; the default is 2 seconds.
Step 4 Switch(config)# lldp timer seconds (Optional) Sets the transmission frequency of LLDP updates in seconds.
The range is 5 to 65534 seconds; the default is 30 seconds.
Step 5 Switch(config)# lldp tlv-select (Optional) Specifies the LLDP TLVs to send or receive.
Step 6 Switch(config)# copy running-config
startup-config Saves your entries in the configuration file.
Step 7 Switch(config)# lldp med-tlv-select (Optional) Specifies the LLDP-MED TLVs to send or receive.