lldp encapsulation snap
Use lldp encapsulation snap to set the encapsulation format for LLDP frames to SNAP.
Use undo lldp encapsulation to restore the default.
Syntax
In Layer 2/Layer 3 Ethernet interface view or management Ethernet interface view:
lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation snap
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation
In Layer 2/Layer 3 aggregate interface view:
lldp agent { nearest-customer | nearest-nontpmr } encapsulation snap
undo lldp agent { nearest-customer | nearest-nontpmr } encapsulation
In IRF physical interface view:
lldp encapsulation snap
undo lldp encapsulation
Default
The encapsulation format for LLDP frames is Ethernet II.
Views
Layer 2 Ethernet interface view
Layer 3 Ethernet interface view
Management Ethernet interface view
Layer 2 aggregate interface view
Layer 3 aggregate interface view
IRF physical interface view
Predefined user roles
network-admin
mdc-admin
Parameters
agent: Specifies an LLDP agent type. If you do not specify an agent type in Ethernet or management Ethernet interface view, the command sets the LLDP frame encapsulation format for nearest bridge agents.
nearest-customer: Specifies nearest customer bridge agents.
nearest-nontpmr: Specifies nearest non-TPMR bridge agents.
Usage guidelines
LLDP-CDP packets use only SNAP encapsulation.
Examples
# Set the encapsulation format for LLDP frames to SNAP on Ten-GigabitEthernet 1/0/1.
<Sysname> system-view [Sysname] interface ten-gigabitethernet 1/0/1 [Sysname-Ten-GigabitEthernet1/0/1] lldp encapsulation snap