LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   2 NICs w/RTL8139, no internet (https://www.linuxquestions.org/questions/linux-networking-3/2-nics-w-rtl8139-no-internet-120722/)

Peff 11-28-2003 09:36 AM

2 NICs w/RTL8139, no internet
 
Hi

I just smoothly installed Mandrake 9.2 on my Shuttle SS40G. I have 2 NICs, one on the Shuttle motherboard, and one in a PCI slot, both recognized and running. Both happen to have Realtek 8139s. One is used for DSL internet, one "extra" for flexlm license w/W2K (not connected or used in linux)

Problem: internet doesn't work (OK in Win2K though)

Mandrake installed my "extra" NIC as eth0, and the onboard NIC connected to DSL as eth1.

Plugging the DSL cable into the PCI (eth0) didn't work either and seemed to "hang" eth1 at boot.

eth2 also seems to be started at boot but never shows up in ifconfig.

Do I need to swap these so that my DSL connection is eth0? If so, how?

thanks

Peff

kilgoretrout 11-29-2003 12:47 PM

Two nics never seem to auto configure properly in linux for me. I usually wind up having to do it by hand. It's really not that hard. Post these files and I'll try and show you how to edit them:

/etc/modules.conf - loads the drivers for your ethernet interfaces

/etc/sysconfig/network-scripts/ifcfg-ethx - these are the network configuration scripts for your ethernet interfaces. You certainly have ones for eth0 and eth1 and may also have one for eth2 since you indicated some message to that effect.

I think the easiest strategy for you would be to comment out all the "alias ethx <driver name>" lines in modules.conf, delete or rename your ifcfg-ethx files. Shut down and remove your pci nic so you only have the one onboard nic. Reboot and configure your onboard nic for dsl. Once working, edit the ifcfg-eth0 file to not load on boot by changing the line which reads "ONBOOT=yes" to "no". Shut down and reinstall your pci nic and reboot. Then hand configure your pci nic. That's not hard. You just add a line in modules.conf: "alias eth1 <driver name>. then use your ifcfg-eth0 file as a template for creating your ifcfg-eth1 file. You'll just have to change two lines, "DEVICE=eth0" to "eth1" and "ONBOOT=no" to "yes".

The above assumes you want the pci nic to be your linux nic and the onboard one to be the unused one. The above will make a lot more sense once you look at the files.

gr8razorx 11-29-2003 12:56 PM

you say you are using mandrake 9.2 So i assume you have the X Enviroment and you are aware of the drake tools.. You need to double click welcome on the desktop and and click the bottom left option i belive it is something about the computer which brings you to a list of options.


Click on network and the set up the network. In here you must click configure and in there it will ask you what type of connection to set up click the adsl modem and follow instructions...


Please let me know if it works for you

kilgoretrout 11-29-2003 01:18 PM

The tool is mandrake control center(mcc)>network & internet>drakconnect and it doesn't work with two nics in my experience and doesn't remove the ifcfg-ethx config file when you delete an ethernet interface. That's why I gave the above advice. If you get it down to one nic, drakconnect usually works well so that's the key to solving the problem; clean up the mess created when drakconnect ran during the install and reconfigure with one nic, then add the second nic and hand configure. mcc is launched from the start menu>Configuration>Configure your computer entry in 9.2.


All times are GMT -5. The time now is 02:08 AM.