Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

route-target-filter

Syntax

Hierarchy Level

Description

Statically configure route target filtering. Route target filtering allows you to distribute VPN routes to only the routers that need them. In VPN networks without route target filtering configured, BGP distributes all static VPN routes to all of the VPN peer routers. You can add static routes to the bgp.rtarget.0 routing table with specific NLRI-imposed constraints.

Options

destination

Allows you to specify the static route destination. This value must be in the format x:y/len. The x value is either an IP address or an AS number followed by an optional L to indicate a 4 byte AS number, and y is a number (for example, 123456L:100/64).

group group-name(s)

Installs an RT-Constrain filter for the destination for all peers in the specified BGP group. The route and corresponding BGP group are displayed in the output of the show bgp group rtf detail command.

local

Causes the router to originate the route target constrain NLRI, but does not install any filtering state for the prefix. This behavior can be useful when the router should always receive VPN routes with this route-target regardless of the state of a given BGP peering session or group status. The route is not displayed in the output of the show bgp group rtf detail command unless it is also included in either the BGP neighbor or BGP group configuration.

neighbor address

Installs an RT-Constrain filter for the destination for this BGP neighbor. The route is displayed in the output of the show bgp group rtf detail command. Specify the BGP neighbor using the router’s IP address.

Required Privilege Level

routing—To view this statement in the configuration.

routing-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 12.2.