Hi Bret,

Well it is easy to see if it will fix your problem by just installing the
RPM and trying it on the command line.

Do a man dhcpcd to see if my options suit you.

/sbin/dhcpcd -d -R -h <hostname> <device>
                          ^          ^
                      (this is      (eth0 or whatever)
                       what pump
                       can't handle
                       properly)

If this works then you are all set... Now the fun of setting it all up to
work automagically.

You need to edit the following :
(of course back these up before screwing with them.)
1) /etc/sysconfig/network-scripts/ifcfg-ethX

DEVICE=ethX
IPADDR=
NETMASK=
ONBOOT=yes
BOOTPROTO=dhcp
BROADCAST=
NETWORK=
USERCTL=no
DHCP_HOSTNAME=<hostname>

2) /sbin/ifup

Where it has :

if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
    PUMP=true
fi

Change to :

if [ "$BOOTPROTO" = dhcp ]; then
    PUMP=true
fi

Where it has :

if [ -n "$PUMP" ]; then
    PUMPARGS=
    if [ -n "$DHCP_HOSTNAME" ]; then
       PUMPARGS="-h $DHCP_HOSTNAME"
    fi
    echo -n "Determining IP information for $DEVICE..."
    if /sbin/pump $PUMPARGS -i $DEVICE ; then
        echo " done."
    else
        echo " failed."
        exit 1
    fi

Change to :

if [ -n "$PUMP" ]; then
    PUMPARGS=
    if [ -n "$DHCP_HOSTNAME" ]; then
       PUMPARGS="-h $DHCP_HOSTNAME"
    fi
    echo -n "Determining IP information for $DEVICE..."
    if /sbin/dhcpcd -d -R $PUMPARGS $DEVICE ; then
        echo " done."
    else
        echo " failed."
        exit 1
    fi

3) /sbin/ifdown

Where it has :

if [ "$BOOTPROTO" = bootp -o "$BOOTPROTO" = dhcp ]; then
       pump -r -i ${DEVICE}
fi

if [ "$BOOTPROTO" = bootp ]; then
fi

Change to :

if [ "$BOOTPROTO" = dhcp ]; then
      if [ -f /var/run/dhcpcd-${DEVICE}.pid ]; then
              kill `cat /var/run/dhcpcd-${DEVICE}.pid`
              rm -f /var/run/dhcpcd-${DEVICE}.pid
      fi
fi

I am pretty sure I didn't leave anything out. Good luck.

Have fun,
-- 
_________________________________________________________________
 Brian Ashe                     CTO
 [EMAIL PROTECTED]              Dee-Web Software Services, LLC.
 http://www.dee-web.com/
-----------------------------------------------------------------
You don't have to swim faster than the shark...
You just have to swim faster than the people you're with.

Wednesday, August 30, 2000, 12:21:16 AM, you wrote:

BH> "Steven W. Orr" wrote:

>> Tghis won't directly help you, but keep in mind that you shouldn't use
>> pump. You should use dhcpcd instead. If you have your machine up 24/7 like
>> I do then pump will simply abort after it fails to renew it's lease. I'm
>> on RCN so I get renewed every 2 hours. Expiration happenes afetr about 5
>> to 7 days. Using dhcpcd will start a new lease as needed.
>>
>> --

BH> What do you have to do to get dhcpcd to work in place of pump?

BH> Bret



BH> _______________________________________________
BH> Redhat-list mailing list
BH> [EMAIL PROTECTED]
BH> https://listman.redhat.com/mailman/listinfo/redhat-list




_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to