The route-distinguisher command configures a route distinguisher (RD) for a VPN instance address family.
By default, no RD is configured for the VPN instance address family.
Parameter | Description | Value |
---|---|---|
route-distinguisher | Specifies the value of an RD. The forms of RD are as
follows:
|
- |
VPN instance view, VPN instance IPv4 address family view, VPN instance IPv6 address family view, EVPN instance view
Usage Scenario
After creating a VPN instance and enabling the IPv4 or IPv6 address family for the VPN instance, you need to run the route-distinguisher command to configure an RD for the address family.
Different VPN instances may have the same route prefix. To allow a PE to determine to which VPN instance a route belongs, run the route-distinguisher command to configure an RD for an address family of a VPN instance on the PE. After the configuration, the PE will add an RD to the route received from the VPN instance, and then the route prefix becomes a globally unique VPNv4 or VPNv6 route.
Configuration Impact
An RD configured for the IPv4 or IPv6 address family of a VPN instance cannot be directly modified or deleted. Before modifying an RD, you need to disable the IPv4 or IPv6 address family of the VPN instance or delete the VPN instance and then reconfigure the address family or the VPN instance.
Precautions
Configuring a unique RD for the IPv4 or IPv6 address family of a VPN instance is recommended; otherwise, route overlap may occur.
[HUAWEI-vpn-instance-vpn1] route-distinguisher 200:1 [HUAWEI-vpn-instance-vpn1-af-ipv4] display this # ipv4-family route-distinguisher 200:1 # return