Support Center > Search Results > SecureKnowledge Details
How to configure multiple routes to the same network host in Gaia OS?
Symptoms
  • Output of 'route -n' command in Expert mode does not show the multiple routes to the same network host (e.g., second default gateway with different metric) that was added in Gaia Portal.

  • Output of 'show route' command in Clish shows correctly the multiple routes to the same network host (e.g., second default gateway with different metric) that was added in Gaia Portal.
Cause

Additional routes to the same network host were not published to the Linux OS kernel.


Solution

Configure desired multiple routes using the "ip route" command in Expert mode.

For example, to configure the second default route with different metric:

  • To configure on-the-fly:

    [Expert@HostName]# ip route add default via IP_ADDRESS metric N

  • To configure during each boot:

    Add the above command to /etc/rc.d/rc.local start-up script.

    [Expert@HostName]# echo 'ip route add default via IP_ADDRESS metric N' >> /etc/rc.d/rc.local
    [Expert@HostName]# cat /etc/rc.d/rc.local

Give us Feedback
Please rate this document
[1=Worst,5=Best]
Comment