How to configure source-based and source interface based routing in Juniper networks is a burning question for many Juniper Clients so I collected a small tutorial from Junipers website and presented here.
After adding source based and source interface based routes we need make sure that we have enabled source based or source interface based routing at the particular Vr as both the routing features would be in disabled mode by default. The following article is an explanation of the Source-Based Routing as an example using the WebUI and CLI, refer to the Juniper Site for more information.
Why Source based routing?
Sometimes when we have more than one router in a network, and want different containers to use different routers. For that, we need to set up source-based routing on the host system.
Examples to enable Source Based Routing:
If you want to enable only source based routing but not source interface based routing via WebUI then
Go to Network> Routing> Source Routing and then select the check box near Source routing.
If you want to enable it via the CLI then follow the :
Source Routing: set vrouter <virtual router name> source-routing enable
Source Interface Based Routing: set vrouter <virtual router name>sibr-routing enable
You can check the status of source based or source interface based routing at the particular VR by using the following command:
get vr <virtual router name>
With Route Lookup Preference under consideration, PBR has the highest Preference, followed by Source Interface Based (SIBR), source based, and then destination based with the least preference.
Note: This is applicable with the default preference only and this preference can be changed at the virtual router level.
You can view the route lookup preference on a particular VR by using the following CLI command:
get vr <vr name> route-lookup preference
Leave a Reply