By default, the VPN routing and forwarding (VRF) import and export route targets (configured either using VRF import and export policies or using the vrf-target statement) are used for importing and exporting routes with the multicast VPN network layer reachability information (NLRI).
You can use the export-target and import-target statements to override the default VRF import and export route targets. Export and import targets can also be specified specifically for sender sites or receiver sites, or can be borrowed from a configured unicast route target. Note that a sender site export route target is always advertised when security association routes are exported.
![]() |
Note: When you configure a multicast VPN routing instance, you should not configure a target value for a multicast VPN specific route target that is identical to a target value for a unicast route target configured in another routing instance. |
Specifying route targets in the multicast VPN NLRI for sender and receiver sites is useful when there is a mix of sender only, receiver only, and sender and receiver sites. A sender site route target is used for exporting automatic discovery routes by a sender site and for importing automatic discovery routes by a receiver site. A receiver site route target is used for exporting routes by a receiver site and importing routes by a sender site. A sender and receiver site exports and imports routes with both route targets.
A provider edge (PE) router with sites in a specific multicast VPN must determine whether a received automatic discovery route is from a sender site or receiver site based on the following:
If a PE router is configured to be in both sender sites and receiver sites, these guidelines apply:
To configure a route target for the multicast VPN routing instance, include the route-target statement:
-
route-target {
-
-
export-target {
-
- target target-community;
- unicast;
- }
-
-
import-target {
-
-
target {
-
target-value;
- receiver target-value;
- sender target-value;
- }
-
-
unicast {
-
- receiver;
- sender;
- }
You can include this statement at the following hierarchy levels:
The following sections describes how to configure the export target and the import target for a multicast VPN: