--- title: "l2pt" slug: "cli-as-l2pt" tags: ["Assurance Sensor CLI"] updated: 2025-06-30T07:55:39Z published: 2025-09-04T19:23:07Z canonical: "docs.crossworkassurance.cisco.com/cli-as-l2pt" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # l2pt ## 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} { {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 } | {outport } | {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 } {vlan-filtering {disable | enable}} | {rule-vid-from } | {rule-vid-to } | {rule-vid-pcp } | {rule-vid-cfi } | {rule-type {c-vlan | s-vlan}} {cos-mapping } | {cos-map-pcp } | {cos-map-cfi } |}+ ``` **Parameters:** | Parameter | Description | | --- | --- | | | 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: - drop: Frames matching the specific rule are dropped. - forward: Frames are sent unaltered from the incoming port to the outgoing port. Optionally, EVC mapping can be enabled on forwarding rules. - tunnel: Frames matching the specific rule get their destination MAC address replaced by the MAC specified in the rule parameters when ingressing the specified inport. Frames matching the specific rule get their original destination MAC address put back when ingressing the specified outport. Tunneling rules are bidirectional. - peer: The frames are sent to software layers for further processing. | | 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: - cisco: 01:00:0C:CD:CD:D0 is used. - accedian: 01:15:AD:CC:xx:yy is used where: `xx`: the unique-id. `yy`: the protocol id. | | evc-mapping | Allows forwarding rules to perform EVC mapping: - none: Frames are forwarded unaltered. - push: A tag of vlan1-type is added. - pop: If the VLAN type and ID both match, the tag is removed. - replace: The tag in the incoming frame is replaced. | | 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: - map: The specified CoS PCP/CFI fields are mapped in the outgoing frame. - preserve: The CoS PCP/CFI fields from the incoming frame are copied to the outgoing frame. | | 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 [] ``` **Parameters:** | Parameter | Description | | --- | --- | | | L2PT rule name. | ## l2pt delete l2pt delete - Delete a L2PT rule **Description:** Allows to delete a L2PT rule. **Syntax:** ``` l2pt delete {} ``` **Parameters:** | Parameter | Description | | --- | --- | | | 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 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 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 [] ``` **Parameters:** | Parameter | Description | | --- | --- | | | 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 ``` **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)