⁣⁣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:

usage: lldp [IFNAME] { disable | { enable [ tx | rx | txrx ] }}
       lldp [IFNAME] mgmtip IP [mgmtvid VID]
       lldp [IFNAME] [-]vlan VID NAME
       lldp [IFNAME] chassis serial | [mac]
       lldp [IFNAME] report | local
       lldp forward { disable | enable }
       lldp tagged  { disable | enable }
       lldp reset

Parameters

Parameter
Description

[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".

lldp eth0 mgmtip 192.168.103.35

Device information will appear while using command "lldp eth0 local":

LLDP Local info on eth0
+---------------+-------------------------------------------------------------+
| ChassisID:    | AW-173332 (local)                                           |
| SysName:      | ST-25                                                       |
| SysDescr:     | E5000 AstraFleX H22S01-TDMAv0.20.29                         |
| Caps:         | Repeater*, Bridge*, Router*                                 |
| PortID:       | 00:04:35:02:A5:14 (mac)                                     |
| PortDescr:    | eth0, ST-25                                                 |
| MFS:          | 1728 bytes                                                  |
| MgmtIP:       | 192.168.103.35                                              |
+---------------+-------------------------------------------------------------+

Enable the packet switching to other ports.

lldp forward enable

Display an information about all neighbors in the local area, accessible through the network interface "eth0" using "lldp eth0 report" command.

LLDP Neighbors Table on eth0
+---------------+-------------------------------------------------------------+
|                     LLDP Mode: TxRx,  Forward: enabled                      |
+---------------+-------------------------------------------------------------+
| ChassisID:    | AW-220750 (local)                                           |
| SysName:      | E5-BSI                                                      |
| SysDescr:     | E5000 AstraFleX H16S01-TDMAv0.20.29                         |
| Caps:         | Repeater*, Bridge*, Router*                                 |
| PortID:       | 00:04:35:03:5E:4E (mac)                                     |
| PortDescr:    | eth0, E5-BSI                                                |
| MFS:          | 1728 bytes                                                  |
| MgmtIP:       | 192.168.103.36, 10.10.10.16                                 |
| Last report:  | 26 seconds ago, TTL 180 seconds, Age 01:04:58               |
+---------------+-------------------------------------------------------------+
| ChassisID:    | AW-260061 (local)                                           |
| SysName:      | ST-23                                                       |
| SysDescr:     | E5000 AstraFleX H22S01-TDMAv0.20.29                         |
| Caps:         | Repeater*, Bridge*, Router*                                 |
| PortID:       | 00:04:35:03:F7:DD (mac)                                     |
| PortDescr:    | eth0, ST-23                                                 |
| MFS:          | 1728 bytes                                                  |
| MgmtIP:       | 192.168.103.37, 10.10.10.14                                 |
| Last report:  | 25 seconds ago, TTL 181 seconds, Age 01:04:57               |
+---------------+-------------------------------------------------------------+
| ChassisID:    | 00:04:35:07:A8:39 (mac)                                     |
| SysName:      | Q5-25                                                       |
| SysDescr:     | AstraFleX H18S55v1.7.1 AW-501817                            |
| Caps:         | Repeater*, Bridge*                                          |
| PortID:       | ge0 (local)                                                 |
| PortDescr:    | ge0, Q5-25                                                  |
| MFS:          | 1728 bytes                                                  |
| MgmtIP:       | 10.10.10.13, 192.168.103.39                                 |
| Last report:  | 41 seconds ago, TTL 183 seconds, Age 01:04:56               |
+---------------+-------------------------------------------------------------+

Last updated

Astra Wireless Technology © 2024. All rights reserved. For more information about available models, sales and technical support, please proceed to https://astrawireless.net/