Click to See Complete Forum and Search --> : Setup Network device eth0 no such device!
remisac
03-02-2000, 01:36 PM
Hello,
Newbie here from the dark OS...Have installed SUSE linux 6.3 sucessfully :-) Want to use machine as server eventually but for now I would be happy just to get on my LAN. Each time I boot I eventually get:Setup Network device eth0 ... No such device
WTF? I have a D-Link 220 ISA 10mbs card and in YAST(setup) have configured it as eth0, NE 2000ISA compatible, io=300...What am I doing wrong? If I go to SUSE's support site here is what I find: Setup Network device eth0 ... No such device
Symptom:
While trying to setup your network (e.g. while booting) you get error messages as:
Setup Network device eth0
SIOCIFADDR: No such device
SIOCIFBRDADDR: No such device
SIOCIFMASK: No such device
Cause:
The networking module has not been loaded automatically. Possibly it has not been needed for the installation.
Solution:
If the kerneld should load the driver (the module) for your networking device it expects the settings to be in /etc/conf.modules (or /etc/modules.conf) For a NE2000 compatible card this might look like this (instead of ne there might be a off):
alias eth0 ne
# falls weitere Angaben benoetigt werden, bitte
# das folgende Kommentarzeichen entfernen
# options ne io=0x300 irq=5
Here is the alias for an 3c905 adapter:
alias eth0 3c59x
If the device needs special options make sure the corresponding options line is uncommented. (remove the "#" and add the appropriate values).
If this still fails to load you should integrate the driver into the kernel. If you use LILO for booting an append line in /etc/lilo.conf might be necessary:
append="ether=5,0x300,eth0"
This enforces the kernel to use the interrupt 5 and the address 0x300. Of course you will have to adapt these values to your needs! After having changed /etc/lilo.conf you need to invoke /sbin/lilo!
I get those exact error messages but Shouldn't my setup take care of loading the module? The last part of the info from SUSE says that I might have to append into /etc/lilo.conf On a terminal window can I just type that in? Help, I am suffering from a lack of knowledge! (Please remeber that I am a newbie).
Stormwalker
03-02-2000, 01:58 PM
Ok, one thing you might want to check is to look at the /etc/conf.modules file and see if it includes the line "alias eth0 ne". You're using an ne2000 compatible card, so it should be there.
If it's not, you need to add it (using pico or emacs or vi or whatever text editor is convenient for you).
When it talks about the append line in lilo.conf it is talking about using a text editor to add that line at a certain point (I don't remember exactly where it should go) in the lilo.conf file.
Hope this helps.
------------------
"Power is nothing without control."
remisac
03-02-2000, 02:14 PM
Okay Stormwalker...How does one go about looking at /etc/conf.modules file ?
Then you mention something about: If it's not, you need to add it (using pico or emacs or vi or whatever text editor is convenient for you).
Okay, um, well...I have never done(or concieved) of such an idea. Can't I just go to a terminal seesion and do this?
Sorry to ask such primitive type questions but I am in the dark on this one. Your help is greatly appreciated.
I am interested... same nic -- can't get it to work with RedHat 6.1. I seem to have gotten it configured, but it isn't working... Pinging the card won't work.
hmmm.... http://www.linuxnewbie.org/ubb/frown.gif
About to try a different nic for lack of better solution
Kira
Llhorian
03-02-2000, 03:10 PM
Hmm, I had the exact same problem with Suse 6.3, and due to some other difficulties I had to bring it back to the store and got Mandrake 7 instead. Works like a charm now http://www.linuxnewbie.org/ubb/smile.gif
------------------
"Give a man a fire and he's warm for a day, set fire TO him and he's warm for the rest of his life." - T. Pratchett
remisac
03-02-2000, 04:15 PM
Here is what I found on this very same site...http://www.linuxnewbie.org/nhf/intel/network/nicinstall.html
NIC Installation:
* you are using Red Hat Linux 6.0 or equivilant
* your Realtek nick is like mine and uses the rtl8139 driver.
*Remember you can use any driver with this NHF, we are using the realtek driver as an example.
Steps:
-AS ROOT: Install module with
insmod rtl8139
-List the modules that are installed with lsmod
if you didn't get any errors during the module install and it was listed, then the module should work.
-in a Xterminal: run
netcfg
You will need to edit the names and interfaces tabs. You will be editing the eth0 information. Use the settings that you received from your ISP the same ones that you use in NT.
* If your NT connection "obtains IP information automatically", then you will want to use DHCP for your "interface configuration protocol"
* Click "save"
* Click "activate interface" in the interfaces tab. while you have eth0 highlighted.
* Test the interface. Open up an xterm, and ping something that you know. (be sure to ping both by IP and by hostname)
--------------------------------------------------------------------------------
[root@box /root]# ping www.linuxnewbie.org (http://www.linuxnewbie.org)
PING linuxnewbie.org (199.78.176.193): 56 data bytes
64 bytes from 199.78.176.193: icmp_seq=0 ttl=240 time=147.0 ms
64 bytes from 199.78.176.193: icmp_seq=1 ttl=240 time=56.3 ms
[root@box /root]# ping 199.78.176.193
PING 199.78.176.193 (199.78.176.193): 56 data bytes
64 bytes from 199.78.176.193: icmp_seq=0 ttl=240 time=64.6 ms
64 bytes from 199.78.176.193: icmp_seq=1 ttl=240 time=60.7 ms
--------------------------------------------------------------------------------
If you get responses from both IP and hostname, than you are all set up.
If you get network is unreachable, you might need to add a default route. (See adding route below.)
if you get a response from the IP but not from the hostname, then you need to check your DNS settings inthe names[b] tab in netcfg.
* Last thing that you should have to do, is tell your machine which module to use when it tries to start eth0. You will do that by adding the folowing line to your [b]/etc/conf.modules file.
alias eth0 rtl8139
Adding routes
- If your machine doesn't know wich interface to get to the network from, you will get a "Network is unreachable" error. The following command will tell your machine to send all internet bound packets out through your eth0 interface.
route add default eth0
----------------------
That should do it.
Again, This was found on another page on this site. I'm going to try this later tonight when I get home. Thought that it might help someone else out there.
remisac http://www.linuxnewbie.org/ubb/smile.gif
sinner
03-02-2000, 04:37 PM
To view the /etc/conf.modules file:
1. cd to the /etc directory
2. less conf.modules. This will allow you to view the file. If you want to edit the file, you will need to use an editor such as vi or pico.
Stormwalker
03-03-2000, 03:09 PM
Ok... process to check on your /etc/conf.modules file is as follows:
Open a terminal session.
type "cd /etc"
type "more conf.modules" This will display the contents of your "conf.modules" file.
If there is a line in there that says "alias eth0 ne" then that part of your configuration is ok.
If that line is NOT there, then you will have to add the line. If you are not already root, the process is: (this is assuming pico as your text editor. If you do not have pico, you will have to use some other program to do this)
Type "su"
Enter your root password at the prompt
type "pico conf.modules"
This will open pico. Enter the line "alias eth0 ne" into the file at this point.
Ctrl-O to save
Enter to verify the filename
Ctrl-X to exit
Type "more conf.modules" to verify that the line is now in this file.
Type "exit" to return to your normal user account.
That part of your configuration is then done.
------------------
"Power is nothing without control."
remisac
03-03-2000, 06:04 PM
Stormwalker,
Thanks! Someone eelse told me to CD to etc and it was like they were talking greek or some other foreign language.
By the way, I finally did get the module into my machine. I am running SUSE6.3 and using YAST1. I went through YAST and...well...I selected something like configure Kernel/add modules or something like that...Anyhow, the module tries to default to address io=0x300- it wouldn't install.... I shut down machine-rebooted to Win98/control panel and found address of NIC. rebooted to Linux, YAST, Kernel/Modules and selected Ne200 and changed address to io=0x240(as in Win98) and it finally worked!!! (Now all I have to do is network w/my other machines-eventually I want the Linux box to be the proxy). It will be a late night tonight if setting up a proxy goes as easily as installing the NIC!!!?
Stormwalker
03-06-2000, 12:46 PM
Glad to be of assistance.
------------------
"Power is nothing without control."
wurmy
12-04-2000, 06:05 PM
if in windows the io says 02a0-02bf...would you put 2a0 as the io?
wurmy
justlinux.com
Copyright 2007 Jupitermedia Corporation All Rights Reserved.