Configure the Route Target
As part of the policy configuration for the VPN routing table, you must define a route target, which defines which VPN the route is a part of. When you configure different types of VPN services (Layer 2 VPNs, Layer 3 VPNs, or VPLS) on the same PE router, be sure to assign unique route target values to avoid the possibility of adding route and signaling information to the wrong VPN routing table.
To configure the route target, include the
targetoption in thecommunitystatement:communitynamemembers target:community-id;You can include the
communitystatement at the following hierarchy levels:
nameis the name of the community.
community-idis the identifier of the community. Specify it in one of the following formats:
as-number:number, whereas-numberis an AS number (a 2-byte value) andnumberis a 4-byte community value. The AS number can be in the range 1 through 65,535. We recommend that you use an IANA-assigned, nonprivate AS number, preferably the ISP's own or the customer's own AS number. The community value can be a number in the range 0 through 4,294,967,295 (232 - 1).ip-address:number, whereip-addressis an Internet Protocol version 4 (IPv4) address (a 4-byte value) andnumberis a 2-byte community value. 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 value can be a number in the range 1 through 65,535.