LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how share internet connection on ubuntu or any linux distro (https://www.linuxquestions.org/questions/linux-newbie-8/how-share-internet-connection-on-ubuntu-or-any-linux-distro-686096/)

nnamdi 11-25-2008 05:19 PM

how share internet connection on ubuntu or any linux distro
 
hello friends please how i share my internet connection on linux with other user both with a switch and also peer-2-peer connection thanks

lazlow 11-25-2008 05:42 PM

You cannot do it with just a switch (the local IP address have to come from somewhere). You have to have a router of some sort(at least without going P2p). Now this can be a computer or a stand alone router. For 95% of the people out there the best solution is just to go spend the $15-150(depending on features) on a stand alone unit. For most uses, the stand alone units are (relatively) hassle free and easy to setup. Essentially you unplug the computer from the modem(or wherever you are getting internet from) and plug the router in between the two. Usually all you have to do after that is reboot everything(sometimes you have to assign address). Then just plug the extra machines into the router. In the event you want to use GigE for local transfers I would advise sticking with a regular ethernet (100) router and buying a GigE switch. Since virtually no ISP provides service greater than 100 and the cost of a regular router + a GigE switch is usually much less than a GigE router, it winds up being the most cost effective way out.

As for building a router from an older spare machine, yes it can be done. Yes is will allow you to control/customize your network. But for me it is just not worth the extra hassle.

Every P2P setup I have seen has been a cluster frack. It would be my dead last choice, including sneaker net.

salter 11-25-2008 08:20 PM

Getting some cheap Router is the easiest solution. Having an extra PC (or your own one) working as a router would usually require to have it running all the time. If wasting electricity and the money to pay for it is no problem, than you can just as well buy a Router device. It will also look much more professional on your desk.

Quakeboy02 11-25-2008 08:28 PM

It depends on your internet connection. If your connection device is a router that offers DHCP, then all you need is an ethernet hub. Check to see what your computer's IP is. If it begins with 192.168, then chances are all you need is a hub/switch.


All times are GMT -5. The time now is 07:18 AM.