Tip
This is the documentation for the 19.02 version. Looking for the documentation of the latest version? Have a look here.
- orphan:
Link Layer Discovery Protocol¶
The Link Layer Discovery Protocol (LLDP) service provides a method for discovering which routers are connected to a LAN segment, and offers a way to discover the topology of a network.
Configuring the LLDP Service¶
LLDP is configured in two places: One for the router level parameters and one the per-interface parameters.
The router level has three parameters:
- System Name:
The router hostname to advertise via LLDP
- Transmit Interval:
The transmit interval controls the time between LLDP messages in seconds.
- Transmit Hold Time:
The transmit hold time is the multiple of the transmit interval which is used for the Time-To-Live (TTL) of the LLDP message.
For example, if the transmit interval is 5
and the transmit hold time is
4
, then the advertised TTL of the LLDP message is 20
.
Configure the router level parameters in configuration mode (Configuration Mode):
tnsr(config)# lldp system-name MyRouter
tnsr(config)# lldp tx-hold 3
tnsr(config)# lldp tx-interval
These parameters can be changed at any time.
The interface level has additional per-interface parameters:
- Port Name:
The name of the interface, as advertised in LLDP
- Management IP Address (IPv4 & IPv6):
The IPv4 and/or IPv6 address to advertise as a means to manage this router on this interface.
- Management OID:
An object identifier associated with the management IP address
These settings are optional:
tnsr(config)# interface TenGigabitEthernet3/0/0
tnsr(config-interface)# lldp port-name MyPort
tnsr(config-interface)# lldp management ipv4 192.0.2.123
tnsr(config-interface)# lldp management ipv6 2001:db8::1:2:3:4
tnsr(config-interface)# exit
tnsr(config)#
Warning
A limitation of the underlying API means that interface values must be configured at the same time and cannot be changed. This will be fixed in a later release.