< Home

Enabling Layer 2 Protocol Tunneling on an Interface

Context

Perform the following operations on PEs based on the required Layer 2 protocol tunneling mode.

The l2protocol-tunnel and l2protocol-tunnel vlan commands cannot specify the same protocol type on the same interface. Otherwise, the configurations conflict.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The user-side interface view is displayed.

  3. Run port link-type hybrid

    The link type of the interface is set to hybrid.

  4. Run port hybrid pvid vlan vlan-id

    The default VLAN of the interface is configured.

  5. Run port hybrid untagged vlan vlan-id

    The interface is added to the default VLAN in untagged mode.

  6. Run l2protocol-tunnel { all | protocol-type | user-defined-protocol protocol-name } enable

    Layer 2 protocol tunneling is enabled on the interface.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >