View previous topic :: View next topic |
Author |
Message |
nihilo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/128180955946f94da94deca.gif)
Joined: 05 Nov 2002 Posts: 168 Location: berkeley, ca, usa
|
Posted: Sat Jul 17, 2004 2:52 am Post subject: [SOLVED] help: eth0 stopped working |
|
|
I cannot get dhcpcd or static ip to work. I thought it might be related to windows not releasing its ip, so i bought a router, but it makes no difference.
I've tried setting the appropriate dhcpcd setting in /etc/conf.d/net, but it says there is no response from dhcp server, though it works fine in windows and on my linux laptop (with a much older setup and older kernel, different hardware).
Here is what dhcp should set:
IP: 192.168.2.2
GW: 192.168.2.1
Netmask: 255.255.255.0
Nameserver: 192.168.2.1
I've set these setting by hand, using ifconfig, route, and vi resolv.conf, but it still doesn't work.
Here's the state when I try to do it staticly, which should be the most reliable:
ifconfig:
Shows eth0 UP but not running, with correct MAC address, inet addr: 192.168.2.2, Bcast:192.168.2.255, Mask:255.255.255.0, and it shows RX bytes:0 (none received), TX bytes (346444), and interrupt 20.
route shows the following:
Destination Gateway Genmask ..... Iface
192.168.2.0 * 255.255.255.0 eth0
loopback 192.168.2.1 255.0.0.0 lo
default 192.168.2.1 0.0.0.0 eth0
Can any networking guru suggest what else I might try?
My NIC is eepro100, which used to work fine before upgrading to 2.6.7-r?. I've tried it both as a module, and compiled in. I've also tried older kernels which used to work, and they no longer work, and I've tried livecd, which doesn't work but used to.
I had installed cisco-vpn-client a few days before this broke a week ago, and also openvpn, but have since uninstalled these, but it makes no difference.
When I try to ping things on the internet, I just get "Destination Host Unreachable." I've already spent about 10 hours on this, and have search everywhere I could think of, but have made zero progress. Any help would be greatly appreciated.
Last edited by nihilo on Mon Jul 19, 2004 1:21 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Spear n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Mar 2004 Posts: 65
|
Posted: Sat Jul 17, 2004 4:06 am Post subject: |
|
|
One thing I found was that dhcp would simply refuse to work and give timed out errors when I compiled the kernel with /dev/pts support. A recompile with just /dev sorted that. Be warned though that in my case a static IP would still work fine. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hadfield Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 18 Mar 2003 Posts: 308 Location: Vancouver, BC, Canada
|
Posted: Sat Jul 17, 2004 7:20 am Post subject: |
|
|
Quote: | Shows eth0 UP but not running, |
What do you mean by this? If it show that eth0 is UP, what makes you think that it's not running? So, I assume that your module is loading properly since ifconfig finds eth0. Can you ping machines on your LAN, such as 192.168.2.1?
Can you ping ip addresses of hosts outside of your network? Such as 128.193.0.38 (i.e. forums.gentoo.org). If you can, then my guess is that there's a problem with your nameserver. Is your 192.168.2.1 host setup to act as a nameserver? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nihilo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/128180955946f94da94deca.gif)
Joined: 05 Nov 2002 Posts: 168 Location: berkeley, ca, usa
|
Posted: Sat Jul 17, 2004 7:50 pm Post subject: |
|
|
hadfield wrote: | Quote: | Shows eth0 UP but not running, |
What do you mean by this? If it show that eth0 is UP, what makes you think that it's not running? |
Thanks for your help. What I mean by this is the 'ifconfig eth0' output says UP but not RUNNING. On my working laptop, ifconfig eth0 shows:
Code: |
eth0 Link encap:Ethernet HWaddr 00:02:2D:38:BC:B6
inet addr:192.168.2.4 Bcast:192.168.2.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:150651 errors:0 dropped:0 overruns:0 frame:0
TX packets:90934 errors:25 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:205520268 (195.9 Mb) TX bytes:13648387 (13.0 Mb)
Interrupt:3 Base address:0x100
|
Notice that it says UP BROADCAST NOTRAILERS *RUNNING* .... The broken box has for that line only "UP BROADCAST MULTICAST" (MTU and Metric are the same". I don't know what the RUNNING means in this context, but it appears to be a good thing (TM).
hadfield wrote: | So, I assume that your module is loading properly since ifconfig finds eth0. Can you ping machines on your LAN, such as 192.168.2.1? |
I think it is loaded too, but I can't ping other machines. When I try to ping 192.168.2.1, I get "Destination Host Unreachable". This IP address [that of the router] responds fine from my working machine on the same network (192.168.2.4).
hadfield wrote: | Can you ping ip addresses of hosts outside of your network? Such as 128.193.0.38 (i.e. forums.gentoo.org). If you can, then my guess is that there's a problem with your nameserver. Is your 192.168.2.1 host setup to act as a nameserver? |
No, I get the same "Destination Host Unreachable" message. I will try recompiling without dev/pts enabled next, as another poster suggested. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
hadfield Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/gallery/Zelda/Zelda_-_Link.jpg)
Joined: 18 Mar 2003 Posts: 308 Location: Vancouver, BC, Canada
|
Posted: Sat Jul 17, 2004 8:03 pm Post subject: |
|
|
nihilo wrote: | Notice that it says UP BROADCAST NOTRAILERS *RUNNING* .... The broken box has for that line only "UP BROADCAST MULTICAST" (MTU and Metric are the same". I don't know what the RUNNING means in this context, but it appears to be a good thing (TM). |
ahh, I never noticed that before. Ok, can you post your /etc/conf.d/net. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
megalomani Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 08 Jun 2004 Posts: 77
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nihilo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/128180955946f94da94deca.gif)
Joined: 05 Nov 2002 Posts: 168 Location: berkeley, ca, usa
|
Posted: Sat Jul 17, 2004 8:20 pm Post subject: |
|
|
hadfield wrote: | ahh, I never noticed that before. Ok, can you post your /etc/conf.d/net. |
Here are the uncommented lines of things I've tried:
DHCP attempt:
iface_eth0="dhcp"
Static attempt:
iface_eth0="192.168.2.2 broadcast 192.168.2.255 netmask 255.255.255.0"
gateway="eth0/192.168.2.1" # I've also tried without this line |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nihilo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/128180955946f94da94deca.gif)
Joined: 05 Nov 2002 Posts: 168 Location: berkeley, ca, usa
|
Posted: Sat Jul 17, 2004 8:34 pm Post subject: |
|
|
I'm not sure that this is my issue exactly, as it has worked fine for years and works fine in Windows, so i think the card is okay, but I'm recompiling the kernel with eerpo100 as a module to try it out. Thanks for the suggestion. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nihilo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/128180955946f94da94deca.gif)
Joined: 05 Nov 2002 Posts: 168 Location: berkeley, ca, usa
|
Posted: Sun Jul 18, 2004 8:30 am Post subject: |
|
|
Tried recompiling as module, and insmoding with various options settings, but it makes no difference. Still broken. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
megalomani Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 08 Jun 2004 Posts: 77
|
Posted: Sun Jul 18, 2004 9:06 am Post subject: |
|
|
It's seems that the devoplement of the driver forked a couple of years ago.
e100 is another driver for your network card (called Intel(R) PRO/100+ support in make config) Look at your cards ID to see if it's supported
http://www.intel.com/support/network/adapter/1000/linux/e100.htm |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nihilo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/128180955946f94da94deca.gif)
Joined: 05 Nov 2002 Posts: 168 Location: berkeley, ca, usa
|
Posted: Sun Jul 18, 2004 8:19 pm Post subject: |
|
|
Thanks for the info. It looks like my card isn't supported by that driver (82801BD), and I'm stuck with eepro100.
Man, this is so frustrating. My main machine has had no network connection for more than a week now, and I've run out of things to try. It seems that the driver is loading correctly now, but the router doesn't seem to respond to my dhcp requests, though it works just fine for windows on that desktop machine, windows on a laptop, and gentoo on a different laptop. The really annoying thing is that networking has worked fine on that box for years. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
megalomani Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 08 Jun 2004 Posts: 77
|
Posted: Sun Jul 18, 2004 8:28 pm Post subject: |
|
|
Probably a typo, but your route info is wrong
loopback 192.168.2.1 255.0.0.0 lo
should be
loopback 192.168.2.2 255.0.0.0 lo |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
nihilo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/128180955946f94da94deca.gif)
Joined: 05 Nov 2002 Posts: 168 Location: berkeley, ca, usa
|
Posted: Mon Jul 19, 2004 1:18 am Post subject: |
|
|
You were right, megalomani!! Thanks so much. The reason that it didn't work after I insmoded using the options you suggested is that I had cleared my MAC address from the routers 'allowed address' list shortly before and got sidetracked with something else and then forgot to add it back again. I was trying everything, so was deleting and inputting all info again. I should have realized that it did something, because that was the first time the light on the router for that connection came on, but then I couldn't get an IP address because I hadn't reregistered the nic's address.
Anyway, to anybody else reading this, I don't know what the cause of the original problem was, because it had worked correctly for years with no configuration changes other than a kernel upgrade (2.6.5->2.6.7), but the fix was compile eepro100 as a module and modprobe it with options=0x10 (which means half-duplex 10mb/s mode). The interesting thing is that after I'd done this once, I no longer need to use the options argument, which implies that the nic card has some state associated with it across shutdowns, but I have no idea about that.
Thanks so much everybody who had suggestions!! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|