DHCP with DHclient and not pump or DHCPC

Hello all,

I have a standard out of the box Mandrake 7.0 Setup.  I have a cable modem and am assiged address via DHCP.  Last night I tried using
both pump and dhcpc that came installed by default.  Neither of these
worked correctly with my ISP's lease assignment.   I found another client
dhclient from ISC (http://www.isc.org/) and got it to work by just running it from the command line.  

Now my question is where do I need to put this so it will be run automatically when my system starts up.  I did find some references to
pump and dhcpc in /sbin/ifup but then I tried replacing either the pump or
dhcpc command line with the dhclient line it didn't work.  But when my
system came up I could issuse the command ifup eth0 from a command prompt and then everything worked ok.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You are on the right track.

You need to do this:

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
WHat happened to my answer? Wierd.. Give me a second here :)
here is what you need to change in ifup
(the lines with # are the original instructions)

if [ -n "$PUMP" ]; then    
if [ -n "$DHCP_HOSTNAME" ]; then
       PUMPARGS="-h $DHCP_HOSTNAME"    fi
    echo -n "Determining IP information for $DEVICE..."

#    if /sbin/pump $PUMPARGS -i $DEVICE ; then

    if /sbin/dhclient $DEVICE ; then

and ifdown

if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
#      pump -r -i ${DEVICE}
 kill `cat /var/run/dhclient.pid`
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

Gah, the formatting got messed up :-/


if /sbin/pump $PUMPARGS -i $DEVICE ;then


if /sbin/dhclient $DEVICE ; then

In /sbin/ifup, and

pump -r -i ${DEVICE}


kill `cat /var/run/dhclient.pid`

in /sbin/ifdown and NOTE that the ` are BACKTICKS and NOT ´ or '
jaalexanAuthor Commented:
I will try this when I get home from work tonight

jaalexanAuthor Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.