LinuxQuestions.org
Help answer threads with 0 replies.
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 08-29-2006, 01:00 PM   #1
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Rep: Reputation: 30
basic PPPOE & hub configuration


hi,
I want to setup a home network for the purpose of internet connection and file sharing for totally three systems(2 desktops and a laptop).The internet connection is PPPOE
My friend said me that if use switch or hub the connection must be as
2 systems ---> switch or hub ---> 3rd system(gateway) ---> ethernet modem
I think in this case i need two ethernet cards at the 3rd system.How to setup IP address for the 2 ethernet cards, same or different.Plz also say me about the gateways.If i have to use squid then how i must make it to get the request for data in one NIC card and transfer it to another so that it reaches the ethernet modem.

Is it possible to make a connection like this?
3 systems --->switch or hub ---> ethernet modem

I think this one possible when using a router instead of switch or hub,but it may be too costly isn't' it?

regards,
Tom.

Last edited by nirmaltom; 08-29-2006 at 01:05 PM.
 
Old 08-29-2006, 01:26 PM   #2
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,298

Rep: Reputation: 572Reputation: 572Reputation: 572Reputation: 572Reputation: 572Reputation: 572
It can be done either way. By far the easiest way is buy a router. Too expensive? This is a relative question, wireless routers are less than $100. here. I've had one for four years when they cost a lot more.

You can find help tutorials on this board if you decide to add a second ethernet card to one station, and share the connection. This is cheaper, more difficult to set up.

My router has one ethernet port to connect to the modem, four wired ports for wired ethernet connections and a wireless connection. There are lots of combinations to choose from, none are very expensive.
 
Old 08-29-2006, 09:57 PM   #3
Micro420
Senior Member
 
Registered: Aug 2003
Location: Berkeley, CA
Distribution: Mac OS X Leopard 10.6.2, Windows 2003 Server/Vista/7/XP/2000/NT/98, Ubuntux64, CentOS4.8/5.4
Posts: 2,986

Rep: Reputation: 45
Simple routers are about $20-$30 with rebates/instant savings here in America. They have them all the time at Best Buy and Circuit City.
 
Old 08-30-2006, 03:42 AM   #4
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Original Poster
Rep: Reputation: 30
i didn't find tutorial

[QUOTE=camorri]
You can find help tutorials on this board if you decide to add a second ethernet card to one station, and share the connection. This is cheaper, more difficult to set up.

hi,
Thanks for the response .I didn't find any relevant tutorial.Plz help me to get with 2 NIC cards.
regards,
Tom.
 
Old 08-30-2006, 09:26 AM   #5
camorri
LQ Veteran
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,298

Rep: Reputation: 572Reputation: 572Reputation: 572Reputation: 572Reputation: 572Reputation: 572
O.K. the best I'm going to be able to help you with is the big picture. The details you are going to have to research and work through yourself, or find help with specific questions. I took the easy way, and bought a router. Still my recomendation.

On the gateway machine, you need two ethernet cards. One is connected to your DSL or Cable modem. From what youhave said, you have that and have it working.

Next install a second nic, if not already done on the gateway. The two nic's need to be on separate sub-nets. This is done with a choice of IP addresses. The sub-net connecting to the hub is best to set up as configured IP addresses, don't try to use DHCP here. You could, but it makes it even more complicated.

So, if the nic connecting to the modem is sub-net 192.168.0.xxx, then make the hub nic 192.168.1.xxx using a mask of 255.255.255.0 on both sub nets.

That is the easy part. Now for the hard part. You have to set up the gateway as a router. This is done, as far as I know with iptables.

You didn't say what distro the gateway is. If it is rpm based, use whatever package management tool you have to install iptables.

Next you will need to do some googleing. Google for iptables how-to. There are many links to look at. They will show you how to configure the gateway as a router, even a firewall if you hav't got one running. This is the tough part. No simple answers, unless you buy a router.

Best of luck.
 
Old 08-30-2006, 02:34 PM   #6
nirmaltom
Member
 
Registered: Jun 2005
Location: India
Distribution: Redhat,Fedora,DSL,Ubuntu
Posts: 238

Original Poster
Rep: Reputation: 30
thanks

hi,
thanks a lot.Actually buying a router is not a problem but i am eager to improve my knowledge on both networking and linux.I felt that it will be a shame for me to fail in configuring 2 NICs, being an RHCE.It's the common setup followed here in many colleges in india.I will try everything including making gateways as a router.Thanks again.
regards,
Nirmal Tom.V
 
  


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
PPPoE Configuration sachanandani Linux - Newbie 2 11-19-2007 09:33 AM
pppoe & pppoe-server warning (solved) ggalvan Slackware 0 02-04-2006 05:58 AM
AOL UK && BT Voyager 100 && Slackware 10.2 && RP-PPPoE pitt0071 Linux - Networking 3 01-17-2006 06:10 AM
Static IP configuration for DSL(pppoe) Nic Slackware 1 03-06-2003 03:50 PM
PPPoe Configuration Tool navel_lint Linux - Software 1 01-24-2003 02:06 PM

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

All times are GMT -5. The time now is 08:07 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration