Setting an encapsulation format for LLDP frames

LLDP frames can be encapsulated in the following formats:

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 3 Ethernet interface view or Layer 3 aggregate interface view.

interface interface-type interface-number

N/A

3. Set the encapsulation format for LLDP frames to SNAP.

  • In Layer 3 Ethernet interface view:lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation snap

  • In Layer 3 aggregate interface view:lldp agent { nearest-customer | nearest-nontpmr } encapsulation snap

By default, Ethernet II encapsulation format applies.