<br><br><div class="gmail_quote">2011/12/23 Gigismi <span dir="ltr">&lt;<a href="mailto:gigismir@gmail.com">gigismir@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Calabria 23 Dicembre 2011<br><br><br>Ciao a tutti,<br>Ancora una volta vi scrivo, per aggiornarvi sui miei test. Sto tentando di fare il multi ssid con le antenne in una modalita che io definirei AP + mesh. Ci sono riuscito se consideriamo che una lavora in modalità ad hoc e l&#39; altra come una normale rete aperta, ma putroppo la rete aperta che fà da ap, è molto instabile. In pratica tutte e due le reti funzionano ma la rete OpenWrt, si accende e spegne. Magari sono stanco, non lo sò  :-) Ceto è che con tanta teoria potrei riuscirci!<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" target="_blank">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" target="_blank">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" target="_blank">root@10.22.2.1</a><br><a href="mailto:adroot@10.22.2.1" target="_blank">adroot@10.22.2.1</a>&#39;s password: <br>Permission denied, please try again.<br>
<a href="mailto:root@10.22.2.1" target="_blank">root@10.22.2.1</a>&#39;s password: <br>
<br><br>BusyBox v1.19.3 (2011-12-19 15:01:26 MST) built-in shell (ash)<br>Enter &#39;help&#39; 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></blockquote><div>La tablella indica che tutto funziona correttamente <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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:<br></blockquote><div>
qua la cosa strana, a volte è acceso ed a volte no. E&#39; anche vero che quando dò il comando ifup wifi mi dice qualcosa (vedi dopo) <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
          <br>wlan0-1   IEEE 802.11bgn  ESSID:&quot;ninux&quot;  <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>
</blockquote><div>Ora vi posto i file network, wireless e dhcp <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
root@OpenWrt:~# cat /etc/config/network<br><br>config &#39;interface&#39; &#39;loopback&#39;<br>    option &#39;ifname&#39; &#39;lo&#39;<br>    option &#39;proto&#39; &#39;static&#39;<br>    option &#39;ipaddr&#39; &#39;127.0.0.1&#39;<br>

    option &#39;netmask&#39; &#39;255.0.0.0&#39;<br><br>config &#39;interface&#39; &#39;lan&#39;<br>    option &#39;ifname&#39; &#39;eth0&#39;<br>    option &#39;type&#39; &#39;bridge&#39;<br>    option &#39;proto&#39; &#39;static&#39;<br>

    option &#39;ipaddr&#39; &#39;10.22.2.1&#39;<br>    option &#39;netmask&#39; &#39;255.255.255.0&#39;<br><br>config &#39;interface&#39; &#39;wan&#39;<br>    option &#39;ifname&#39; &#39;eth1&#39;<br>    option &#39;proto&#39; &#39;dhcp&#39;<br>

    option &#39;type&#39; &#39;bridge&#39;<br><br>config &#39;switch&#39;<br>    option &#39;name&#39; &#39;eth0&#39;<br>    option &#39;reset&#39; &#39;1&#39;<br>    option &#39;enable_vlan&#39; &#39;1&#39;<br><br>config &#39;switch_vlan&#39;<br>

    option &#39;device&#39; &#39;eth0&#39;<br>    option &#39;vlan&#39; &#39;1&#39;<br>    option &#39;ports&#39; &#39;0 1 2 3 4&#39;<br><br>config &#39;interface&#39; &#39;wlan&#39;<br>    option &#39;proto&#39; &#39;static&#39;<br>

    option &#39;ipaddr&#39; &#39;172.17.22.2&#39;<br>    option &#39;netmask&#39; &#39;255.255.0.0&#39;<br><br>config &#39;interface&#39; &#39;wwan&#39;<br>    option &#39;proto&#39; &#39;dhcp&#39;<br><br><br>#roba inserita da gigismi<br>

config interface ap_free<br>    option type    &#39;bridge&#39;<br>    option ifname    &#39;eth0.1&#39;<br>    option proto    &#39;static&#39;<br>    option ipaddr    &#39;192.168.2.1&#39;<br>    option netmask    &#39;255.255.255.0&#39;<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 &#39;txpower&#39; &#39;27&#39;<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 &#39;wifi-iface&#39; <br>

    option &#39;device&#39; &#39;radio0&#39; <br>    option &#39;network&#39; &#39;ap_free&#39; <br>    option &#39;mode&#39; &#39;ap&#39; <br>    option &#39;ssid&#39; &#39;OpenWrt&#39; <br>    option &#39;encryption&#39; &#39;none&#39; <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    &#39;/lan/&#39;<br>    option domain    &#39;lan&#39;<br>

    option expandhosts    1<br>    option nonegcache    0<br>    option authoritative    1<br>    option readethers    1<br>    option leasefile    &#39;/tmp/dhcp.leases&#39;<br>    option resolvfile    &#39;/tmp/resolv.conf.auto&#39;<br>

    #list server        &#39;/mycompany.local/<a href="http://1.2.3.4" target="_blank">1.2.3.4</a>&#39;<br>    #option nonwildcard    1<br>    #list interface        br-lan<br>    #list notinterface    lo<br>    #list bogusnxdomain     &#39;64.94.110.11&#39;<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 &#39;dhcp&#39; &#39;ap_free&#39; <br>    option &#39;interface&#39; &#39;ap_free&#39; <br>    option &#39;start&#39; &#39;100&#39; <br>    option &#39;limit&#39; &#39;150&#39; <br>    option &#39;leasetime&#39; &#39;12h&#39; <br>

<br></blockquote><div><br>questi messaggi non sono stato in grado di comprenderli.  <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">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 &#39;OpenWrt&#39;<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></blockquote><div>ho ridato il comando nella speranza di mostrarvi che l&#39; altra rete fosse accesa :-) <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
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:&quot;ninux&quot;  <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" target="_blank">https://dev.openwrt.org/ticket/10528</a><br><a href="http://wiki.openwrt.org/doc/recipes/routedap" target="_blank">http://wiki.openwrt.org/doc/recipes/routedap</a><br>
<a href="http://open-wrt.ru/forum/viewtopic.php?id=12552" target="_blank">http://open-wrt.ru/forum/viewtopic.php?id=12552</a><br>
<a href="https://forum.openwrt.org/viewtopic.php?id=28731" target="_blank">https://forum.openwrt.org/viewtopic.php?id=28731</a><span class="HOEnZb"><font color="#888888"><br><br><br><br><br><br><br><br><br><br><br><br><br>
<br><br clear="all"><br>-- <br>__Gigi__<br> <br>
</font></span></blockquote></div><br><br clear="all"><br>-- <br>__Gigi__<br> <br>