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.
Include the
targetoption in thecommunitystatement:communitynamemembers target:community-id;You can configure this statement at the following hierarchy levels:
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.