Statement introduced before Junos OS Release 7.4.
Statement introduced in Junos OS Release 11.1 for EX Series switches.
Statement introduced in Junos OS Release 12.3 for ACX Series routers.
Statement introduced in Junos OS Release 14.1X53-D30 for QFX Series switches. auto option was also added at this time.
auto option added in Junos OS Release 19.1R1 for MX series.
Specify a virtual routing and forwarding (VRF) target community. If you configure the community option only, default VRF import and export policies are generated that accept and tag routes with the specified target community. The purpose of the vrf-target statement is to simplify the configuration by allowing you to configure most statements at the [edit routing-instances] hierarchy level. In effect, this statement configures a single policy for import and a single policy for export to replace the per-VRF policies for every community.
You can still create more complex policies by explicitly configuring VRF import and export policies using the import and export options.
auto—Automatically derives the route target (RT). The auto-derived route targets have higher precedence over manually configured RT in vrf-target, vrf-export policies, and vrf-import policies.
Auto-derived route targets are supported only in virtual switch and EVPN routing instances.
import community-name—Allowed communities accepted from neighbors.
export community-name—Allowed communities sent to neighbors.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.