Use this command to specify the route distinguisher (RD) for a VRF instance that is used to create a VPNv4 prefix. An RD creates routing and forwarding tables and specifies the default route distinguisher for a VPN. The RD is added to the beginning of the IPv4 prefixes to change them into globally unique VPNv4 prefixes.
- ASN-related: Composed of an autonomous system number and an arbitrary number.
- IP address-related: Composed of an IP address and an arbitrary number.
- 4-byte ASN related: Composed of an 4-byte autonomous system number and an arbitrary number.
| Default | A VRF does not associate with any RD. |
| Format | rd route-distinguisher |
| Mode | Virtual Router Config |
| Parameter | Description |
|---|---|
| route-distinguisher | An 8-byte value to be added to an IPv4 prefix to create a VPNv4 prefix. The RD value can be specified in either of the following
formats:
|
This command is effective only if BGP is running on the router. The RD for a VRF once configured cannot be removed or changed. For this reason, this command does not have the no form. To change the configured RD value, remove the VRF (using the no ip vrf command) and reconfigure the VRF.
Example: The following example shows how to configure a RD for a VRF instance in ASN format:
(Router) (Config)#ip vrf Red (Router) (Config-vrf-Red)#rd 62001:10 (Router) (Config-vrf-Red)#exit
Example: The following example shows how to configure a RD for a VRF instance in IP address format:
(Router) (Config)#ip vrf Red (Router) (Config-vrf-Red)#rd 192.168.10.1:10 (Router) (Config-vrf-Red)#exit
Example: The following example shows how to configure a RD for a VRF instance in 4-byte ASN format:
(Router) (Config)#ip vrf Green (Router) (Config-vrf-Red)#rd 77777:20 (Router) (Config-vrf-Red)#exit