Configuring LLDP
Before you begin
Ensure that the Link Layer Discovery Protocol (LLDP) feature is enabled on the switch.
SUMMARY STEPS
- switch# configure terminal
- switch# feature lldp
- switch(config)# lldp {holdtime seconds | reinit seconds | timer seconds | tlv-select {dcbxp | management-address | power management | port-description | port-vlan | system-capabilities | system-description | system-name}}
- switch(config)# no lldp {holdtime | reinit | timer}
- (Optional)switch# show lldp
DETAILED STEPS
Command or Action | Purpose | |
---|---|---|
Step 1 |
switch# configure terminal |
Enters global configuration mode. |
Step 2 |
switch# feature lldp |
Enable LLDP. |
Step 3 |
switch(config)# lldp {holdtime seconds | reinit seconds | timer seconds | tlv-select {dcbxp | management-address | power management | port-description | port-vlan | system-capabilities | system-description | system-name}} |
Configures LLDP options. Use the holdtime option to set the length of time (10 to 255 seconds) that a device should save LLDP information received before discarding it. The default value is 120 seconds. Use the reinit option to set the length of time (1 to 10 seconds) to wait before performing LLDP initialization on any interface. The default value is 2 seconds. Use the timer option to set the rate (5 to 254 seconds) at which LLDP packets are sent. The default value is 30 seconds. Use the tlv-select option to specify the type length value (TLV). The default is enabled to send and receive all TLVs. Use the dcbxp option to specify the Data Center Ethernet Parameter Exchange (DCBXP) TLV messages. Use the management-address option to specify the management address TLV messages. Use the power management option to specify the power management TLV for LLDP. Use the port-description option to specify the port description TLV messages. Use the port-vlan option to specify the port VLAN ID TLV messages. Use the system-capabilities option to specify the system capabilities TLV messages. Use the system-description option to specify the system description TLV messages. Use the system-name option to specify the system name TLV messages. |
Step 4 |
switch(config)# no lldp {holdtime | reinit | timer} |
Resets the LLDP values to their defaults. |
Step 5 |
(Optional)switch# show lldp |
Displays LLDP configurations. |
Example
This example shows how to configure the global LLDP hold time to 200 seconds:
switch# configure terminal
switch(config)# lldp holdtime 200
switch(config)#
This example shows how to enable LLDP to send or receive the management address TLVs:
switch# configure terminal
switch(config)# lldp tlv-select management-address
switch(config)#