Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
themeEmacs
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 local
       lldp forward { disable | enable }
       lldp tagged  { disable | enable }
       lldp reset

Parameters

Center
ParametersDescription
[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" incomingLLDP 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.

Set the VLAN name. Some systems are operating with VLAN names to automatically configure their services
  • "mgmtvid VID" VLAN ID which contains the management IP address, if the address is set manually.

[-]vlan VID NAME

  • .

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

Code Block
languagetext
themeEmacs
lldp eth0 mgmtip 192.168.103.35

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

Code Block
languagetext
themeEmacs
 LLDP Local info on eth0
+---------------+-------------------------------------------------------------+
| ChassisID:    | IW-173332 (local)                                           |
| SysName:      | Lmn.6                                                       |
| SysDescr:     | Infinet Wireless R5000 WANFleX H11S01-MINTv1.90.29          |
| Caps:         | Repeater*, Bridge*, Router*                                 |
| PortID:       | 00:04:35:02:A5:14 (mac)                                     |
| PortDescr:    | eth0, Lmn.6                                                 |
| MFS:          | 1728 bytes                                                  |
| MgmtIP:       | 192.168.103.35                                              |
+---------------+-------------------------------------------------------------+

Enable the packet switching to other ports.

Code Block
languagetext
themeEmacs
lldp forward enable

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

Code Block
languagetext
themeEmacs
 LLDP Neighbors Table on eth0
+---------------+-------------------------------------------------------------+
|                     LLDP Mode: TxRx,  Forward: enabled                      |
+---------------+-------------------------------------------------------------+
| ChassisID:    | IW-220750 (local)                                           |
| SysName:      | Omx.3                                                       |
| SysDescr:     | Infinet Wireless R5000 WANFleX H08S01-MINTv1.90.29          |
| Caps:         | Repeater*, Bridge*, Router*                                 |
| PortID:       | 00:04:35:03:5E:4E (mac)                                     |
| PortDescr:    | eth0, Omx.3                                                 |
| 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:    | IW-260061 (local)                                           |
| SysName:      | Lmn.5                                                       |
| SysDescr:     | Infinet Wireless R5000 WANFleX H11S01-MINTv1.90.29          |
| Caps:         | Repeater*, Bridge*, Router*                                 |
| PortID:       | 00:04:35:03:F7:DD (mac)                                     |
| PortDescr:    | eth0, Lmn.5                                                 |
| 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:      | XG.6                                                        |
| SysDescr:     | XG WANFleX H12S10v1.7.1 IW-501817                           |
| Caps:         | Repeater*, Bridge*                                          |
| PortID:       | ge0 (local)                                                 |
| PortDescr:    | ge0, XG.6                                                   |
| MFS:          | 1728 bytes                                                  |
| MgmtIP:       | 10.10.10.13, 192.168.103.39                                 |
| Last report:  | 41 seconds ago, TTL 183 seconds, Age 01:04:56               |
+---------------+-------------------------------------------------------------+
| ChassisID:    | 00:04:35:07:A8:3A (mac)                                     |
| SysName:      | XG.5                                                        |
| SysDescr:     | XG WANFleX H12S10v1.7.1 IW-501818                           |
| Caps:         | Repeater*, Bridge*                                          |
| PortID:       | ge0 (local)                                                 |
| PortDescr:    | ge0, XG.5                                                   |
| MFS:          | 1728 bytes                                                  |
| MgmtIP:       | 192.168.103.38, 10.10.10.12                                 |
| Last report:  | 40 seconds ago, TTL 183 seconds, Age 01:04:54               |
+---------------+-------------------------------------------------------------+
| ChassisID:    | F8:F0:82:73:C0:3B (mac)                                     |
| PortID:       | 37 (local)                                                  |
| Last report:  | 17 seconds ago, TTL 120 seconds, Age 01:04:46               |
+---------------+-------------------------------------------------------------+