You are not logged in.

#1 2009-11-09 04:56:43

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Help with bridging

Hello..

I'm trying to bridge this:

AP <---> wlan0 <bridge> eth0 <---> windows computer

but I'm unable to setup the bridge. There is a dhcp server running on AP.

So far I tried this:

# set wireless parameters
iwconfig wlan0 essid <essid>
iwconfig wlan0 key <key>

# unset ip adress of your interfaces so the bridge can handle it
ifconfig eth0 0.0.0.0 promisc up
ifconfig wlan0 0.0.0.0 promisc up

# create the bridge
brctl addbr br0

# add interfaces to the bridge
brctl addif br0 eth0
brctl addif br0 wlan0

# get IP adress from dhcp server (router)
dhcpcd br0

but no success (I get timeout), also I have no idea how to setup IPs on my windows machine.

I'm pretty new at networking so please explain it simply and with command explanations if possible smile

.

Last edited by karabaja4 (2009-11-09 05:04:31)

Offline

#2 2009-11-09 13:46:20

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: Help with bridging

Anyone? neutral

And btw, the wireless card is RT61 (RT2561ST) PCI.

.

Last edited by karabaja4 (2009-11-09 13:46:40)

Offline

#3 2009-11-09 15:46:16

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Help with bridging

Do you really need to bridge it or just want the windows box to have internet?

If it is the second option then you can use iptables and setup the linux box to do nat. http://wiki.archlinux.org/index.php/Sim … AT_gateway


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#4 2009-11-10 00:59:09

karabaja4
Member
From: Croatia
Registered: 2008-09-14
Posts: 997
Website

Re: Help with bridging

R00KIE wrote:

Do you really need to bridge it or just want the windows box to have internet?

If it is the second option then you can use iptables and setup the linux box to do nat. http://wiki.archlinux.org/index.php/Sim … AT_gateway

Yes I'd prefer it bridged, but I guess internet will have to do...

still dunno what's wrong hmm

Offline

#5 2009-11-10 11:36:52

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: Help with bridging

Try looking for software access point, the wiki has this http://wiki.archlinux.org/index.php/Sof … cess_Point but I guess you can find a lot more info is you ask google.

Here may be a good place to look too http://www.linuxfoundation.org/en/Net:Bridge

Edit:
Here may be a good place too http://linuxwireless.org/en/users/Documentation/hostapd

Last edited by R00KIE (2009-11-10 11:37:33)


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#6 2009-11-10 11:44:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Help with bridging

Try setting a static address for br0, instead of using dhcp.

Also, I'd say there are numerous places you can ask about windows network configuration - this just isn't one of them. smile

Offline

Board footer

Powered by FluxBB