Gentoo Archives: gentoo-user

From: Adam Carter <Adam.Carter@×××××××××.au>
To: gentoo-user@l.g.o
Subject: RE: [gentoo-user] Gentoo not starting with eth0, router not giving IP
Date: Thu, 25 Jan 2007 03:35:53
Message-Id: F59BD51F59033B4A88AE75CC7AB27DAF02D51094@shqw2ke001.optus.com.au
Recently after rebooting from Windows to Gentoo, I noticed I had
no internet access. 
	My router, which is set to give my mac address the same IP
(192.168.0.104), seems to 
	have decided NOT to do this anymore. Nothing has changed in my
settings on either my computer
	or the router. I get the same thing for every OS (Gentoo LiveCD,
Gentoo installed, SuSE installed)
	besides windows. I'm totally stumped. Sometimes eth0 gets
enabled at startup but gets no IP (SuSE), 
	other times (Gentoo & Gentoo LiveCD) it doesn't and I have to
run ifconfig eth0 up. 
	
	Running "route add eth0 192.168.0.1" returns "eth0: Host name
lookup failure"  

Does the system have link? Depending on the driver, you may have to use
"mii-daig eth0" or "ethtool eth0" to show that. If you dont have link
you either have a dead cable, dead port on the router or dead NIC.
 
The route is of no use until you can get your DHCP stuff sorted out.
BTW, the format of the command you've shown is incorrect;
 
I use "route add default gw <ip address of gateway>", but until you can
ping the gateway there's no point in adding the route.
 
HTH,
Adam