[ Next-in-Thread ]  [ Next Message ] 

Package name confusion, and a fix 

Forum: PCMCIA Network Adapter Issues
Re: Question: route add unnecessary for dhclient? (Adam Goode)
Re: I'm not sure (David Hinds)
Re: Feedback: dhclient for Linux (Adam Goode)
Date: 2000, Feb 24
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Oh, Debian calls it dhcp-client, which threw me off.  It appears to me
that the right fix is just to change that route command to:

  route add default dev $DEVICE netmask 0.0.0.0

which should work for any DHCP client that needs it, and should be
harmless for any client that does it on its own.

-- Dave

[ Next-in-Thread ]  [ Next Message ] 

Messages Inline: [ 0 ]  [ 1 ] 

More: Hmmm, almost, but not quite

Re: Package name confusion, and a fix (David Hinds)
Date: 2000, Feb 24
From: Adam Goode <goodea@rpi.edu>

Yes, but this still switches the default route from the first ethernet card inserted to the second. Basically, whichever card is added last becomes default route.

My main trouble is that the second ethernet card is a wireless card, so that if I am not near an access point, dhcp fails and shouldn't change any route. This preserves my wired ethernet card as default. In general, though, I think I want to be able to select an interface to be preferred default route (because the default should be the wired card if that's active).

Is there a better solution to this (perhaps) more general problem of picking an interface to be default route?

Let me know if I've confused anyone terribly. (Besides myself.)

Adam Goode

Argh

Re: More: Hmmm, almost, but not quite (Adam Goode)
Date: 2000, Feb 24
From: David Hinds <dhinds@pcmcia.sourceforge.org>

Then I guess it actually didn't help at all, right?  Well, I think
I'm also quite confused.

> Is there a better solution to this (perhaps) more general problem of
> picking an interface to be default route?

My suggestion would be for you to just define two PCMCIA schemes, one
for when you're wired, and one for when you're wireless.  Use cardctl
to pick your scheme.  I guess it isn't quite as nice as automatic
fall-over from one card to the other, but I'm not sure there is a good
general solution to that problem.

-- Dave
Package name confusion, and a fix


[ Add Message ]  to: "Package name confusion, and a fix"

[ Members ]  [ Subscribe ]  [ Admin Mode ] 
[ Show Frames ]  [ Help for HyperNews at pcmcia-cs.sourceforge.net 1.10 ]