Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Hi all, i need to join two network segments using two Atheros wireless cards (PCMCIA Proxim Orinoco and D-link DWL-G520) and Madwifi (madwifi-hal-0.10.5.6-r3861-20080903.tar.gz in Ubuntu 8.10) but it doesn´t work.
Information source: UserDocs/WDSBridge - madwifi-project.org - Trac
I did the following: Computer 1
Code:
wlanconfig ath0 create wlandev wifi0 wlanmode ap # Create an AP
brctl addbr br0 # Create a bridge
iwpriv ath0 mode 3 # 1 = 802.11a, 2 = 802.11b, 3 = 802.11g
iwconfig ath0 essid wds channel 1
iwpriv ath0 wds 1
ifconfig ath0 up # Bring up the interface and next up to the bridge
brctl addif br0 ath0
ifconfig br0 10.0.0.1 netmask 255.255.255.0 up # Bring up the bridge
wlanconfig ath1 create wlandev wifi0 wlanmode wds # Now create a station
iwpriv ath1 mode 3
iwconfig ath1 channel 3
iwpriv ath1 wds_add <MAC tarjeta Atheros del PC2>
iwpriv ath1 wds 1
ifconfig ath1 up
brctl addif br0 ath1
echo 1 > /proc/sys/net/ipv4/ip_forward
Computer 2
Code:
wlanconfig ath0 create wlandev wifi0 wlanmode ap # Create an AP
brctl addbr br0 # Create a bridge
iwpriv ath0 mode 3 # 1 = 802.11a, 2 = 802.11b, 3 = 802.11g
iwconfig ath0 essid wds channel 1
iwpriv ath0 wds 1
ifconfig ath0 up # Bring up the interface and next up to the bridge
brctl addif br0 ath0
ifconfig br0 10.0.0.2 netmask 255.255.255.0 up # Bring up the bridge
wlanconfig ath1 create wlandev wifi0 wlanmode wds # Now create a station
iwpriv ath1 mode 3
iwconfig ath1 channel 3
iwpriv ath1 wds_add <MAC tarjeta Atheros del PC1>
iwpriv ath1 wds 1
ifconfig ath1 up
brctl addif br0 ath1
echo 1 > /proc/sys/net/ipv4/ip_forward
Test:
Ping doesn´t responds from Computer 1 to 10.0.0.2 or 10.0.0.4.
Ping doesn´t responds from Computer 2 to 10.0.0.1 or 10.0.0.3.
¿How can I know if the WDS bridge is well made and the wifi cards are linked?
Please, someone could help me.
This thread is a month old, but in case you are still wondering why this didn't work: you can't ping across a bridge. Test your connection some other way, e.g. ssh or http.
I'm sure I've seen it stated that ping won't work or is unreliable over a bridge. There's a technical reason for this but I can't find where I saw this explained.
I'll try out your setup soon and let you know if it works for me.
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe