route-distinguisher (MPLS-L2VPN instance view)

Function

The route-distinguisher command configures an RD for an MPLS L2VPN instance.

The undo route-distinguisher command deletes the RD of an MPLS L2VPN instance.

By default, no RD is configured for an MPLS L2VPN instance.

Format

route-distinguisher route-distinguisher

undo route-distinguisher

Parameters

Parameter Description Value
route-distinguisher

Specifies an RD. An RD uniquely identifies an MPLS L2VPN instance on a PE.

The available RD formats are as follows:

  • 2-byte AS number:4-byte user-defined number, such as 101:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging 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

MPLS-L2VPN instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
l2vpn write

Usage Guidelines

Usage Scenario

On a BGP VPWS network, an MPLS L2VPN instance can take effect only after having the RD configured. An RD uniquely identifies an MPLS L2VPN instance on a PE.

Prerequisites

The MPLS-L2VPN instance view has been displayed using the mpls l2vpn command.

Configuration Impact

An RD cannot be directly changed after it is configured for an MPLS L2VPN instance. To change an RD:

  • Delete and then re-configure it.
  • Delete the current MPLS L2VPN instance and then re-create a new one using the desired RD.

Precautions

The RDs for different MPLS L2VPN instances must be different on the same PE, but can be the same on different PEs.

Example

# Configure an RD in the format of "4-byte AS number in dotted notation:2-byte user-defined number" for an MPLS L2VPN instance named vpn3.
<HUAWEI> system-view
[~HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] mpls l2vpn vpn3 encapsulation ethernet
[*HUAWEI-mpls-l2vpn-vpn3] route-distinguisher 22.22:22
# Configure an RD in the format of "4-byte IP address:2-byte user-defined number" for an MPLS L2VPN instance named vpn2.
<HUAWEI> system-view
[~HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] mpls l2vpn vpn2 encapsulation ethernet
[*HUAWEI-mpls-l2vpn-vpn2] route-distinguisher 2.2.2.2:1
# Configure an RD in the format of "2-byte AS number:4-byte user-defined number" for an MPLS L2VPN instance named vpn1.
<HUAWEI> system-view
[~HUAWEI] mpls l2vpn
[*HUAWEI-l2vpn] quit
[*HUAWEI] mpls l2vpn vpn1 encapsulation ethernet
[*HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 101:3
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >