RPKI on IOS-XR (RPKI Routes)
Last updated
Last updated
Load ios-xr.rpki.enable.init.cfg
Configure RPKI on XR5 for both IPv4 and IPv6. Reject all invalid paths.
The RPKI server is reachable at 10.100.100.1 on port 22. Use SSH as the transport. Use rpki/rpki as the credentials.
The prefix 2001:2a0::/32 has been incorrectly categorized by RPKI. Configure the path to be valid via AS 1659.
Before adding the override RPKI route, we can see that 2001:2a0::/32 has no best path, because all paths received are invalid.
IOS-XR gives us the ability to add “override” RPKI routes. These are locally added to the RPKI database. We must specify the prefix, maxlength, and origin AS, which are the three components of an ROA.
Note that while the parser allows you to omit the max prefix length, the router will not let you commit.
We now have a valid path for this prefix:
If we inspect the RPKI table, we can see that this override route has been inserted. The RPKI server of 0.0.0.0 shows that it was locally inserted into the table.
The ROA from the RPKI server is still there, but we only need one match to validate a route.
Note that AS=0 is a special case which means that the route should never be originated into BGP.