[CentOS] Gateway question

Tue Aug 9 18:51:17 UTC 2016
Birta Levente <blevi.linux at gmail.com>


On 09/08/2016 20:01, Gordon Messmer wrote:
> On 08/08/2016 04:05 AM, Levente Birta wrote:
>> Can I add this in any config files (ex: route-enp2s0)? 
>
>
> Yes.  Add a route file for each interface, and set up rules to send 
> packets out the corresponding physical interface:
>
> https://blogs.oracle.com/networking/entry/advance_routing_for_multi_homed
>

Yes, but no :)

I do all this and working on LAN ... all traffic go in/out on the proper 
interface ... the problem is when I try to access the internet on the 
second interface ....

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" ....

Thanks
Levi