lldp command
Description
Link Layer Discovery Protocol (LLDP) allows network devices to advertise their identity, capabilities, and to receive same information from neighbors on an local area network. Information can be requested from the device by services via SNMP.
Nodes may share information about:
network device name;
network device description;
system capabilities (switching, routing, etc.);
port name;
port description;
MTU;
management IP address;
the last update time and the time during which the information will be saved (TTL).
Syntax:
Parameters
[IFNAME]
Name of the network interface to which parameters are referred.
{ disable | { enable [ tx | rx | txrx ] }}
Allows to control the LLDP messages exchange, by default this function is enabled for both incoming and outgoing messages.
"enable" – enable the LLDP messages exchange:
"tx" – outgoing LLDP messages only no incoming messages are allowed;
"rx" – incoming LLDP messages only no outgoing messages are allowed;
"txrx" – both incoming and outgoing messages.
"disable" – disable the LLDP messages exchange.
mgmtip IP [mgmtvid VID]
Set the management IP address.
"mgmtvid VID" – VLAN ID which contains the management IP address, if the address is set manually.
[-]vlan VID NAME
Set the VLAN name. Some systems are operating with VLAN names to automatically configure their services.
lldp [IFNAME] chassis serial | [mac]
Allows to change value which is displayed in the "ChassisID" field to the device serial number. By default MAC address is displayed.
report | local
"report" – shows the information device receives from its neighbors.
"local" – shows information device sends to its neighbors.
forward { disable | enable }
Enables/disables packet switching to other ports.The standard protocol LLDP does not allow such an opportunity. By default, this function is disabled.
lldp tagged { disable | enable }
Enables/disables tagged packets processing. By default, this function is disabled.
lldp reset
Removes accumulated statistics.
Examples
Set the management IP address "192.168.103.35" on the network interface "eth0".
Device information will appear while using command "lldp eth0 local":
Enable the packet switching to other ports.
Display an information about all neighbors in the local area, accessible through the network interface "eth0" using "lldp eth0 report" command.
Last updated