l2vpn route-target
Creates or adds to a list of L2VPN extended communities that the router uses to determine which routes are imported by the specified L2VPN instance. The no version removes a route target from the specified list.
[ no ] l2vpn l2VpnName route-target { import | export | both } extendedCommunity
- l2VpnNameName of the L2VPN instance
- importAdds the route target to the import list for the specified L2VPN instance; the L2VPN accepts only routes that have at least one route target that matches a route target in the import list
- exportAdds the route target to the export list for the specified L2VPN instance; all routes advertised from this L2VPN are associated with the route targets in the export list; at least one route target in the export list must match a route target in the import list of a L2VPN receiving the route for the route to be accepted by the L2VPN.
- bothAdds the route target to both the import list and export list for the specified L2VPN instance; recommended setting for an L2VPN instance
- extendedCommunityTwo-part number of the format number1:number2 that identifies an extended community of L2VPNs where:
- number1AS number or an IP address
- number2Unique integer; 32 bits if number1 is an AS number; 16 bits if number1 is an IP address
Global Configuration
Release Information Command introduced in JUNOSe Release 8.1.0.