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 vrouter and description Router, do:

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

To display the LLDP state:

vrouter running config# show state vrf main lldp
lldp
    management-address 10.0.0.1
    system-name vrouter
    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:

vrouter> 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>vrouter</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.