View Full Version : dhclient FC5 problem...
Gescape
2006-08-07, 05:24 AM CDT
Hi.
I use dualboot machine FC5 & XP with Ethernet connection to gateway (Internet) set by DHCP server.
In XP there is no problem to get IP by DHCP. But when I reboot to FC I can't get IP by dhclient. I set IP for static so it was working. Then I set it back for DHCP and it wasn't working again.
Strange thing is that today I didn't boot to XP and only to FC. I set NIC to obtain IP from DHCP and it wasn't working (with static IP it was), so I did:
dhclient -r
dhclient -I 01macaddress eth0
... and surprise. It is working again with DHCP.
Have anyone ANY idea what is the story? Is that mean XP keeps one dhcp lease and FC tries to get another one or what?
Or maybe how to "say" Fedora to share the same dhcp lease with XP?
I don't thing it is problem with NIC. Anyway it is Intel 82801DE.
Also I couldn't find dhclient.conf file in may sys. Is that mean dhclient in FC5 works with no this file?
Thanx for any ideas.
wneumann
2006-08-07, 06:10 AM CDT
var/log/messages will contain a log of dhclient's attempts to aquire a lease. This should be helpful.
fedora uses reasonable defaults if you don't have a dhclient.conf. Fedora does install a sample one. Do "locate dhclient.conf" and "man dhclient.conf" for more information.
Gescape
2006-08-07, 11:37 AM CDT
Thank you wneumann, but I am probably still "too small" to understand this yet:
Aug 7 18:10:54 localhost dhclient: Internet Systems Consortium DHCP Client V3.0.3-RedHat
Aug 7 18:10:54 localhost dhclient: Copyright 2004-2005 Internet Systems Consortium.
Aug 7 18:10:54 localhost dhclient: All rights reserved.
Aug 7 18:10:54 localhost dhclient: For info, please visit http://www.isc.org/products/DHCP
Aug 7 18:10:54 localhost dhclient:
Aug 7 18:10:54 localhost dhclient: Listening on LPF/eth0/00:xx:xx:xx:xx:xx
Aug 7 18:10:54 localhost dhclient: Sending on LPF/eth0/00:xx:xx:xx:xx:xx
Aug 7 18:10:54 localhost dhclient: Sending on Socket/fallback
Aug 7 18:10:54 localhost dhclient: DHCPRELEASE on eth0 to 84.xxx.xxx.5 port 67
Aug 7 18:10:54 localhost NET[2802]: /sbin/dhclient-script : updated /etc/resolv.conf
Aug 7 18:10:54 localhost avahi-daemon[2319]: Withdrawing address record for 84.xxx.xxx.124 on eth0.
Aug 7 18:10:54 localhost avahi-daemon[2319]: Leaving mDNS multicast group on interface eth0.IPv4 with address 84.xxx.xxx.124.
Aug 7 18:10:54 localhost avahi-daemon[2319]: iface.c: interface_mdns_mcast_join() called but no local address available.
Aug 7 18:10:54 localhost avahi-daemon[2319]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 7 18:10:54 localhost dhclient: receive_packet failed on eth0: Network is down
Aug 7 18:11:05 localhost dhclient: Internet Systems Consortium DHCP Client V3.0.3-RedHat
Aug 7 18:11:05 localhost dhclient: Copyright 2004-2005 Internet Systems Consortium.
Aug 7 18:11:05 localhost dhclient: All rights reserved.
Aug 7 18:11:05 localhost dhclient: For info, please visit http://www.isc.org/products/DHCP
Aug 7 18:11:05 localhost dhclient:
Aug 7 18:11:05 localhost kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
Aug 7 18:11:05 localhost kernel: e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
Aug 7 18:11:05 localhost kernel: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Aug 7 18:11:05 localhost dhclient: Listening on LPF/eth0/00:xx:xx:xx:xx:xx
Aug 7 18:11:05 localhost dhclient: Sending on LPF/eth0/00:xx:xx:xx:xx:xx
Aug 7 18:11:05 localhost dhclient: Sending on Socket/fallback
Aug 7 18:11:05 localhost dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
Aug 7 18:11:05 localhost dhclient: DHCPOFFER from 84.xxx.xxx.5
Aug 7 18:11:05 localhost dhclient: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Aug 7 18:11:05 localhost dhclient: DHCPACK from 84.xxx.xxx.5
Aug 7 18:11:05 localhost avahi-daemon[2319]: New relevant interface eth0.IPv4 for mDNS.
Aug 7 18:11:05 localhost avahi-daemon[2319]: Joining mDNS multicast group on interface eth0.IPv4 with address 84.xxx.xxx.204.
Aug 7 18:11:05 localhost avahi-daemon[2319]: Registering new address record for 84.xxx.xxx.204 on eth0.
Aug 7 18:11:05 localhost avahi-daemon[2319]: Withdrawing address record for 84.xxx.xxx.204 on eth0.
Aug 7 18:11:05 localhost avahi-daemon[2319]: Leaving mDNS multicast group on interface eth0.IPv4 with address 84.xxx.xxx.204.
Aug 7 18:11:05 localhost avahi-daemon[2319]: iface.c: interface_mdns_mcast_join() called but no local address available.
Aug 7 18:11:05 localhost avahi-daemon[2319]: Interface eth0.IPv4 no longer relevant for mDNS.
Aug 7 18:11:05 localhost avahi-daemon[2319]: New relevant interface eth0.IPv4 for mDNS.
Aug 7 18:11:05 localhost avahi-daemon[2319]: Joining mDNS multicast group on interface eth0.IPv4 with address 84.xxx.xxx.204.
Aug 7 18:11:05 localhost avahi-daemon[2319]: Registering new address record for 84.xxx.xxx.204 on eth0.
Aug 7 18:11:05 localhost NET[2877]: /sbin/dhclient-script : updated /etc/resolv.conf
Aug 7 18:11:05 localhost dhclient: bound to 84.xxx.xxx.204 -- renewal in 299911 seconds.
Anyway, when I booted to XP few min ago I had no connection as well. I did ipconfig /release and then /renew and I got connection. I rebooted to FC and I had no connection again, so I did dhclient -r and then dhclient eth0 and I got connection. It looks like those systems want keep leases for themselves. Am I right? How to resolve this problem?
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.