Configure the Route Origin
In the import and export policies for the PE router's VRF table, you can optionally define the route origin (also known as the site of origin), which identifies the set of routes learned from a particular CE site. This attribute ensures that a route learned from a particular site through a particular PE-CE connection is not distributed back to the site through a different PE-CE connection. It is particularly useful if you are using BGP as the routing protocol between the PE and CE routers and if different sites in the VPN have been assigned the same AS numbers.
To configure a route origin, complete the following steps:
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 232 - 1.ip-address:number, whereip-addressis an 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.
- Include the community in the import policy for the PE router's VRF table by configuring the
communitystatement with thecommunity-ididentifier defined in Step 1 at the[edit policy-options policy-statementimport-policy-nametermimport-term-namefrom]hierarchy level. See Configure Import Policy for the PE Router's VRF Table.- Include the community in the export policy for the PE router's VRF table by configuring the
communitystatement with thecommunity-ididentifier defined in Step 1 at the[edit policy-options policy-statementexport-policy-nametermexport-term-namethen]hierarchy level. See Configure Export Policy for the PE Router's VRF Table.