LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-01-2005, 05:05 PM   #1
iNET_boss
LQ Newbie
 
Registered: Jun 2005
Posts: 17

Rep: Reputation: 0
network bridging


i'm running 2.4.20 & i'd like to bridge my wlan & ethernet interfaces - does anyone know a way to do this?

thanks in advance.
 
Old 11-01-2005, 06:48 PM   #2
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
Although I never have bridged a wlan and an enet card, I have done bridging using Linux. It is relatively easy.

Make sure you have bridging enabled in the kernel or the appropriate module.
Download or install the bridge configuration utilities. you may have them already, you may not.

The command you'll need is brctl.

Start off by adding a bridge interface

brctl addbr br0

Next add the interfaces to the bridge

brctl addif br0 eth0
brctl addif br0 wlan0

Then give your interface an ipaddress, ifconfig i believe works here. You dont have to assign an ip address but you might as well.

ifconfig br0 <ipaddress>

Bring the bridge up, if it isnt already
ifconfig br0 up

The only tricky part is making you WLAN card work. Also, if your interested, you can also use ebtables to put in a transparent firewall :-)

Hope this helps
 
Old 11-02-2005, 04:09 PM   #3
iNET_boss
LQ Newbie
 
Registered: Jun 2005
Posts: 17

Original Poster
Rep: Reputation: 0
thank you, i did load that uitility & the bridge did appear to form, ifconfig shows the bridge; but the bridge does not pass any data thru from the wireless side to the wired side, nor vice versa. do you know of any issues? I'm using a Harris card with prism2 chipset. the Harris card is quite restrictive about access to the mac & phy layers, as well as higher level configuration parameters.

thanks again.
 
Old 11-02-2005, 08:51 PM   #4
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
I am not aware of any specific issues. That being said, I only played around with the linux wireless enough to set up my wireless. I have a reg NIC also, just wanted to get it working. At least you have a wireless card that appears to be supported. Mine only works if i use the ndiswrapper package and the windows drivers...

Are both sides able to reach the bridge? Assign an ip to the bridge device. If you can't ping that address from each side, something is wrong with your network configuration. If you can ping it from one side and not the other, take a look at that adapter and make sure it's working properly.

Check each interface, the eth0, wlan0 and br0 (or whatever your bridge device is) and make sure they are all up. If not all are up, bring up the down one.

If everything appears right, you can ping the bridge machine from both sides of the bridge and the bridge interface is up and configured properly and things still don't work.... well then you got me. Perhaps there is some issue with wlan cards and bridging or perhaps just that one

I'll see if i can make this work on my machine, however different hardware produces different results.

Hope this helps
 
Old 11-03-2005, 07:13 AM   #5
iNET_boss
LQ Newbie
 
Registered: Jun 2005
Posts: 17

Original Poster
Rep: Reputation: 0
bridging

thanks for the reply.

all three (br0, eth0, wlan0) are up & when i assign an ip address to the bring i can only ping it from one side. i do believe this is a card issue. i've also been seeing some literatrure on setting the wlan as an AP, but i'm not sure i want to go that route - i'm pretty sure my bridge is configured correctly & the card has an interfacing/configuration issue i've not yet found. the card is freezing my system too, which i've experienced with this card when trying to query mib parameters while my network is active. the card is a demo card that has encryption modifications & i've contacted the manufacturer's engineers about several issues.

i will be interested to know how your experiment turns out.

thanks again.
 
Old 11-03-2005, 06:17 PM   #6
docalton
Member
 
Registered: Dec 2002
Location: St Louis, MO
Distribution: Arch Linux
Posts: 99

Rep: Reputation: 15
sorry for the delay in getting back... anyway, I was able to bridge using wireless as expected.

my setup is debian testing branch
kernel 2.6.12
ndiswrapper 1.7 using linksys pci wireless card
intel wired lan card

it all worked perfectly. so given that fact, id have to say it was your particular card. especially given the fact is doesnt work at all.

anyway sorry i wasnt able to help you further.

good luck
 
Old 11-07-2005, 07:11 AM   #7
iNET_boss
LQ Newbie
 
Registered: Jun 2005
Posts: 17

Original Poster
Rep: Reputation: 0
bridging

FYI: i have a working bridge in my laptop, i cannot make it work in the desktop with the pci-pcmcia interface card. the bridge sets up ok, but after one ping the bridge locks. as an experiment i tried using the same card in windows xp - it wouldn't bridge at all. anyway, the wireless card does work, but only in my laptop. i'm looking into another pci-pcmcia hardware bridge to replace my existing card.

thanks again for the help.
 
  


Reply



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
Bridging a wired network to a wifi network bobmcobob Linux - Wireless Networking 2 07-18-2008 06:36 PM
Clusters, Network bridging, and AI/AL Simulations... gjsIV Linux - Newbie 1 10-11-2005 01:56 PM
Bridging 2 Network Connetions XaViaR SUSE / openSUSE 4 08-09-2005 08:30 PM
Bridging Network Connections in SuSe 9.0 moonshiner Linux - Networking 2 06-02-2004 11:09 PM
Bridging network cards......... Fireblade74 Mandriva 3 04-18-2004 03:30 AM

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

All times are GMT -5. The time now is 02:26 AM.

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