[CentOS] Gateway question

Wed Aug 10 06:17:53 UTC 2016
Levente Birta <blevi.linux at gmail.com>

On 09/08/2016 23:08, Gordon Messmer wrote:
> On 08/09/2016 11:51 AM, Birta Levente wrote:
>> If I add "#route add default gw 192.168.1.1 dev enp3s0" all is good,
>> but cannot add that in route-iface file or with "ip route" ....
>
>
> Are you using the "network" or the "NetworkManager" service to configure
> your network?  I haven't verified that the route-<interface> files are
> supported by NetworkManager.
>
> If you are using the older "network" service, then you might be getting
> the syntax of the route-<interface> file wrong.  If you included the
> contents of your ifcfg-<interface> and route-<interface> files, we could
> check.
>

I'm using older network service ... I hate NetworkManager :)
And all that content was included in the original post, but a copy/paste 
is not a problem:

route-enp2s0:
192.168.1.0/24 dev enp2s0 src 192.168.1.12 table t2
default via 192.168.1.1 dev enp2s0 table t2

route-enp3s0:
192.168.1.0/24 dev enp3s0 src 192.168.1.13 table t3
default via 192.168.1.1 dev enp3s0 table t3

rule-enp2s0:
from 192.168.1.12/32 table t2
to 192.168.1.12/32 table t2

rule-enp3s0:
from 192.168.1.13/32 table t3
to 192.168.1.13/32 table t3



-- 
            Levi