root-vlan

Function

The root-vlan command configures a root VLAN and a leaf VLAN.

The undo root-vlan command deletes the configuration.

By default, no root VLAN or leaf VLAN is configured.

Format

root-vlan root-vlan leaf-vlan leaf-vlan

undo root-vlan [ root-vlan leaf-vlan leaf-vlan ]

Parameters

Parameter Description Value
root-vlan

Specifies a root VLAN ID for the E-Tree service.

The value is an integer ranging from 1 to 4094.

leaf-vlan leaf-vlan

Specifies the VLAN ID of a leaf node for the E-Tree service.

The value is an integer ranging from 1 to 4094.

Views

VPLS ETREE view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

In a VPLS domain, AC interfaces bound to the same VSI can communicate with each other. To enhance data security and minimize mutual influences between users, controlling communication between these AC interfaces is required. VPLS E-Tree can meet this requirement by allowing you to configure the root or leaf attribute for AC interfaces. A root AC interface can communicate with leaf AC interfaces and other root AC interfaces, while a leaf AC interface can communicate only with root AC interfaces.

To configure a root VLAN and a leaf VLAN, run the root-vlan root-vlan leaf-vlan leaf-vlan command. The command configuration enables the local device to identify whether a received packet is sent from a leaf or root AC interface.

Prerequisites

The e-tree static command has been configured to enable the VPLS E-Tree function.

Precautions

A root VLAN ID must be different from a leaf VLAN ID.

Example

# Set the root VLAN ID and leaf VLAN ID in the E-Tree view.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi company1
[*HUAWEI-vsi-company1] e-tree static
[*HUAWEI-vsi-company1-etree] root-vlan 100 leaf-vlan 200
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >