OpenWrt Forum Archive

Topic: Problem setting up WDS with Linksys WRT54g + Asus WL500gP

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

Hello,

I've spent the best part of this afternoon and evening trying to set up WDS with my equipment.
I have three routers:
* Sitecom ADSL modem/router (doesn't have wireless)
* Linksys WRT54G v. 4 (the last version before they switched to VxWorks firmware)
* Asus WL500g Premium

The Sitecom device has its factory firware and the other two wireless routers are running OpenWrt Kamikaze 8.09 with X-Wrt. I have used the 2.4 kernel. The wireless routers both still have their original Broadcom wifi network cards.
There is a wired connection between the Sitecom and the Linksys.

I have made the following configuration:

Sitecom
Hostname: underhill
ip address: 10.0.0.1
netmask 255.255.255.0
DHCP: 10.0.0.10 - 10.0.0.250

Linksys
System settings
hostname: edoras
boot wait: enabled
wait time: 10s
Timezone: Brussels
Lan configuration
connection type: static IP
type: bridged
ip address: 10.0.0.2
netmask: 255.255.255.0
gateway: 10.0.0.1
lan dns: 10.0.0.1
network - wireless
radio on
channel 1
max clients 200
virtual adaptor
network: lan
mode: access point
WDS: off
ESSID broadcast on
AP isolation off
ESSID spyware-infected
no encryption
virtual adaptor
network: lan
mode: WDS
ESSID spyware-infected
BSSID: MAC address of the Asus router
no encryption
network - dhcp
authorative: disabled
dhcp off

Asus
System settings
hostname: isengard
boot wait: enabled
wait time: 10s
Timezone: Brussels
Lan configuration
connection type: static IP
type: bridged
ip address: 10.0.0.3
netmask: 255.255.255.0
gateway: 10.0.0.1
lan dns: 10.0.0.1
network - wireless
radio on
channel 1
max clients 200
virtual adaptor
network: lan
mode: access point
WDS: off
ESSID broadcast on
AP isolation off
ESSID spyware-infected
no encryption
virtual adaptor
network: lan
mode: WDS
ESSID spyware-infected
BSSID: MAC address of the Linksys router
no encryption
network - dhcp
authorative: disabled
dhcp off


During my configuration, all devices were on my table in front of me, less than 1m from each other with line of sight.
I tested with an Acer Aspire One netbook running Ubuntu 8.10.
I am quite comfortable with Linux system and network administration on computers&servers, but my experience with wireless networking and the insides of embedded devices like routers is a bit limited.

What works:
* wired  connection to the Sitecom
* wired connection to the Linksys
* wireless connection to the Linksys
* wired connection to the Asus, when it has is a wired connection to the Linksys
* wireless connection to the Asus, when it has a wired connection to the Linksys, and it's not yet configured for WDS, only as access point
* wired connection to the internet via the Sitecom
* wired connection to the internet via the Linksys
* wireless connection to the internet via the Linksys
* wired connection to the internet via the Asus, when it has a wired connection to the Linksys

What does not work:
* wireless connection to the Linksys when the radio of the Asus is on (and no wired connection between the two)
* wireless connection to the Asus when WDS is configured
* connection to the internet via the Asus when there is no cable between the Linksys and the Asus, only WDS


I don't think that there is a problem with the Linksys, because yesterday it was used in another WDS configuration with 3 other Linksys routers, without much problem.
I suspect that there is something wrong with the wireless on the Asus, but I can't pinpoint the exact problem. I also think that its signal is stronger than that of the Linksys, and that's why I can't connect wireless to the Linksys when the radio of the Asus is on, because it is "jamming" the signal.


Any suggestions for further troubleshooting would be much appreciated.

Dump of the nvram variables.

The Linksys:

aa0=3
ag0=255
boardflags2=0
boardflags=0x0188
boardnum=42
boardrev=0x10
boardtype=0x0101
boot_ver=v2.3
boot_wait=on
ccode=0
cctl=0
clkfreq=200
dl_ram_addr=a0001000
et0macaddr=00:0F:66:D3:36:15
et0mdcport=0
et0phyaddr=30
gpio2=adm_eecs
gpio3=adm_eesk
gpio5=adm_eedi
gpio6=adm_rc
il0macaddr=00:0f:66:d3:36:17
lan_ipaddr=192.168.1.1
lan_netmask=255.255.255.0
opo=0x0
os_flash_addr=bfc40000
os_ram_addr=80001000
pa0b0=0x170c
pa0b1=0xfa24
pa0b2=0xfe70
pa0itssit=62
pa0maxpwr=0x48
pmon_ver=CFE 3.51.21.0
scratch=a0180000
sdram_config=0x0032
sdram_init=0x0000
sdram_ncdl=0x20722
sdram_refresh=0x0000
sromrev=2
vlan0hwname=et0
vlan0ports=1 2 3 4 5*
vlan1hwname=et0
vlan1ports=0 5
wait_time=10
watchdog=5000
wl0gpio2=0
wl0gpio3=0
wl0id=0x4320

The Asus

 bytes (
acc_num=0
app_running=0
apps_dl=1
apps_dl_seed=24
apps_dl_share=0
apps_dl_share_port_from=10000
apps_dl_share_port_to=10050
apps_dms=1
apps_dms_usb_port=1
apps_pool=harddisk/part0
apps_share=share
boardflags=0x0110
boardnum=45
boardrev=0x10
boardtype=0x042f
boot_wait=on
br0_ifnames=vlan0 eth1
cfe_wait_led_gpio=1
cfe_wait_on_restore=0
clkfreq=264
computer_name=WL500g.Premium
custom_shutdown_command=stoprcasus
default_boardflags=0x0110
default_lan_proto=dhcp_server
default_new_disk_action=no_action
default_start_page=start_system.asp
default_workgroup=WORKGROUP
dhcp1_end=192.168.2.254
dhcp1_start=192.168.2.2
dhcp_end=192.168.2.254
dhcp_start=192.168.2.2
dl_ram_addr=a0001000
early_startup_command=convertasus
eject_from_web=0
et0macaddr=00:17:31:E4:B9:06
et0mdcport=0
et0phyaddr=30
et1macaddr=40:10:18:00:00:2d
et1mdcport=1
et1phyaddr=31
firmver=1.9.6.7
ftp_running=0
gpio6=robo_reset
gpio_0_name=soft_power_switch
gpio_3_name=power_enable
hardware_version=WL500gH-01-00-00-00
kernel_gpio_init_out_3=1
kernel_gpio_init_out_6=1
lan1_ipaddr=192.168.2.1
lan1_netmask=255.255.255.0
lan_dhcp_enabled=1
lan_dhcp_start=2
lan_dns=192.168.2.1
lan_gateway=192.168.2.1
lan_hwaddr=00:17:31:E4:B9:06
lan_ifname=br0
lan_ifnames= vlan0 eth2
lan_ipaddr=192.168.2.1
lan_netmask=255.255.255.0
lan_proto=static
lan_stp=1
landevs=vlan0 wl0
machine_name=WL500gP
misc_io_mode=bcmgpio
no_br=0
opendns_enabled=1
openvpn_cli=1
openvpn_cli_auth=cert
openvpn_cli_port=1194
openvpn_cli_proto=udp
opo=0x0
os_date=Apr 20 2006
os_flash_addr=bfc40000
os_ram_addr=80001000
os_version=3.131.20.0
pa0maxpwr=78
pmon_ver=CFE 3.91.23.0
preferred_lang=EN
primary_ifname=eth0
printer_ifname=usb
productid=WL500g.Premium
rescue_gpio=4
reset_gpio=7
scratch=a0180000
sdram_config=0x0062
sdram_init=0x0009
sdram_ncdl=0x10308
sdram_refresh=0x0000
sp_battle_ips=1
st_ftp_mode=1
st_max_user=6
st_samba_mode=1
st_samba_workgroup=WORKGROUP
startup_command=rcasus
swap_on=0
usb_disc0_index=0
usb_disc0_port=0
usb_disc1_index=0
usb_disc1_port=0
vlan0hwname=et0
vlan0ports=1 2 3 4 5*
vlan1hwname=et0
vlan1ports=0 5
wait_time=10
wan_device=vlan1
wan_dhcp_start=2
wan_hostname=Edoras
wan_ifname=vlan1
wan_ifnames=vlan1 
wan_pppoe_demand=0
wan_pppoe_idletime=1800
wan_pppoe_mru=1492
wan_pppoe_mtu=1492
wan_proto=dhcp
wan_vport=4
wandevs=et0
watchdog=5000
wifi_dhcp_start=2
wireless.wifi0.disabled=0
wl0_afterburner=auto
wl0_akm=psk psk2
wl0_antdiv=3
wl0_ap_isolate=0
wl0_auth=0
wl0_auth_mode=none
wl0_bcn=100
wl0_channel=1
wl0_closed=0
wl0_corerev=9
wl0_country_code=DE
wl0_crypto=tkip+aes
wl0_dfs_postism=60
wl0_dfs_preism=60
wl0_dtim=1
wl0_frag=2346
wl0_frameburst=1
wl0_gmode=2
wl0_gmode_protection=1
wl0_guest_auth_mode_1=open
wl0_guest_crypto_1=0
wl0_guest_key_1=1
wl0_guest_ssid_1=guest
wl0_guest_wep_x_1=0
wl0_guest_wpa_gtk_rekey_1=0
wl0_ifname=eth2
wl0_infra=1
wl0_key1=0123456789
wl0_key2=43d4862f22
wl0_key3=f3334ab6cd
wl0_key4=272d0e0308
wl0_key=1
wl0_lazywds=0
wl0_macmode=disabled
wl0_maxassoc=128
wl0_mode=ap
wl0_mode_ex=ap
wl0_mrate=0
wl0_net_reauth=36000
wl0_phytype=g
wl0_phytypes=g
wl0_plcphdr=long
wl0_preauth=1
wl0_radio=1
wl0_radioids=BCM2050
wl0_radius_port=1812
wl0_rate=0
wl0_rateset=default
wl0_reg_mode=off
wl0_rts=2347
wl0_ssid=spyware-infected
wl0_txant=3
wl0_txpwr=251
wl0_wds_timeout=1
wl0_wep=disabled
wl0_wme=off
wl0_wme_ap_be=15 63 3 0 0 off
wl0_wme_ap_bk=15 1023 7 0 0 off
wl0_wme_ap_vi=7 15 1 6016 3008 off
wl0_wme_ap_vo=3 7 1 3264 1504 off
wl0_wme_no_ack=off
wl0_wme_sta_be=15 1023 3 0 0 off
wl0_wme_sta_bk=15 1023 7 0 0 off
wl0_wme_sta_vi=7 15 2 6016 3008 off
wl0_wme_sta_vo=3 7 2 3264 1504 off
wl0_wpa_gtk_rekey=0
wl0id=0x4320
wlan_hardware_present=yes
wlan_ifname=eth1
wlan_ipaddr=192.168.21.1
wlan_netmask=255.255.255.0
x_Setting=1
x_WANType=1

This is strange! Where do the 192.168.*.* addresses come from? I am really, really sure that I configured a 10.0.0.0 network.

Nvram contents is not relevant for the configuration on openwrt kamikaze. Most of it is stored in /etc/config/
You should post at least /etc/config/network and /etc/config/wireless

(Last edited by MMCM on 25 Mar 2009, 09:21)

/etc/config/network

config 'switch' 'eth0'
    option 'vlan0' '0 1 2 3 4 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 'netmask' '255.255.255.0'
    option 'macaddr' ''
    option 'ip6addr' ''
    option 'ip6gw' ''
    option 'ipaddr' '10.0.0.2'
    option 'gateway' '10.0.0.1'
    option 'dns' ' 10.0.0.1'

config 'interface' 'wan'
    option 'proto' 'dhcp'
    option 'type' 'bridge'
    option 'macaddr' ''
    option 'ipaddr' ''
    option 'ip6addr' ''
    option 'netmask' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''

/etc/config/wireless

config 'wifi-device' 'wl0'
    option 'type' 'broadcom'
    option 'country' ''
    option 'hwmode' ''
    option 'distance' ''
    option 'diversity' ''
    option 'txantenna' ''
    option 'rxantenna' ''
    option 'disabled' '0'
    option 'antenna' ''
    option 'channel' '01'
    option 'maxassoc' ''

config 'wifi-iface'
    option 'device' 'wl0'
    option 'network' 'lan'
    option 'bssid' '00:18:39:c0:31:f6'
    option 'server' ''
    option 'port' ''
    option 'hidden' '0'
    option 'isolate' '0'
    option 'txpower' ''
    option 'bgscan' '0'
    option 'frag' ''
    option 'rts' ''
    option 'key1' ''
    option 'key2' ''
    option 'key3' ''
    option 'key4' ''
    option '80211h' ''
    option 'compression' ''
    option 'bursting' ''
    option 'ff' ''
    option 'wmm' ''
    option 'xr' ''
    option 'ar' ''
    option 'turbo' ''
    option 'macpolicy' 'none'
    option 'maclist' ''
    option 'mode' 'ap'
    option 'ssid' 'spyware-infected'
    option 'key' 'super-secret-password'
    option 'encryption' 'none'
    option 'wds' '0'

config 'wifi-iface'
    option 'device' 'wl0'
    option 'hidden' '0'
    option 'network' 'lan'
    option 'mode' 'wds'
    option 'server' ''
    option 'port' ''
    option 'isolate' '0'
    option 'txpower' ''
    option 'bgscan' '0'
    option 'frag' ''
    option 'rts' ''
    option 'wds' '0'
    option 'key1' ''
    option 'key2' ''
    option 'key3' ''
    option 'key4' ''
    option '80211h' ''
    option 'compression' ''
    option 'bursting' ''
    option 'ff' ''
    option 'wmm' ''
    option 'xr' ''
    option 'ar' ''
    option 'turbo' ''
    option 'macpolicy' 'none'
    option 'maclist' ''
    option 'ssid' 'spyware-infected'
    option 'bssid' '00:17:31:e4:b9:06'
    option 'key' 'super-secret-password'
    option 'encryption' 'none'

The files are identical on both routers, exept of course that one has ip address 10.0.0.2 and the other 10.0.0.3, and that they both have the BSSID of the other router in the WDS config.

Did you get it working ? i haven'tt been able so far.
Erik

bassbuff wrote:

Did you get it working ? i haven'tt been able so far.
Erik

No, I'm still waiting for a reply.
I just didn't want to bump my question because I don't want to be rude. So I just wait patiently. Eventually someone will answer.

The discussion might have continued from here.