route-target-filter
Syntax
route-target-filter destination { group group-name; local; neighbor address; }
Hierarchy Level
[edit logical-systems logical-system-name routing-options rib bgp.rtarget.0 static], [edit routing-options rib bgp.rtarget.0 static]
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 |
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 |
neighbor address |
Installs an RT-Constrain filter for the
destination for this BGP neighbor. The route is displayed in the output
of the |
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.