OpenWrt Forum Archive

Topic: WDS mode not working...

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

Perhaps I am missing something here, but I cannot for the life of me get wds mode to work correctly between a WRT54GL and a WRT54G.

I can get them to connect in AP/Sta mode and that work fine until one drops out, they they dont reconnect. I am told that WDS mode is better at reestablishing connections. Has anyone had any luck getting WDS to work? or is there something I can tweak in AP/Sta mode so that they will automatically reconnect if the connection is lost? They reboot nightly, but it gets old going down and manually powercycling them during the day if they drop out

Hardware:
WRT54GL V1.1 - "Office" this is in the office and it is sending the signal down to the other WAP on the CampLink private SSID. Also handles throttling the 3 office areas and camp to ensure enough bandwidth for everyone.
WRT54G V2.2 -  "Camp" this receives the signal on the CampLink SSID and will (when in production and replaced with a GL) re-broadcast said signal to the campers on the Camp SSID
WRT150N V1.0 - Not used, but available (I would like to use it in place of the WRT54G), however it seems to be somewhat of a pain to work with (no vlans).

Software: All have Open WRT 8.09.1 (r16206) installed, the 54G and 54GL were installed from openwrt-wrt54g-squashfs.bin and the 150N was installed from openwrt-wrt150n-squashfs.bin.

Aaron Z

Configuration follows:
####Office (WRT54GL)####
/etc/config/wireless:

config 'wifi-device' 'wl0'
    option 'type' 'broadcom'
    option 'channel' '9'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'ssid' 'CampLink'
    option 'network' 'camp'
    option 'mode' 'wds'
    option 'encryption' 'none'
    option 'bssid' 'camp WAP mac'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'ssid' 'OfficeNetwork2'
    option 'network' 'lan'
    option 'mode' 'ap'
    option 'encryption' 'psk2'
    option 'key' 'key'

/etc/config/network/

config 'switch' 'eth0'
    option 'vlan0' '0 1 2 5*'
    option 'vlan1' '4 5'
    option 'vlan2' '3 5'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0.0'
    option 'proto' 'static'
    option 'ipaddr' '192.168.10.1'
    option 'netmask' '255.255.255.0'

config 'interface' 'wan'
    option 'ifname' 'eth0.1'
    option 'proto' 'dhcp'

config 'interface' 'camp'
    option 'proto' 'static'
    option 'ipaddr' '192.168.11.1'
    option 'netmask' '255.255.255.0'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'ifname' 'eth0.2'

####Camp (WRT54G)####
/etc/config/wireless

config wifi-device  wl0
    option type     broadcom
    option channel  9

    # REMOVE THIS LINE TO ENABLE WIFI:
    option disabled 0

config wifi-iface
    option 'device' 'wl0'
    option 'ssid' 'CampLink'
    option 'network' 'camp'
    option 'mode' 'wds'
    option 'encryption' 'none'
    option 'bssid' 'office WAP mac'

/etc/config/network

#### VLAN configuration 
config switch eth0
    option vlan0    "0 1 2 3 5*"
    option vlan1    "4 5"


#### Loopback configuration
config interface loopback
    option ifname    "lo"
    option proto    static
    option ipaddr    127.0.0.1
    option netmask    255.0.0.0


#### LAN configuration
config interface lan
    option type     bridge
    option ifname    "eth0.0"
    option proto    static
    option ipaddr    192.168.11.2
    option netmask    255.255.255.0


#### WAN configuration
config interface    wan
    option ifname    "eth0.1"
    option proto    dhcp

(Last edited by aczlan on 9 Sep 2009, 21:11)

Your "Camp" router is missing the definition for the "camp" network interface. Also enable bridging (option type bridge) on the "camp" interfaces.

~ JoW

OK, I will try that when I get home.

Aaron Z

Still no luck. I have switched to the 150N for the camp one as I want to use it in the end. I got it working in AP/STA mode, but it still wont work when I switch to WDS mode. Config files follow.

Thanks

Aaron Z

WRT54GL (Office) in AP Mode
/etc/config/network

config 'switch' 'eth0'
    option 'vlan1' '4 5'
    option 'vlan0' '1 2 3 5*'
    option 'vlan2' '0 5'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0.0'
    option 'proto' 'static'
    option 'ipaddr' '192.168.10.1'
    option 'netmask' '255.255.255.0'

