Hello,
I am trying to create a wireless repeater, I followed the instructions here: http://wiki.openwrt.org/oldwiki/Repeater but having some trouble, would appreciate some help please. Firstly, is there any newer documentation on Repeater howto?
The router comes up with two wifi interfaces ok, one STA and the other AP. I can connect from my laptop to the SSID of the repeated side and ssh into the router. In turn it has successfully associated with the upstream master access point. However I cannot ping anything through the link to the main network.
Laptop ----> Repeater ----> Upstream AP ---> My network
I can get it partially working if I firstly assign an IP (different subnet to the repeated side) to the iface of the STA side, and then force a static route. Then I can ping from the router through the uplink wireless connection. But I still cannot access the network from the laptop itself.
So, how to make repeating work? how to make the route automatic? and do I need to also configure IP MASQ?
I hope I am explaining this well. Here is my config:
Kamikaze r23970
/etc/config/wireless
config 'wifi-device' 'radio0'
option 'type' 'mac80211'
option 'macaddr' 'e0:05:c5:68:a3:9a'
option 'hwmode' '11ng'
list 'ht_capab' 'SHORT-GI-40'
list 'ht_capab' 'TX-STBC'
list 'ht_capab' 'RX-STBC1'
list 'ht_capab' 'DSSS_CCK-40'
option 'channel' '4'
option 'htmode' 'HT40+'
config 'wifi-iface'
option 'device' 'radio0'
option 'network' 'lan'
option 'mode' 'ap'
option 'ssid' 'MY_REPEATED_SSID'
option 'encryption' 'psk2'
option 'key' 'supersecret'
config 'wifi-iface'
option 'device' 'radio0'
option 'mode' 'sta'
option 'ssid' 'MY_MAIN_NETWORK_SSID'
option 'encryption' 'psk2'
option 'key' 'supersecret'
/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 ipaddr 192.168.3.1
option netmask 255.255.255.0
option gateway ''
# disabled wan, not used.
config interface wan
option ifname eth1
option type bridge
option disabled 1
option proto static
option netmask 255.255.255.0
config switch eth0
option enable_vlan 1
config switch_vlan
option device eth0
option vlan 1
option ports "0 1 2 3 4"
iwconfig:
wlan0 IEEE 802.11bgn Mode:Master Frequency:2.427 GHz Tx-Power=27 dBm
RTS thr:off Fragment thr:off
Power Management:on
wlan1 IEEE 802.11bgn ESSID:"MY_MAIN_NETWORK_SSID"
Mode:Managed Frequency:2.412 GHz Access Point: 00:90:CC:F2:3B:A4
Bit Rate=1 Mb/s Tx-Power=27 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=70/70 Signal level=-40 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:1 Invalid misc:2 Missed beacon:0
mon.wlan0 IEEE 802.11bgn Mode:Monitor Tx-Power=27 dBm
RTS thr:off Fragment thr:off
Power Management:off
I have to manually give wlan0 an IP, with "ifconfig wlan0 192.168.1.27", then set static route "route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 dev wlan0", before I can ping 192.168.1.1 from the router.
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.3.0 * 255.255.255.0 U 0 0 0 br-lan
192.168.1.0 192.168.1.1 255.255.255.0 UG 0 0 0 wlan1
192.168.1.0 * 255.255.255.0 U 0 0 0 wlan1
brctl show:
bridge name bridge id STP enabled interfaces
br-lan 8000.e005c568a39a no eth0
wlan0
br-wan 8000.e005c568a39a no eth1
Hardware: TP-Link TL-WR741N, Atheros AR9285
Thanks
butako