On a RHEL6 server I added a 2nd nic and have configured it to use a static ip on a different subnet.
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.16.157.32 0.0.0.0 255.255.255.224 U 1 0 0 eth1
128.83.188.192 0.0.0.0 255.255.255.192 U 1 0 0 eth0
0.0.0.0 172.16.157.33 0.0.0.0 UG 0 0 0 eth1
However, /etc/sysconfig/network states:
GATEWAY=128.83.188.193
Why is this statement getting ignored?
I can manually change the default route using the ip
or route
command, but when I restart the network, the default route still goes back to eth1.