<p>Just an fyi, you don't assign an IP to the wireless interface, you assign an IP to the bridge interface.<br>
</p>
<div class="gmail_quote">On Feb 2, 2012 9:13 PM, "Alfonso Fiore" <<a href="mailto:alfonso.fiore@gmail.com">alfonso.fiore@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
thank you for your help. I found an other solution which works.<br>
<br>
This is the supposed topology:<br>
<br>
(ISP wireless router - 192.168.100.254) <---wireless---> (ALIX setup<br>
as bridge) <---wired---> (PC - 192.168.100.100)<br>
<br>
I used proxy_arp:<br>
<br>
auto lo<br>
iface lo inet loopback<br>
auto eth0<br>
iface eth0 inet static<br>
address 0.0.0.0<br>
netmask 255.255.255.255<br>
auto wlan0<br>
iface wlan0 inet dhcp<br>
wpa-driver wext<br>
wpa-ssid <<Your_AP_SSID_Here>><br>
wpa-psk <<cleartext_password>><br>
wpa-key-mgmt WPA-PSK<br>
wpa-pairwise TKIP<br>
wpa-group CCMP TKIP<br>
wpa-proto RSN<br>
wireless-mode Managed<br>
post-up route del -net 192.168.100.0 netmask 255.255.255.0<br>
post-up route add -net 192.168.100.128 netmask 255.255.255.128 dev wlan0<br>
post-up route add -net 192.168.100.0 netmask 255.255.255.128 dev eth0<br>
<br>
then add to your /etc/rc.local:<br>
<br>
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp<br>
echo 1 > /proc/sys/net/ipv4/conf/wlan0/proxy_arp<br>
echo 1 > /proc/sys/net/ipv4/ip_forward<br>
<br>
On Fri, Feb 3, 2012 at 2:30 AM, Alfonso Fiore <<a href="mailto:alfonso.fiore@gmail.com">alfonso.fiore@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> and thank you for your help!<br>
><br>
> This is what I'm trying to achieve:<br>
><br>
> (ISP wireless router - 192.168.1.1) <---wireless---> (ALIX setup as<br>
> bridge) <---wired---> (PC - 192.168.1.x)<br>
><br>
> I'd like my PC to have an address over the same network as all other<br>
> devices. If I could have the ALIX as a repeated AS WELL I would prefer<br>
> it since my XP laptop gets faster wireless from the ALIX (when<br>
> configured as AP) compared to my ISP router.<br>
> But let's consider this the next step.<br>
><br>
>> Once you are connected all you need to do is bridge the wireless NIC with the wired ones.<br>
><br>
> how can I achieve this?<br>
><br>
> I tried to configure both eth0 and wlan0 to have IP 0.0.0.0 (so that<br>
> br0 gets the address from my AP):<br>
><br>
> /etc/network/interfaces<br>
><br>
> auto eth0<br>
> iface eth0 inet static<br>
> address 0.0.0.0<br>
> netmask 255.255.255.255<br>
> auto wlan0<br>
><br>
> iface wlan0 inet static<br>
> address 0.0.0.0<br>
> netmask 255.255.255.255<br>
> wpa-driver wext<br>
> wpa-ssid mySSID<br>
> wpa-psk myPASSWORD<br>
> wpa-key-mgmt WPA-PSK<br>
> wpa-pairwise TKIP<br>
> wpa-group CCMP TKIP<br>
> wpa-proto RSN<br>
> wireless-mode Managed<br>
><br>
> I know the configuration is correct because if I setup wlan0 with dhcp<br>
> I can connect to the AP and go on internet from the ALIX.<br>
><br>
> then I run:<br>
><br>
> # brctl addbr br0<br>
> # brctl addif br0 wlan0<br>
> can't add wlan0 to bridge br0: Operation not supported<br>
> # iw dev wlan0 set 4addr on<br>
> Failed to read classid file: Object not found (this error seems irrelevant)<br>
> # brctl addif br0 wlan0<br>
> device wlan0 entered promiscuous mode<br>
> # brctl addif br0 eth0<br>
> device eth0 entered promiscuous mode<br>
> # ifconfig br0 up<br>
> # dhclient br0<br>
><br>
> but br0 never gets an IP from my wireless router.<br>
><br>
> I also tried to run "ping 192.168.100.254" from the PC and using<br>
> tcpdump on the ALIX I can see the ALIX probably never forwards the<br>
> DHCP request from eth0 to wlan0.<br>
><br>
> thank you,<br>
> alfonso<br>
><br>
> On Fri, Feb 3, 2012 at 12:51 AM, Gustin Johnson <<a href="mailto:gustin@meganerd.ca">gustin@meganerd.ca</a>> wrote:<br>
>> First don't try to use iwpriv.<br>
>><br>
>> Second WDS stands for wireless distribution system. You are essentially<br>
>> creating a repeater. If this is what you want then look at hostap as you<br>
>> are also acting as an AP,<br>
>><br>
>> If you do not want your wireless card to also be an AP (you did say it had<br>
>> to be in managed mode), then just configure the wifi card as plain client.<br>
>><br>
>> To do this you need to have the following lines in your interfaces file for<br>
>> your wireless NIC:<br>
>> wpa-ssid MySSID<br>
>> wpa-psk someRanDoM_PSK<br>
>><br>
>> Of course you should put in your own SSID and PSK.<br>
>><br>
>> Once you are connected all you need to do is bridge the wireless NIC with<br>
>> the wired ones.<br>
>><br>
>> Hth,<br>
>><br>
>> On Wed, Feb 1, 2012 at 6:34 PM, Alfonso Fiore <<a href="mailto:alfonso.fiore@gmail.com">alfonso.fiore@gmail.com</a>><br>
>> wrote:<br>
>>><br>
>>> Hello,<br>
>>><br>
>>> I'm trying to setup wds using voyage 0.8.0 and an ALIX 3d3 with a<br>
>>> dcma81 (Atheros AR5414).<br>
>>><br>
>>> I first want to setup the wds from command line but every time I try a<br>
>>> iwpriv command I get "no private ioctls." error.<br>
>>><br>
>>> I'm not sure if this really my problem, but I read here (<br>
>>> <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/99432" target="_blank">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/99432</a> ) that some<br>
>>> driver doesn't support iwpriv (despite the HW).<br>
>>><br>
>>> But now if I want to setup a bridge between wlan0 and eth0 what should I<br>
>>> do?<br>
>>><br>
>>> /etc/network/interfaces suggests:<br>
>>><br>
>>> #auto br0<br>
>>> #iface br0 inet static<br>
>>> # address 192.168.1.2<br>
>>> # netmask 255.255.255.0<br>
>>> # network 192.168.1.0<br>
>>> # broadcast 192.168.1.255<br>
>>> # gateway 192.168.1.1<br>
>>> # bridge_ports eth0 wlan0 wlan0wds0<br>
>>> # pre-up iwconfig wlan0 mode Master essid voyage-wds channel 1<br>
>>> # pre-up iwpriv wlan0 wds_add AA:BB:CC:DD:EE:FF<br>
>>><br>
>>> but it doesn't work due to iwpriv not working (and I need my wireless<br>
>>> to be in Managed mode, but this is irrelevant to this problem).<br>
>>><br>
>>> I tried to manually bring up wlan0 like this:<br>
>>><br>
>>> auto wlan0<br>
>>> iface wlan0 inet dhcp<br>
>>> wpa-driver wext<br>
>>> wpa-ssid<br>
>>> wpa-psk<br>
>>> wpa-key-mgmt WPA-PSK<br>
>>> wpa-pairwise TKIP<br>
>>> wpa-group TKIP<br>
>>> wpa-proto WPA<br>
>>> wireless-mode Managed<br>
>>><br>
>>> and then manually creating a bridge but it doesn't work (and this is<br>
>>> why wds exists as far I understand).<br>
>>><br>
>>> Any help is appreciated.<br>
>>><br>
>>> Thank you,<br>
>>> alfonso<br>
>>><br>
>>> _______________________________________________<br>
>>> Voyage-linux mailing list<br>
>>> <a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
>>> <a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
>><br>
>><br>
</blockquote></div>