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 eth0 interface, reachable on the 10.0.0.1 address, with name vsr and description Router, do:

vsr running config# vrf main
vsr running vrf main# lldp
vsr running lldp# enabled true
vsr running lldp# interface eth0
vsr running interface eth0# ..
vsr running lldp# system-name vsr
vsr running lldp# system-description Router
vsr running lldp# management-address 10.0.0.1
vsr running lldp# commit
Configuration applied.

To display the LLDP state:

vsr running config# show state vrf main lldp
lldp
    management-address 10.0.0.1
    system-name vsr
    system-description Router
    chassis-id-type mac-address
    counters
        tlv-discard 0
        frame-in 0
        frame-out 0
        frame-discard 0
        ..
    enabled true
    chassis-id de:ad:de:01:02:03
    hello-timer 30
    interface eth0
        enabled true
        counters
            frame-out 1
            frame-discard 0
            tlv-discard 0
            frame-in 0
            ..
        ..
    ..

The same configuration can be made using this NETCONF XML configuration:

vsr> show config xml absolute vrf main lldp
<config xmlns="urn:6wind:vrouter">
  <vrf>
    <name>main</name>
    <lldp xmlns="urn:6wind:vrouter/lldp">
      <management-address>10.0.0.1</management-address>
      <system-name>vsr</system-name>
      <system-description>Router</system-description>
      <enabled>true</enabled>
      <interface>
        <name>eth0</name>
        <enabled>true</enabled>
      </interface>
    </lldp>
  </vrf>
</config>

See also

The command reference for details.