Use this command to assign a route distinguisher (RD) to a VRF.
asn:num | Specifies a Type 0 or Type 2 route distinguisher. Valid values are 1 - 65535:1 - 4294967295. |
ipv4Addr:num | Specifies a Type 1 route distinguisher. Valid values are IPv4_Address:1 - 65535. |
None.
A named VRF global configuration mode.
The route distinguisher is a 64 bit identifier attribute that gets prepended to the user IPv4 or IPv6 address and makes the IP address globally unique across the VPN network and within the BGP routing table. The RD is a required component when defining a L3 VPN, and its significance is local to the device. Assign one RD to each VRF that will use the BGP VPN. The BGP VPN-IPv4 or VPN-IPv6 address families are defined by combining the RD, user IP address, and the MPLS Label (see mpls label mode for label mode configuration).
RDs must be unique for each VRF on a device. The same RD can be used on multiple devices belonging to the VPN. Combining the VRF RD with the user IP address, even when that IP address is an unregistered private address, serves to uniquely identify the user.
Three data fields make up the eight bytes (64-bits) of the RD attribute:
It is recommended that non-private autonomous system numbers be used when configuring the RD. If the BGP autonomous system number is a private AS between 64512-65534, use RD type 1 specifying an IPv4 address.
Non-private autonomous system numbers are assigned by IANA to service providers. Non-private autonomous system numbers use either a two-byte or four-byte number in the following formats:
This example shows how to assign a type 0 route distinguisher 1:52 to VRF vpnA:
System(rw)->router vpnA System(su-vpnA)->configure System(su-vpnA-config)->rd 1:52 System(su-vpnA-config)->
This example shows how to assign a type 1 route distinguisher 10.10.100.1:53 to VRF vpnB:
System(rw)->router vpnB System(su-vpnB)->configure System(su-vpnB-config)->rd 10.10.100.1:53 System(su-vpnB-config)->