C613-50100-01 REV C Command Reference for x930 Series 1536
AlliedWare Plus™ Operating System - Version 5.4.6-1.x
VRF LITE COMMANDS
ROUTE
-TARGET
route-target
Overview Use this command within a specific VRF instance, to create a route-target within
the BGP extended communities path attribute field. This value can then be
included in a list of import and export route target extended communities for the
specified VRF instance. Learned routes that carry a specific route-target extended
community are then imported into all VRFs configured with that extended
community as an imported route-target.
The no variant of this command removes a route-target extended community for
the VRF instance specified.
Syntax
route-target {import|export|both} {ASN:n|ip-address:n}
no route-target {import|export|both} {ASN:n|ip-address:n}
Mode VRF Configuration
Default No route-target community attributes are associated with a VRF instance.
Usage In VRF systems that use MPLS, there is an close relationship between the Route
Target (RT) and the Route Distinguisher (RD) values. For VRF lite however, this
relationship is only implicit in that they share the same format structure.
Example Use the following commands to create a route-target extended community for
ASN value 200, and a Reference number of 3, within the VRF instance blue:
awplus# config terminal
awplus(config)# ip vrf blue
awplus(config-vrf)# route-target import 200:1
Parameter Description
route-target Specifies a BGP extended community as a route-target.
import Adds the route target to its import list.
export Adds the route target to its export list.
both Adds the route target to both the import and export lists.
<ASN:n> The route target reference number. This uses the same structure
that is defined for the RD. This being, ASN number:Ref number.
The ASN value can be any number between 1 and 65535, and the
value n can be any number between 1 and 4294967295.
<ip-address:n> The route target reference number. This uses the same structure
that is defined for the RD (Route Distinguisher). This being
IP-address:Ref number.
In practice, the IP-address can be an entry in IPv4 format, or an
integer number between 1 and 4294967295. The value n can be
any number between 1 and 65535.