LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   eth0 Operation Failed (https://www.linuxquestions.org/questions/linux-networking-3/eth0-operation-failed-6428/)

cvlinux 09-10-2001 08:52 PM

eth0 Operation Failed
 
Hi I am trying to post this again.
I am a newbie in Linux Networking/Installation.
I have a HP Pavillion that used to run on Win ME till yesterday. I installed RH6.1 GNome Workstation and the OS got loaded fine.
When I try to connect to my other machines in my home network or to internet it is not working fine. When the linux gets booted I get the error eth0 Operation Failed.
I have a DSL modem setup which connects to my Netgear RT314 DSL Router and my other three pcs works just fine in sharing the DSL connection. Since my router assigns IP for the machines, in linuxconf I made the basic settings IP as empty, Netmask is empty, device is eth0 and kernal module is tulip.
I even downloaded a tulip.c from Netgear website for FA310Tx card and installed in the net directory.
I would like to get my pc on the network. I also have other general questions like if IP is assigned dynamically by my router like 192.168.0.* how should my /etc/hosts look like if my linux box is called, say mars. what is my nameserver in this case? Such things.....
Please do reply to this and any help would be greatly appreciated.

Thanks a Bunch

DMR 09-11-2001 05:00 AM

1. At the command line, type "lsmod" (no quotes) to list the loaded modules. If the tulip driver is loading (which it probably isn't) you should see it in the list.

2.Turn off Plug-N-Play support in your BIOS, it can interfere with the initialization of some cards in Linux.

3. Type "cat /proc/pci" and see if your NIC has an
entry there. If so, note the IRQ and I/O address.

4. Type "cat /proc/interrupts" to see if your card's IRQ is conflicting with other cards. If so, try rearranging the order of the cards in your PCI slots.


5. You said you installed tulip.c into the net directory. Tulip.c is the source code, which must be compiled to create the driver/module tulip.o. Did you compile tulip.c, or just place it in the directory? Your distro should already support the tulip module (most do), so installing a new module probably isn't necessary anyway.

It might also be as simple as your card not getting an IP from the RT-314. I would suggest that for a small network like yours you set static IPs for each machine, as opposed to using DHCP. DHCP just adds another (unnecessary, in your case) layer of complexity and possible problems.

As far as your hosts file and DNS entries go:

a basic /etc/hosts would look something like:
Code:

127.0.0.1        localhost.localdomain        localhost
192.168.0.3        mars.your_domain        mars

The DNS entries (in /etc/resolv.conf) would be those provided by your ISP, and your gateway address would be that of the RT-314.

jharris 09-11-2001 07:25 AM

Quote:

Originally posted by DMR
3. Type "cat /proc/pci" and see if your NIC has an
entry there. If so, note the IRQ and I/O address.

4. Type "cat /proc/interrupts" to see if your card's IRQ is conflicting with other cards. If so, try rearranging the order of the cards in your PCI slots.

Its worth noting that things don't always appear in /proc until the kernel has detected them properly, hence your card may not be listed here until you install it, in which case you don't need to know the details... catch-22

Something that DMR didn't mention is that if the tulip module isn't in the list when you use lsmod then you might want to just try loading it using
Code:

modprobe tulip
and see what happens. If you don't get and error message then you know you don't have any hardware conflicts and that the module is loading OK, once this happens it should not be listed by and lsmod. You'll just need to find which script is used to load your modules at boot time (look somewhere like /etc/rc??/init.d/ - dunno where it would be in Redhat as I'm a Slackware man myself).

cheers

Jamie...

cheers

Jamie...


All times are GMT -5. The time now is 08:16 PM.