LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-20-2007, 11:48 AM   #1
ret602
LQ Newbie
 
Registered: Jul 2006
Distribution: FC10
Posts: 5

Rep: Reputation: 0
Default gateway not being set when using DHCP


I'm running Fedora Core 5 for over a year and I just starting having network problems where my computer receives a good IP address for my network, but then the default gateway does not get set.

Route provides the following information.

Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.14.21.0      *               255.255.255.0   U     0      0        0 eth0
169.254.0.0     *               255.255.0.0     U     0      0        0 eth0
I can add the gateway manually, but if I reboot my computer or take the interface down and bring it back up I then have to add the gateway again. I did a packet capture while my computer was getting a DHCP address and the DHCP ACK packet from my DHCP server contains Option 3 setting the router to the correct address.

I'm not quite sure how to fix this issue--any help would be appreciated.

Thanks
 
Old 09-20-2007, 12:17 PM   #2
ret602
LQ Newbie
 
Registered: Jul 2006
Distribution: FC10
Posts: 5

Original Poster
Rep: Reputation: 0
Update

I was able to get the default gateway to start working again by editing:

/etc/sysconfig/network-scripts/ifcfg-eth0

I deleted everything below ONBOOT=yes

Code:
DEVICE=eth0
BOOTPROTO=dhcp
HWADDR=00:11:43:3B:BD:C1
ONBOOT=yes
TYPE=Ethernet
NETMASK=255.255.255.0
IPADDR=10.3.10.251
USERCTL=no
IPV6INIT=no
PEERDNS=yes
GATEWAY=10.3.10.1
The only problem I have now is that, my routing table still contains the stupid windoze private IP address route--I not sure how to get rid of this.

Code:
route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.14.21.0      0.0.0.0         255.255.255.0   U     0      0        0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth0
0.0.0.0         10.14.21.1      0.0.0.0         UG    0      0        0 eth0

Thanks
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set default gateway Harlin Linux - Networking 2 02-28-2006 03:17 AM
dhcp does not set gateway pantoniades Linux - Networking 4 02-14-2006 05:26 AM
How can I tell what my default gateway is currently set as? abefroman Linux - Networking 6 09-10-2005 12:15 PM
default gateway not auto-negotiated with dhcp Aaron S Linux - Networking 5 03-30-2005 03:40 PM
default gateway is not loaded from dhcp on boot sleepylight Linux - Networking 3 04-21-2004 10:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration