To see if dhcpcd (or any other service) is running, do:
ps -A | grep dhcpcd
or, alternatively, ps -C dhcpcd
To see if dhcpcd will start-up on bootup, look at these files:
[root@rigel root]# grep -r dhcp /etc/*
/etc/dhcpc/dhcpcd-eth0.info:HOSTNAME=dhcp-73-316
/etc/dhcpcd/dhcpcd-eth0.info:HOSTNAME=dhcp-73-316
/etc/sysconfig/network-scripts/ifdown:check_device_down ${DEVICE} && [
"$BOOTPROTO" != "dhcp" -a "$B
OOTPROTO" != "bootp" ] && exit 0
/etc/sysconfig/network-scripts/ifdown:if [ "$BOOTPROTO" = bootp -o
"$BOOTPROTO" = dhcp ]; then
/etc/sysconfig/network-scripts/ifdown: [ -n "`pidof -x dhcpcd`" ] &&
{
/etc/sysconfig/network-scripts/ifdown: kill `cat
/var/run/dhcpcd-${DEVICE}.pid`
/etc/sysconfig/network-scripts/ifup:if [ "${BOOTPROTO}" = "bootp" -o
"${BOOTPROTO}" = "dhcp" ]; then
/etc/sysconfig/network-scripts/ifup: if [ -x /sbin/dhcpcd ] &&
/sbin/dhcpcd ${DHCPCDARGS} ${DEVIC
E} ; then
/etc/sysconfig/network-scripts/ifup: elif [ -z "`pidof -x dhcpcd`"
] && [ -x /sbin/pump ] && /sbi
n/pump ${PUMPARGS} -i ${DEVICE}; then
/etc/sysconfig/network-scripts/ifcfg-eth0:BOOTPROTO=dhcp
/etc/sysconfig/networking/devices/ifcfg-internet:BOOTPROTO=dhcp
/etc/sysconfig/networking/profiles/default/ifcfg-internet:BOOTPROTO=dhcp
Also, I agree that "localhost.localdomain" may be confusing the dhcp
service. Try changing that to simply, "127.0.0.1 localhost" and see
if that helps.
Regards,
Gregg
>>>>> "Stephen" == Stephen Liu <[EMAIL PROTECTED]> writes:
> Hi Gregg, Thanks for your response
> At 07:09 AM 1/4/2002 -0800, you wrote:
>> What type of broadband connection?
> dynamic IP via optic fibre
>> /etc/sysconfig/network-scripts/ifcfg-eth0 looks OK to me.
>>
>> Is there a line in your /etc/hosts file that says, "127.0.0.1
>> localhost" ? Preferably the first line?
> /etc/hosts # Do not remove the following line, or various
> programs # that require network functionality will fail.
> 127.0.0.1 localhost.localdomain localhost
>> Do you have dhcpcd running on startup?
> I have no idea. Could you please advise how to check
> Thanks
> B.R. Stephen
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list