< Home

pw spoke-mode (VSI-BGPAD view)

Function

The pw spoke-mode command configures all PWs of a BGP AD VSI as spoke PWs.

The undo pw spoke-mode command restores the default setting.

By default, all PWs of a BGP AD VSI are hub PWs.

Format

pw spoke-mode

undo pw spoke-mode

Parameters

None

Views

VSI-BGPAD view

Default Level

2: Configuration level

Usage Guidelines

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), all PWs of the VSI on the hub PE must be configured as spoke PWs to disable split horizon of the PWs. Traffic from spoke PWs can be forwarded to spoke PWs and hub PWs, but traffic from hub PWs can only be forwarded to spoke PWs and not to hub PWs.

Prerequisites

The VPLS ID has been configured using the vpls-id vpls-id command in the VSI-BGPAD view.

Precautions

The pw spoke-mode command takes effect on all the PWs of a BGP AD VSI.

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 comply with split horizon rules.

Example

# Create a BGP AD VSI named company1 and configure all the PWs of the VSI as spoke PWs.

<HUAWEI> system-view
[HUAWEI] vsi company1
[HUAWEI-vsi-company1] bgp-ad
[HUAWEI-vsi-company1-bgpad] vpls-id 65535:1
[HUAWEI-vsi-company1-bgpad] pw spoke-mode
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >