Hello community,
I am new-bee to Linux and seeking for your help. I will try to explain my problem here and hopefully I will do well enough to explain.
In Centos 6.4, when I type : ip rule list, I am seeing following:
0: from all lookup local
xyz: from all lookup 220
...: from all lookup main
...: from all lookup default
If I understood it correctly, it is prioritizing local table above all. What is happening is a route that is added in the Main does not getting executed for eth1 as there is already similar route exist for traffic through eth0. This makes the traffic flow from eth0
.
Now adding this route in local table above already existing route works and route flows from eth1. But the problem is whenever I perform network restarts, it remove the route that is added in local table!!
Is there any way to put a new route in local table permanently, so that it will be there even after network restart? Is there any way I can change the rules so that creating a new rule that can override the route in table local?
Thanks in advance. Your help will be highly appreciated.