The site command configures a site ID for a VSI.
The undo site command deletes the site ID of a VSI.
By default, no site ID is configured for a VSI.
Parameter | Description | Value |
---|---|---|
siteId |
Specifies a site ID. |
The value is an integer ranging from 0 to 65534. |
range site-range |
Specifies the number of sites in a VSI. |
The value is an integer ranging from 1 to 65535. The default value is 10. |
default-offset offsetValue |
Specifies the base label block offset. |
The value is 0 or 1. The default value is 0. |
Usage Scenario
On a BGP VPLS network, you must configure a site ID for a VSI after creating the VSI. The site ID is used in VC label calculation.
Prerequisites
An RD has been configured using the route-distinguisher (VSI-BGP view) command.
Configuration Impact
When a VSI is established between PE1 and PE2, the following information is displayed after the site command is run:
Precautions
The site IDs on both ends of a VPLS PW must be different. The local site ID must be smaller than the peer's rangevalue plus default-offset, but greater than or equal to the peer's default-offset.
<HUAWEI> system-view [~HUAWEI] mpls [*HUAWEI-mpls] quit [*HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] vsi vsi1 auto [*HUAWEI-vsi-vsi1] pwsignal bgp [*HUAWEI-vsi-vsi1-bgp] route-distinguisher 192.168.1.1:1 [*HUAWEI-vsi-vsi1-bgp] site 1 range 100