The l2protocol-tunnel reverse command enables reverse Layer 2 protocol tunneling on an interface.
The undo l2protocol-tunnel reverse command cancels reverse Layer 2 protocol tunneling on an interface.
The l2protocol-tunnel drop command enables an interface to discard Layer 2 PDUs.
The undo l2protocol-tunnel drop command disables an interface from discarding Layer 2 PDUs.
By default, reverse Layer 2 protocol tunneling is not enabled on interfaces, interfaces do not discard Layer 2 PDUs.
Parameter | Description | Value |
---|---|---|
all |
Enables reverse tunneling for Layer 2 protocol data units (PDUs) of all protocols. |
- |
protocol |
Enables the Layer 2 PDUs of a specified protocol. |
You can enter a question mark (?) and select a value from the displayed value range. |
reverse |
Enables reverse tunneling for Layer 2 PDUs of a specified protocol. |
- |
drop |
Discards packets after the packets' specified multicast MAC address is replaced with the multicast destination MAC address in Layer 2 PDUs. |
- |
Layer 2 100GE interface view, 100GE interface view, Layer 2 10GE interface view, 10GE interface view, 25GE-L2 view, 25GE interface view, 400GE Layer 2 sub-interface view, 400GE-L2 view, 400GE interface view, Layer 2 40GE interface view, 40GE interface view, 50GE Layer 2 sub-interface view, Layer 2 50GE interface view, 50GE interface view, Eth-Trunk Layer 2 sub-interface view, Layer 2 Eth-Trunk interface view, Eth-Trunk interface view, FlexE sub-interface view, FlexE interface view, GE Layer 2 sub-interface view, Layer 2 GE interface view, GE optical interface view, GE interface view, GE electrical interface view, Layer 2 sub-interface view, Sub-interface view, Interface group view
Usage Scenario
Prerequisites
The multicast destination MAC addresses in Layer 2 PDUs have been replaced with a specified multicast MAC address using the l2protocol-tunnel group-mac command run on an edge device of a backbone network.
Configuration Impact
If the l2protocol-tunnel reverse command is run more than once, the latest configuration overrides the previous one.
Precautions
The l2protocol-tunnel { all | protocol } reverse and l2protocol-tunnel { all | protocol } reverse vlan low-id commands cannot be run on the same interface.
<HUAWEI> system-view [~HUAWEI] l2protocol-tunnel stp group-mac 0180-C200-0000 [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] l2protocol-tunnel stp reverse
<HUAWEI> system-view [~HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] l2protocol-tunnel stp drop