Unsoloclic de Libre-mesh en sants-montjuic
De Guifi.net - Wiki Hispano
Revisión a fecha de 00:12 4 mayo 2014; G10h4ck (Discusión | contribuciones)
uci batch <<BATCH set lime.network=lime set lime.network.primary_interface=eth0 set lime.network.main_ipv4_address='10.1.104.\M6\/22' set lime.network.main_ipv6_address='2a00:1508:a01:6800::\M5\\\M6\/64' set lime.network.bmx6_over_batman=false set lime.wifi=lime set lime.wifi.ap_ssid=jardi-botanic-lliure.guifi.net add_list lime.network.resolvers=10.139.6.178 delete lime.eth5 delete lime.radio1 delete lime.radio12 commit BATCH cd /sys/devices/ for physPath in platform/ehci-platform/usb*/*/*/ieee80211/* do phyName="$(basename ${physPath})" phyIndex="$(echo ${phyName} | grep -o '[0-9]*')" uci batch <<BATCH delete lime.radio${phyIndex} delete wireless.radio${phyIndex} set lime.radio${phyIndex}=wifi add_list lime.radio${phyIndex}.modes=adhoc set lime.radio${phyIndex}.channel_2ghz=1 set lime.radio${phyIndex}.adhoc_mcast_rate=6000 set lime.radio${phyIndex}.adhoc_ssid="libre-mesh" set lime.radio${phyIndex}.adhoc_bssid="ca:fe:00:c0:ff:ee" set wireless.radio${phyIndex}=wifi-device set wireless.radio${phyIndex}.type=mac80211 set wireless.radio${phyIndex}.hwmode=11ng set wireless.radio${phyIndex}.path="$(echo ${physPath} | awk -F"ieee80211" '{print $1}')" add_list wireless.radio${phyIndex}.ht_capab="LDPC" add_list wireless.radio${phyIndex}.ht_capab="SHORT-GI-20" add_list wireless.radio${phyIndex}.ht_capab="SHORT-GI-40" add_list wireless.radio${phyIndex}.ht_capab="TX-STBC" add_list wireless.radio${phyIndex}.ht_capab="RX-STBC1" add_list wireless.radio${phyIndex}.ht_capab="DSSS_CCK-40" set wireless.radio${phyIndex}.htmode=HT20 set wireless.radio${phyIndex}.disabled=0 commit BATCH done lime-config uci batch <<BATCH2 del_list network.lan.ifname=eth1 delete network.wan delete network.wan6 commit BATCH2
Si tu nodo es un gateway executa esto despues cambiando oportunamente las variables
wanIF="eth1" # rocket eth0, routerstation eth0 wanIP="10.139.6.190" # rocket 190, routerstation 185 uci batch <<BATCH set network.wan=interface set network.wan.proto=static set network.wan.mtu=1500 set network.wan.ifname=${wanIF} set network.wan.ipaddr=${wanIP} set network.wan.netmask=255.255.255.240 set network.wan.gateway=10.139.6.178 del_list network.lan.ifname=${wanIF} set bmx6.togw4=tunIn set bmx6.togw4.tunIn=togw4 set bmx6.togw4.network=10.139.6.176/28 set bmx6.def4=tunIn set bmx6.def4.tunIn=def4 set bmx6.def4.network=0.0.0.0/0 commit BATCH
al siguiente reboot tu nodo estara' funcionando perfectamente