[Contents] [Prev] [Next] [Index] [Report an Error]

Option: Specifying Route Targets

Specifying route targets for sender and receiver sites is useful when there is a mix of sender only, receiver only, and sender and receiver sites. This is because a sender site’s routing table is used for exporting routes from a sender site and importing routes from a receiver site. A receiver site's routing table is used for exporting routes from a receiver site and importing routes from a sender site. A sender and receiver site does both. The route targets configured under multicast VPNs apply only to multicast VPN AD routes of type 1, 2, 3, and 5.

A 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:

For more information on route targets, see the JUNOS VPNs Configuration Guide.

To specify route targets, include the route-target statement at the [edit routing-instances routing-instance-name protocols mvpn] hierarchy level:

[edit]
routing-instances {
vpn-a {
protocols {
mvpn {
route-target {
export-target { # Export target for multicast VPN AD routes. Overrides default # VRF export target if "export-target unicast" is not configured.
target target-community;
unicast; # Apply the VRF export target and multicast VPN export route
# target to multicast VPN AD routes.
apply-groups group-name; # Groups from which to inherit
# configuration data.
apply-groups-except group-name; # Do not inherit configuration data from
# these groups.
}
import-target { # Import target for multicast VPN AD routes. Overrides
# default VRF import target if "import-target unicast" is not configured.
target target-value { # Target community.
receiver target-value; # Target community used when importing receiver # site routes.
sender target-value; # Target community used when importing sender # site routers.
}
unicast { #Apply the default VRF import target or multicast VPN
# route-target to multicast VPN AD routes.
receiver;
sender;
}
apply-groups group-name;
apply-groups-except group-name;
}
}
}
}
}
}

Existing vrf-import or vrf-export policies for importing and exporting vpn routes might prevent import or export of multicast VPN routes if the policies reflect routes based on the policy qualifier protocol. The workaround is to relax the policy to not reflect routes based on the protocol type or to use additional multicast-VPN-specific configuration.

If the vrf-import policy does not import bgp routes, multicast VPN routes of type 1, 2, 3, or 5 imported by BGP will be rejected. There are two workarounds:


[Contents] [Prev] [Next] [Index] [Report an Error]