dhclient not setting default gateway - no WAN route
I administer a 12-computer network, running Fedora Core 3 with
Code:
[root@uma ~]# uname -a I believe the problem is due to the script dhclient-script, and I have been unable to find a solution to this problem on the web. Please forgive me if this problem has already been resolved. I believe that dhclient-script is failing to set the default gateway, since on the affected machines we have Code:
[root@uma ~]# route Code:
[root@uma ~]# grep -v ^# /etc/sysconfig/network-scripts/ifcfg-eth0 Code:
[root@uma ~]# tail -n 15 /var/lib/dhcp/dhclient-eth0.leases Code:
[root@uma ~]# ls -l /sbin/dhclient* 24/2/2005 - postgresql-libs 27/2/2005 - at bind bind-libs bind-utils dhclient firefox gaim pvm tcsh vixie-cron 4/3/2005 - gamin gamin-devel 5/3/2005 - tzdata 6/3/2005 - firefox libtool libtool-libs 9/3/2005 - gaim Circumstantial evidence is building against dhclient, since we now know it had "opportunity" and "means". I then copied dhclient-script from a machine running Fedora Core 1 to uma, with timestamps from *before* 25/2/2005: Code:
[robert@kingsley: robert] ls -l /sbin/dhclient* I have cursorily glanced at what has changed in dhclient-script, but do not yet have a solution (what we might fancifully call the "motive", building on the Columbo metaphor from earlier). I suspect this behaviour may even be intentional, to comply with behaviour of other systems. But, it does not seem particularly helpful behaviour to me. And I believe other people have recently been having the same problem: thread 293615 thread 298569 thread 296513 thread 299378 Any thoughts? Is anyone having the same problem? It looks suspiciously like a bug to me. Thanks, Robert. |
Check out bugzilla #150198
If you'll pardon my critique, your sleuthing tactics are decent. But generally you could add: checking for errors in /var/log/messages, looking at the package changelog (rpm -q --changelog dhclient), and checking bugzilla for recent dhcp problems. Sometimes that gives good clues. In this case, the changelog mentions honoring GATEWAY settings (found in either /etc/sysconfig/network-scripts/ifcfg-eth0, which you looked at, or in /etc/sysconfig/network, which is mentioned in the bugzilla entry). Also, I cringe when someone replaces files which are part of an rpm-installed package without using rpm to do it. But that's me. ;) |
Thanks, jspaar, it's now all sorted. My /etc/sysconfig/network still had remnants of a very old configuration in it so I simply removed the GATEWAY variable from there.
And thank you also for the bug-hunting advice. I did indeed try /var/log/messages but found nothing useful there (just that dhclient was operational) but I was not aware of the --chagelog option in rpm, so I really appreciate the hint. And also the pointer to bugzilla: that will of course be my first port of call from now on! R. |
All times are GMT -5. The time now is 02:27 AM. |