You are not logged in.

#1 2007-04-12 21:43:51

anadyr
Member
Registered: 2005-02-10
Posts: 225

eth0 + DHCP issues

Hi,

I have a strange issue. I bought an ethernet card but it doesn't work. I uses the 8139too module, which is loaded. eth0 exists (ifconfig -a lists it), and I can do ifconfig eth0 up, without any errors...

The modem uses DHCP (my second computer, the one I type on right now, also uses dhcp on an arch system). This is my rc.conf:

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(lo eth0)
ROUTES=(!gateway)

Nevertheless "/etc/rc.d/network restart" fails all the time. Why I dont know.
The system is a completely "clean" install of Arch 0.7.2; only the "base" packages are installed and nothing else.

Any ideas?

Offline

#2 2007-04-13 01:45:18

junglepeanut
Member
From: California
Registered: 2007-01-24
Posts: 145
Website

Re: eth0 + DHCP issues

What error do you get running dhcpcd?

Offline

#3 2007-04-13 08:47:57

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: eth0 + DHCP issues

dhcpcd eth0 gives no error at all... it just takes 1 minute. afterwards dmesg says:
eth0: link up, 10Mbps, half-duplex. lpa 0x0000
everything.log says:
myhost eth0: link up, 10Mbps, half-duplex. lpa 0x0000
myhost dhcpcd[3393]: timed out waiting for a valid DHCP server response.

It seems there's a timeout...
edit 1 And its not the cable either. I just checked that (surfing on this cable now...)
edit 2 I read in dmesg "PCI: If a device doesn't work, try "pci=routeirq". If it helps, post a report.
edit 3 nothing works...
I'll try that now

Last edited by anadyr (2007-04-13 09:39:08)

Offline

#4 2007-04-13 10:40:36

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: eth0 + DHCP issues

/etc/rc.d/network is set to timeout by default by 10 seconds, you can edit this in /etc/conf.d/dhcpcd

looks like there's *something* wrong at a physical level, because your card is running half duplex, 10mb/s..... sure the card is ok? the rest of the network?

Offline

#5 2007-04-13 10:48:28

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: eth0 + DHCP issues

the network is OK. there are two Arch systems attached to a router, there is no difference which connector (on the router) I use, and the cable is OK as well. Maybe the card is not working, but I cannot check that because I do not have a second OS on this computer... Anyways it is a brand new card, so it should work

Is it possible that there are IRQ problems?

Offline

#6 2007-04-13 13:30:35

billy
Member
From: Slovenia
Registered: 2006-09-13
Posts: 164

Re: eth0 + DHCP issues

anadyr wrote:

Maybe the card is not working, but I cannot check that because I do not have a second OS on this computer...

You can always try with some live-cd of another distribution.

Offline

#7 2007-04-13 13:49:38

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eth0 + DHCP issues

check that the option of 'mac filtering' on the router is turning off

Offline

#8 2007-04-14 18:37:42

anadyr
Member
Registered: 2005-02-10
Posts: 225

Re: eth0 + DHCP issues

I put in a second ethernet card, and for some reason it has the exact same behavior... it seems impossible that both card are not working. Could someone explain this? And the second question is: how do I know what is the IP of the router? and of the modem (I have here both)? So how can I login to the router?

Offline

#9 2007-04-15 00:52:23

dids22
Member
Registered: 2007-01-02
Posts: 251

Re: eth0 + DHCP issues

^^
give me please your router model

Offline

#10 2007-04-15 02:34:49

byte
Member
From: Düsseldorf (DE)
Registered: 2006-05-01
Posts: 2,046

Re: eth0 + DHCP issues

Did you blacklist the 8139cp module? If not, do so.


1000

Offline

#11 2007-04-15 03:25:28

paul_au
Member
Registered: 2006-04-13
Posts: 38

Re: eth0 + DHCP issues

If you are using a router, shouldn't you enable your gateway? You have it disabled in your rc.conf.

Offline

#12 2007-04-15 09:25:56

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: eth0 + DHCP issues

paul_au wrote:

If you are using a router, shouldn't you enable your gateway? You have it disabled in your rc.conf.

dhcp pulls a gateway

--- but that isnt the problem, gateway isnt needed until after connected.

myhost eth0: link up, 10Mbps, half-duplex. lpa 0x0000
myhost dhcpcd[3393]: timed out waiting for a valid DHCP server response.

It's up, but it's only running at 10Mbps, not 100/1000, and it's running in half duplex, not full duplex. There is a connection issue, either in the card or cable. He's said the cable is fine, so presumably, there's a problem with the card.

As said above, try a liveCD but you'll probably get the same problem

James

Offline

#13 2007-04-15 10:04:00

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,489

Re: eth0 + DHCP issues

I run the same module, but also run dbus and dhcdbd as daemons. My rc.conf reads

...
MODULES=(8139too mii ipw2200)
...
DAEMONS=(syslog-ng acpid dbus hal portmap fam dhcdbd networkmanager netfs ntpd ...

Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#14 2007-04-15 10:31:59

RabidWolf
Member
From: WI,USA
Registered: 2007-01-20
Posts: 31
Website

Re: eth0 + DHCP issues

I could have swore I had the same issue till I configed my network stuff properly like paul_au mentioned, taking out the "!" in front of gateway and I had to correct the gateway address from like 192.168.0.1 to 192.168.1.1 to match my routers addy, but this was on initial install of arch 8 alpha not 7.2 or w/e, maybe try that and could possibly reboot the router(but you probably did that already), mine is getting old and needs a reboot every so often(cable modem does too)  wink

Offline

Board footer

Powered by FluxBB