The Route Target
The route target determines which routes are inserted into a VRF. A VRF can be configured for one or more route targets for import, export, or both. At least one configured route target for import or export is a required component when defining a L3 VPN VRF. All routes exported by the VRF are tagged with each route target identifier configured for export on the VRF. Only VRFs configured to import routes tagged with the route target identifier will import the route. This allows you to configure one VRF to export multiple route targets and another VRF to be configured to import only a subset of the routes the first VRF exports.
- An export route
target – BGP advertises VPN-IPv4 and VPN-IPv6 address family prefixes, along with
extended community names and tags the advertisement with the route target identifier. A
redistribute rule must be created under the appropriate IPv4 or IPv6 address family in
the BGP global configuration mode for each routing protocol, static, or connected route
to be exported. See the address-family command entry in the Border Gateway Protocol Commands section of the
S-,
K-, and 7100 Series CLI Reference Guide
for the BGP global configuration mode address family command details.
- An import route target – Import route targets specify that this VRF will import any BGP advertised routes that are tagged with the specified route target identifier, updating the VRF routing and forwarding tables with the advertised VPN-IPv4 or VPN-IPv6 addresses. IPv4 to IPv6 tunneling which supports IPv4 over an IPv6 Layer 3 tunnel interface as defined in RFC 2473 is not supported for L3 VPNs. When the VRF BGP router receives an update, it examines the extended community names for each set of prefixes. If an update matches a configured import route target for this named VRF, BGP installs the matching set of prefixes into the routing and forwarding tables as BGP learned routes, after removing the 64-bit RD.
- Both an import and export route target – This VRF will both import routing updates that match configured import route targets and export VPN address family prefixes tagged with the specified route target(s).
This example shows how to export VPN address family prefixes and tag them with route target 1:1000:
System(su)->router vpnA
System(su-vpnA)->configure
System(su-vpnA-config)->route-target export 1:1000
System(su-vpnA-config)->
This example shows how to both import BGP VPN updates tagged with the route target 10.10.176.25:1000 and tag any BGP VPN advertisements with the route target 10.10.176.25:1000:
System(su)->router vpnA
System(su-vpnA)->configure
System(su-vpnA-config)->route-target both 10.10.176.25:1000
System(su-vpnA-config)->