/etc/sysconfig/network-scripts/ifup in Rh7.2 will default load dhcpcd
first. Pump is used only when dhcpcd is not installed.
Newsgroups: comp.os.linux.misc
> tell me how to switch PUMP to DHCPCD?
It's as simple as un-installing pump and installing dhcpcd. The
ifup script will try both.
Tony Lill
Take a look at the book "Linux Firewalls" by Robert L. Ziegler, New Riders,
page 425 - 432. He gives a good description of switching from pump to dhcpcd.
I just switched to dhcpcd myself from pump because I'm using an internet
firewall with web services (Apache, wu-ftp, etc, etc) with a dynamic IP
(rather than static) IP address. As a consequence I need dhcpcd to run the
firewall script again any time the ip address changes.
Some things to consider:
-
"pump" is used in Redhat 6.0 and beyond. "dhcpcd" was used in pre-6.0.
-
dhcpcd is included in the Redhat distribution even though it's not used,
(ie: an RPM).
-
To install I would first manually create /etc/dhcpc, then install. Next I
would place any scripts for dhcpcd to run in /etc/dhcpc/dhcpcd-eth0.exe,
(this is not an executable, it is a bash script you create from scratch!
Replace "eth0" with whatever your interface is, though I never had any
luck with "ppp0".
-
Now type /sbin/dhcpcd and you will get an ip address assigned.
Type "/sbin/dhcpcd -k" to shut down dhcpcd. It will leave
your eth0 down, so when done you have to do "ifup eth0".
-
Apparently the current version of dhcpcd doesn't run the
/etc/dhcpc/dhcpcd-eth0.exe bash script if the new IP address assignment is
the same as the old IP address. Older versions of dhcpcd ran the script
even when the IP didn't change.
In Redhat 6.0 (and possibly other versions) where pump is used you may want
to modify /sbin/ifup to use dhcpcd rather than pump, for example
if [ -n "$PUMP" ]; then
echo -n "Determining IP information for $DEVICE..."
if /sbin/dhcpcd; then
/etc/rc.d/init.d/myfirewallbashscript
else
echo "failed."
exit 1
fi
else ...
Tom
-
'dhcpcd': (dynamic host configuration protocol client daemon)
-
'dhcpd' (dynamic host configuration protocol daemon).
rpm -e pump
rpm -q pump
psbn pump
rpm -ivv dhcpcd-1.3.18pl3-1.i386.rpm
rpm -qil dhcpcd
dhcpcd
ifconfig
head -5 /etc/dhcpc/dhcpcd-eth0.info
cat /etc/resolv.conf
AOK.