[Ninux-Calabria] 20111223 Multissid:AP+Mesh
Gigismi
gigismir a gmail.com
Ven 23 Dic 2011 11:44:33 CET
2011/12/23 Gigismi <gigismir a gmail.com>
> Calabria 23 Dicembre 2011
>
>
> Ciao a tutti,
> 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' 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!
>
>
> Vi posto un pò di output per capirmi meglio:
>
> root a home:/home/home# ifconfig eth1 10.22.2.2
> root a home:/home/home# ping 10.22.2.1
> PING 10.22.2.1 (10.22.2.1) 56(84) bytes of data.
> 64 bytes from 10.22.2.1: icmp_req=1 ttl=64 time=0.327 ms
> 64 bytes from 10.22.2.1: icmp_req=2 ttl=64 time=0.282 ms
> ^C
> --- 10.22.2.1 ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 999ms
> rtt min/avg/max/mdev = 0.282/0.304/0.327/0.028 ms
> root a home:/home/home# ssh root a 10.22.2.1
> adroot a 10.22.2.1's password:
> Permission denied, please try again.
> root a 10.22.2.1's password:
>
>
> BusyBox v1.19.3 (2011-12-19 15:01:26 MST) built-in shell (ash)
> Enter 'help' for a list of built-in commands.
>
> _______ ________ __
> | |.-----.-----.-----.| | | |.----.| |_
> | - || _ | -__| || | | || _|| _|
> |_______|| __|_____|__|__||________||__| |____|
> |__| W I R E L E S S F R E E D O M
> ATTITUDE ADJUSTMENT (bleeding edge, r29570) ----------
> * 1/4 oz Vodka Pour all ingredients into mixing
> * 1/4 oz Gin tin with ice, strain into glass.
> * 1/4 oz Amaretto
> * 1/4 oz Triple sec
> * 1/4 oz Peach schnapps
> * 1/4 oz Sour mix
> * 1 splash Cranberry juice
> -----------------------------------------------------
> root a OpenWrt:~# route -n
>
La tablella indica che tutto funziona correttamente
> Kernel IP routing table
> Destination Gateway Genmask Flags Metric Ref Use
> Iface
> 10.22.1.0 172.17.22.1 255.255.255.0 UG 2 0 0
> wlan0-1
> 10.22.2.0 0.0.0.0 255.255.255.0 U 0 0 0
> br-lan
> 172.17.0.0 0.0.0.0 255.255.0.0 U 0 0 0
> wlan0-1
> 172.17.22.1 172.17.22.1 255.255.255.255 UGH 2 0 0
> wlan0-1
> 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0
> br-ap_free
> root a OpenWrt:~# iwconfig
> lo no wireless extensions.
>
> eth0 no wireless extensions.
>
> eth1 no wireless extensions.
>
> br-lan no wireless extensions.
>
> eth0.1 no wireless extensions.
>
> br-wan no wireless extensions.
>
> wlan0 IEEE 802.11bgn Mode:Master Frequency:2.437 GHz Tx-Power=18
> dBm
> RTS thr:off Fragment thr:off
> Power Management:
>
qua la cosa strana, a volte è acceso ed a volte no. E' anche vero che
quando dò il comando ifup wifi mi dice qualcosa (vedi dopo)
>
> wlan0-1 IEEE 802.11bgn ESSID:"ninux"
> Mode:Ad-Hoc Frequency:2.437 GHz Cell: 22:9C:19:E9:80:22
> Tx-Power=18 dBm
> RTS thr:off Fragment thr:off
> Encryption key:off
> Power Management:on
>
> br-ap_free no wireless extensions.
>
> mon.wlan0 IEEE 802.11bgn Mode:Monitor Frequency:2.437 GHz Tx-Power=18
> dBm
> RTS thr:off Fragment thr:off
> Power Management:on
>
> root a OpenWrt:~#
>
Ora vi posto i file network, wireless e dhcp
> 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'
> option 'type' 'bridge'
> option 'proto' 'static'
> option 'ipaddr' '10.22.2.1'
> option 'netmask' '255.255.255.0'
>
> config 'interface' 'wan'
> option 'ifname' 'eth1'
> option 'proto' 'dhcp'
> option 'type' 'bridge'
>
> config 'switch'
> option 'name' 'eth0'
> option 'reset' '1'
> option 'enable_vlan' '1'
>
> config 'switch_vlan'
> option 'device' 'eth0'
> option 'vlan' '1'
> option 'ports' '0 1 2 3 4'
>
> config 'interface' 'wlan'
> option 'proto' 'static'
> option 'ipaddr' '172.17.22.2'
> option 'netmask' '255.255.0.0'
>
> config 'interface' 'wwan'
> option 'proto' 'dhcp'
>
>
> #roba inserita da gigismi
> config interface ap_free
> option type 'bridge'
> option ifname 'eth0.1'
> option proto 'static'
> option ipaddr '192.168.2.1'
> option netmask '255.255.255.0'
>
> root a OpenWrt:~# cat /etc/config/wireless
> config wifi-device radio0
> option type mac80211
> option channel 6
> option macaddr 54:e6:fc:c2:2c:96
> option hwmode 11ng
> option htmode HT20
> list ht_capab SHORT-GI-20
> list ht_capab SHORT-GI-40
> list ht_capab TX-STBC
> list ht_capab RX-STBC1
> list ht_capab DSSS_CCK-40
> option 'txpower' '27'
>
> # REMOVE THIS LINE TO ENABLE WIFI:
>
> config wifi-iface
> option device radio0
> option network wlan
> option mode adhoc
> option ssid ninux
> option encryption none
>
> config 'wifi-iface'
> option 'device' 'radio0'
> option 'network' 'ap_free'
> option 'mode' 'ap'
> option 'ssid' 'OpenWrt'
> option 'encryption' 'none'
>
> root a OpenWrt:~# cat /etc/config/dhcp
> config dnsmasq
> option domainneeded 1
> option boguspriv 1
> option filterwin2k 0 # enable for dial on demand
> option localise_queries 1
> option rebind_protection 1 # disable if upstream must serve RFC1918
> addresses
> option rebind_localhost 1 # enable for RBL checking and similar
> services
> #list rebind_domain example.lan # whitelist RFC1918 responses for
> domains
> option local '/lan/'
> option domain 'lan'
> option expandhosts 1
> option nonegcache 0
> option authoritative 1
> option readethers 1
> option leasefile '/tmp/dhcp.leases'
> option resolvfile '/tmp/resolv.conf.auto'
> #list server '/mycompany.local/1.2.3.4'
> #option nonwildcard 1
> #list interface br-lan
> #list notinterface lo
> #list bogusnxdomain '64.94.110.11'
>
> config dhcp lan
> option interface lan
> option start 100
> option limit 150
> option leasetime 12h
>
> config dhcp wan
> option interface wan
> option ignore 1
>
> #riga aggiunta da gigi
> config 'dhcp' 'ap_free'
> option 'interface' 'ap_free'
> option 'start' '100'
> option 'limit' '150'
> option 'leasetime' '12h'
>
>
questi messaggi non sono stato in grado di comprenderli.
> root a OpenWrt:~# wifi
> Configuration file: /var/run/hostapd-phy0.conf
> Using interface wlan0 with hwaddr 54:e6:fc:c2:2c:96 and ssid 'OpenWrt'
> root a OpenWrt:~# ifup wifi
> interface not found.
> /sbin/uci: Invalid argument
> /sbin/uci: Invalid argument
> Interface type not supported.
>
ho ridato il comando nella speranza di mostrarvi che l' altra rete fosse
accesa :-)
> root a OpenWrt:~# iwconfig
> lo no wireless extensions.
>
> eth0 no wireless extensions.
>
> eth1 no wireless extensions.
>
> br-lan no wireless extensions.
>
> eth0.1 no wireless extensions.
>
> br-wan no wireless extensions.
>
> br-ap_free no wireless extensions.
>
> wlan0 IEEE 802.11bgn Mode:Master Frequency:2.437 GHz Tx-Power=18
> dBm
> RTS thr:off Fragment thr:off
> Power Management:on
>
> wlan0-1 IEEE 802.11bgn ESSID:"ninux"
> Mode:Ad-Hoc Frequency:2.437 GHz Cell: 22:9C:19:E9:80:22
> Tx-Power=18 dBm
> RTS thr:off Fragment thr:off
> Encryption key:off
> Power Management:on
>
> mon.wlan0 IEEE 802.11bgn Mode:Monitor Frequency:2.437 GHz Tx-Power=18
> dBm
> RTS thr:off Fragment thr:off
> Power Management:on
>
> root a OpenWrt:~#
> -----------------------------------------------
>
>
> Vi giuro che con il cellulare rilevo la rete openwrt mi collego e mi
> associa un indirizzo, poi sparisce.
>
>
> Inoltre allego i link su cui mi sono rifatto per arrivare a fare quello
> che ho fatto :
>
> https://dev.openwrt.org/ticket/10528
> http://wiki.openwrt.org/doc/recipes/routedap
> http://open-wrt.ru/forum/viewtopic.php?id=12552
> https://forum.openwrt.org/viewtopic.php?id=28731
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> __Gigi__
>
>
--
__Gigi__
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://ml.ninux.org/pipermail/calabria/attachments/20111223/0a78ac64/attachment-0001.html>
Maggiori informazioni sulla lista
Calabria