LLDPΒΆ
802.1AB Link-Layer Discovery Protocol (LLDP) provides information to devices that are directly adjacent to them on the local LAN.
LLDP sends information periodically and at link status change time to indicate the configuration parameters of the device.
This protocol allows the router to:
advertise its identity and capabilities on the local network
receive the same information from a physically adjacent layer 2 peer
LLDP uses Ethernet as its transport protocol, the Ethernet type for LLDP is 0x88CC.
User can control which information is being sent from the router:
description of the device
system name
the IP address to reach the device on LLDP port
User has to define the list of interfaces on which LLDP is active.
The chassis ID will be set automatically.
To configure LLDP to start on the eth1
interface, reachable on the
10.125.0.1
address, with name vsr
and description Router
, do:
vsr running config# / vrf main interface physical eth2 port pci-b0s5
vsr running config# / vrf main interface physical eth2 ipv4 address 10.125.0.1/24
vsr running config# / vrf main lldp interface eth2
vsr running interface eth2# / vrf main lldp system-name vsr
vsr running interface eth2# / vrf main lldp system-description Router
vsr running interface eth2# / vrf main lldp management-address 10.125.0.1
To display the LLDP state:
vsr> show state vrf main lldp
lldp
enabled true
hello-timer 30
system-name vsr
system-description Router
counters
frame-in 1
frame-out 1
frame-discard 0
tlv-discard 0
..
chassis-id de:ad:de:01:02:03
chassis-id-type mac-address
management-address 10.125.0.1
interface eth2
enabled true
counters
frame-in 1
frame-out 1
frame-discard 0
tlv-discard 0
..
neighbor id eth2
port-id de:ed:02:cc:e5:c9
port-id-type mac-address
port-description eth2
management-address 10.125.0.2
system-name router
system-description Router
chassis-id de:ad:de:01:02:03
chassis-id-type mac-address
capability mac-bridge
enabled false
..
capability router
enabled true
..
capability wlan-access-point
enabled false
..
capability station-only
enabled false
..
..
..
..
The same configuration can be made using this NETCONF XML configuration:
vsr> show config xml absolute nodefault vrf main lldp
<config xmlns="urn:6wind:vrouter">
<vrf>
<name>main</name>
<lldp xmlns="urn:6wind:vrouter/lldp">
<system-name>vsr</system-name>
<system-description>Router</system-description>
<management-address>10.125.0.1</management-address>
<interface>
<name>eth2</name>
</interface>
</lldp>
</vrf>
</config>
See also
The command reference for details.
To show the list of LLDP neighbors:
vsr> show lldp neighbors
================================================================================
Interface: eth2
Neighbor: eth2
Chassis:
IdType: mac-address
Id: de:ad:de:01:02:03
System:
Name: router
Description: Router
Port:
IdType: mac-address
Id: de:ed:02:cc:e5:c9
Description: eth2
ManagementAddress: 10.125.0.2
Capabilities:
Enabled: router
Disabled: mac-bridge, wlan-access-point, station-only
See also
The command reference for details.