l2pt add/edit
l2pt add - Create a L2PT rule
l2pt edit - Modify an existing L2PT rule
Description:
Create or modify a Layer-2 Protocol Tunneling rule. Configure the rule operation mode and parameters.
Syntax:
l2pt {add|edit} <rule-name> {
{state {disable | enable}} |
{catchall {disable | enable}} |
{mode {drop | forward | tunnel | peer} } |
{protocol {stp | lacp | lamp | oam | auth | e-lmi | lldp | cdp | bpdu |
gmrp | gvrp | uld | pagp | pvst | vtp | dtp | stp-uf |
pb-ga | pb-gvrp | cisco-cfm | pause}} |
{inport <port-name> } |
{outport <port-name> } |
{unique-id [<1-64>]} |
{replacement-mac {cisco | accedian}} |
{evc-mapping {none | push | pop}} |
{vlan1-type {c-vlan | s-vlan}} |
{vlan2-type {c-vlan | s-vlan}} |
{vid-list <list>}
{vlan-filtering {disable | enable}} |
{rule-vid-from <vid>} |
{rule-vid-to <vid>} |
{rule-vid-pcp <pcp>} |
{rule-vid-cfi <cfi>} |
{rule-type {c-vlan | s-vlan}}
{cos-mapping <cos-mode>} |
{cos-map-pcp <pcp>} |
{cos-map-cfi <cfi>} |}+
Parameters:
Parameter | Description |
---|---|
<rule-name> | Rule name. |
state | Enable or disable the L2PT rule. |
catchall | Enable or disable the catchall mode of a rule. |
mode | Selects the operation mode of the L2PT rule:
|
protocol | The Layer-2 Control Protocol to be processed by this specific rule. |
inport | The rule's ingress port. For tunneling rules, this specifies the port where the frames to be tunneled ingress. |
outport | The rule's egress port. For tunneling rules, this specifies the port where the frames to be de-tunneled ingress. |
unique-id | The unique identifier used by the tunneling rules. This is used to build a unique replacement MAC address. |
replacement-mac | The multicast MAC address to use as a replacement when protocol tunneling is performed. The following replacement MAC can be used:
|
evc-mapping | Allows forwarding rules to perform EVC mapping:
|
vlan1-type | First VLAN ethertype. For tunneling rules, specifies the ethertype of the first VLAN tag. For forwarding ethertype rules with EVC mapping enabled, specifies the VLAN pushed to or popped from the frame. |
vlan2-type | Second VLAN ethertype. For tunneling rules, specifies the ethertype of the second VLAN tag. |
vid-list | Specifies which VLAN tags to insert in the tunneled or forwarded frames. For tunnels, the format is a list of comma-separated groups formatted as vlan1:vlan2. The second tag (Q-in-Q) entry is optional. For forwarding rules, the format is a single numerical vlan-id. Double-tagging is not supported in this mode. |
vlan-filtering | Enables per-VLAN filtering for this L2PT rule. Only the frames with a VLAN ID matching the one specified in the rule-vid and with an ethertype matching the one specified in the rule-type field will be accepted. |
rule-vid-from | Lower bound of the VLAN ID range used by the vlan-filtering. Only the frames with VLAN IDs included in the specified range will be accepted. |
rule-vid-to | Higher bound of the VLAN ID range used by the vlan-filtering. Only the frames with VLAN IDs included in the specified range will be accepted. |
rule-vid-pcp | Priority Code Point for the filtered VLAN ID. <0-7> for a specific priority or "all" to accept any PCP. |
rule-vid-cfi | Canonical Format Indicator for the filtered VLAN ID. <0-1> for a specific format or "all" to accept any CFI. |
rule-type | Ethertype used by the vlan-filtering. Only the frames with a matching ethertype will be accepted. |
cos-mapping | Selects the CoS mapping mode of the rule:
|
cos-map-pcp | Priority Code Point inserted in the outgoing frame in mapped mode. Accepted values are in the <0-7> range. |
cos-map-cfi | Canonical Format Indicator inserted in the outgoing frame in mapped mode. Accepted values are in the <0-1> range. |
l2pt clear
l2pt clear - Clear a L2PT rule statistics
Description:
Allows to clear a L2PT rule statistics.
Syntax:
l2pt clear [<rule-name>]
Parameters:
Parameter | Description |
---|---|
<rule-name> | L2PT rule name. |
l2pt delete
l2pt delete - Delete a L2PT rule
Description:
Allows to delete a L2PT rule.
Syntax:
l2pt delete {<rule-name>}
Parameters:
Parameter | Description |
---|---|
<rule-name> | L2PT rule name. |
l2pt edit-global
l2pt edit-global - Modify L2PT global settings
Description:
Allows to control L2PT global parameters, affecting the feature's general settings.
Syntax:
l2pt edit-global {
{state {disable | enable}} |
{management-state {disable | enable}} |
{port <port-name> state {disable | enable}} }
Parameters:
Parameter | Description |
---|---|
state | Enable or disable L2PT on all traffic ports or on a specific port if used with the port parameter. |
management-state | Enable or disable L2PT on all management ports. |
<port-name> | Port to which this option applies. |
l2pt show configuration
l2pt show configuration - Show the L2PT configuration
Description:
Specifying a L2PT rule provides detailed configuration about this L2PT rule, otherwise the command provides summary configuration for all L2PT rules in a table format.
Syntax:
l2pt show configuration [<rule-name>]
Parameters:
Parameter | Description |
---|---|
<rule-name> | L2PT rule name. |
l2pt show statistics
l2pt show statistics - Show the L2PT statistics
Description:
The command provides summary statistics for all L2PT rules in a table format.
Syntax:
l2pt show statistics
© 2025 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