OpenWrt Forum Archive

Topic: WDS

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm stumped.. I've spent all night trying to get WDS to work on OpenWRT and have been unable to get it working.

My first thought is that its my boardflags which defaulted to 0x0188. All the documentation says 0x188 is this the same thing? I have kept my config VERY basic (factory defaults + wds + network config). I have not even touched WPA etc yet..

The config for each of my WRT54G V2 are available at

www.mottie.com/tmp/config1.txt
www.mottie.com/tmp/config2.txt

I have tried this with both WhiteRussian RC2 and the experimental firmware

I do have a WDS device:

wds0.4915 Link encap:Ethernet  HWaddr 00:12:17:29:C5:9E
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

thanks in advance!

It doesn't seem your config is that basic.
Please do a "nvram show | sort | grep wl" and post it back as there is too much info on your config files...
Also, It would be nice if you reset your nvram. It will save you a lot of trouble...
I've tried to do a WDS(aes) w RC2 it and it didnt work. But it sure works with experimental 25052005 and Sbinger's nas hotplug and S45wpa...
regards,
Zanolla.

here is the info you requested..  I just read about the nvram reset this morning. Sounds like it should help. I'm guessing that because the settings aren't loaded until a reboot as long as I configure my interfaces, ip address, etc i shouldn't have any worries about bricking the unit?

you'll notice that wl_radio = 0 because I'm not home right now, and the idea of having my wireless on, and open doesn't appeal to me smile

web_wl_filter=0
wl0_active_mac=
wl0_afterburner=off
wl0_antdiv=-1
wl0_ap_ip=
wl0_ap_isolate=0
wl0_ap_ssid=
wl0_auth=0
wl0_auth_mode=open
wl0_bcn=100
wl0_channel=1
wl0_closed=0
wl0_corerev=7
wl0_country=Worldwide
wl0_country_code=AU
wl0_crypto=tkip
wl0_dtim=1
wl0_frag=2346
wl0_frameburst=off
wl0_gmode=1
wl0_gmode_protection=off
wl0_hwaddr=00:12:17:29:C5:A6
wl0_ifname=eth1
wl0_infra=1
wl0_key1=
wl0_key2=
wl0_key3=
wl0_key4=
wl0_key=1
wl0_lazywds=0
wl0_mac_deny=
wl0_mac_list=
wl0_maclist=
wl0_macmode1=disabled
wl0_macmode=disabled
wl0_mode=ap
wl0_mrate=0
wl0_net_mode=mixed
wl0_passphrase=
wl0_phytype=g
wl0_phytypes=g
wl0_plcphdr=long
wl0_radio=0
wl0_radioids=BCM2050
wl0_radius_ipaddr=
wl0_radius_key=
wl0_radius_port=1812
wl0_rate=0
wl0_rateset=default
wl0_rts=2347
wl0_ssid=COMMIE
wl0_unit=0
wl0_wds=00:12:17:29:C5:A0
wl0_wep=disabled
wl0_wep_bit=64
wl0_wep_buf=
wl0_wep_gen=
wl0_wep_last=
wl0_wpa_gtk_rekey=3600
wl0_wpa_psk=
wl0gpio2=0
wl0gpio3=0
wl0id=0x4320
wl_active_add_mac=0
wl_active_mac=
wl_afterburner=off
wl_antdiv=-1
wl_ap_ip=
wl_ap_isolate=0
wl_ap_ssid=
wl_auth=0
wl_auth_mode=open
wl_bcn=100
wl_channel=6
wl_closed=0
wl_corerev=
wl_country=Worldwide
wl_country_code=AU
wl_crypto=tkip
wl_dtim=1
wl_frag=2346
wl_frameburst=off
wl_gmode=1
wl_gmode_protection=off
wl_hwaddr=
wl_ifname=
wl_infra=1
wl_key1=
wl_key2=
wl_key3=
wl_key4=
wl_key=1
wl_lazywds=1
wl_mac_deny=
wl_mac_list=
wl_maclist=
wl_macmode1=disabled
wl_macmode=disabled
wl_mode=ap
wl_mrate=0
wl_net_mode=mixed
wl_passphrase=
wl_phytype=g
wl_phytypes=
wl_plcphdr=long
wl_radio=1
wl_radioids=
wl_radius_ipaddr=
wl_radius_key=
wl_radius_port=1812
wl_rate=0
wl_rateset=default
wl_rts=2347
wl_ssid=linksys
wl_unit=0
wl_wds=
wl_wep=disabled
wl_wep_bit=64
wl_wep_buf=
wl_wep_gen=
wl_wep_last=
wl_wpa_gtk_rekey=3600
wl_wpa_psk=

