[Ninux-Wireless] aiutino script autoconfiguranti openwrt

Alessio Caiazza nolith a abisso.org
Mar 11 Set 2012 10:57:11 CEST


2012/9/10 Alessandro (aka ArkaNet) <arkantiko a gmail.com>:
> Ciao ti rispondo in linea
>
> Il giorno 10 settembre 2012 22:03, Alessio Caiazza <nolith a abisso.org> ha
> scritto:
>
>> ok allora ci riprovo.
>>
>> Intanto ho già trovato delle incongruenze con quello che avevo fatto io.
>>
>>
>> Il giorno lunedì 10 settembre 2012, alle ore 19:32, Alessandro (aka
>> ArkaNet) ha scritto:
>>
>> [...]
>>
>> conta che poi la fonera è notoriamente lenta quindi non aspettarti
>> risposte extralusso :D
>>
>> Se parte già son felice
>
>
> lol

Misson complete!
È partita, però....


ho dovuto correggere un po' di cose nei file di conf autogenerati per
farlo entrare in mesh con la fonera che avevo configurato a mano.

cominciamo:
# cat /etc/config/eigennet

config 'section' 'general'
        option 'debugLevel' '0'
        option 'bootmode' '2'

config 'section' 'network'
        option 'accept_clients' 'true'
        option 'ip6addr_mesh' '2001:1418:17d:beeb::1/128'
        option 'ip6addr_lan' '2001:1418:17d:beef::1/64'
        option 'radvd_prefix' '2001:1418:17d:beef::/64'
        option 'ip4addr_mesh' '172.16.63.2'
        option 'netmask_mesh' '255.255.0.0'
        option 'ip4addr_lan' '10.63.2.1'
        option 'netmask_lan' '255.255.255.0'
        list 'resolvers' '160.80.221.11 8.8.8.8'
        option 'hostName' 'spike'
        option 'wan_set' 'false'
        option 'ip4_wan' '0.0.0.0'
        option 'wan_mask' '0.0.0.0'

config 'section' 'olsrd'
        option 'hna6' '2001:1418:17d:beef::'
        option 'lan6prefix' '64'
        option 'hna4' '10.63.2.0'
        option 'gw_enable' 'false'

config 'section' 'snmp'
        option 'Enable' 'true'
        option 'Contact' 'nolith a abisso.org'
        option 'Location' 'roaming spike'

config 'section' 'wireless'
        option 'supernode' 'false'
        option 'wifi_clients' 'true'
        option 'wifi_mesh' 'true'
        option 'countrycode' 'US'
        option 'wifi_channel' '1'
        option 'meshSSID' 'mesh.ninux.org'
        option 'meshBSSID' '02:aa:bb:cc:dd:00'
        option 'meshMcastRate' '6000'
        option 'apSSID' 'ap.ninux.org'
        option 'apKEY' 'none'
        option 'apMaxClients' '25'
        option 'tx_power' '10'

config 'section' 'hotspot'
        option 'hs_enable' '1'
        option 'hsMaxClients' '50'
        option 'hsSSID' 'www.ninux.org'
        option 'ip4addr_hs' '192.168.10.1'
        option 'netmask_hs' '255.255.255.0'

config 'section' 'gw4server'
        option 'enabled' 'false'
        option 'strictCheck' 'false'
        option 'checkInterval' '10s'
        option 'bandwidth' '2000/512'
        list 'checkHosts' '8.8.8.8'
        list 'checkHosts' '8.8.4.4'

config 'section' 'pointing'
        option 'enabled' 'true'

config 'section' 'bwtestclient'
        option 'enabled' 'true'

config 'section' 'bwtestserver'
        option 'enabled' 'true'

config 'section' 'sshserver'
        option 'enabled' 'true'
        option 'passwdAuth' 'true'

config 'section' 'httpinfo'
        option 'enabled' 'true'

quindi /etc/init.d/eigenet start

dopo i 2 restart la situazione è:

