2.6.12 l2protocol-tunnel Command
L2PT (Layer 2 protocol tunneling) allows Layer 2 protocol data units (PDUs), including
CDP(Cisco Discovery Protocol), LLDP(Link Layer Discovery Protocol), STP(Spanning Tree
Protocol), VTP(Vlan Trunking Protocol), LACP(Link Aggregation Control Protocol), PAgP(Port
Aggregation Protocol), UDLD(Unidirectional Link Detection), to be tunneled through a network.
GBPT, also referred to as Generic Bridge PDU Tunneling, provides a scalable approach to PDU
tunneling by software encapsulating the PDUs in the ingress edge switches and then multicasting
them in hardware. All switches inside the service provider network treat these encapsulated
frames as data packets and forward them to the other end. The egress edge switch listens for
these special encapsulated frames and decapsulates them; they are then forwarded out of the
tunnel.
The encapsulation involves the rewriting of the destination media access control (MAC) address in
the PDU. An ingress edge switch rewrites the destination MAC address of the PDUs received on a
Layer 2 tunnel port with the desired multicast address.
Switch(config)# l2protocol-tunnel
Enable Layer 2 protocol tunneling (L2PT)
function on the Managed Switch.
Switch(config)# l2protocol-tunnel
cos [0-7]
Specify the priority bit value as L2PT
Class of Service (CoS).
Switch(config)# l2protocol-tunnel
mac [xx:xx:xx:xx:xx:xx]
Specify destination MAC address for
encapsulating layer 2 protocol packets.
Switch(config)# no l2protocol-
tunnel
Disable Layer 2 protocol tunneling
function on the Managed Switch.
Switch(config)# no l2protocol-
tunnel cos
Reset priority bit value for L2PT class of
service (cos) back to the default (5).
Switch(config)# no l2protocol-
tunnel mac
Reset destination MAC address for
encapsulating Layer 2 protocol packets
back to the default (01:00:0C:CD:CD:D0).
Switch(config)# show
l2protocol-tunnel
Show the current Layer 2 Protocol
Tunneling configuration, the state of PDUs
and each PDU’s encapsulation as well as
decapsulation counters for all ports.
Switch(config)# show
l2protocol-tunnel [port_list]
Show the current Layer 2 Protocol
Tunneling configuration, the state of PDUs
and each PDU’s encapsulation as well as
decapsulation counters for the specified
port.
Switch(config)# show
l2protocol-tunnel [port_list] clear
Clear each PDU’s encapsulation and
decapsulation counters of the specified
port.