(Last edited by mottie on 16 Aug 2005, 19:32)

these must be the same for both routers

wl0_afterburner=off
wl0_auth_mode=psk
wl0_channel=mustbethesameforboth
wl0_closed=0
wl0_crypto=aes
wl0_frameburst=off
wl0_ifname=eth1
wl0_infra=1
wl0_lazywds=0
wl0_mode=ap
wl0_ssid=mustbethesameforboth
wl0_wds_auth_mode=psk
wl0_wds_crypto=aes
wl0_wds_wpa_psk=xxxxxxxxxxxxxxxxxx
wl0_wep=disabled
wl0_wpa_gtk_rekey=3600
wl0_wpa_psk=xxxxxxxxxxxxxxxxxxx

these must reflect eachother eth1 address

wl0_hwaddr=xx:xx:xx:xx:xx self
wl0_wds=xx:xx:xx:xx:xx other

and remember, these are the settings for wds on experimental build using  Sbingner's files. It will NOT work on RC2 (at least for me). Follow exactly these instructions and you'll be fine...

(Last edited by zanolla on 16 Aug 2005, 20:15)

those are the instructions i followed in the first place, and it's not working smile

I have used both the experimental and RC2. Still no word on my boardflags.. does that mean they are correct?  I will try nvram reset tonight.

What do I need to configure to not brick my router on reboot? Do i need to go as far as configuring the VLANs or do I only need IP address?

follow these instructions to reset the router, dont be afraid, you wont brick it...

root@OpenWrt:~#mtd erase nvram | reboot
root@OpenWrt:~#nvram set boot_wait=on | nvram commit | reboot
root@OpenWrt:~#mtd erase OpenWrt
*unplug router*
root@OpenWrt:~#firstboot | reboot

take a look at your nvram settings... looks nice doesnt it? smile

now, set your boardflags according to sbingner's instructions...

(Last edited by zanolla on 16 Aug 2005, 20:39)

Maybe I'm not realizing something, but shouldn't those pipes be ampersands, zanolla?
I thought that "mtd erase nvram | reboot" , when used with double pipes, (||), means literally "mtd erase nvram OR reboot if that fails" (which will never happen in the case of mtd, I think)

I think you might have been trying to tell mottie "mtd erase nvram AND THEN reboot if that was successful" 

If you agree, zanolla, try these, mottie:

root@OpenWrt:~#mtd erase nvram && reboot
root@OpenWrt:~#nvram set boot_wait=on && nvram commit && reboot
root@OpenWrt:~#mtd erase OpenWrt
*unplug router*
root@OpenWrt:~#firstboot && reboot

Of course my mind could be in the clouds and I could be wrong.  Let me know if that's the case.

zanolla wrote:

now, set your boardflags according to sbingner's instructions...

What do you mean ? Do your instructions apply for box using PMON (and not CFE ?) ?

Yes, thats it Mrmoj... smile

example:

nvram set blabla | nvram commit | reboot

equals

nvram set blabla [enter]
nvram commit [enter]
reboot [enter]

regards,
Zanolla

(Last edited by zanolla on 16 Aug 2005, 21:45)

Vincent Bernat wrote:
zanolla wrote:

now, set your boardflags according to sbingner's instructions...

What do you mean ? Do your instructions apply for box using PMON (and not CFE ?) ?

actually, I dont have a clue of what this boardflags thing does smile (its got something to do w disabling afterburner), but ppl say it is a must for the wds link to work...

regards,
Zanolla

(Last edited by zanolla on 16 Aug 2005, 21:44)

it's working.. after erasing nvram it was a breeze.

The documentation states that you should NOT nvram set boot_wait=on before rebooting..



From http://openwrt.org/OpenWrtDocs/Troubles … 38476c1ec4

mtd erase nvram
reboot

This will clear out the NVRAM partition and reboot the router, the bootloader will create a new NVRAM partition with default settings after the reboot. Remember to set boot_wait back on after you reboot your router -- trying to do it before rebooting will just write your old settings (cached in memory) back to the flash.

I've never seen | used as <enter> I've only seen & and &&

Either way thanks for your help.. apparently 0x0188 works for my router as I had one that was set at 0x0388 and one at 0x0188 and they both are working with 0x0188

Lately, are there any settings to increase distance? Anything outside 15 feet or so and WDS will not connect.. quite strange (only 1 wall seperating). If I run a ping I will receive no replies, but the ARP table of the router shows my mac..

What utilities are available that will show signal strength and connection speed?

(Last edited by mottie on 17 Aug 2005, 17:11)

The discussion might have continued from here.