# ifconfig
ath0      Link encap:Ethernet  HWaddr 0A:18:84:12:0E:5D
          inet addr:172.16.63.2  Bcast:172.16.255.255  Mask:255.255.0.0
          inet6 addr: 2001:1418:17d:beeb::1/128 Scope:Global
          inet6 addr: fe80::818:84ff:fe12:e5d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:1074 (1.0 KiB)

ath0-1    Link encap:Ethernet  HWaddr 00:18:84:12:0E:5D
          inet6 addr: fe80::218:84ff:fe12:e5d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:749 errors:0 dropped:749 overruns:0 frame:0
          TX packets:504 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:21450 (20.9 KiB)  TX bytes:86440 (84.4 KiB)

ath0-2    Link encap:Ethernet  HWaddr 06:18:84:12:0E:5D
          inet addr:192.168.10.1  Bcast:192.168.10.255  Mask:255.255.255.0
          inet6 addr: fe80::418:84ff:fe12:e5d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:880 (880.0 B)

br-lan    Link encap:Ethernet  HWaddr 00:18:84:12:0E:5C
          inet addr:10.63.2.1  Bcast:10.63.2.255  Mask:255.255.255.0
          inet6 addr: 2001:1418:17d:beef::1/64 Scope:Global
          inet6 addr: fe80::218:84ff:fe12:e5c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:33028 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32266 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2663665 (2.5 MiB)  TX bytes:3040777 (2.8 MiB)

eth0      Link encap:Ethernet  HWaddr 00:18:84:12:0E:5C
          inet6 addr: fe80::218:84ff:fe12:e5c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:32286 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32053 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:3096746 (2.9 MiB)  TX bytes:3024734 (2.8 MiB)
          Interrupt:4 Base address:0x1000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wifi0     Link encap:UNSPEC  HWaddr
00-18-84-12-0E-5D-00-00-00-00-00-00-00-00-00-00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:113906 errors:0 dropped:0 overruns:0 frame:25906
          TX packets:611 errors:69 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:195
          RX bytes:18697803 (17.8 MiB)  TX bytes:109872 (107.2 KiB)
          Interrupt:3 Memory:b0000000-b000ffff


# brctl show
bridge name     bridge id               STP enabled     interfaces
br-lan          8000.001884120e5c       no              eth0
                                                        ath0-1

# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

br-lan    no wireless extensions.

wifi0     no wireless extensions.

ath0-1    IEEE 802.11g  ESSID:"ap.ninux.org"
          Mode:Master  Frequency:2.412 GHz  Access Point: 00:18:84:12:0E:5D
          Bit Rate:0 kb/s   Tx-Power=10 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
          Rx invalid nwid:50  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

ath0-2    IEEE 802.11g  ESSID:"www.ninux.org"
          Mode:Master  Frequency:2.412 GHz  Access Point: 06:18:84:12:0E:5D
          Bit Rate:0 kb/s   Tx-Power=10 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
          Rx invalid nwid:63  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

ath0      IEEE 802.11g  ESSID:"mesh.ninux.org"
          Mode:Ad-Hoc  Frequency:2.412 GHz  Cell: 02:AA:BB:CC:DD:00
          Bit Rate:0 kb/s   Tx-Power=10 dBm
          RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/70  Signal level=-96 dBm  Noise level=-96 dBm
          Rx invalid nwid:64  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

olrsd4 non parte per la configurazione sbagliata, in
/etc/config/olrsd4 e anche nella versione ipv6
i campi hna{4,6} sono vuoti
la sezione interface è fatta così (senza nome dell'interfaccia)
Interface "" {
 Mode "mesh"
}


oltre al problema di olrs non ho capito perché viene specificato il
BSSID della mesh, commentandolo in /etc/config/wireless sono riuscito
a far dialogare le due fonera.

Altra domanda: come faccio a rigenerare i file di configurazione con
eigennet senza usare firstboot? io vorrei che rigenerasse i file di
configurazione senza cambiare nulla nel sistema.

Per ora mi fermo qui, un passo alla volta.

Grazie,
nolith
-- 
Alessio "nolith" Caiazza
il sapere umano appartiene al mondo.
GPG 440C5437



Maggiori informazioni sulla lista Wireless