vplessky, I really appreciate your help.
But this sounds to me like:
A: Hey, i have a problem with my car. It's a Toyota and it doesn't start anymore.
B: Hey, i have Ford and it starts without problems. So you should by a Ford.
The content of this topic has been archived between 31 Mar 2018 and 7 May 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.
vplessky, I really appreciate your help.
But this sounds to me like:
A: Hey, i have a problem with my car. It's a Toyota and it doesn't start anymore.
B: Hey, i have Ford and it starts without problems. So you should by a Ford.
well, this is up to you how to treat my posts.
Believe me, I tested WDS a lot
3Com WER101 WDS Site Survey
3Com WER101 WDS Connected
3Com AP7760 WDS status
WDS running on TP-Link WR1043ND
And I know difference between "bad WDS" and "good WDS"
My old ASUS WL-500G was very bad in WDS. I never managed to connect it via WDS to any other device. Neither with native firmware nor DD-Wrt.
Linksys WRT54GL was much better. I could connect it to 3Com router - but only in WEP mode.
TP-Link routers and APs points are very good for WDS. WDS is working with native factory firmware.
And it is working on router flashed with OpenWrt.
What I also learned is that if you really need WDS, and it is not working with some device - I should go and buy different device.
It was somewhat difficult 3 years ago, when ASUS WL-500G was about $130.
With decent routers available for $40-$80 nowdays, it's not a problem anymore.
I will try and test further
Thank you for your time and support.
I managed to create a working 802.11bg wds network.
USB wireless dongle for testing:
ASUS WL-167g-V2
Ralink RT2573
HWaddr 00:18:f3:xx:xx:xx
ap+wds:
ASUS WL-HDD2.5
Backfire 10.03.1-rc4, r24045
HWaddr 00:15:f2:xx:xx:xx
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
Backfire (10.03.1-rc4, r24045) --------------------
* 1/3 shot Kahlua In a shot glass, layer Kahlua
* 1/3 shot Bailey's on the bottom, then Bailey's,
* 1/3 shot Vodka then Vodka.
---------------------------------------------------
root@OpenWrt:~# cat /etc/config/wireless
config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'channel' '11'
option 'macaddr' '00:15:f2:xx:xx:xx'
option 'txpower' '10'
option 'disabled' '0'
option 'hwmode' '11g'
option 'country' 'US'
config 'wifi-iface'
option 'device' 'radio0'
option 'mode' 'ap'
option 'wds' '1' #ap+wds
option 'network' 'lan'
option 'ssid' 'wds_link'
option 'encryption' 'psk2'
option 'key' 'xxxxxxxx'
root@OpenWrt:~# cat /etc/config/network
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' 'eth1'
option 'proto' 'static'
option 'ipaddr' '192.168.1.1'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.1.2'
option 'dns' '8.8.8.8'
option 'stp' '1'
option 'defaultroute' '0'
option 'peerdns' '0'
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth1 no wireless extensions.
br-lan no wireless extensions.
wlan0 IEEE 802.11bg Mode:Master Frequency:2.462 GHz Tx-Power=10 dBm
RTS thr:off Fragment thr:off
Power Management:off
mon.wlan0 IEEE 802.11bg Mode:Monitor Tx-Power=10 dBm
RTS thr:off Fragment thr:off
Power Management:off
wlan0.sta1 IEEE 802.11bg Mode:Secondary Tx-Power=10 dBm
RTS thr:off Fragment thr:off
Power Management:off
root@OpenWrt:~# iw wlan0 station dump
Station 00:18:f3:xx:xx:xx (on wlan0)
inactive time: 40 ms
rx bytes: 7592
rx packets: 77
tx bytes: 7019
tx packets: 50
signal: -44 dBm
tx bitrate: 18.0 MBit/s
root@OpenWrt:~# iw wlan0.sta1 station dump
Station 06:18:84:xx:xx:xx (on wlan0.sta1)
inactive time: 40 ms
rx bytes: 60955
rx packets: 499
tx bytes: 138456
tx packets: 901
signal: -17 dBm
tx bitrate: 54.0 MBit/s
ap+wds & wds sta:
Fonera+
Gargoyle v1.2.5 (Kamikaze 8.09.2)
HWaddr 06:18:84:xx:xx:xx
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
KAMIKAZE (8.09.2, unknown) -------------------------
* 10 oz Vodka Shake well with ice and strain
* 10 oz Triple sec mixture into 10 shot glasses.
* 10 oz lime juice Salute!
---------------------------------------------------
root@OpenWrt:~# uname -a
Linux OpenWrt 2.6.26.8 #1 Mon Sep 6 14:11:14 EDT 2010 mips unknown
root@OpenWrt:~# cat /etc/config/wireless
config 'wifi-device' 'wifi0'
option 'type' 'atheros'
option 'txpower' '10'
option 'channel' '11'
option 'hwmode' '11g'
option 'country' '840'
config 'wifi-iface' 'cfg2'
option 'device' 'wifi0'
option 'mode' 'ap'
option 'wds' '1' #ap+wds
option 'network' 'lan'
option 'ssid' 'ap_wds'
option 'encryption' 'psk2'
option 'key' 'xxxxxxxx'
config 'wifi-iface' 'cfg3'
option 'device' 'wifi0'
option 'mode' 'sta' #wds sta
option 'wds' '1'
option 'network' 'lan'
option 'ssid' 'wds_link'
option 'encryption' 'psk2'
option 'key' 'xxxxxxxx'
root@OpenWrt:~# cat /etc/config/network
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 'ifname' 'eth0.0 eth0.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.254'
option 'netmask' '255.255.255.0'
option 'stp' '1'
config 'interface' 'wan'
option 'ifname' 'br-lan'
option 'proto' 'pppoe'
option 'username' 'xxxxxxxx@domain.com'
option 'password' 'xxxxxxxx'
option 'keepalive' '3 5'
option 'mtu' '1492'
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth0.0 no wireless extensions.
eth0.1 no wireless extensions.
br-lan no wireless extensions.
imq0 no wireless extensions.
imq1 no wireless extensions.
wifi0 no wireless extensions.
ath0 IEEE 802.11g ESSID:"ap_wds" Nickname:""
Mode:Master Frequency:2.462 GHz Access Point: 00:18:84:xx:xx:xx
Bit Rate:0 kb/s Tx-Power=10 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx [3] Security mode:open
Power Management:off
Link Quality=69/70 Signal level=-27 dBm Noise level=-96 dBm
Rx invalid nwid:65 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ath1 IEEE 802.11g ESSID:"wds_link" Nickname:""
Mode:Managed Frequency:2.462 GHz Access Point: 00:15:F2:xx:xx:xx
Bit Rate:36 Mb/s Tx-Power=10 dBm Sensitivity=1/1
Retry:off RTS thr:off Fragment thr:off
Encryption key:xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx Security mode:restricted
Power Management:off
Link Quality=69/70 Signal level=-27 dBm Noise level=-96 dBm
Rx invalid nwid:10728 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
ppp0 no wireless extensions.
root@OpenWrt:~# wlanconfig ath0 list sta
ADDR AID CHAN RATE RSSI DBM IDLE TXSEQ TXFRAG RXSEQ RXFRAG CAPS ACAPS ERP STATE MODE
00:18:f3:xx:xx:xx 1 11 36M 55 -40 0 4 5 106 0 EPSs 0 5 Normal RSN
root@OpenWrt:~# wlanconfig ath1 list sta
ADDR AID CHAN RATE RSSI DBM IDLE TXSEQ TXFRAG RXSEQ RXFRAG CAPS ACAPS ERP STATE MODE
00:15:f2:xx:xx:xx 1 11 36M 84 -11 0 23 11 3187 0 EPs 4 3 Normal RSN WME
As you can see though I set hwmode to "11g", b43 still shows "802.11bg".
If I enable power saving mode on the USB dongle, I can see from RaUI (Ralink User Interface) that sometimes TX traffic drops to zero when the connection just established. I have to reconnect several times to get the TX traffic. If there's continuing TX traffic, the wireless connection becomes nearly stable.
Though DD-WRT wiki suggest 11g mode only, I found it not necessary. You can remove the option hwmode 11g from the wireless configuration.
...
If I enable power saving mode on the USB dongle, I can see from RaUI (Ralink User Interface) that sometimes TX traffic drops to zero when the connection just established. I have to reconnect several times to get the TX traffic. If there's continuing TX traffic, the wireless connection becomes nearly stable.
I experience same kind of behavior with Ralink RT2500 11g mini-PCI adapter (built-in on my MSI S271 notebook)
That's why I bought couple of USB Wi-Fi sticks, with Atheros chipset.
Those are working perfectly with TP-Link routers (Atheros) or old ASUS WL-500G Premium v1 (Broadcom)
Connection is stable, and quality and strength of signal is superior comparing to Ralink.
This screenshot illustrates signal strength you can get.
Two 'OWrt' SSIDs are WR841ND (OpenWrt 10.03.1-RC3) and WA801ND in Repeater mode (factory firmware)
'WR1043ND' SSID is TP-Link WR1043ND router, running with factory firmware.
'dlink', 'homenet', 'pantherx', 'ZXDSL***' are networks from neighbors.
Top screen (RaUI) is doing scanning using Ralink Rt2500 built-in adapter.
Screen below is scanning using TP-Link Atheros-based Wi-Fi USB stick.
Operating system for host is Windows XP.
As you can see, TP-Link (Atheros) adapter can find more networks, comparing to Ralink.
Hello fyi,
I'd like to ask you question about this part of your setup.
root@OpenWrt:~# uname -a
Linux OpenWrt 2.6.26.8 #1 Mon Sep 6 14:11:14 EDT 2010 mips unknownroot@OpenWrt:~# cat /etc/config/network
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 'ifname' 'eth0.0 eth0.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.1.254'
option 'netmask' '255.255.255.0'
option 'stp' '1'config 'interface' 'wan'
option 'ifname' 'br-lan'
option 'proto' 'pppoe'
option 'username' 'xxxxxxxx@domain.com'
option 'password' 'xxxxxxxx'
option 'keepalive' '3 5'
option 'mtu' '1492'
I have opened thread Recommended MTU size for PPPoE connection; PPPoE setup for OpenWrt but there are no answers on it.
You defined
option 'mtu' '1492'
Is PPPoE connection works fine for you?
I can connect to my provider using:
- TP-Link WR1043ND (kernel 2.6.15) with factory firmware
- ASUS WL-500G Premium with DD-Wrt v24 sp2 (10/10/09)
If I try to connect to provider using WR841ND (With Gargoyle 1.3.8), connection is established.
I can ping www.google.com, and open that site.
I can ping other sites, but sometimes pings are lost.
And I can't open many other sites in web browser. Connection is timeout.
Eric recommended to specify for WAN port
option 'mtu' '1500'
It's interesting that I get correct MTU size for eth1 (WAN interface) - 1500
And MTU size is 1492 for PPPoE
root@Gargoyle:~# ifconfig
br-lan Link encap:Ethernet HWaddr D8:5D:4C:BF:25:B4
inet addr:10.10.10.1 Bcast:10.10.10.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:506 errors:0 dropped:0 overruns:0 frame:0
TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:76473 (74.6 KiB) TX bytes:34109 (33.3 KiB)
eth0 Link encap:Ethernet HWaddr D8:5D:4C:BF:25:B4
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:507 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:83969 (82.0 KiB) TX bytes:35152 (34.3 KiB)
Interrupt:5
eth1 Link encap:Ethernet HWaddr 00:23:54:62:E0:B6
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:705 errors:0 dropped:0 overruns:0 frame:0
TX packets:131 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:80516 (78.6 KiB) TX bytes:19049 (18.6 KiB)
Interrupt:4
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1337 (1.3 KiB) TX bytes:1337 (1.3 KiB)
pppoe-wan Link encap:Point-to-Point Protocol
inet addr:95.220.103.200 P-t-P:212.1.254.106 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:50 errors:0 dropped:0 overruns:0 frame:0
TX packets:99 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:10218 (9.9 KiB) TX bytes:15809 (15.4 KiB)
root@Gargoyle:~# cat /etc/config/network
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 'ifname' 'eth0'
option 'type' 'bridge'
option 'proto' 'static'
option 'netmask' '255.255.255.0'
option 'ipaddr' '10.10.10.1'
option 'dns' '212.1.230.111'
config 'interface' 'wan'
option 'ifname' 'eth1'
option 'macaddr' '00:23:54:62:e0:b6'
option 'dns' '212.1.230.111'
option 'proto' 'pppoe'
option 'username' 'myusername'
option 'password' 'mypassword'
option 'keepalive' '3 5'
option 'peerdns' '1'
option 'mtu' '1500'
config 'switch' 'eth0'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'eth0'
option 'vlan' '1'
option 'ports' '0 1 2 3 4'
This allowed my to open say www.gargoyle-router.com in web browser
(it was not working before)
But many sites are still timeout.
And Torrent is not working - despited UPnP is enabled, and Bittorrent client confirms that port is opened.
Upload speed in 5KB/sec. to 30KB/sec. range, same as with closed port. I have 15Mbit (~1.3MB/sec. in Torrent) Internet connection to provider.
After some googling, I came to conclusion that this problem is kind of "black hole router"
Some workarounds for Windows are described for Windows XP.
Information is aged (July 7, 2005), but still can be useful.
But have not found solution or correct setup for OpenWrt so far.
I think this thread can be related to this problem.
Any help would be appreciated.
You defined
option 'mtu' '1492'
Is PPPoE connection works fine for you?
Yes
vplessky wrote:You defined
option 'mtu' '1492'
Is PPPoE connection works fine for you?Yes
works for me too.
I have another question. I get this when restarting network on the AP:
root@LinkSys:~# /etc/init.d/network restart
vconfig: invalid number 'sta'
Configuration file: /var/run/hostapd-phy0.conf
and in /var/run/hostapd-phy0.conf the only line containing 'sta' is:
wds_sta=1
So, is there anything wrong with this? I did never edit this config file, i only made my configurations in /etc/config/wireless.
I have another question. I get this when restarting network on the AP:
root@LinkSys:~# /etc/init.d/network restart vconfig: invalid number 'sta'
Most likely you have something like
option ifname "wlan0 wlan0.sta0"
in your network config. It should not be there.
Most likely you have something like
option ifname "wlan0 wlan0.sta0"
in your network config. It should not be there.
You are right, referring to this post i added these ifnames.
Thanks.
jow wrote:Most likely you have something like
option ifname "wlan0 wlan0.sta0"
in your network config. It should not be there.
You are right, referring to this post i added these ifnames.
Thanks.
I also did that but generated weird result so I removed it. Brctl show looks fine. One cosmetic behavior is that since it's a repeater, the ap comes up only when the sta connects to the peer ap. This is sometimes very inconvenient. Even BrainSlayer won't fix it.
#193 (FONERA RC-2 Repeater Mode --> VAP Only Shows Up when Client-Mode Connects...) - DD-WRT - Trac
I managed to create a working 802.11bg wds network.
You made my day
Though this is completely different as suggested in the HowTo, it seems to work.
So actually it is like this:
AP has two wifi-iface sections. The 'normal' AP section and a second STA section only for the WDS-link.
STA has only one wifi-iface section as AP for the WDS-link.
Thanks again and have a nice weekend!
The discussion might have continued from here.