LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 04-14-2012, 03:40 AM   #1
Da_Nuke
LQ Newbie
 
Registered: Aug 2011
Posts: 12

Rep: Reputation: Disabled
How do I set up a wi-fi bridge on Linux?


I have a netbook with Arch Linux and Windows XP Home Edition on dual boot, and a desktop computer with Arch as well and Windows 7.

Some time ago I used to connect to the internet on my desktop computer with a wi-fi PCI card, a Realtek RTL8185, associated to my 2Wire ADSL modem (the one issued to Telmex's Prodigy Infinitum subscribers). However, I later found out that this card doesn't works under Linux on my computer because the drivers make my system hang, so I removed it altogether and started using my laptop as a wireless-to-Ethernet bridge via Windows's own network bridging, so far with p. good results.

Now, because Windows XP is a pretty heavy OS compared to Arch Linux, I'd really like to do the same thing under Linux. Problem is, I found out that bridge-utils won't let me do that, all the guides I find are for creating an access point (which is literally the opposite of what I need; edit: to clarify my point, I need to bridge an existing SSID with an Ethernet port), and the only similar post I've seen in this forum is from 10 years ago. This leaves me with no clue as to what should I do.

Edit: NATing my desktop computer is the last choice because I once did this with Vyatta on VirtualBox and it worked fine for 10 minutes, then Telmex's god-awful internet gateway decided to stop routing towards my virtualized NAT, and I really don't want to tinker with my gateway's configuration because I live with my family and I know that doing so will uncork at least a week of "Da_Nuke, fix the internet!", "Da_Nuke, Facebook won't load!", "Da_Nuke, there's no internet!" and things of that nature.

Any ideas?

Last edited by Da_Nuke; 04-14-2012 at 08:07 PM.
 
Old 04-14-2012, 07:59 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,950

Rep: Reputation: Disabled
If you want Linux to act a bridge between the wireless and the wired LAN, isn't an access point exactly what you need?

Or are you planning to connect the Linux computer to the existing wireless network, and connect another computer to the ethernet port of the Linux PC?

Last edited by Ser Olmy; 04-14-2012 at 08:03 PM.
 
Old 04-14-2012, 08:05 PM   #3
Da_Nuke
LQ Newbie
 
Registered: Aug 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
If you want Linux to act a bridge between the wireless and the wired LAN, isn't an access point exactly what you need?

Or are you planning to connect the Linux computer to the existing wireless network, and connect another computer to the ethernet port of the Linux PC?
It's the latter. My intention is to connect the desktop computer to an existing SSID over an Ethernet port, not creating a new one. Hence why I need a bridge, not an access point.
 
Old 04-14-2012, 08:17 PM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,950

Rep: Reputation: Disabled
What exactly have you tried so far? Have you successfully authenticated against the wireless network? Are you getting an error message from brctl, and if so, what does it say?

According to the README file, wpa_supplicant needs a special parameter if it is to create a bridge interface. Could that be the issue?
 
Old 04-14-2012, 10:09 PM   #5
Da_Nuke
LQ Newbie
 
Registered: Aug 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
What exactly have you tried so far? Have you successfully authenticated against the wireless network? Are you getting an error message from brctl, and if so, what does it say?

According to the README file, wpa_supplicant needs a special parameter if it is to create a bridge interface. Could that be the issue?
Network authentication is just fine, but brctl refuses by design to bridge anything that's not an Ethernet interface.

I was told elsewhere to use hostapd though, I'll see what I can do with it.
 
Old 04-14-2012, 10:16 PM   #6
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654Reputation: 654
Do you want to use your Netbook to give the Desktop wifi access? If so, simply use the netbook as the desktop's default gateway and route the traffic to the internet through the netbook.
 
Old 04-14-2012, 11:52 PM   #7
Da_Nuke
LQ Newbie
 
Registered: Aug 2011
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jschiwal View Post
Do you want to use your Netbook to give the Desktop wifi access? If so, simply use the netbook as the desktop's default gateway and route the traffic to the internet through the netbook.
The problem with this is that this would require a route on the ADSL gateway to the network on the netbook's Ethernet interface, so that packets coming from the internet can reach the desktop computer. Telmex's 2Wire gateway is so ridiculously awful it won't even let me add a routing table entry. It can literally route only to its default gateway and its directly connected LAN segment.

Last edited by Da_Nuke; 04-14-2012 at 11:53 PM.
 
  


Reply

Tags
arch linux, bridge, wireless


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
How do I set up Knoppix as a wireless bridge? cgrande Linux - Networking 3 02-28-2010 11:16 PM
How to set an Internet bridge for windows clients using Linux mohtasham1983 Linux - Networking 3 06-19-2009 12:41 PM
How to set up a bridge? Royle Linux - Networking 10 10-30-2004 08:26 PM
how to set up bridge? munkeevegetable Linux - Networking 8 10-10-2004 09:59 AM
How to set up a bridge? tlawlessrr Linux - Networking 6 07-17-2004 10:39 AM


All times are GMT -5. The time now is 01:32 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration