site

Function

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.

Format

site siteId [ range site-range ] [ default-offset offsetValue ]

undo site siteId

Parameters

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.

Views

VSI-BGP view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

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:

  • PE1 automatically establishes a BGP session with PE2 and sends an MP-BGP Update message that carries the MP-REACH attribute to PE2. The MP-REACH attribute contains the site ID and label block information of PE1.
  • Upon receipt of the MP-BGP Update message, PE2 calculates a unique label as its local VC label based on its own site ID and the label block carried in the message. Then, PE2 establishes a unidirectional VC named VC1 to PE1. Meanwhile, PE2 calculates the VC label of PE1 based on the site ID and label block carried in the MP-BGP Update message and sends an MP-BGP Update message to PE1. Upon receipt of the message, PE1 takes similar actions as PE2 and establishes a unidirectional VC named VC2 to PE2.

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.

Example

# Configure the site ID as 1 and site range as 100 for VSI vsi1.
<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
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >