The route-distinguisher command configures an RD for an MPLS L2VPN instance.
By default, no RD is configured in the MPLS L2VPN instance view.
Parameter | Description | Value |
---|---|---|
route-distinguisher | Specifies the value of an RD. The formats of an RD are
as follows:
|
- |
Usage Scenario
In a Kompella VLL networking, an L2VPN instance takes effect only after an RD is configured.
Precautions
VPNs on the same PE have different RDs. The same VPN can have the same RD or different RDs on different PEs.
To change the RD of an L2VPN instance, delete the L2VPN instance and create a new L2VPN instance.
Kompella VLL and Kompella VPLS must use different RDs.
# Set the RD of an MPLS L2VPN instance to 300:1.
<HUAWEI> system-view [HUAWEI] mpls l2vpn vpn1 encapsulation vlan [HUAWEI-mpls-l2vpn-vpn1] route-distinguisher 300:1
# Set the RD of an MPLS L2VPN instance to 1.1.1.1:5.
<HUAWEI> system-view [HUAWEI] mpls l2vpn vpn2 encapsulation vlan [HUAWEI-mpls-l2vpn-vpn2] route-distinguisher 1.1.1.1:5
# Set the RD of an MPLS L2VPN instance to 16.30:50.
<HUAWEI> system-view [HUAWEI] mpls l2vpn vpn2 encapsulation vlan [HUAWEI-mpls-l2vpn-vpn2] route-distinguisher 16.30:50