R0106-HP MSR Router Series Layer 2 - LAN Switching Command Reference(V7)
105
Examples
# Disable LLDP on GigabitEthernet 2/1/1.
<Sysname> system-view
[Sysname] interface gigabitethernet 2/1/1
[Sysname-GigabitEthernet2/1/1] undo lldp enable
Related commands
lldp global enable
lldp encapsulation snap
Use lldp encapsulation snap to configure the encapsulation format for LLDP frames as SNAP.
Use undo lldp encapsulation to restore the default.
Syntax
In Layer 2 Ethernet interface view:
lldp encapsulation snap
undo lldp encapsulation
In Layer 3 Ethernet interface view:
lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation snap
undo lldp [ agent { nearest-customer | nearest-nontpmr } ] encapsulation
In Layer 3 aggregate interface view:
lldp agent { nearest-customer | nearest-nontpmr } encapsulation snap
undo lldp agent { nearest-customer | nearest-nontpmr } encapsulation
Default
The encapsulation format for LLDP frames is Ethernet II.
Views
Layer 2 Ethernet interface view, Layer 3 Ethernet interface view, Layer 3 aggregate interface view
Predefined user roles
network-admin
Parameters
agent: Specifies an LLDP agent type. If no agent type is specified in Ethernet interface view, the command
configures 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.
LLDP frames carrying the Edge Virtual Bridging (EVB) module TLVs cannot be encapsulated in SNAP.
Examples
# Configure the encapsulation format for LLDP frames as SNAP on GigabitEthernet 2/1/1.
<Sysname> system-view