Default network device
I have two network cards, and named eth0 and eth1 in Red Hat Enterprise Linux system. The eth0 is connected to the internet, and eth1 works on LAN network.
However, the default network always goes through eth1 after reboot
despite of configurations in /etc/sysconfig/network-scripts/route-eth0.
#] ip route show
default via 172.16.0.5 dev eth1
Is there anyway to make the default network goes through dev eth0 ?
Have you tried setting the default gateway in /etc/sysconfig/network ?
Hi matonb, thank you for your reply.
I also set the gateway (of course the gateway to internet) in /etc/sysconfig/network . However it still going through eth1 (on LAN) after reboot.
And if I set the GATEWAY ip (which is on different network than the eth1's network) in this file:
then I always have the default network assigned to eth0 after reboot and could to go to the internet easily.
But I think this's not really right.
Which flavour of Linux are you using?
I may not understand your question fully. I'm using Red Hat Enterprise Linux and familiar with this distro than other distros.
Originally Posted by matonb
I've been really busy and not had a chance to look into this.
Which version of RHEL? 5?
No, I'm using RHEL4