Re: Two NICs, one box...


Subject: Re: Two NICs, one box...
From: Jim Courtney (courtney@ieee.org)
Date: Wed Nov 28 2001 - 22:42:30 AKST


How about this to switch between NICS:

route del -net default gw
route add default gw <ip of DSL or Cable>

If you're starting out with two default gateways (check with 'route -n') you
just need to get rid of one:

route del -net 0.0.0.0 netmask 0.0.0.0 gw <ip>

...unless I misunderstood the problem, which is highly possible..

On Wednesday 28 November 2001 21:08, Tom wrote:
> Simple enough, right? Only thing is, if I bring them both online at once,
> I have awful problems with keeping stable links up. I figured I'd compile
> two kernels, one NIC driver in each one, then reboot if I needed to
> change. Unfortunately, the 3com is on DSL (with a static IP, one subnet
> mask and gateway) and the Linksys is on cable (DHCP IP, different subnet
> and gateway). So, /etc/network/interfaces can be set correctly for one,
> but then is wrong for the other.
>
> Anyone have a good idea for how to make this work nicely? Best I figured
> is to set up the static IP info, then when I reboot to cable I can
> manually run the DHCP client and it will correct things. I figure there
> *must* be a better way, though. Can't find a good HowTo on it on LDP,
> unfortunately...
>
> Pointers and tips gratefully appreciated :-)



This archive was generated by hypermail 2a23 : Wed Nov 28 2001 - 21:42:25 AKST