Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DHCP sleep too much ?

0 views
Skip to first unread message

Arun Sharma

unread,
Jan 6, 1999, 3:00:00 AM1/6/99
to

I noticed that the DHCP timeout in Redhat Linux is set to around 30-45
secs, which seems to be a bit too long for a frequently rebooted
machine (like a laptop).

Trying to lower that number makes DHCP fail. Does anyone know why ?
How does Win95 manage to boot with DHCP in a slightly shorter period
of time ?

-Arun

Johan Kullstam

unread,
Jan 6, 1999, 3:00:00 AM1/6/99
to
Arun Sharma <adsh...@home.com.nospam> writes:

for me, it is almost instant. i use a recent kernel (2.2.0pre4) and
dhcpcd (1.3.16). i had to hack the ifup script a little bit.

here's the relevant bit from ifup

elif [ "$BOOTPROTO" = dhcp -a "$ISALIAS" = no ]; then
echo "Using DHCP for ${DEVICE}..."
if /usr/sbin/dhcpcd -d ${DEVICE} -t 30; then
# success
rm -f /var/run/dhcp-wait-${DEVICE}.pid
echo "Done."
IPSETUP=yes
else
# fail
echo "Failed."
exit 1
fi

hope this helps.

--
Johan Kullstam [joh...@idt.net] Don't Fear the Penguin!

0 new messages