Skip to content

LLDP

LLDP operates at Layer 2 and enables network devices to advertise their identity, capabilities, and management addresses to directly connected neighbors. It is commonly used in multi-vendor environments where Cisco CDP is not available, and supports standard TLVs for system name, description, port information, and management address.

Diagram
NameTypeConstraintMandatoryDefault Value
lldpClass[lldp]No

NameTypeConstraintMandatoryDefault Value
chassis_idStringNo
chassis_id_typeChoicechassis_component, interface_alias, interface_name, local, mac_address, network_address, port_componentNo
extended_show_width_enableBooleantrue, falseNo
holdtimeIntegermin: 0, max: 65535No
management_enableBooleantrue, falseNo
priorityaddr_enableBooleantrue, falseNo
reinitIntegermin: 2, max: 5No
subinterfaces_enableBooleantrue, falseNo
subinterfaces_taggedBooleantrue, falseNo
system_descriptionStringNo
system_nameStringNo
timerIntegermin: 5, max: 65534No
tlv_selectClass[tlv_select]No

tlv_select (iosxr.devices.configuration.lldp)

Section titled “tlv_select (iosxr.devices.configuration.lldp)”
NameTypeConstraintMandatoryDefault Value
management_address_disableBooleantrue, falseNo
port_description_disableBooleantrue, falseNo
system_capabilities_disableBooleantrue, falseNo
system_description_disableBooleantrue, falseNo
system_name_disableBooleantrue, falseNo

Example-1: Tune LLDP timers for faster neighbor detection.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
hostname: router-1
lldp:
holdtime: 180
timer: 10
reinit: 3

Example-2: Enable LLDP on subinterfaces and management interfaces for a provider edge router.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
hostname: router-1
lldp:
subinterfaces_enable: true
subinterfaces_tagged: true
management_enable: true
priorityaddr_enable: true

Example-3: Restrict TLV advertisements to minimize information exposure on an untrusted peering interface.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
hostname: router-1
lldp:
tlv_select:
system_name_disable: true
system_description_disable: true
system_capabilities_disable: true
management_address_disable: true

Example-4: Override the chassis ID with a local serial number for asset tracking.

iosxr:
devices:
- name: router-1
host: 10.10.10.1:57400
configuration:
hostname: router-1
lldp:
system_name: router-1
system_description: "NCS-5508-Router"
chassis_id: FOC2249N1GH
chassis_id_type: local