Configuring VPN Route Targets
This procedure demonstrates how to configure a VPN route target for each topology.
Route targets should be configured so that the receiver VRF has unicast reachability to prefixes in the
source VRF. These configuration steps can be skipped if prefixes in the source VRF are already imported
to the receiver VRF.
Note
SUMMARY STEPS
1.
configure
2.
vrf source-vrf
3.
address-family [ipv4 | ipv6} unicast
4.
import route-target [xx.yy:nn | as-number:nn | ip-address:nn]
5.
export route-target [xx.yy:nn | as-number:nn | ip-address:nn]
6.
commit
7.
configure
8.
vrf receiver-vrf
9.
Repeat Step 3 through Step 6.
DETAILED STEPS
PurposeCommand or Action
configure
Step 1
Configures a VRF instance for the source PE router.
vrf source-vrf
Example:
RP/0/RP0/CPU0:router(config)# vrf green
Step 2
RP/0/RP0/CPU0:router(config-vrf)#
Specifies a unicast IPv4 or IPv6 address family and enters
address family configuration submode.
address-family [ipv4 | ipv6} unicast
Example:
RP/0/RP0/CPU0:router(config-vrf)#
Step 3
Only IPv4 addressing is supported for
extranet.
Note
address-family ipv4 unicast
Imports the selected route target, optionally expressed as one
of the following :
import route-target [xx.yy:nn | as-number:nn |
ip-address:nn]
Step 4
Example:
RP/0/RP0/CPU0:router(config-vrf-af)# import
•
4-byte AS number of the route target in xx.yy:nn format.
Range is 0-65535.0-65535:0-65535
•
AS number of the route target in nn format. Range is
0-65535.
route-target 234:222
RP/0/RP0/CPU0:router(config-vrf-af)# import
Cisco IOS XR Multicast Configuration Guide for the Cisco CRS Router, Release 5.2.x
120
Implementing Multicast Routing on Cisco IOS XR Software
Configuring MVPN Extranet Routing