lldp

To configure LLDP properties such as, on an interface, use the command lldp in Interface Configuration Mode. This command executes only if LLDP is started. The no form of the command resets all LLDP properties to their default values. This command can be executed only if LLDP is started.

lldp

lldp { {Dest-mac } { <mac_addr> }
{ | med-location } { med-tlv-select } { elin-location } { location-id } { <string(10-25)> }
{ | med-tlv-select } { {ex-power-via-mdi } { | inventory-management } { | location-id } { | med-capability } { | network-policy} } { [mac-addr } { <mac-addr>] }
{ | notification } { {remote-table-chg } { | mis-configuration } { {mac-addr } { <mac-addr>}} }
{ | port-id-subtype } { if-alias } { | if-name } { | local } { <string(255)> } { | mac-addr } { | port-comp } { <string(255)>} }
{ | receive } { [mac-addr } { <mac-addr>] }
{ | tlv-select } { {basic-tlv } { {mgmt-addr } { {all } { | ipv4 } { <ucast_addr> } { | ipv6 } { <ipv6_addr>} } { | port-descr } { | sys-capab } { | sys-descr } { | sys-name} } { | dot1tlv } { {link-aggregation } { | mgmt-vid } { | port-vlan-id } { | protocol-vlan-id } { {<vlan_id (1-4094)> } { | all} } { | vid-usage-digest } { | vlan-name } { {<vlan_id (1-4094)> } { | all}} } { [mac-addr } { <mac-addr>] } { | dot3tlv } { {link-aggregation } { | macphy-config } { | max-framesize} }
{ | transmit } { [mac-addr } { <mac-addr>] }

no lldp

no lldp { {Dest-mac } { | med-location } { | med-tlv-select } { | notification } { | receive } { | tlv-select } { | transmit} }

Parameters

Parameter Type Description
Dest-mac   Enter to configure destination mac-address to be used by the LLDP agent for transmission on this port.
Note:

This command can be executed only for LLDP ver 2.

<mac_addr>   Enter a message fast transmit interval value (txFast).
med-location   Enter to configure the Location Identification TLV related configuration.
elin-location   Enter to configure the Emergency Location Information Number (ELIN) location subtype information advertised by the endpoint.
location-id   Enter for location information related configuration.
<string(10-25)>   Enter a location identification value.
med-tlv-select   Enter to configure the LLDP-MED TLV transmission on a given switch port.
Note:
MAC-address can be configured only if
  • LLDP version v2 is enabled
  • lldp dest-mac is configured
ex-power-via-mdi   Enter to configure the extended power via MDI TLV related transmission for the LLDP module.
inventory-management   Enter to configure the Inventory-management TLV related transmission for the LLDP module.
location-id   Enter to configure the Location identification TLV related transmission for the LLDP module
med-capability   Enter to configure the Med Capability TLV transmission for the LLDP module.
network-policy   Enter to configure the Network-policy TLV related transmission for the LLDP module.
mac-addr   Enter to configure the basic TLV transmission to use the MAC address as destination MAC address by the LLDP agent on the specified switch port.
<mac-addr>   Enter a destination MAC address.
notification   Enter to configure the control of the transmission of LLDP notifications.
remote-table-chg   Enter to configure sending trap notification to NMS when remote table change occurs.
mis-configuration   Enter to configure sending trap notification to NMS when misconfiguration is identified.
mac-addr   Enter to configure the MAC address to be used as destination MAC address by the LLDP agent on the specified port
port-id-subtype   Enter to configure an ID for LLDP port subtype.
if-alias   Enter to configure the chassis identifier based on the value of ifAlias for an interface on the chassis.
if-name   Enter to configure the chassis identifier based on the value of ifName object for an interface on the chassis
local   Enter to configure the chassis identifier based on a locally defined value.
<string(255)> Integer Enter an ID value for the a chassis identifier
mac-addr   Enter to configure the LLDP port ID subtype and port ID value.
port-comp   Enter to configure the chassis identifier based on the value of entPhysicalAlias object for a port or backplane within the chassis.
<string(255)> Integer Enter an ID value based on the value of entPhysicalAlias object.
receive   Enter to configure to set LLDP admin status on an interface to Receive.
mac-addr   Enter to configure specifies the MAC destination address of the LLDP agent.
<mac-addr>   Enter a destination MAC address.
tlv-select   Enter to configure the TLV type configuration.
basic-tlv   Enter to set the basic TLV transmission configuration.
mgmt-addr   Enter to enable the basic TLV transmission to maintain the management addresses through which a management module can manage the system and allow the transmission on the current interface.
all   Enter to enable the transmission of a particular ipv4 address on the current interface.
ipv4   Enter to enable the transmission of only configured IPv4 addresses.
<ucast_addr>   Enter an Unicast IP address. The format is A.B.C.D
ipv6   Enter to enable the transmission of only configured IPv6 addresses.
<ipv6_addr>   Enter an IPv6 address. The format is AAAA::BBBB.
port-descr   Enter to enable the basic TLV transmission for the administratively assigned description for the port.
sys-capab   Enter to enable the basic TLV transmission for the administratively assigned system name.
sys-descr   Enter to enable the basic TLV transmission for the administratively assigned system description. The system description includes system’s hardware name and type, and system’s operating software and its version.
sys-name   Enter to enable the system capabilities of the basic TLV transmission
dot1tlv   Enter to enable the basic TLV transmission for the administratively assigned description for the port.
link-aggregation   Enter to perform dot1 TLV configuration while transmitting the LLDP frames to the link-aggregation TLV.
Note:

This parameter can be set only when LLDP version is set as v2.

mgmt-vid   Enter to perform dot1 TLV configuration while transmitting the LLDP frames to the management TLV.
Note:

This parameter can be set only when LLDP version is set as v2.

port-vlan-id   Enter to specify the VLAN ID of the port that uniquely identifies a specific VLAN. This VLAN ID is associated with a specific group of protocols for the specific port
protocol-vlan-id   Enter to specify the protocol ID that represents a specific group of protocols that are associated together when assigning a VID to a frame. This group ID is associated with the specific port.
<vlan_id (1-4094)>   Enter to set the protocol id as the mentioned vlan id. This value ranges from 1 to 4094.
all   Enter to set the protocol ID to all.
vid-usage-digest   Enter to perform dot1 TLV configuration while transmitting the LLDP frames to the VID usage digest TLV.
Note:

This parameter can be set only when LLDP version is set as v2.

vlan-name   Enter to specify the administratively assigned string, which is used to identify the VLAN.
<vlan_id (1-4094)>   Enter to set the protocol id as the mentioned vlan id. This value ranges from 1 to 4094.
all   Enter to set the protocol ID to all.
mac-addr   Enter to configure specifies the MAC destination address of the LLDP agent.
Note:

This parameter can be set only when LLDP version is set as v2.

<mac-addr>   Enter a destination MAC address.
dot3tlv   Enter to perform dot3 TLV configuration while transmitting the LLDP frames to the particular port apart from the basic settings.
link-aggregation   Enter to configure the link aggregation protocol statistics for each port on the device.
macphy-config   Enter to configure the physical MAC address of the TLV.
max-framesize   Enter to configure the maximum frame size of the TLV.
transmit   Enter to configure to set LLDP admin status on an interface to Transmit.
mac-addr   Enter to configure specifies the MAC destination address of the LLDP agent.
<mac-addr>   Enter a destination MAC address.

Mode

Interface Configuration Mode

Examples

iiS5comm(config-if)# lldp dest-mac 00:11:22:33:44:55

% Dest-Mac address cannot be configured for lldp version1

iS5comm(config-if)# exit

iS5comm(config)# set lldp version v2

iS5comm (config-if)# lldp med-location elin-location location-id 12345678912345

iS5comm(config-if)# lldp med-tlv-select inventory-management

iS5comm(config-if)# lldp med-tlv-select location-id mac-address 00:01:03:04:06:07

iS5comm(config-if)# lldp med-tlv-select inventory-managementiS5comm(config-if)# lldp med-tlv-select location-id mac-address 00:01:03:04:06:07

iS5comm(config-if)# lldp notification remote-table-chg

iS5comm(config-if)# lldp port-id-subtype mac-addr

iS5comm(config-if)# lldp port-id-subtype local slot0/1

iS5comm(config-if)# lldp tlv-select basic-tlv port-descr

iS5comm(config-if)# lldp tlv-select dot1tlv port-vlan-id mac-address 00:11:22:33:44:55

iS5comm(config-if)# lldp tlv-select dot3tlv macphy-config

iS5comm(config-if)# lldp receive

iS5comm(config-if)# lldp transmit

iS5comm(config-if)# lldp med-tlv-select inventory-management

iS5comm(config-if)# lldp med-tlv-select location-id mac-address 00:01:03:04:06:07