[Ninux-Calabria] [ninux-roma] 20111223 Multissid:AP+Mesh

Gigismi gigismir a gmail.com
Lun 11 Giu 2012 10:04:59 CEST


Grazie della risposta e scusa se ti rispondo in ritardo. Se possibile però
per adesso preferirei fare tutto io perchè poi ho bisogno di capire in modo
tale da poter intervenire in tutti i casi che mi si presenteranno.

Io sinceramente ho provato e riprovato in questo thread ed il mio router si
bloccava completamente se mettevo adhoc + AP, infatti è stato il periodo
che mi portavo in giro la porta seriale. Forse le cose sono cambiate di
recente ?

Qualcuno sapre


ps dove lo trovo eventualemnte il firmware ? E che firmware è? (openwrt)







In allegato sotto il testo di una mia mail del 23 dicembre 2011 in cui
mostro la configurazione e esprimo i miei problemi:




Ciao a tutti,
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 :-)


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
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: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

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:~#
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'

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.
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





Il giorno 06 giugno 2012 11:28, Gioacchino Mazzurco
<gmazzurco89 a gmail.com>ha scritto:

> si si puo' fare su un wrt 741nd  perche' usa driver ath9k che supportano
> questa cosa
>
> per le conf non c'e' bisogno di una session, basta che ci flashi il
> firmware pisano che fa tutto lui e poi puoi editargli pure le conf  di
> questo file
>
>
> https://gitorious.org/eigennet/packages/blobs/master/eigennet/files/etc/config/eigennet
>
> On 06/06/12 10:27, Gigismi wrote:
> >
> >
> > Il giorno 06 giugno 2012 09:26, Gioacchino Mazzurco
> > <gmazzurco89 a gmail.com <mailto:gmazzurco89 a gmail.com>> ha scritto:
> >
> >     Credo che quella documentazione li sia outdated...
> >
> >     qui a pisa usiamo costantemente al configurazione ad-hoc + ap su
> atheros
> >
> >
> > E che cazzoooo. Va bene meglio cosě allora. Senti quindi secondo te si
> > puň usare questo tipo di configurazione su un tplink wr 741 nd ??
> >
> > Eventualmente ci possiamo dare un appuntamento virtuale fare insieme una
> > configurazione di un router ?
> >
> > Voi a pisa usate batman, pensi che sia correlato o che si possa fare con
> > olsr ?
> >
> > grazie in anticipo XD
> > --
> > __Gigi__
> >
>



-- 
__Gigi__
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://ml.ninux.org/pipermail/calabria/attachments/20120611/93c570ba/attachment-0001.html>


Maggiori informazioni sulla lista Calabria