Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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...
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...
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
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.....
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.