The pw spoke-mode command configures the PWs of a BGP AD VSI as spoke PWs.
The undo pw spoke-mode command restores the default configuration.
By default, the PWs of a BGP AD VSI are hub PWs.
Usage Scenario
If a BGP AD VPLS needs to be deployed on a network with a star or tree topology (on which one PE that serves as a server or an authorization device is configured as the Hub-PE, and other PEs are configured as Spoke-PEs) the PWs of the VSI on the Hub-PE must be configured as spoke PEs to disable split horizon of the PWs.
Prerequisites
The vpls-id command has been run in the VSI-BGPAD view to specify a VPLS ID.
Configuration Impact
After the pw spoke-mode command is run, all PWs of the specified VSI become spoke PWs. Split horizon does not function on spoke PWs. This means that packets sent from spoke PWs can be forwarded to other PWs. If the undo pw spoke-mode command is run, all PWs of the VSI will be changed to hub PWs that abide by split horizon rules.
Precautions
The pw spoke-mode command takes effect on all the PWs of a BGP AD VSI.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi company1 [*HUAWEI-vsi-company1] bgp-ad [*HUAWEI-vsi-company1-bgpad] vpls-id 65535:1 [*HUAWEI-vsi-company1-bgpad] pw spoke-mode