🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.linux
Article #154

Re: eth0 is missing from some ThizLinux files. Cannot detect LAN card 8139

#154
From: Kevin Easton
Date: Wed, 18 Dec 2002 23:44
42 lines
2942 bytes
In alt.linux Ingo Pakleppa <ingo-immigration@kkeane.com> wrote:
> You might want to try opening your file /etc/modules.conf, and adding the
> following line:
> 
> alias eth0 rtl8139
> 
> Then reboot.
> 
> I can't promise that this will do the trick to get eth0 working. This line
> will install the driver for the rtl8139 card (it appears that is the one
> you have) and tell it to use eth0.

Nope, it tells the modprobe utility that "if someone asks to load a
module called 'eth0', load 'rtl8139' instead".  It just so happens that
if you try to configure an interface that doesn't exist, the kernel
module autoloader will try to load a module of that name, and try again.

You (or a script you run like if-up) type "ifconfig eth0 <ip>" to bring
up eth0.

ifconfig calls into the kernel to configure the eth0 interface.

The eth0 interface doesn't exist yet, so the kernel executes modprobe
and tells it to load the 'eth0' module.

modprobe knows that 'eth0' really means 'rtl8139', so it tries to load
that module.

The rtl8139 module loads successfully and registers eth* devices for all
the 8139 NICs it can find, including eth0.

Modprobe finishes, and the kernel tries again to configure eth0 - this
time, it works.

ifconfig finishes.

A similar story applies when you try to open a /dev/ device node when no
driver has registered the corresponding major/minor numbers, which is
how your soundcard module auto-loads when a program first tries to use
it.

	- Kevin.
Technical Details
Message-ID: <atr18v$t6g$2@tomato.pcug.org.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!news1.optus.net.au!optus!tomato.tip.net.au!not-for-mail
References: <xwXL9.5532$KW2.365292@twister.austin.rr.com> <FI1M9.1234$6k.64256@news1.west.cox.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1101c9,deb99132a154a38
X-Google-Attributes: gid1101c9,public
X-Google-Thread: 1154bf,deb99132a154a38
X-Google-Attributes: gid1154bf,public
X-Google-Thread: 107b38,deb99132a154a38
X-Google-Attributes: gid107b38,public
X-Google-Thread: 100c5f,deb99132a154a38
X-Google-Attributes: gid100c5f,public
X-Google-ArrivalTime: 2002-12-18 15:46:12 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!news1.optus.net.au!optus!tomato.tip.net.au!not-for-mail
From: Kevin Easton <kevin@-nospam-pcug.org.au>
Newsgroups: alt.linux,alt.os.linux.redhat,at.linux,comp.os.linux.redhat
Subject: Re: eth0 is missing from some ThizLinux files.  Cannot detect LAN card 8139
Date: Wed, 18 Dec 2002 23:44:31 +0000 (UTC)
Organization: The Internet Project, PC Users Group (ACT) Inc.
Lines: 43
Sender: Kevin Easton <kevin@tomato.pcug.org.au>
Message-ID: <atr18v$t6g$2@tomato.pcug.org.au>
References: <xwXL9.5532$KW2.365292@twister.austin.rr.com> <FI1M9.1234$6k.64256@news1.west.cox.net>
NNTP-Posting-Host: tomato.pcug.org.au
X-Trace: tomato.pcug.org.au 1040255071 29904 203.10.76.37 (18 Dec 2002 23:44:31 GMT)
X-Complaints-To: usenet@tomato.pcug.org.au
NNTP-Posting-Date: Wed, 18 Dec 2002 23:44:31 +0000 (UTC)
User-Agent: tin/1.5.12-20020311 ("Toxicity") (UNIX) (Linux/2.4.18 (i686))