config 'interface' 'wan'
    option 'ifname' 'eth0.1'
    option 'proto' 'dhcp'

config 'interface' 'camp'
    option 'proto' 'static'
    option 'ipaddr' '192.168.11.1'
    option 'netmask' '255.255.255.0'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'ifname' 'eth0.2'
    option 'type' 'bridge'

WRT54GL (Office) in AP Mode
/etc/config/wireless

config 'wifi-device' 'wl0'
    option 'type' 'broadcom'
    option 'channel' '9'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'ssid' 'CampLink'
    option 'network' 'camp'
    option 'mode' 'ap'
    option 'encryption' 'psk2'
    option 'key' 'securekey'
    option 'hidden' '1'

*************WRT150N
WRT150N (Camp) in STA Mode
/etc/config/network

config 'switch' 'eth0'
    option 'vlan0' '0 1 2 3 4 5u'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0'
    option 'macaddr' '00:1a:70:db:05:27'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'ipaddr' '192.168.11.2'

config 'interface' 'wan'
    option 'ifname' 'eth1'
    option 'macaddr' '00:1a:70:db:05:28'
    option 'proto' 'dhcp'

WRT150N (Camp) in STA Mode
/etc/config/wireless

config 'wifi-device' 'wl0'
    option 'type' 'broadcom'
    option 'channel' '9'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'network' 'lan'
    option 'encryption' 'psk2'
    option 'ssid' 'CampLink'
    option 'mode' 'sta'
    option 'key' 'securekey'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'network' 'lan'
    option 'encryption' 'psk2'
    option 'ssid' 'ZionsCamp2'
    option 'key' 'securekey2'
    option 'mode' 'ap'
    option 'isolate' '1'

#####End of AP/STA (Working) config files

WDS (Not working) config files

WRT54GL (Office) in WDS Mode
/etc/config/network

config 'switch' 'eth0'
    option 'vlan1' '4 5'
    option 'vlan0' '1 2 3 5*'
    option 'vlan2' '0 5'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0.0'
    option 'proto' 'static'
    option 'ipaddr' '192.168.10.1'
    option 'netmask' '255.255.255.0'

config 'interface' 'wan'
    option 'ifname' 'eth0.1'
    option 'proto' 'dhcp'

config 'interface' 'camp'
    option 'proto' 'static'
    option 'ipaddr' '192.168.11.1'
    option 'netmask' '255.255.255.0'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'ifname' 'eth0.2'
    option 'type' 'bridge'

WRT54GL (Office) in WDS Mode
/etc/config/wireless

config 'wifi-device' 'wl0'
    option 'type' 'broadcom'
    option 'channel' '9'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'ssid' 'CampLink'
    option 'network' 'camp'
    option 'encryption' 'psk2'
    option 'key' 'securekey'
    option 'mode' 'wds'
    option 'bssid' '02:1A:70:DB:05:29'
    #I also tried the BSSIDs of: 00:1A:70:DB:05:29 and 02:88:88:88:00:2B (the one that shows up when I do a scan of the area from the WRT54GL)

*************WRT150N
WRT150N (Camp) in WDS Mode
/etc/config/network

config 'switch' 'eth0'
    option 'vlan0' '0 1 2 3 4 5u'

config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0'
    option 'macaddr' '00:1a:70:db:05:27'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'defaultroute' '0'
    option 'peerdns' '0'
    option 'ipaddr' '192.168.11.2'

config 'interface' 'wan'
    option 'ifname' 'eth1'
    option 'macaddr' '00:1a:70:db:05:28'
    option 'proto' 'dhcp'

WRT150N (Camp) in WDS Mode
/etc/config/wireless

config 'wifi-device' 'wl0'
    option 'type' 'broadcom'
    option 'channel' '9'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'network' 'lan'
    option 'encryption' 'psk2'
    option 'ssid' 'ZionsCampLink'
    option 'mode' 'wds'
    option 'bssid' '00:23:69:56:1F:8F'
    option 'key' 'securekey'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'network' 'lan'
    option 'encryption' 'psk2'
    option 'ssid' 'Camp2'
    option 'key' 'securekey2'
    option 'mode' 'ap'
    option 'isolate' '1'

(Last edited by aczlan on 11 Sep 2009, 05:09)

The discussion might have continued from here.