You are not logged in.

#1 2010-03-07 17:58:52

frankifol
Member
Registered: 2007-11-12
Posts: 46

Eth0 not working

I have a problem with ethernet. I tried to perform a netinstall but it doesn't start the network so I installed arch with the core version.
Now during boot I can read :

dhcpcd: eth0: interface not found or invalid

This is my rc.conf:

eth0="dhcp"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)

Daemons=(syslog-ng network netfs crond)

I installed the system with the network cable plugged

output fo ifconfig -a

lo    link encap:Local Loopback
      inet addr:127.0.0.1 Mask:255.0.0.0
      UP LOOPBACK RUNNING MTU:16436 Metric:1
      RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      TX packets:0 errors:0 dropped:0 overruns:0 frame:0
      collisons:0 txqueuelen:0
      RX bytes (0.0 b) TX bytes:0 (0.0 b)

output ls /sys/class/net:

lo



my pc is a dell xps800
network: broadcom netlink gigabit ethernet

Last edited by frankifol (2010-03-07 18:09:37)

Offline

#2 2010-03-07 22:50:48

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Eth0 not working

dmesg | grep eth

to see if the driver for the ethernet connection is loaded. Google will tell you what the drivers *should* be, check that it is the right one.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#3 2010-03-07 23:13:33

antonikus
Member
Registered: 2009-11-22
Posts: 42

Re: Eth0 not working

Post the output of lspci command here.

However you may try to load the driver manually with
modprobe tn2 bnx2 or whatever it is your drive is called, but you can only know exactly what driver you need by lookint at the exact output of lspci from there you will find the name of your network card.


Linux user since redhat 6.1. former gentooer, former slacker. Now arher.

Offline

#4 2010-03-08 08:53:34

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

lspci


Ethernet controller: Broadcom Corporation NetLink CM57780 Gigabit Ethernet PCIe (rev 01)
        Subsystem: Dell Device 02ec
        Flags: fast devsel, IRQ 16
        Memory at fbff0000 (64-bit, non-prefetchable) [size=64K]
        Capabilities: [48] Power Management version 3
        Capabilities: [60] Vendor Specific Information <?>
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [cc] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [13c] Virtual Channel <?>
        Capabilities: [160] Device Serial Number a4-ba-db-ff-fe-02-0e-b4
        Capabilities: [16c] Power Budgeting <?>
        Kernel Modules: tg3




The relevant section of dmesg | grep tg3 is as follows:

tg3.c:v3.98 (February 25, 2009)
tg3 0000:02:00.0: PCI INT -> GSI 16 (level, low) -> IRQ 16
tg3 0000:02:00.0: setting latency timer to 64
tg3 0000:02:00.0: PME# disabled
tg3 mdio bus: probed
tg3: Problem fetching invariants of chip, aborting.
tg3 0000:02:00.0: PCI INT A disabled

lsmod | grep tg3 returns:

tg3          125684  0
libphy        24368  1  tg3

Offline

#5 2010-03-08 09:14:09

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Eth0 not working

modprobe tg3
ifconfig eth0 up
ifconfig

Does it show the device then?

Last edited by demian (2010-03-08 09:15:29)


no place like /home
github

Offline

#6 2010-03-08 09:22:07

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Eth0 not working

tg3: Problem fetching invariants of chip, aborting.

I doubt you'll make much progress until that is fixed. You could try a liveCD of a different distro, one with a different kernel from the arch core CD. If that works, it is probably a bug in the kernel module.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#7 2010-03-08 10:15:41

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

In the same pc I have used without any network problem mint, suse and sabayon. If it's a problem of kernel module, what to do? Waiting for a kernel update?

ps: I will try the commands suggested bydemian. Now I have not my pc. I tried them without results, but I don't remember the output

Offline

#8 2010-03-08 10:20:11

Lothium
Member
Registered: 2009-10-10
Posts: 192

Re: Eth0 not working

Same problem here since a few days. I get some updates and the next day I start my pc and the ethernet interface doesn't connect with the network. So I have to go into console and type dhcpcd eth0 (sometimes I have to type eth1, very strange). Don't know why this happens.

Offline

#9 2010-03-08 10:43:03

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

Lothium wrote:

