< Home

l2protocol-tunnel user-defined-protocol

Function

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.

Format

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

Parameters

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.
  • ethernetii: indicates Ethernet_II, the encapsulation format for Layer 2 protocol packets that are transparently transmitted.

  • snap: indicates Sub-Network Access Protocol (SNAP), the encapsulation format for Layer 2 protocol packets that are transparently transmitted.

  • llc: indicates Logical Link Control (LLC), the encapsulation format for Layer 2 protocol packets that are transparently transmitted.

-

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.
  • The value ranges from 600 to FFFF for Ethernet II encapsulation type.
  • The value ranges from 0 to FFFF for SNAP encapsulation type.

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.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

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:

  • Reserved multicast MAC addresses: 0180-C200-0000 to 0180-C200-002F
  • Special multicast MAC addresses: 0100-0CCC-CCCC and 0100-0CCC-CCCD
  • Destination MAC address of Smart Link packets: 010F-E200-0004
  • Common multicast MAC addresses that have been used on the device

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.

Example

# 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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >