The e-tree mode command configures an E-Tree for a PW.
The undo e-tree mode command restores the default E-Tree mode of a PW.
By default, the E-Tree mode of a PW is normal.
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.
The e-tree mode compatible command configures the compatible E-Tree mode for a PW. In this mode, the local end of a PW does not change the VLAN ID carried in data packets to the locally configured root VLAN ID and leaf VLAN ID when forwarding the packets to the PW. Therefore, E-Tree does not take effect even if E-Tree is configured on the peer end of the PW. The e-tree mode optimized command configures the optimized E-Tree mode for a PW. In this mode, a PW has the leaf attribute and cannot communicate with other AC interfaces or PWs that have the leaf attribute. If the e-tree mode compatible and e-tree mode optimized commands are not configured, a PW works in normal E-Tree mode, which is the default mode. In normal mode, the local end of a PW changes the VLAN ID carried in data packets to the locally configured root VLAN ID and leaf VLAN ID when forwarding packets to the PW. The peer end determines whether to forward the data packets based on the attribute of the VLAN IDs.Prerequisites
The following commands must have been configured:
Configuration Impact
E-Tree does not take effect if th peer end of a PW supports E-Tree but the e-tree mode compatible is configured on the local end of the PW.
Packet forwarding errors occur if the peer end of a PW has the root attribute or has root AC interfaces but the e-tree mode optimized command is configured on the local end of the PW.<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] mpls l2vpn [*HUAWEI-l2vpn] vsi company1 [*HUAWEI-vsi-company1] e-tree static [*HUAWEI-vsi-company1-etree] root-vlan 100 leaf-vlan 200 [*HUAWEI-vsi-company1-etree] quit [*HUAWEI-vsi-company1] pwsignal ldp [*HUAWEI-vsi-company1-ldp] vsi-id 1 [*HUAWEI-vsi-company1-ldp] peer 2.2.2.2 [*HUAWEI-vsi-company1-ldp] peer 2.2.2.2 pw 2 [*HUAWEI-vsi-company1-ldp-pw-2] e-tree mode compatible