Same problem here since a few days. I get some updates and the next day I start my pc and the ethernet interface doesn't connect with the network. So I have to go into console and type dhcpcd eth0 (sometimes I have to type eth1, very strange). Don't know why this happens.

And does it work?

Offline

#10 2010-03-08 10:55:26

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Eth0 not working

Lothium wrote:

Same problem here since a few days. I get some updates and the next day I start my pc and the ethernet interface doesn't connect with the network. So I have to go into console and type dhcpcd eth0 (sometimes I have to type eth1, very strange). Don't know why this happens.

I doubt that you are having the same problem. Do you also see the error message in dmesg? I *bet* ifconfig -a will list either eth0 or eth1 for you, while it doesn't for the OP.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#11 2010-03-08 11:04:59

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Eth0 not working

@frankifol: I you have an error message, it's always worth a try to google it. For example this thread looks useful:
https://bugzilla.redhat.com/show_bug.cgi?id=525966


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#12 2010-03-08 13:48:20

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

I'll try a couple of solutions suggested. Thanks!

Offline

#13 2010-03-08 14:00:07

Lothium
Member
Registered: 2009-10-10
Posts: 192

Re: Eth0 not working

@grey When I enter dmesg | grep eth in console, I get this:

eth1: Broadcom 44xx/47xx 10/100BaseT Ethernet 00:00:f0:7d:a8:01
b44: eth1: Link is up at 100 Mbps, half duplex.
b44: eth1: Flow control is off for TX and off for RX.

And yes, when I type dhcpcd eth0 or eth1, than I get an ip-adress, but its really annoying...

Offline

#14 2010-03-08 14:28:13

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Eth0 not working

Lothium wrote:

... but its really annoying...

No doubt. In order to get help I suggest you start a thread describing your problem ("network card randomly changes name from eth0 to eth1" or something like that), rather than interrupting a conversation about a different problem.

Last edited by grey (2010-03-08 14:29:08)


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#15 2010-03-08 15:38:58

Lothium
Member
Registered: 2009-10-10
Posts: 192

Re: Eth0 not working

Don't want to interrupt this thread. I just thought, that both problems have the same origin. Ok, now I'm out!

Best regards!

Offline

#16 2010-03-08 18:23:11

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

the solution in post 26 in discussion posted here https://bugzilla.redhat.com/show_bug.cgi?id=525966   didn't help me:(

Offline

#17 2010-03-08 19:13:56

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Eth0 not working

comment #26 looks too Fedora specific, but I'm not sure. I would try the suggestion a bit further up: unload tg3, load broadcom, then re-load tg3. I.e.

modprobe -r tg3
modprobe broadcom
modprobe tg3

Check dmesg while you are doing that, and afterwards try ifconfig -a.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#18 2010-03-08 20:32:28

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

after modprobing -r tg3      ifconfig -a    gives me on lo like interface

after modprobe tg3   I have also eth0.

modprobing broadcom is of any use.

lspci -v gives me tg3 as kernel driver in use and kernel modules

Following the wiki of network I'm now able to ping www.google.com

What happened?

Offline

#19 2010-03-08 20:55:29

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

I discovered that to start eth0 i must launch dhcpcd. A way to obtain all of this automatically at boot?

Offline

#20 2010-03-08 22:53:11

grey
Member
From: Europe
Registered: 2007-08-23
Posts: 679

Re: Eth0 not working

frankifol wrote:

What happened?

The way I understood is that you need to load the broadcom module before tg3. Doing that will somehow mask the bug that is inside the tg3 driver.
I'm not sure how you could do this automatically at boot. I'd try to load the broadcom module early via rc.conf.


Good ideas do not need lots of lies told about them in order to gain public acceptance.

Offline

#21 2010-03-09 07:58:51

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

and about dhcpcd? What's it? After some new attempts I can say that i must give that command before unload and reload tg3. Where should I put in rc.conf dhcpcd?

And broadcome? I think in modules....

Offline

#22 2010-03-16 19:19:12

frankifol
Member
Registered: 2007-11-12
Posts: 46

Re: Eth0 not working

with the updated kernel, ifconfig eth0 up is not necessary. Without modifying rc.conf (add broadcom in modules and tg3 in mod_blacklist) I should only modprobe -r tg3, modprobe tg3 and dhcpcd. In this way, the system is up automatically on eth0.

Offline

Board footer

Powered by FluxBB