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.
LLDP of earlier versions requires the same encapsulation format on both ends to process LLDP frames. To successfully communicate with a neighboring device running LLDP of earlier versions, the local device must be configured 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, or IRF physical 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. |