Configuring the Route Origin
In the import and export policies for the PE router's VRF table, you can optionally assign the route origin (also known as the site of origin) for a PE router's VRF routes using a VRF export policy applied to multiprotocol external Border Gateway Protocol (MP-EBGP) VPN IPv4 route updates sent to other PE routers.
Matching on the assigned route origin attribute in a receiving PE's VRF import policy helps ensure that VPN-IPv4 routes learned through MP-EBGP updates from one PE are not reimported to the same VPN site from a different PE connected to the same site.
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 Configuring 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 Configuring Export Policy for the PE Router's VRF Table.See Route Origin for VPNs for a configuration example.