[CentOS] Gateway question

Tue Aug 9 19:03:33 UTC 2016
John R Pierce <pierce at hogranch.com>

On 8/9/2016 11:42 AM, Birta Levente wrote:
> So, again:
> Centos 7
> 2 NICs
> enp2s0-192.168.1.12
> enp3s0-192.168.1.13
> default gateway on enp2s0 is 192.168.1.1, defined in 
> /etc/sysconfig/network
>
> Which other way (preferred with "ip route") can I add this, but:
> #route add default gw 192.168.1.1 dev enp3s0 

those are both the same network, and the default gateway is a global 
thing.  packets forwarded to 192.168.1.1 could use either 192.168.1.12 
or .13, as they are all the same.  in reality, they will use the first 
match they find.



-- 
john r pierce, recycling bits in santa cruz