< Home

encapsulation (VSI view)

Function

The encapsulation command configures the encapsulation type of the interface in the VSI view.

The undo encapsulation command restores the encapsulation type of the interface to the default setting.

By default, the encapsulation type is VLAN.

Format

encapsulation { ethernet | vlan }

undo encapsulation ethernet

Parameters

Parameter Description Value
ethernet Indicates that the encapsulation type is Ethernet. -
vlan Indicates the VLAN encapsulation format that meets the 802.1Q standard. -

Views

VSI view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When you configure the VPLS function, run the encapsulation command to configure the encapsulation type of the interface.

Prerequisites

The following operations must been performed before this command is used:

  • The pwsignal bgp command and the route-distinguisher route-distinguisher command have been executed for Kompella VPLS.

  • The pwsignal ldp command and the vsi-id vsi-id command have been executed for Martini VPLS.

  • The bgp-ad command and the vpls-id vpls-id command have been executed for BGP AD VPLS.

Example

# Configure the encapsulation type of the current VSI as Ethernet.

<HUAWEI> system-view
[HUAWEI] vsi a2 static
[HUAWEI-vsi-a2] pwsignal ldp
[HUAWEI-vsi-a2-ldp] vsi-id 101 
[HUAWEI-vsi-a2-ldp] quit
[HUAWEI-vsi-a2] encapsulation ethernet
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >