LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-16-2004, 11:42 AM   #1
socratesabroad
LQ Newbie
 
Registered: May 2004
Distribution: turbolinux
Posts: 4

Rep: Reputation: 0
How do I set up a 2nd Ethernet card?


As you will surely notice, I am extremely new to linux.

I have a win2k PC and linux machine running together on a physical router connected to an ADSL (PPOE) line. I installed Turbolinux 10.0 DSKTP on a self-built PC - the first ethernet card (eth0: Intel Pro/1000 CT, on-board) was recognized and I'm on the net now. Now, I want to use a second card (eth1: I-O Data ETX-PCI aka Realtek 8139) to connect to my win2k machine or whatever else is on my home LAN.

The problem is that I don't know how to set the second card, so I can't get it to run. Assuming I use a host name (curtjpn in my case), do I need to assign a domain name even if I just want to run the linux PC in tandem with the win2k one? And what about the 'gateway device' and 'gateway address'? Do I need to create a new host in the 'host list'?

If these questions seem too basic, please feel free to point me in the direction of somewhere for novices like me.

I apologize for the long post but would appreciate any help I can get...
 
Old 05-16-2004, 05:56 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
man ifconfig

Basically you just have to ifconfig eth1 with it's IP address and netmask.
 
Old 05-16-2004, 07:03 PM   #3
socratesabroad
LQ Newbie
 
Registered: May 2004
Distribution: turbolinux
Posts: 4

Original Poster
Rep: Reputation: 0
Here's what I want to do:

Linux PC <--> WinPC
___|__________|___
router
___|___
ADSL modem
where <--> is the connection I want to make using eth1.

I know how (the way) to set eth1 (use turbonetcfg), but I don't know how - what - to set the card to. Do I need to enter a domain name if I'm not really in a domain? Does eth1 become my 'gateway device' and does it require a 'gateway address'? Do I need to create a new host in the 'host list'? Lots o' questions...
 
Old 05-16-2004, 07:33 PM   #4
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
No to everything. This is the problem with these stupid graphical configuration tools, they always have a bunch of useless fields that only confuse people when setting up more than one card.

What you're really asking isn't how to configure a second network card, but how to do Internet Connection Sharing (ICS) with a Linux box as the gateway. There are tons of other posts asking the exact same question on this very board and they always get answered. Search for other posts on "ICS" or "Connection sharing", etc. There are also tons of tutorials indexed by Google since this is one of the oldests uses of Linux boxes.
 
Old 05-16-2004, 07:40 PM   #5
socratesabroad
LQ Newbie
 
Registered: May 2004
Distribution: turbolinux
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the start...off to do my research
 
Old 05-16-2004, 08:01 PM   #6
socratesabroad
LQ Newbie
 
Registered: May 2004
Distribution: turbolinux
Posts: 4

Original Poster
Rep: Reputation: 0
OK, I looked around a bit and think I may not have been clear enough.

Here's what I want to do:

Linux PC <--> WinPC
___|__________|___
router
___|___
ADSL modem
where <--> is the connection I want to make using eth1.

The same chart can be reversed as:
WinPC <--> LinuxPC
___|__________|___
router
___|___
ADSL modem

I don't need to share the Internet connection (at least not that I know of, since that's what the router's for). I just want to be able to use the Linux machine to access the Net (using eth0) and share files with my WinPC (using eth1, which I'm trying to install).

That said, I do know now that I have to assign a host name to my Linux PC.
That still leaves the domain name, gateway address, gateway device, etc.....
 
Old 05-16-2004, 08:58 PM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 75
No, it's not any different than I explained. How many ethernet ports does the router have? I'm assuming just one, otherwise there would be no point to all this. Actually, let's start there.

Do both your computers plug into the router at once (i.e. it has a built-in switch with 2 or more internal ethernet ports), or can only one plug in at a time?

If the router only has one port, is one of the computers plugged directly into the router, or have you connected the router to a stand-alone switch or hub?

If you have a switch or hub in either the router, or stand-alone, then there's no need at all for the second NIC because both boxes can "see" each other on the switch.

You don't need a hostname for each NIC, you only need one hostname per machine. The machine can only see itself as one hostname at a time any way so it really doesn't help anything.
 
  


Reply


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
after 2nd ethernet card installation the 1st doesn't work kpachopoulos *BSD 1 03-06-2005 04:38 PM
2nd ethernet card driver install problem bya Linux - Networking 1 04-05-2004 12:52 PM
Need help -- always need to set up ethernet card after every boot MidnightWatcher Mandriva 2 03-25-2004 03:08 AM
how to set up SMC EZ Card 10/100 ethernet PCI network card mymojo Linux - Networking 2 12-16-2003 02:35 AM
problem installing 2nd ethernet card on nforce board mjrpes Linux - Hardware 3 11-09-2003 07:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:19 AM.

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