[ Next-in-Thread ]  [ Next Message ] 

Question: route add unnecessary for dhclient? 

Forum: PCMCIA Network Adapter Issues
Date: 2000, Feb 24
From: Adam Goode <goodea@rpi.edu>

On line 60 of etc/network, there is the line

/sbin/route add default dev $DEVICE

which presumably adds the current device as the default gateway, when dhcp is enabled.

When I insert my 3com ethernet card, configured as a static interface in network.opts, it works properly as default route. When I plug in my wavelan card, it takes over as default route, which means it knocks out default route for the ethernet, and makes it go over the wavelan. Right now, I am not near a access point, so dhclient finds nothing on the wavelan and goes to sleep. But the card is configured as default route, which I don't want. When I comment out the route add line in etc/network, it works correctly. Is the line necessary? Doesn't dhclient automatically add the route as necessary? Seems like it, check out /etc/dhclient-script.

I am running Debian woody on x86.

Adam Goode

[ Next-in-Thread ]  [ Next Message ] 

Messages Inline: [ 0 ]  [ All ]  Outline: [ 1 ]  [ 2 ]  [ All ] 

I'm not sure

Re: Question: route add unnecessary for dhclient? (Adam Goode)
Date: 2000, Feb 24
From: David Hinds <dhinds@pcmcia.sourceforge.org>

I believe that the route command was necessary at one time, for at
least some versions of dhcpcd and/or kernels, but I don't know if it
is/was ever necessary for dhclient.

Where do you get dhclient, anyway?  I've never been able to find a
dhclient package that wasn't for BSD.  Maybe it doesn't matter, but
network configuration scripts tend to be platform specific.

-- Dave
1. Feedback: dhclient for Linux by Adam Goode, 2000, Feb 24
(_ Package name confusion, and a fix by David Hinds, 2000, Feb 24
(_ More: Hmmm, almost, but not quite by Adam Goode, 2000, Feb 24
(_ Argh by David Hinds, 2000, Feb 24
route add unnecessary for dhclient?


[ Add Message ]  to: "route add unnecessary for dhclient?"

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