PDA

View Full Version : Default route is broken via DHCP after yum update


callct
2006-05-11, 02:41 PM CDT
When obtaining an IP address via DHCP the default route is not working for me. I am connected directly to a DSL modem, no route in between. I could receive an IP address just fine but it was not picking up the DNS server(s) nor the default route. Here is the fix that I did that worked for me

route add 192.168.0.1 eth0
route add default gw 192.168.0.1 eth0

Once I added those two configs in now my DNS is working and I can browse the web. I did not have a problem with this until I ran yum update yesterday. After I rebooted it was broken. Anyone else having similar issues?

joao rebelo
2006-05-11, 03:00 PM CDT
try to reintall the dhclient-3.0.2-12

icydog
2006-05-11, 06:33 PM CDT
In system-config-network, did you ever set a static IP/subnet mask/default gateway? If you did, and then later changed the radio button to automatic (DHCP), the static stuff is still stored somewhere and messes with you. I had this a while ago and took an hour to figure out such a stupid problem. The fix, if you're experiencing this too, is just to clear out those three boxes under static configuration, save, and restart interface.

callct
2006-05-12, 08:09 AM CDT
I actually have the 3.0.3 client. Are you saying I should back it out to the older client?

callct
2006-05-12, 08:26 AM CDT
icydog,

Yep, it was in /etc/sysconfig/network-scripts/ifcfg-eth0

Even though static was no longer selected and the routes were not showing up in the system-config-network gui, there were still in the ifcfg-eth0 file. Anyone have an idea why this is not working properly? Is there a fix for it yet besides manual intervention?

Thanks!