Questo contenuto non è disponibile nella lingua selezionata.
Chapter 31. Using LLDP to debug network configuration problems
You can use the Link Layer Discovery Protocol (LLDP) to debug network configuration problems in the topology. This means that, LLDP can report configuration inconsistencies with other hosts or routers and switches.
31.1. Debugging an incorrect VLAN configuration using LLDP information Copia collegamentoCollegamento copiato negli appunti!
If you configured a switch port to use a certain VLAN and a host does not receive these VLAN packets, you can use the Link Layer Discovery Protocol (LLDP) to debug the problem. Perform this procedure on the host that does not receive the packets.
Prerequisites
-
The
nmstate
package is installed. - The switch supports LLDP.
- LLDP is enabled on neighbor devices.
Procedure
Create the
~/enable-LLDP-enp1s0.yml
file with the following content:interfaces: - name: enp1s0 type: ethernet lldp: enabled: true
interfaces: - name: enp1s0 type: ethernet lldp: enabled: true
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Use the
~/enable-LLDP-enp1s0.yml
file to enable LLDP on interfaceenp1s0
:nmstatectl apply ~/enable-LLDP-enp1s0.yml
# nmstatectl apply ~/enable-LLDP-enp1s0.yml
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Display the LLDP information:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the output to ensure that the settings match your expected configuration. For example, the LLDP information of the interface connected to the switch shows that the switch port this host is connected to uses VLAN ID
448
:- type: 127 ieee-802-1-vlans: - name: v2-0488-03-0505 vid: 488
- type: 127 ieee-802-1-vlans: - name: v2-0488-03-0505 vid: 488
Copy to Clipboard Copied! Toggle word wrap Toggle overflow If the network configuration of the
enp1s0
interface uses a different VLAN ID, change it accordingly.