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.
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:
|
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:
Precautions
The RDs for different MPLS L2VPN instances must be different on the same PE, but can be the same on different PEs.
<HUAWEI> system-view [~HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] mpls l2vpn vpn3 encapsulation ethernet [*HUAWEI-mpls-l2vpn-vpn3] route-distinguisher 22.22:22
<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
<HUAWEI> system-view [~HUAWEI] mpls l2vpn [*HUAWEI-l2vpn] quit [*HUAWEI] mpls l2vpn vpn1 encapsulation ethernet [*HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 101:3