Click to See Complete Forum and Search --> : no autodetect for network adapter


gcy80
05-30-2002, 01:44 AM
I have a problem, my linux is not able to detect my network adapter.
I have to key in : insmod 8139too
command to install the module and activate it.
How come?
And I can't even log in to network neighbourhood. There's no network neighbourhood icon in the network browser.

x
05-30-2002, 03:30 AM
To have your NIC installed at boot it should be enough with adding 'alias eth0 8139too' in your /etc/modules.conf (possibly /etc/conf.modules).
Or try the command #modprobe rtl8139
You could also put the "insmod..." line in eg /etc/rc.d/rc.local

I don't really know about the Network neighbourhood icon, but as you're mixing Linux & Windows I guess it is a Samba issue.
It could also be that since your NIC isn't up and running you don't have a network and therefore don't get this icon?
Have your NIC autoinstalled first of all, maybe that will solve the problem.
But I'm just guessing now.

gcy80
05-30-2002, 01:44 PM
thanx for the advice....i will try it.
But the prob is linux is not able to automatically detect the network adapter..thus..can't install the network adapter.

DMR
05-30-2002, 08:35 PM
How to get a NIC up and running gets covered here at least a few times a week, so the LNO Forum Search (http://www.linuxnewbie.org/cgi-bin/ubbcgi/ultimatebb.cgi?ubb=search) should be useful (although sloooow). Use a combination of terms such as network, ifconfig, bios, modprobe, and lspci.

In general though, it goes something like this:

-Make sure the card is physically installed correctly.

-Turn off Plug-N-Play support in your BIOS if you haven't already.

-Run lspci and verify that the card/chipset is correctly identified in the Ethernet Controller info.

-cat /proc/ioports should show the card and/or module assigned to a non-conflicting address range.

-cat /proc/interrupts should show eth0 assigned to a non-conflicting IRQ.

-If any of the above fail, try putting the NIC in a different PCI slot.

-lsmod shows that the correct module is loaded. If not, do modprobe modulename. To load the module at boot, put the following line in /etc/modules.conf:
alias eth0 modulename

- ifconfig should show inforamtin for lo (loopback device) and eth0 (your NIC).

-Assuming static IP addressing,
/etc/sysconfig/network should contain the following:
: NETWORKING=yes
FORWARD_IPV4="no"
HOSTNAME="YourHostName"
DOMAINNAME="YourDomainName"
GATEWAY="IP_of_Gateway_Device"
GATEWAYDEV="eth0"

and /etc/sysconfig/network-scripts/ifcfg-eth0 should contain at least:DEVICE="eth0"
BOOTPROTO="none"
IPADDR="192.168.1.1"
NETMASK="255.255.255.0"
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
ONBOOT="yes"

Obviously, replace any of the above IP information with yours.

[ 30 May 2002: Message edited by: DMR ]