Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

vrf-target

Syntax

vrf-target {community;import community-name;export community-name;}

Hierarchy Level

[edit logical-systems logical-system-name routing-instances routing-instance-name],[edit logical-systems logical-system-name routing-instances routing-instance-name protocols l2vpn mesh-group mesh-group-name][edit logical-systems logical-system-name routing-instances routing-instance-name protocols vpls mesh-group mesh-group-name][edit routing-instances routing-instance-name],[edit routing-instances routing-instance-name protocols l2vpn mesh-group mesh-group-name] [edit routing-instances routing-instance-name protocols vpls mesh-group mesh-group-name]

Release Information

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.

Description

Specify a 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.

Options

community—Community name.

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.

Published: 2014-04-23