route-distinguisher (VSI-BGP-MH view)

Function

The route-distinguisher command configures an RD for a VSI.

The undo route-distinguisher command deletes the RD of a VSI.

By default, no RD is configured for a VSI.

Format

route-distinguisher rdValue

undo route-distinguisher

Parameters

Parameter Description Value
rdValue

Specifies an RD for a VSI.

The available RD formats are as follows:

  • 2-byte AS number:4-byte user-defined number, such as 101:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte IP address:2-byte user-defined number, such as 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number:2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte AS number in dotted notation:2-byte user-defined number, such as 0.0:3 or 0.1:0. The 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0.0:0.

Views

VSI-BGP-MH view, 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 an RD for a VSI after creating the VSI.

Prerequisites

The VSI-BGP view has been displayed using the pwsignal bgp command.

Configuration Impact

An RD can be modified after it is configured for a VSI.

Precautions

  • The RD of each VSI must be unique on a PE.
  • The RDs of VSIs with the same ID but residing on different PEs can be either the same or different.

Example

# Configure an RD in the format of "4-byte IP address:2-byte user-defined number" for VSI company2.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi company2 auto
[*HUAWEI-vsi-company2] pwsignal bgp
[*HUAWEI-vsi-company2-bgp] route-distinguisher 2.2.2.2:1
# Configure an RD in the format of "4-byte AS number in dotted notation:2-byte user-defined number" for VSI company3.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi company3 auto
[*HUAWEI-vsi-company3] pwsignal bgp
[*HUAWEI-vsi-company3-bgp] route-distinguisher 22.22:22
# Configure an RD in the format of "2-byte AS number:4-byte user-defined number" for VSI company1.
<HUAWEI> system-view
[~HUAWEI] mpls
[*HUAWEI-mpls] quit
[*HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] vsi company1 auto
[*HUAWEI-vsi-company1] pwsignal bgp
[*HUAWEI-vsi-company1-bgp] route-distinguisher 101:3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >