Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 06-29-2004, 09:50 AM   #1
LQ Newbie
Registered: Jun 2004
Posts: 2

Rep: Reputation: 0
NICs and Internet - Need Help

Hi all, this is my first post here, although i've looked all over the foruns for my problem's solution.

I think my problem is caused by my complete noobness. So i do need begginer-like help.

I installed Linux and configured all that i could by my self, but i can't get to make the internet working.

My 2 nics are correctly recognised in the control panel like app that Mandrake 9.2 has, but i really can't configure the internet connection. I think that i overloked that part on the end of the distro install, but i'm not sure.
I have a 3COM 3C940 (onboard) as eth1 and a realtek chiped Genius as eth0 (PCI).

I do have drivers for both of them, but i don't think that's the problem because they are recognised in the Drak(...).

Thanks for your time.
Joćo Figueira
Old 06-29-2004, 10:27 AM   #2
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50

Firstly I am wondering why you would want two NIC's unless you are using the computer as a router or something. What are you doing with it? Personally I would remove one of them before you even start trying to configure things. You could just disable to on-board one....

It sounds like you haven't got DHCP configured, but i think we need more info here. How is the PC conected to the internet (or network). Through a router, a cable modem etc? Presuming you have and normal adsl/cable modem (hopefully with a firewall), I think you need to run the network configuration thingie network + internet configuration (i think) in the mandrax configuration centre. Though you have probably done this.

If that doesn't work. please post the output of the command ifconfig and the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 and

But like I say I don't think you need two cards.

take a look at this thread:

good luck
Old 06-29-2004, 04:25 PM   #3
LQ Newbie
Registered: Jun 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Maybe i don't have the onboard card installed as i thought i did. I say this because it doesn't appear on the ifconfig, and there isn't a eth1 file for it.

I do need the two nics, i use them (at least on XP) to share my connection with a second PC. The onboard 3Com is connected to a cable modem and the PCI realtek connects with the other PC trough a crossover cable.

Here's the output of the ifconfig:
eth0 Link encap:Ethernet HWaddr 00:40:F4:64:61B
inet addr: Bcast: Mask:
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:978 (978.0 b) TX bytes:240 (240.0 b)
Interrupt:11 Base address:0x2c00

lo Link encap:Local Loopback
inet addr: Mask:
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:50 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3296 (3.2 Kb) TX bytes:3296 (3.2 Kb)

And here's the eth0 file:

There was not another eth1 file as i mentioned before.
Meanwhile i tried installing the card, but was unsuccefull, because (even if the rest of the instructions are very clear) i need to :

1) Make sure that the kernel source is installed in /usr/src/linux
or /usr/src/linux-2.4.

I can't find that, or anything that resembles that. I don't know how to install it or even where to get it.

Again, thank you in advance for your time.
Old 06-30-2004, 04:53 AM   #4
Senior Member
Registered: Feb 2004
Location: England
Distribution: Slackware 14.2
Posts: 1,491

Rep: Reputation: 50

Well firstly I note that the eth0 file shows that this NIC is set to a static IP on From your set up it sounds like you are NOT using a router (otherwise you wouldnt need two NICs). I would change where it says static to dhcp. And remove the IP address field.

However I am a slackware user and have not experienced this problem myself and slack is a bit different anyway. Anyone feel free to correct me.

I would suggest something like this:


As i say i might be wrong. This might not work depending on how you connect. ADSL modem?? I'm not sure about your other NIC. Try typing dmesg | grep -i 3com at a root command prompt. This should search your start up messages for info about how you kernel is feeling about this NIC. Then we can go from there........

I have never done this but i think you need to configure iptables to share an internet connection (i.e use this box as a router). There should be plenty of posts on this erstwhile forum regarding that. Finally backup any files before you make any major alteration. You know it makes sense!!

I would really recommend getting a modem/firewall/switch all in one as it will offer more protection and perform better anyway.

Last edited by satinet; 06-30-2004 at 04:55 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Share Internet w/ 2 NICs Optimistic Linux - Networking 16 11-26-2005 10:20 AM
2 nics, no internet after new kernel compile drinker300 Linux - Networking 6 11-01-2005 01:24 AM
Two nics, no internet Cheza Linux - Wireless Networking 1 05-06-2004 12:01 PM
routing two NICs to internet pero Linux - Networking 4 01-09-2004 04:36 PM
2 NICs w/RTL8139, no internet Peff Linux - Networking 3 11-29-2003 01:18 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration