LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-25-2008, 05:19 PM   #1
nnamdi
LQ Newbie
 
Registered: Aug 2008
Posts: 1

Rep: Reputation: 0
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
 
Old 11-25-2008, 05:42 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
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.

Last edited by lazlow; 11-25-2008 at 05:43 PM.
 
Old 11-25-2008, 08:20 PM   #3
salter
Member
 
Registered: Oct 2008
Posts: 100

Rep: Reputation: 15
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.

Last edited by Tinkster; 10-30-2010 at 05:11 PM.
 
Old 11-25-2008, 08:28 PM   #4
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,391

Rep: Reputation: 141Reputation: 141
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.
 
  


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
trying to share internet connection ubuntu and debian etch firedancer Linux - Networking 4 11-17-2007 09:01 AM
trying to share internet connection ubuntu and debian etch firedancer Linux - Networking 2 11-13-2007 06:56 AM
share internet connection linux-windows thyraios Linux - Networking 5 09-19-2006 07:15 PM
Using a Linux PC to Share an Internet Connection With Windows XP browdan Linux - Networking 2 12-12-2005 09:07 AM
Trying to set up Linux to share Internet Connection gideons Linux - Newbie 2 02-05-2002 10:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 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
Open Source Consulting | Domain Registration