Click to See Complete Forum and Search --> : Getting dhcpcd going automatically


Memphisto
09-24-2001, 02:10 AM
At present I can only get my cable modem working by opening a console, changing to root and typing...

# /sbin/dhcpcd -h CO1234567-A

Can I configure something so this is done automatically?

Thanking you in advance.

bdg1983
09-24-2001, 09:25 AM
Depends on the distro. Mine would go in /etc/rc.d/rc.local though yours might be different.

sans-hubris
09-24-2001, 11:17 AM
You're trying to set up a DHCP server or just the client? If you're just trying to set up a DHCP client, then use pump (http://packages.debian.org/stable/net/pump.html).

[ 24 September 2001: Message edited by: Muad Dib --formerly ndogg ]

Memphisto
09-25-2001, 07:48 PM
OK I entered the line in /etc/rc.d/rc.local and it works fine. Thanks!

But...

During bootup I get all the hardware being setup. I get lines like - Bringing up interface...

For eth0 I get the following:

Bringing up interface eth0: determining IP information for eth0...operation failed

I take it there is a file responsible for bringing up eth0 with appropriate IP during bootup but at present its not being supplied with all the information it needs - hence operation failed.

The line that I entered into rc.local is obviously running dhcpcd and getting the cable modem running after the initial startup.

The little problem I have with this is the fact that its taking about 5 minutes to boot into Red Hat 7.1 on a 1.2GHz AMD system - not exactly mind blisteringly fast! It goes to setup eth0 and takes a few minutes trying to determine an IP before it eventually fails. So too with sendmail.

Does anyone know the file I should be feeding the line #/sbin/dhcpcd -h CO1234567-A into so that it sets up eth0 correctly, the first time around - instead of at the last stage of booting?

Any help would be greatly appreciated!

[ 25 September 2001: Message edited by: Memphisto ]

Memphisto
09-26-2001, 02:14 AM
bump!