I'm posting this just in case anyone else is interested or perhaps experiences the same problem. This is what I did: 1. Renamed the /etc/sysconfig/network/routes file to oldroutes 2. Created two files: a) /etc/sysconfig/network/ifroute-eth0 containing the line: default "gateway" - eth0 b) /etc/sysconfig/network/ifroute-eth1 containing the line: default "gateway" - eth1 (where "gateway" = the ip address of the gateway or router) 3. Restarted the network with the command: rcnetwork restart The computer is set up for dhcp configuration. What happens is that; if both cards are connected to the network then a gateway is chosen (I don't know on what basis but it works). If only one card is connected then a gateway is setup in the routing table associated with that device (card). It all works beautifully now. Got the info. from the man pages, (man ifup and man routes). My thanks to those who replied and tried to help. Hope that helps someone else. Eddie On Wednesday 14 January 2004 6:43 pm, eddie wrote:
On Tuesday 13 Jan 2004 2:27 pm, Jeff Bankston wrote:
eddie wrote:
When connected through the laptop eth0 shows default gateway (on eth0). When connected through the docking station eth1 shows no gateway. Is it possible to set up two "default" gateways, one for each card? Or is it possible to change some setting some where (yast2 doesn't seem to have that option) that will allow both cards to see the gateway?
Thanks for the help
Why would you want to create two default gateways? If it is a single flat internal network, arp will work to find the internal hosts with your DNS.
-Jeff
At the moment, I can only talk to other machines on the subnet. I cannot connect to the internet or machines on other subnets. If I use route to add a default gateway when connected via eth1 then it works fine. I need a way of configuring the laptop so that when it is connected to via the docking station (eth1) it will setup or use a default gateway. Configuration through dhcp doesn't seem to make a difference.
Any thoughts anyone?
Thanks
Eddie