2001-02-14 11:00:46

by Jonathan Brugge

[permalink] [raw]
Subject: Problem: NIC doesn't work anymore, SIOCIFADDR-errors

I've got a problem with my network. I can't get the card running, though it
worked perfectly before. Below what happens and the errors I get:
-----------------------------------
odysseus:/# ifconfig

// No active devices found.

odysseus:/# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:20:18:80:B0:95
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:9 Base address:0xde00
lo Link encap:Local Loopback
LOOPBACK MTU:16192 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

// It finds eth0 and the loopback, they aren't active.

odysseus:/# ifdown eth0
ifdown: interface eth0 not configured

// Just what should happen...

odysseus:/# ifup eth0
SIOCSIFADDR: Bad file descriptor
eth0: unknown interface: Bad file descriptor
SIOCSIFNETMASK: Bad file descriptor
eth0: unknown interface: Bad file descriptor
odysseus:/# ifup lo
SIOCSIFADDR: Bad file descriptor
lo: unknown interface: Bad file descriptor
lo: unknown interface: Bad file descriptor
odysseus:/#

// This is where I loose the track. These seem to be kernel-messages, but I
can't find them in the kernel-source (looked in the kernel-subdirectory and
the net-subdirectory).
There are some other SIOC*-texts, but no SIOCSIFADDR or SIOCIFNETMASK in
those dirs.
The problem appeared after booting, everything worked perfect before.
Nothing has changed that could affect network or ethernet-card, afaik.
It's not hardware-related: the card still works in Win98SE and after placing
another card (same type), the problem still persists.
I did a kernel-recompile, but that hasn't solved it. Still the same error.
I'm running 2.4.0-prerelease.
The card is a PCI-card. It has a Winbond W89C940F-chip on it and the kernel
uses NE2k-drivers, I think.
I did a fsck on my HD, which didn't solve it either.
The light on the card blinks all the time, like there's something wrong. I
haven't looked whether it does so in Windows too.
Ifup / Ifdown version: 0.6.4-3
No messages in /var/log[syslog|messages|kern.log|ksymoops/*] about this.

Anyone who can tell me what's going on here?

Jonathan Brugge
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


2001-02-14 14:17:36

by Jonathan Brugge

[permalink] [raw]
Subject: Re: Problem: NIC doesn't work anymore, SIOCIFADDR-errors

Here's the output from dmesg, after deleting some unimportant stuff like
sound and graphics-init. I don't see any errors that have something to do
with my NIC, the detected type (Winbond 89C940) is the right one.

Linux version 2.4.0-prerelease (root@odysseus) (gcc version 2.95.3 20010125
(prerelease)) #2 Tue Feb 13 20:27:53 CET 2001
[...]
PCI: PCI BIOS revision 2.10 entry at 0xfdb71, last bus=1
PCI: Using configuration type 1
PCI: Probing PCI hardware
PCI: Using IRQ router default [1022/740b] at 00:07.3
isapnp: Scanning for Pnp cards...
isapnp: Card 'ESS ES1868 Plug and Play AudioDrive'
isapnp: 1 Plug & Play card detected total
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
DMI 2.3 present.
29 structures occupying 974 bytes.
DMI table at 0x000F04F0.
[...]
pty: 256 Unix98 ptys configured
Uniform Multi-Platform E-IDE driver Revision: 6.31
ide: Assuming 66MHz system bus speed for PIO modes
AMD7409: IDE controller on PCI bus 00 dev 39
AMD7409: chipset revision 3
AMD7409: not 100% native mode: will probe irqs later
AMD7409: disabling single-word DMA support (revision < C4)
ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:pio
ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:pio, hdd:DMA
[...]
Serial driver version 5.02 (2000-08-09) with MANY_PORTS SHARE_IRQ SERIAL_PCI
ISAPNP enabled
ttyS00 at 0x03f8 (irq = 4) is a 16550A
ttyS01 at 0x02f8 (irq = 3) is a 16550A
ne2k-pci.c:v1.02 10/19/2000 D. Becker/P. Gortmaker
http://www.scyld.com/network/ne2k-pci.html
eth0: Winbond 89C940 found at 0xde00, IRQ 9, 00:20:18:80:B0:95.
[...]
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP, IGMP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
devfs: v0.102 (20000622) Richard Gooch ([email protected])
devfs: boot_options: 0x2
VFS: Mounted root (ext2 filesystem) readonly.
Freeing unused kernel memory: 212k freed
Adding Swap: 208836k swap-space (priority -1)



>From: Jeff Garzik <[email protected]>
>To: Jonathan Brugge <[email protected]>
>Subject: Re: Problem: NIC doesn't work anymore, SIOCIFADDR-errors
>Date: Wed, 14 Feb 2001 05:15:26 -0600 (CST)
>
>Check out REPORTING-BUGS in the kernel source code... In particular
>getting 'dmesg' output would be most helpful.
>
> Jeff
>

Jonathan Brugge

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

2001-02-14 14:36:08

by David Raufeisen

[permalink] [raw]
Subject: Re: Problem: NIC doesn't work anymore, SIOCIFADDR-errors

Are you using the net-tools from debian? There was a broken one causing these
errors the last few days, is fixed now.

On Wednesday, 14 February 2001, at 15:17:09 (+0100),
Jonathan Brugge wrote:

> Here's the output from dmesg, after deleting some unimportant stuff like
> sound and graphics-init. I don't see any errors that have something to do
> with my NIC, the detected type (Winbond 89C940) is the right one.
>
> Linux version 2.4.0-prerelease (root@odysseus) (gcc version 2.95.3 20010125
> (prerelease)) #2 Tue Feb 13 20:27:53 CET 2001

--
David Raufeisen <[email protected]>
Cell: (604) 818-3596

2001-02-15 14:50:51

by Jonathan Brugge

[permalink] [raw]
Subject: Re: Problem: NIC doesn't work anymore, SIOCIFADDR-errors


Yes, I do...
Thanks for the hints, I've installed the older version, then upgraded to the
fixed version. Everything works now as before.

Jonathan Brugge


>From: David Raufeisen <[email protected]>
>Reply-To: David Raufeisen <[email protected]>
>To: Jonathan Brugge <[email protected]>
>CC: [email protected]
>Subject: Re: Problem: NIC doesn't work anymore, SIOCIFADDR-errors
>Date: Wed, 14 Feb 2001 06:36:20 -0800
>
>Are you using the net-tools from debian? There was a broken one causing
>these
>errors the last few days, is fixed now.
>
>On Wednesday, 14 February 2001, at 15:17:09 (+0100),
>Jonathan Brugge wrote:
>
> > Here's the output from dmesg, after deleting some unimportant stuff like
> > sound and graphics-init. I don't see any errors that have something to
>do
> > with my NIC, the detected type (Winbond 89C940) is the right one.
> >
> > Linux version 2.4.0-prerelease (root@odysseus) (gcc version 2.95.3
>20010125
> > (prerelease)) #2 Tue Feb 13 20:27:53 CET 2001
>
>--
>David Raufeisen <[email protected]>
>Cell: (604) 818-3596
>-
>To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
>the body of a message to [email protected]
>More majordomo info at http://vger.kernel.org/majordomo-info.html
>Please read the FAQ at http://www.tux.org/lkml/
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.