- Print
- PDF
L2CP CLI commands are categorized as follows:
Configuration Commands
This section includes L2CP configuration commands.
l2protocol-passthrough
Command Objective:
This command sets the option to pass through L2 protocol packets transparently received on the port.
Syntax:
l2protocol-passthrough {dot1x | lacp | stp | gvrp | gmrp| igmp | mvrp | mmrp | elmi | lldp | ecfm | eoam }
Parameter Description:
- dot1x - Passthrough Dot1x PDUs transparently received on on this port
- lacp - Passthrough LACP PDUs transparently received on this port
- stp - Passthrough STP PDUs transparently received on this port
- gvrp - Passthrough GVRP BPDUs transparently received on on this port
- gmrp - Passthrough GMRP BPDUs transparently received on on this port
- igmp - Passthrough IGMP Packets transparently received on on this port
- mvrp - Passthrough MVRP PDUs transparently received on on this port
- mmrp - Passthrough MMRP PDUs transparently received on on this port
- elmi - Passthrough ELMI PDUs transparently received on on this port
- lldp - Passthrough LLDP PDUs transparently received on on this port
- ecfm - Passthrough ECFM PDUs transparently received on on this port
- eoam - Passthrough EOAM PDUs transparently received on on this port
Mode:
Interface Configuration mode (Physical / Port channel)
Default:
Based on the port type
Note: To enable L2 protocol passthrough:
The port must be customer edge port / customer network port / proprietary customer edge port / proprietary customer network port/access port / provider network port / provider network port three-tagged.
The protocol should be disabled on the port, except for IGMP and Dot1x protocol, which have to be disabled globally.
Example:
Your Product(config-if)# l2protocol-passthrough eoam
l2protocol-tunnel
Command Objective:
This command enables the tunneling of L2 protocols on this port.
The no form of the command disables the tunneling of L2 protocols on this port.
Syntax:
l2protocol-tunnel {dot1x | lacp | stp | gvrp | gmrp| igmp | mvrp | mmrp | elmi | lldp | ecfm | eoam }
no { l2protocol-peer | l2protocol-discard | l2protocol-tunnel | l2protocol-passthrough }{dot1x | lacp | stp | gvrp | gmrp| igmp | mvrp | mmrp | elmi | lldp | ecfm | eoam}
Parameter Description:
- l2protocol-peer - Disables L2 protocol peer on the port
- l2protocol-discard - Disables L2 protocol peer on the port
- l2protocol-passthrough - Disables L2 protocol passthrough on the port
- dot1x - Enables the tunneling of L2 protocols for Dot1x PDUs
- lacp - Enables the tunneling of L2 protocols for LACP PDUs
- stp - Enables the tunneling of L2 protocols for STP BPDUs
- gvrp - Enables the tunneling of L2 protocols for GVRP BPDUs
- gmrp - Enables the tunneling of L2 protocols for GMRP BPDUs
- igmp - Enables the tunneling of L2 protocols for IGMP Packets
- mvrp - Enables the tunneling of L2 protocols for MVRP PDUs
- mmrp - Enables the tunneling of L2 protocols for MMRP PDUs
- elmi - Enables the tunneling of L2 protocols for ELMI PDUs
- lldp - Enables the tunneling of L2 protocols for LLDP PDUs
- ecfm - Enables the tunneling of L2 protocols for ECFM PDUs
- eoam - Enables the tunneling of L2 protocols for EOAM PDUs
Mode:
Interface Configuration mode (Physical / Port channel)
Default:
Based on the port type
Note: To enable L2 protocol tunneling:
The port must be customer edge port / customer network port / proprietary customer edge port / proprietary customer network port/access port.
The protocol should be disabled on the port, except for IGMP and Dot1x protocol, which have to be disabled globally.
Example:
Your Product(config-if)# l2protocol-tunnel dot1x
l2protocol-tunnel cos
Command Objective:
This command configures the priority for the tunneled STP BPDUs. This value ranges from 0 to 7.
The no form of the command configures the default priority for the tunneled STP BPDUs.
Syntax:
l2protocol-tunnel cos <cos-value(0-7)>
no l2protocol-tunnel cos
Mode:
Global Configuration Mode / Switch Configuration Mode
Default:
cos - value - 7
Prerequisites:
The configured priority value will be effective only when the L2 Protocol tunnel STP is enabled on an interface
Example:
Your Product(config)# l2protocol-tunnel cos 5
l2protocol-tunnel override
Command Objective:
This command enables or disables the Layer 2 control protocol (L2CP) tunnel Override option.
Syntax:
l2protocol-tunnel override { enable | disable }
Parameter Description:
- enable - Enables L2CP tunnel Override option. This implies that tunnel status for all the Layer 2 control protocols is referred from the port table.
- disable - Disables L2CP tunnel Override option. This implies that tunnel status for all the Layer 2 control protocols operating over a vlan is referred from the VLAN table.
Mode:
Interface Configuration mode (Physical / Port channel)
Default:
disable
Example:
Your Product(config-if)# l2protocol-tunnel override disable
© 2024 Cisco and/or its affiliates. All rights reserved.
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms
For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks