Programme default and connected routes into the Linux kernel to allow Linux applications to send and receive traffic through the IOS XR network stack using the to_xr interface.
Use this procedure to configure the Linux kernel routing table so that Linux applications can communicate over the IOS XR network stack. Because IOS XR acts as the network stack for the system, the Linux kernel needs basic routes to connect into and use the IOS XR network stack.
Two types of routes can be programmed in the kernel:
-
Default route: Sends traffic destined to unknown subnets out of the kernel through the
to_xrinterface to IOS XR for routing. Becauseto_xrhas no associated IP address, a source hint is required to set the source IP address for outgoing packets. -
Local or connected routes: Routes associated with the subnet configured on interfaces. For example, the
10.1.1.0/24network is associated with theHu0_0_0_24interface.
Procedure
| 1. | View the current routes from the bash shell. Example:
|
|
| 2. | Update the source hint for the default route to use the management port IP address. Example:
With this updated source hint, any default traffic exiting the system uses the management port IP address as the source IP address. |
The Linux kernel routing table is updated with a default route through to_xr and connected routes for each configured interface, enabling Linux applications to send and receive traffic through the IOS XR network stack.