Configure the Route Target
In the import and export policies for the PE router's VRF table, you must define the route target, which defines which VPN the route is part of. To do this, include the
targetoption in thecommunitystatement at the[edit policy-options]hierarchy level:[edit policy-options]communitynamemembers target:community-id;
nameis the name of the community.
community-idis the identifier of the community. You specify it in one of the following formats:
as-number:number, whereas-numberis an autonomous system (AS) number (a 2-byte value) andnumberis a 4-byte community identifier. The AS number can be in the range 1 through 65,535. We recommend that you use an Internet Assigned Numbers Authority (IANA)-assigned, nonprivate AS number, preferably the Internet service provider's (ISP's) own or the customer's own AS number. The community identifier can be a number in the range 0 through 232 - 1.ip-address:number, whereip-addressis an Internet Protocol Version 4 (IPv4) address (a 4-byte value) andnumberis a 2-byte community identifier. The IP address can be any globally unique unicast address. We recommend that you use the address that you configure in therouter-idstatement, which is a nonprivate address in your assigned prefix range. The community identifier can be a number in the range 1 through 65,535.