Setting an encapsulation format for LLDP frames
LLDP frames can be encapsulated in the following formats:
Ethernet II—With Ethernet II encapsulation configured, an LLDP port sends LLDP frames in Ethernet II frames.
SNAP—With SNAP encapsulation configured, an LLDP port sends LLDP frames in SNAP frames.
Earlier versions of LLDP require the same encapsulation format on both ends to process LLDP frames. To successfully communicate with a neighboring device running an earlier version of LLDP, the local device must be set with the same encapsulation format.
To set the encapsulation format for LLDP frames to SNAP:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter Layer 2/Layer 3 Ethernet interface view, management Ethernet interface view, Layer 2/Layer 3 aggregate interface view, synchronous/asynchronous serial interface view, standard POS interface view, or POS channel interface view. | interface interface-type interface-number | N/A |
3. Set the encapsulation format for LLDP frames to SNAP. |
| By default, Ethernet II encapsulation format applies. |