Navigation
route-target
Syntax
[ no ] route-target { import | export | both } extendedCommunity
Release Information
Command introduced before JunosE Release 7.1.0.
Description
Creates or adds to a list of VPN extended communities used to determine which routes are imported by a VRF. The no version removes a route target from the specified list.
A route is installed in the VRF’s forwarding table when both of the following conditions are met:
- An update message with a route-target export list advertises a route.
- That list contains at least one route target that matches a route target in the route-target import list associated with a VRF.
Options
- import—Adds the route target to the current VRF’s import list; the VRF accepts only routes that have at least one route target that matches a route target in the import list
- export—Adds the route target to the current VRF’s export list; all routes advertised from this VRF are associated with the export list; at least one route target in the export list must match a route target in the import list of a VRF receiving the route for the route to be installed in the VRF’s forwarding table
- both—Adds the route target to both the import list and export list of the current VRF
- extendedCommunity—Two-part
number of the format number1:number2 that identifies an extended community of VPNs where:
- number1—AS number or IP address
- number2—Unique integer; 32 bits if number1 is an AS number; 16 bits if number1 is an IP address
Mode
VRF Configuration