Download your favorite Linux distribution at LQ ISO.
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-04-2005, 09:50 AM   #1
LQ Newbie
Registered: Feb 2005
Posts: 15

Rep: Reputation: 0
Two ethernet cards

I have two (diffrent kind) of ethernet cards in my ubuntu box. The other one is connected to my adsl box and the other one is connected to my good comp with a crossover cable. I did dmesg | grep eth and I got this:

What does that mean and what do I have to do to get the other card to fetch the IP from a dhcp server (the adsl) and the other one to have a static ip??
Old 06-05-2005, 07:38 AM   #2
LQ Guru
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,167

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
If I understand you, it sounds like you have a ADSL modem
my adsl box
Is that correct?

You have two computers, one with two ethernet cards, where 1 is connected to the ADSL modem, the second ethernet card connects to
to my good comp with a crossover cable.
If I understand your configuration, the connection between the comp with two ethernet cards and your "good comp" needs to be a separate sub-net. This can be any private class A class B or class C private sub-net. For class C 192.168.x.x will do. If I were you, define teh IP addresses for the two interfaces on teh direct cable. Onnce done, try pinging. That will work if they are in the same sub-net. Next you have to get the private sub-net to talk to the outside world. You need a routing function.

I have never done this kind of setup, but lots of others have. I think you need to setup iptables. Have a look around the board, and in the tutorials.

The easiest way is to buy a router and plug all your boxes into it; but that costs a few bucks... I have seen four port routers for as little as $49.00. Have a look around.


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
using 2 ethernet cards one Tx and one Rx kayser Linux - Networking 11 05-03-2004 02:03 PM
2 ethernet cards.. Nyybai Slackware 8 04-12-2004 11:49 AM
2 Ethernet Cards matt80 Linux - Networking 14 12-01-2003 03:19 PM
Old ethernet cards rsbecker007 Linux - Networking 1 07-31-2002 10:21 PM
Ethernet Cards and Sound Cards SchizoIV Linux - Newbie 2 07-05-2002 09:10 PM > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:11 PM.

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