Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

Configuring LLDP

To enable LLDP on a vRouter, you must enable the service by setting its configuration node, as in the following example.

Table 1. Enabling LLDP on a system

Step

Command

Create the LLDP service configuration node.

vyatta@vyatta# set service lldp

Commit the configuration.

vyatta@vyatta# commit

After the service is enabled, you can record information about the location, management address, and port of the device and the legacy protocols it supports. Additional information, including the configured capabilities and neighbors of the system, is extracted automatically from the system and stored in a MIB.

The following example shows how to configure a civic-based location for the system, as follows:

Suite 200 - 1301 Shoreway Road 
Belmont, CA, USA
94002-4157
Table 2. Configuring a civic-based location for LLDP

Step

Command

Configure the language.

vyatta@vyatta#set service lldp interface dp0p1p1 location civic-based ca-type 0 ca-value English

Configure the occupant.

vyatta@vyatta#set service lldp interface dp0p1p1 location civic-based ca-type 23 ca-value "Vyatta, Inc. Corporate Headquarters"

Configure the suite number.

vyatta@vyatta#set service lldp interface dp0p1p1 location civic-based ca-type 26 ca-value “Suite 200”

Configure the floor number.

vyatta@vyatta#set service lldp interface dp0p1p1 location civic-based ca-type 27 ca-value 2nd

Configure the street address.

vyatta@vyatta#set service lldp interface dp0p1p1 location civic-based ca-type 6 ca-value “1301 Shoreway Road”

Configure the city.

vyatta@vyatta#set service lldp interface dp0p1p1 location civic-based ca-type 3 ca-value Belmont

Configure the country.

vyatta@vyatta#set service lldp interface dp0p1p1 location country-code US

Configure the ZIP code.

vyatta@vyatta#set service lldp interface dp0p1p1 location civic-based ca-type 24 ca-value 94002-4157

Commit the configuration.

vyatta@vyatta#commit

Show the LLDP configuration.

vyatta@vyatta#show service lldp

 interface dp0p1p1 {
    location {
        civic-based {
            ca-type 0 {
                ca-value English
            }
            ca-type 3 {
                ca-value Belmont
            }
            ca-type 6 {
                ca-value “1301 Shoreway Road”
            }
            ca-type 23 {
                ca-value "Vyatta, Inc. Corporate Headquarters"
            }
            ca-type 24 {
                ca-value 94002-4157
            }
            ca-type 26 {
                ca-value "Suite 200"
            }
            ca-type 27 {
                ca-value 2nd
            }
            country-code US
        }
    }
 }


                            
                            

The location can be coordinate-based rather than civic-based, as shown in the following example.

Table 3. Configuring the physical coordinates of a system

Step

Command

Configure the latitude coordinate.

vyatta@vyatta#set service lldp interface dp0p1p4 location coordinate-based latitude 37.524449N

Configure the longitude coordinate.

vyatta@vyatta#set service lldp interface dp0p1p4 location coordinate-based longitude 122.267255W

Commit the configuration.

vyatta@vyatta#commit

Show the LLDP configuration for the dp0p1p4 interface.

vyatta@vyatta#show service lldp interface dp0p1p4
 location {
    coordinate-based {
        latitude 37.524449N
        longitude 122.267255W
    }
 }