[Ninux-Wireless] tl-wr1043nd + wds
snORky
snorky a autistici.org
Mar 23 Nov 2010 17:43:54 CET
In data martedì 23 novembre 2010 14:20:47, snORky ha scritto:
> Ho provato a mettere la stessa configurazione del link sull'ap,
> risultato: non e' piu' raggiungibile e devo resettarlo.
>
> Questa configurazione, secondo voi, va bene cosi'
> -----------------------
> config interface lan
> option type bridge
> # tweaked so that sta0 will come up automatically
> option ifname 'ath0 ath0.sta0'
> option proto static
> option ipaddr 192.168.9.1
> option netmask 255.255.255.0
> -----------------------
> o lascio ''option ifname eth0.1'' senza specificare ''ath0 ath0.sta0''?
Adesso sembra funzionare tutto.
Lato ap (wds)
-------------------------------------------
root a 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' 'eth0.1'
option 'proto' 'static'
option 'ipaddr' '192.168.130.2'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.130.1'
option 'defaultroute' '0'
option 'peerdns' '0'
option 'dns' '208.67.220.220'
config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'dhcp'
config 'switch'
option 'name' 'rtl8366rb'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 2 3 4 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '0 5t'
root a OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 5
option macaddr 00:23:cd:18:ea:84
option hwmode 11ng
option htmode HT20
list ht_capab SHORT-GI-40
list ht_capab DSSS_CCK-40
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 0
config wifi-iface
option device radio0
option network lan
option mode ap
option ssid prova
option wds 1
option encryption psk2
option key supersecret
-------------------------------------------
lato repeater(sta)
-------------------------------------------
root a 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.1'
option 'type' 'bridge'
option 'proto' 'static'
option 'ipaddr' '192.168.130.12'
option 'netmask' '255.255.255.0'
option 'gateway' '192.168.130.2'
option 'dns' '192.168.130.2'
config 'interface' 'wan'
option 'ifname' 'eth0.2'
option 'proto' 'dhcp'
config 'switch'
option 'name' 'rtl8366rb'
option 'reset' '1'
option 'enable_vlan' '1'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '1'
option 'ports' '1 2 3 4 5t'
config 'switch_vlan'
option 'device' 'rtl8366rb'
option 'vlan' '2'
option 'ports' '0 5t'
root a OpenWrt:~# cat /etc/config/wireless
config wifi-device radio0
option type mac80211
option channel 5
option macaddr 00:23:cd:18:ea:60
option hwmode 11ng
option htmode HT20
list ht_capab SHORT-GI-40
list ht_capab DSSS_CCK-40
# REMOVE THIS LINE TO ENABLE WIFI:
option disabled 0
config wifi-iface
option device radio0
option network lan
option mode sta
option ssid prova
option wds 1
option encryption psk2
option key supersecret
-------------------------------------------
ping/ssh ap>sta OK
ping/ssh sta>ap OK
ping/ssh client wifi>ap OK
ping/ssh client wifi>sta OK
L'unica cosa che non capisco e' che iwconfig sul repeater(sta) mi da:
wlan0 IEEE 802.11bgn ESSID:"prova"
Mode:Managed Frequency:2.432 GHz Access Point:
00:23:CD:18:EA:84
Bit Rate=117 Mb/s Tx-Power=27 dBm
RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=70/70 Signal level=-34 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
l'encryption key: off
e' normale?
--
snORky
.:Bisogna avere stile anche nei momenti peggiori. odp:.
*
gpg --keyserver wwwkeys.cz.pgp.net --recv-key 0xD2DF179B
Fingerprint = 092F E8C0 DDA6 B6FB C787 7E4C CF2E 1F78 D2DF 179B
Maggiori informazioni sulla lista
Wireless