LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   basic PPPOE & hub configuration (https://www.linuxquestions.org/questions/linux-networking-3/basic-pppoe-and-hub-configuration-478483/)

nirmaltom 08-29-2006 01:00 PM

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.

camorri 08-29-2006 01:26 PM

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.

Micro420 08-29-2006 09:57 PM

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.

nirmaltom 08-30-2006 03:42 AM

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.

camorri 08-30-2006 09:26 AM

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.

nirmaltom 08-30-2006 02:34 PM

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


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