LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   DHCP default route attached to loopback interface (https://www.linuxquestions.org/questions/linux-hardware-18/dhcp-default-route-attached-to-loopback-interface-230698/)

chiefdan 09-14-2004 08:47 PM

DHCP default route attached to loopback interface
 
I have been experiencing problems with both Redhat 9.0 and Fedora Core 2 users in that when they get their IP address via DHCP the default route is attached to the loopback interface "lo"

[root@localhost root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 169.254.60.2 0.0.0.0 UG 0 0 0 lo

I have tried editing modprobe.conf as root

"alias net-pf-10 off"

but this doesn't fix it after the reboot, it goed back to the default at lo

The following is the network interface:
eth0: Intel(R) PRO/1000 Network Connection


HELP

Dan

ilikejam 12-06-2005 04:00 PM

Hi.

The behaviour of RedHat's dhclient is correct - the default route shouldn't be set be the dhclient script. You'll have to run
Code:

route add default eth0
after dhclient is run.

Dave

michaelk 12-06-2005 05:08 PM

Is your network really configured for 169.254.xxx.xxx? Many clients automatically assign an IP address in this range when a DHCP server is not present.

Are you using a hardware router or a router configured PC?
What is the setup of your LAN?


All times are GMT -5. The time now is 08:24 AM.