[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DHCP



Two things to be considered:

1) pump, dhclient and other user-space tools ages simply as client: they use the network interface
to request for an ip and sets through syscalls the interfaces. This is a process, has a priority and
could work in background

2) network/interfaces and ifup/down requests kernel-level ability to do this work itself. If you
have a cable connection, probably you like to request the interface to be set up at bootstrap.
If you sets eth0 interface to be pick up at boot time, this time the kernel stops and search for
a dhcp answer, blocking the system.

Finally, this means that a user-space client permits you (if you set rc.x/SnnPickUpEth0 ) to work
while eth0 get up, while ifup eth0 does not.
If appens that your machine can be disconnected from the network, your bootstrap will require
a long long time, waiting for dhcp request time out. If it's alway connected, instead, this method
could be more handy.

Take care of this and take your decision.

bye

Albert D. Cahalan wrote:
Michel D\344nzer writes:
On Thu, 2002-07-04 at 00:14, Albert D. Cahalan wrote:

Does it work? I've tried every daemon that
looked like a client: dhcpcd, pump, dhclient...
This is with debian-testing, ppc, and a 2.4.16 kernel.
I even know the interface works.
pump's been working fine for me. Have you read interfaces(5)?
Do you use ifup/ifdown?

Reading interfaces(5) was certainly interesting.
It helps explain why an insmod for my network
hardware will configure a static address for me.
It also says I can't use pump with a 2.4.xx kernel.

So pump isn't likely to work.

I wasn't planning to use ifup/ifdown at all. I have
a script to load modules, change the hardware address
to satisfy my cable modem, add firewall rules, and
so on. On my x86 box, the part of that script which
interacts with the DHCP client looks like this:

##################################################################
# don't get an IP until firewall is up
if ps -C dhcpcd ; then echo DHCP client running ; else dhcpcd ; fi
. /etc/dhcpc/dhcpcd-eth0.info

iptables -A INPUT -i eth0 -d ! $IPADDR -j DROP # not for us
##################################################################

None of pump, dhclient, or dhcpcd are even able to
get an IP address on my Mac.




Reply to: