Setting an encapsulation format for LLDP frames

LLDP frames can be encapsulated in the following formats:

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.

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

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

  • In IRF physical interface view:lldp encapsulation snap

By default, Ethernet II encapsulation format applies.