LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 02-04-2010, 08:41 AM   #1
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: Lubuntu, BetterLinux
Posts: 370

Rep: Reputation: 29
Internet sharing on linux


I have two linux laptops. Currently, I'm using both of them at work, side-by-side.
Now the problem is, I'm connected to a wireless router, but the wireless only works on one of the laptops. So I'm stuck with one laptop that has no access to the internet.
Both machines do, however, have working ethernet nic cards. So, I was wondering if I could use the laptop with the wireless connection to share the internet connection with my other linux machine and access the internet on both of them.
Or as an alternative, just use the internet on the machine without wireless and be able to switch back and forth, that would increase my productivity like 30 fold.
Thank you.
 
Old 02-04-2010, 04:08 PM   #3
Yakideo
Member
 
Registered: Jan 2010
Posts: 37

Rep: Reputation: 16
Depending on the setup you have it might be as easy as just bridging (using brctl) the wlan and lan interfaces on the laptop with the wifi connection.
 
Old 02-04-2010, 04:47 PM   #4
prushik
Member
 
Registered: Mar 2009
Location: Pennsylvania
Distribution: Lubuntu, BetterLinux
Posts: 370

Original Poster
Rep: Reputation: 29
I followed the instructions zordrak gave me. They worked on one machine, but not my laptop. I couldn't follow them exactly because of the difference of distribution, but I got the idea. So, I'm still looking for an answer.

I haven't tried setting up a bridge, could you maybe help me out with that?
 
Old 02-04-2010, 04:59 PM   #5
Yakideo
Member
 
Registered: Jan 2010
Posts: 37

Rep: Reputation: 16
Quote:
Originally Posted by prushik View Post
I haven't tried setting up a bridge, could you maybe help me out with that?
dunno if it will work, but try:

Code:
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 wlan0
this will create a bridge called br0 and add both eth0 and wlan0 to it. Remember to replace the names of the nic interfaces to match your setup.
 
Old 02-04-2010, 05:35 PM   #6
MrCode
Member
 
Registered: Aug 2009
Location: Oregon, USA
Distribution: Arch
Posts: 864
Blog Entries: 31

Rep: Reputation: 148Reputation: 148
Hi, all. I'm having a similar problem, only with two desktops.

I have a machine running Arch (used to be Puppy, but got tired of fighting with its Internet Connection Wizard) that I would like to get online so that I can start downloading packages (for X and whatnot), and I have it connected via a crossover cable to my Ubuntu machine.

I can start another thread on this issue if need be.
 
  


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
Linux, internet sharing? Mikesoft Linux - Networking 1 10-16-2006 04:21 PM
Internet Sharing using the Linux linux_sydney Linux - Networking 1 02-22-2006 09:59 AM
sharing internet with XP and Linux slapnutzz Linux - Networking 3 02-02-2004 09:19 PM
Linux Internet Sharing erycz Linux - Networking 4 10-31-2003 04:02 PM
internet sharing on linux from one ip zipzero Linux - Networking 4 12-11-2001 05:13 AM

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

All times are GMT -5. The time now is 12:29 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