site-range

Function

The site-range command configures a multi-homing site range allowed.

The undo site-range command restores the default configuration.

By default, no multi-homing site is configured.

Format

site-range rangeValue [ default-offset offsetValue ]

undo site-range rangeValue [ default-offset offsetValue ]

Parameters

Parameter Description Value
rangeValue

Specifies a multi-homing site range.

The value is an integer ranging from 1 to 65535.

default-offset offsetValue

Specifies a default offset for the multi-homing site ID.

default-offset applies to scenarios where Huawei and non-Huawei devices communicate with each other. For example, if default-offset is set to 1 and the multi-homing site ID is set to 2, the PE can only establish a PW with the remote PE whose multi-homing site ID is 3.

The value can be 0 or 1. The default value is 0.

Views

VSI-BGP-MH view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

In VPLS multi-homing scenarios, after an RD is configured for a VSI, run the site-range command to specify a multi-homing site range.

Prerequisites

An RD has been configured for the VSI using the route-distinguisher (VSI-BGP view) command.

Example

# Set the multi-homing site range to 100 for the VSI named vsi1 and set the offset to 1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi vsi1
[*HUAWEI-vsi-vsi1] pwsignal bgp multi-homing
[*HUAWEI-vsi-vsi1-bgp] route-distinguisher 192.168.1.1:1
[*HUAWEI-vsi-vsi1-bgp] site-range 100 default-offset 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >