CentOS 6.6eth0IPADDR=10.0.0.100IPADDR2=10.0.0.101GATEWAY=10.0.0.250NETMASK=255.255.0.0eth1IPADDR=10.120.0.100GATEWAY=10.120.0.1NETMASK=255.255.255.0Gateway on eth0 has Internet access but gateway on eth1 does not. I'm trying to ping IP address 10.58.1.100 which will work on only across eth1.How do I accomplish this? I've tried creating manual routes with metric settings but it still doesn't work. On a windows machine I just have both NICs added, set static IPs and it all works fine.If I do ifdown eth0 then I can ping 10.58.1.100 no problem.
Multiple NICs and Gateway CentOS
linux;centos;rhel
Remove the gateway setting on eth1. That means 'default gateway', i.e. a gateway which can reach the internet, which you said that one is not. You can add manual routes for the networks which that gateway can reach.