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

Re: eth0 problem



On Fri, May 23, 2003 at 06:58:10PM -0700, Piero Caracciolo wrote:
> I'm unsuccesfully striving to configure my network connection. Thanks to 
> this list's suggestions, I gathered the following pieces of information.
> 
> This is the output of "dmesg" concerning eth0:
> 
> 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.
> 
> And this is the output of "lspci | Ethernet"
> 
> 00:0d.0 Ethernet controller: VIA Technologies, Inc. Ethernet Controller 
> (rev 43)
> 
> The output of "ifconfig" doesn't show any sign of eth0 working:
> 
> 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:25 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:25 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 txqueuelen:0
>           RX bytes:1595 (1.5 KiB)  TX bytes:1595 (1.5 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)
> 
> Hence I tried " modprobe via-rhine", but I got:
> 
> /lib/modules/2.2.20-idepci/net/via-rhine.o: init_module: Device or 
> resource busy
> /lib/modules/2.2.20-idepci/net/via-rhine.o: insmod 
> /lib/modules/2.2.20-idepci/net/via-rhine.o failed
> /lib/modules/2.2.20-idepci/net/via-rhine.o: insmod via-rhine failed

Looks like the module is already loaded.  Does 'lsmod' list it?  If it
is, it's just a matter of configuring the interface and bringing it up.
In Debian, this is setup in /etc/network/interfaces.  Here's mine, I'm
sure you can figure out the bits you need to change.  Not that the
broadcast and netmask are optional.

auto eth0
iface eth0 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1


Just setup yours in that file, then run '/etc/init.d/networking restart'
or simply 'ifup eth0' to bring it up.  The 'auto' line means that it
will be brought up during boot, in future, so you won't need to do this
step again.  For more details, read the 'interfaces' man page (man 5
interfaces).

-- 
Rob Weir <rweir@ertius.org>  |   mlspam@ertius.org   |   http://www.ertius.org/
GPG keys: 1024D/1E73B7CD, 4096R/3ABDE5EC     |      Do I look like I want a CC?
Words of the day:   World Trade Center Adriatic AGT. AMME eternity server argus

Attachment: pgpfQj0IwJb2J.pgp
Description: PGP signature


Reply to: