The l2protocol-tunnel user-defined-protocol command defines characteristic information about a user-defined Layer 2 protocol, including the protocol name, Ethernet encapsulation format, destination MAC address, and MAC address that replaces the destination MAC address of Layer 2 protocol packets.
The undo l2protocol-tunnel user-defined-protocol command deletes characteristic information about a user-defined Layer 2 protocol.
By default, no characteristic information about a user-defined Layer 2 protocol exists on the device.
l2protocol-tunnel user-defined-protocol protocol-name protocol-mac protocol-mac [ encap-type { { ethernetii | snap } protocol-type protocol-type-value | llc dsap dsap-value ssap ssap-value } ] group-mac { group-mac | default-group-mac }
undo l2protocol-tunnel user-defined-protocol protocol-name
Parameter |
Description |
Value |
---|---|---|
protocol-name |
Specifies the name of a user-defined Layer 2 protocol. |
The value is a string of 1 to 31 characters without spaces. NOTE:
When double quotation marks are used around the string, spaces are allowed in the string. |
protocol-mac protocol-mac |
Specifies the multicast destination MAC address of the user-defined protocol packets. |
The value is in the format of H-H-H. An H is a hexadecimal number of 1 to 4 digits. |
encap-type |
Indicates the encapsulation format of transparently transmitted Layer 2 protocol packets.
|
- |
dsap dsap-value |
Specifies the destination service access point. |
The value ranges from 0x00 to 0xff, in hexadecimal format. |
ssap ssap-value |
Specifies the source service access point. |
The value ranges from 0x00 to 0xff, in hexadecimal format. |
protocol-type protocol-type-value |
Indicates the Ethernet encapsulation format. |
The value is a hexadecimal integer.
|
group-mac group-mac |
Specifies the multicast MAC address that replaces the destination MAC address of Layer 2 protocol packets. |
The value is in the format of H-H-H. An H is a hexadecimal number of 1 to 4 digits. The value ranges from 0100-0000-0000 to 01ff-ffff-ffff. |
default-group-mac |
Replaces the destination MAC address of Layer 2 protocol packets with the default multicast MAC address 0100-0ccd-cdd0. |
- |
When Layer 2 protocol packets with a specified multicast destination MAC address need to be transparently transmitted on an ISP network, you can define characteristic information about the Layer 2 protocol on devices on the ISP network.
When configuring Layer 2 protocol tunneling, do not use the following multicast MAC addresses to replace the destination MAC address of Layer 2 protocol packets:
Before running the l2protocol-tunnel or l2protocol-tunnel vlan command to enable transparent transmission of user-defined Layer 2 protocol packets, run the l2protocol-tunnel user-defined-protocol command to define characteristic information about the Layer 2 protocol.
# Define a Layer 2 protocol named huawei. Set the destination MAC address of its packets to 0180-c200-0022 and use multicast MAC address 0100-0100-0100 to replace the destination MAC address of its packets.
<HUAWEI> system-view [HUAWEI] l2protocol-tunnel user-defined-protocol huawei protocol-mac 0180-c200-0022 group-mac 0100-0100-0100