The l2protocol-tunnel vlan command enables Layer 2 protocol tunneling on a tagged interface.
The undo l2protocol-tunnel vlan command disables Layer 2 protocol tunneling on a tagged interface.
By default, Layer 2 protocol tunneling is disabled on tagged interfaces.
Parameter | Description | Value |
---|---|---|
all |
Enables or disables Layer 2 protocol tunneling for all supported standard and user-defined Layer 2 protocols. |
- |
protocol |
Enables or disables Layer 2 protocol tunneling for a specified Layer 2 protocol. |
The protocol as follows:
One or up to all of the preceding Layer 2 protocols can be specified. |
reverse |
Enables the reverse Layer 2 protocol tunneling function on an interface. After the function is enabled, a specified multicast MAC address is replaced with the multicast destination MAC address in Layer 2 PDUs. |
- |
low-vid |
Specifies a start VLAN ID. |
The value is an integer ranging from 1 to 4094. <vidEnd> must be greater than <vidBgn>. |
high-vid |
Specifies an end VLAN ID. |
The value is an integer ranging from 1 to 4094. <vidEnd> must be greater than <vidBgn>. |
Usage Scenario
Prerequisites
The l2protocol-tunnel group-mac command has been run to configure an edge device on a backbone network to replace the multicast destination MAC addresses in Layer 2 PDUs with a specified multicast MAC address.
Configuration Impact
When all the parameters are the same except for the VLAN ID, if the l2protocol-tunnel vlan command is run more than once, all configurations take effect.
<HUAWEI> system-view [~HUAWEI] l2protocol-tunnel stp group-mac 0100-5e00-0011 [*HUAWEI] vlan batch 100 to 200 [*HUAWEI] gvrp [*HUAWEI] interface GigabitEthernet 0/1/1 [*HUAWEI-GigabitEthernet0/1/1] portswitch [*HUAWEI-GigabitEthernet0/1/1] port link-type trunk [*HUAWEI-GigabitEthernet0/1/1] gvrp [*HUAWEI-GigabitEthernet0/1/1] l2protocol-tunnel stp vlan 100 to 200