[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trouble with eth0



Gee Law wrote:
whoops...should've gone to list...

On Thu, May 15, 2003 at 03:35:45PM -0700, Piero Caracciolo wrote:

I have two ethernet cards, a D-Link DFE-530TX and a Broadcom 440x (integrated in my Asus motherboard). Debian 3.0 semms to detect at least one of them (I think the D-Link). Here are a few lines from dmesg:


pcnet32.c: PCI bios is present, checking for devices...
via-rhine.c:v1.08b-LK1.0.1 12/14/2000  Written by Donald Becker
http://www.scyld.com/network/via-rhine.html
eth0: VIA VT6102 Rhine-II at 0xb800, 00:05:5d:aa:3b:e0, IRQ 0.
eth0: MII PHY found at address 8, status 0x782d advertising 05e1 Link 45e1.
Partition check:

Nevertheless this is the output of ifconfig:


lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0
        UP LOOPBACK RUNNING  MTU:3924  Metric:1
        RX packets:107 errors:0 dropped:0 overruns:0 frame:0
        TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0 RX bytes:8604 (8.4 KiB) TX bytes:8604 (8.4 KiB)

sl0 Link encap:Serial Line IP inet addr:192.168.0.1 P-t-P:192.168.0.2 Mask:255.255.255.255
        UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  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:10 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)


And this is the output of netstat -i:


Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg lo 3924 0 107 0 0 0 107 0 0 0 LRU sl0 1492 0 0 0 0 0 0 0 0 0 MOPRU


This shows that interface eth0 is not really detected.
Has anyboy got an idea?

Should eth0 be in /dev ?


You need to edit /etc/network/interfaces. Here's mine:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation# (network, broadcast and gateway are optional)
auto eth0 eth1
iface eth0 inet static
        address 129.31.25.22
        netmask 255.255.255.0
        broadcast 129.31.25.255
        gateway 129.31.25.1
iface eth1 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        broadcast 192.168.0.255


Check out man interfaces for more info.


Thanks, it sounds reassuring. I cannot give static address, though, since they schould be obatained dynamically through DHCP: my computer is connected to a Router-Switch that contains an embedded DHCP server. The thing is that, in order to install a dhcp client, I need to have a working eth interface (I believe).
If you can tell me something more, it will be welcomed.

Piero.



Reply to: