Calabria 23 Dicembre 2011<br><br><br>Ciao a tutti,<br>Ancora una volta vi disturbo, per aggiornarvi sui miei risultati. Sto tentando di fare il multi ssid con le antenne. Ci sono riuscito se consideriamo che una lavora in modalità ad hoc e l' altra come una normale rete aperta, ma putroppo la rete libera che fà da ap, è molto instabile. On pratica tutte e due le reti funzionano ma la rete OpenWrt, si accende e spegne. Magari sono stanco, non lo sò domani mattina ne parliamo :-)<br>
<br><br>Vi posto un pò di output per capirmi meglio:<br><br>root@home:/home/home# ifconfig eth1 10.22.2.2<br>root@home:/home/home# ping 10.22.2.1<br>PING 10.22.2.1 (10.22.2.1) 56(84) bytes of data.<br>64 bytes from <a href="http://10.22.2.1">10.22.2.1</a>: icmp_req=1 ttl=64 time=0.327 ms<br>
64 bytes from <a href="http://10.22.2.1">10.22.2.1</a>: icmp_req=2 ttl=64 time=0.282 ms<br>^C<br>--- 10.22.2.1 ping statistics ---<br>2 packets transmitted, 2 received, 0% packet loss, time 999ms<br>rtt min/avg/max/mdev = 0.282/0.304/0.327/0.028 ms<br>
root@home:/home/home# ssh <a href="mailto:root@10.22.2.1">root@10.22.2.1</a><br><a href="mailto:adroot@10.22.2.1">adroot@10.22.2.1</a>'s password: <br>Permission denied, please try again.<br><a href="mailto:root@10.22.2.1">root@10.22.2.1</a>'s password: <br>
<br><br>BusyBox v1.19.3 (2011-12-19 15:01:26 MST) built-in shell (ash)<br>Enter 'help' for a list of built-in commands.<br><br> _______ ________ __<br> | |.-----.-----.-----.| | | |.----.| |_<br>
| - || _ | -__| || | | || _|| _|<br> |_______|| __|_____|__|__||________||__| |____|<br> |__| W I R E L E S S F R E E D O M<br> ATTITUDE ADJUSTMENT (bleeding edge, r29570) ----------<br> * 1/4 oz Vodka Pour all ingredients into mixing<br>
* 1/4 oz Gin tin with ice, strain into glass.<br> * 1/4 oz Amaretto<br> * 1/4 oz Triple sec<br> * 1/4 oz Peach schnapps<br> * 1/4 oz Sour mix<br> * 1 splash Cranberry juice<br> -----------------------------------------------------<br>
root@OpenWrt:~# route -n<br>Kernel IP routing table<br>Destination Gateway Genmask Flags Metric Ref Use Iface<br>10.22.1.0 172.17.22.1 255.255.255.0 UG 2 0 0 wlan0-1<br>10.22.2.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan<br>
172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0 wlan0-1<br>172.17.22.1 172.17.22.1 255.255.255.255 UGH 2 0 0 wlan0-1<br>192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 br-ap_free<br>
root@OpenWrt:~# iwconfig<br>lo no wireless extensions.<br><br>eth0 no wireless extensions.<br><br>eth1 no wireless extensions.<br><br>br-lan no wireless extensions.<br><br>eth0.1 no wireless extensions.<br>
<br>br-wan no wireless extensions.<br><br>wlan0 IEEE 802.11bgn Mode:Master Frequency:2.437 GHz Tx-Power=18 dBm <br> RTS thr:off Fragment thr:off<br> Power Management:on<br> <br>wlan0-1 IEEE 802.11bgn ESSID:"ninux" <br>
Mode:Ad-Hoc Frequency:2.437 GHz Cell: 22:9C:19:E9:80:22 <br> Tx-Power=18 dBm <br> RTS thr:off Fragment thr:off<br> Encryption key:off<br> Power Management:on<br> <br>
br-ap_free no wireless extensions.<br><br>mon.wlan0 IEEE 802.11bgn Mode:Monitor Frequency:2.437 GHz Tx-Power=18 dBm <br> RTS thr:off Fragment thr:off<br> Power Management:on<br> <br>root@OpenWrt:~# <br>
root@OpenWrt:~# cat /etc/config/network<br><br>config 'interface' 'loopback'<br> option 'ifname' 'lo'<br> option 'proto' 'static'<br> option 'ipaddr' '127.0.0.1'<br>
option 'netmask' '255.0.0.0'<br><br>config 'interface' 'lan'<br> option 'ifname' 'eth0'<br> option 'type' 'bridge'<br> option 'proto' 'static'<br>
option 'ipaddr' '10.22.2.1'<br> option 'netmask' '255.255.255.0'<br><br>config 'interface' 'wan'<br> option 'ifname' 'eth1'<br> option 'proto' 'dhcp'<br>
option 'type' 'bridge'<br><br>config 'switch'<br> option 'name' 'eth0'<br> option 'reset' '1'<br> option 'enable_vlan' '1'<br><br>config 'switch_vlan'<br>
option 'device' 'eth0'<br> option 'vlan' '1'<br> option 'ports' '0 1 2 3 4'<br><br>config 'interface' 'wlan'<br> option 'proto' 'static'<br>
option 'ipaddr' '172.17.22.2'<br> option 'netmask' '255.255.0.0'<br><br>config 'interface' 'wwan'<br> option 'proto' 'dhcp'<br><br><br>#roba inserita da gigismi<br>
config interface ap_free<br> option type 'bridge'<br> option ifname 'eth0.1'<br> option proto 'static'<br> option ipaddr '192.168.2.1'<br> option netmask '255.255.255.0'<br>
<br>root@OpenWrt:~# cat /etc/config/wireless<br>config wifi-device radio0<br> option type mac80211<br> option channel 6<br> option macaddr 54:e6:fc:c2:2c:96<br> option hwmode 11ng<br> option htmode HT20<br>
list ht_capab SHORT-GI-20<br> list ht_capab SHORT-GI-40<br> list ht_capab TX-STBC<br> list ht_capab RX-STBC1<br> list ht_capab DSSS_CCK-40<br> option 'txpower' '27'<br> <br>
# REMOVE THIS LINE TO ENABLE WIFI:<br><br>config wifi-iface<br> option device radio0<br> option network wlan<br> option mode adhoc<br> option ssid ninux<br> option encryption none <br><br>config 'wifi-iface' <br>
option 'device' 'radio0' <br> option 'network' 'ap_free' <br> option 'mode' 'ap' <br> option 'ssid' 'OpenWrt' <br> option 'encryption' 'none' <br>
<br>root@OpenWrt:~# cat /etc/config/dhcp <br>config dnsmasq<br> option domainneeded 1<br> option boguspriv 1<br> option filterwin2k 0 # enable for dial on demand<br> option localise_queries 1<br> option rebind_protection 1 # disable if upstream must serve RFC1918 addresses<br>
option rebind_localhost 1 # enable for RBL checking and similar services<br> #list rebind_domain example.lan # whitelist RFC1918 responses for domains<br> option local '/lan/'<br> option domain 'lan'<br>
option expandhosts 1<br> option nonegcache 0<br> option authoritative 1<br> option readethers 1<br> option leasefile '/tmp/dhcp.leases'<br> option resolvfile '/tmp/resolv.conf.auto'<br>
#list server '/mycompany.local/<a href="http://1.2.3.4">1.2.3.4</a>'<br> #option nonwildcard 1<br> #list interface br-lan<br> #list notinterface lo<br> #list bogusnxdomain '64.94.110.11'<br>
<br>config dhcp lan<br> option interface lan<br> option start 100<br> option limit 150<br> option leasetime 12h<br><br>config dhcp wan<br> option interface wan<br> option ignore 1<br><br>
#riga aggiunta da gigi<br>config 'dhcp' 'ap_free' <br> option 'interface' 'ap_free' <br> option 'start' '100' <br> option 'limit' '150' <br> option 'leasetime' '12h' <br>
<br>root@OpenWrt:~# wifi<br>Configuration file: /var/run/hostapd-phy0.conf<br>Using interface wlan0 with hwaddr 54:e6:fc:c2:2c:96 and ssid 'OpenWrt'<br>root@OpenWrt:~# ifup wifi<br>interface not found.<br>/sbin/uci: Invalid argument<br>
/sbin/uci: Invalid argument<br>Interface type not supported.<br>root@OpenWrt:~# iwconfig<br>lo no wireless extensions.<br><br>eth0 no wireless extensions.<br><br>eth1 no wireless extensions.<br><br>br-lan no wireless extensions.<br>
<br>eth0.1 no wireless extensions.<br><br>br-wan no wireless extensions.<br><br>br-ap_free no wireless extensions.<br><br>wlan0 IEEE 802.11bgn Mode:Master Frequency:2.437 GHz Tx-Power=18 dBm <br> RTS thr:off Fragment thr:off<br>
Power Management:on<br> <br>wlan0-1 IEEE 802.11bgn ESSID:"ninux" <br> Mode:Ad-Hoc Frequency:2.437 GHz Cell: 22:9C:19:E9:80:22 <br> Tx-Power=18 dBm <br> RTS thr:off Fragment thr:off<br>
Encryption key:off<br> Power Management:on<br> <br>mon.wlan0 IEEE 802.11bgn Mode:Monitor Frequency:2.437 GHz Tx-Power=18 dBm <br> RTS thr:off Fragment thr:off<br> Power Management:on<br>
<br>root@OpenWrt:~# <br>-----------------------------------------------<br><br><br>Vi giuro che con il cellulare rilevo la rete openwrt mi collego e mi associa un indirizzo, poi sparisce.<br><br><br>Inoltre allego i link su cui mi sono rifatto per arrivare a fare quello che ho fatto :<br>
<br><a href="https://dev.openwrt.org/ticket/10528">https://dev.openwrt.org/ticket/10528</a><br><a href="http://wiki.openwrt.org/doc/recipes/routedap">http://wiki.openwrt.org/doc/recipes/routedap</a><br><a href="http://open-wrt.ru/forum/viewtopic.php?id=12552">http://open-wrt.ru/forum/viewtopic.php?id=12552</a><br>
<a href="https://forum.openwrt.org/viewtopic.php?id=28731">https://forum.openwrt.org/viewtopic.php?id=28731</a><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br clear="all"><br>-- <br>__Gigi__<br> <br>