Instalación de Altermesh en TP-Link TL-MR3220

De Guifi.net - Wiki Hispano

Icono de esbozo

Este artículo necesita desarrollarse más. Ampliándolo ayudarás a mejorar Guifi.net.
Tal vez puedas ayudarte con los wikis catalán, o inglés si tienen una página equivalente.



Descargamos la versión desde el trunk de OpenWRT

opkg update
opkg install kmod-batman-adv kmod-ipv6 kmod-ath9k-htc

Tenemos una versión del 31349:

(comprobar número de la última versión actual)

Nos conectamos al switch del TP-Link y:

http://192.168.1.1/

admin
admin

Vamos a System Tools | Firmware Upgrade

La web tiene un javascript que comprueba el nombre archivo para que flashees un archivo oficial de TP-Link. Le ponemos pues el nombre de uno de ellos: mr3220v1_en_3_12_8_up(110418).bin Lo seleccionamos en el campo de formulario y le damos a "Upgrade".

Vemos una barra de estado, al acabar perdemos la interfaz web. Entramos con telnet:

telnet 192.168.1.1

Si queremos le habilitamos una contraseña con

passwd

Eso activará SSH y deshabilitará telnet.

Le pegamos el unsoloclick para deltalibre.org.ar

uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci delete wireless.@wifi-iface[]
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null
uci add wireless wifi-iface >/dev/null

uci import -m batman-adv </dev/null

uci set dhcp.lan.ignore=1
uci set dhcp.@dnsmasq[0].local=/delta.libre/
uci set dhcp.@dnsmasq[0].domain=delta.libre

uci set system.@system[0].hostname=mr-c6
uci set system.@system[0].timezone=ART3
uci set dropbear.@dropbear[0]=dropbear
uci set firewall.@defaults[0]=defaults

uci set batman-adv.bat0=mesh
uci set batman-adv.bat0.interfaces="mesh0 mesh1 mesh2"
uci set batman-adv.bat0.gw_mode=client

uci set network.lan.proto=dhcp
uci set network.lan.ipaddr=
uci set network.lan.netmask=
uci set network.lan.dns=
uci set network.lan.gateway=
uci set network.lan.ifname="eth0 wlan0 wlan0-1 bat0"
uci set network.lan.macaddr=
uci set network.bat0=interface
uci set network.bat0.ifname=bat0
uci set network.bat0.proto=none
uci set network.bat0.mtu=1500
uci set network.mesh0=interface
uci set network.mesh0.ifname=wlan0-2
uci set network.mesh0.proto=none
uci set network.mesh0.mtu=1528
uci set network.mesh1=interface
uci set network.mesh1.ifname=wlan1
uci set network.mesh1.proto=none
uci set network.mesh1.mtu=1528
uci set network.mesh2=interface
uci set network.mesh2.ifname=wlan2
uci set network.mesh2.proto=none
uci set network.mesh2.mtu=1528

uci set wireless.radio0=wifi-device
uci set wireless.radio0.channel=1
uci set wireless.radio0.disabled=0
uci set wireless.radio0.phy=phy0
uci set wireless.radio0.macaddr=

uci set wireless.radio1=wifi-device
uci set wireless.radio1.type=mac80211
uci set wireless.radio1.hwmode=11ng
uci set wireless.radio1.htmode=HT20
uci set wireless.radio1.beacon_int=58594
uci set wireless.radio1.channel=11
uci set wireless.radio1.disabled=0
uci set wireless.radio1.phy=phy1
uci set wireless.radio1.macaddr=

uci set wireless.radio2=wifi-device
uci set wireless.radio2.type=mac80211
uci set wireless.radio2.hwmode=11ng
uci set wireless.radio2.htmode=HT20
uci set wireless.radio2.beacon_int=58594
uci set wireless.radio2.channel=6
uci set wireless.radio2.disabled=0
uci set wireless.radio2.phy=phy2
uci set wireless.radio2.macaddr=

uci set wireless.@wifi-iface[0].device=radio0
uci set wireless.@wifi-iface[0].encryption=none
uci set wireless.@wifi-iface[0].network=lan
uci set wireless.@wifi-iface[0].mode=ap
uci set wireless.@wifi-iface[0].ssid=deltalibre.org.ar

uci set wireless.@wifi-iface[1].device=radio0
uci set wireless.@wifi-iface[1].encryption=psk2
uci set wireless.@wifi-iface[1].key="24PGJb0eYPdfE"
uci set wireless.@wifi-iface[1].mode=ap
uci set wireless.@wifi-iface[1].macaddr=FA:D1:11:3B:6D:C7
uci set wireless.@wifi-iface[1].ssid=mr-c6.dl

uci set wireless.@wifi-iface[2].device=radio0 
uci set wireless.@wifi-iface[2].encryption=none
uci set wireless.@wifi-iface[2].network=mesh0
uci set wireless.@wifi-iface[2].mode=adhoc 
uci set wireless.@wifi-iface[2].macaddr=FA:D1:11:3B:6D:C8
uci set wireless.@wifi-iface[2].bssid=CA:FE:CA:FE:CA:FE
uci set wireless.@wifi-iface[2].ssid=mesh.dl
uci set wireless.@wifi-iface[2].mcast_rate=11000 

uci set wireless.@wifi-iface[3].device=radio1 
uci set wireless.@wifi-iface[3].encryption=none
uci set wireless.@wifi-iface[3].network=mesh1
uci set wireless.@wifi-iface[3].mode=sta
uci set wireless.@wifi-iface[3].macaddr=FA:D1:11:3B:6D:C9
uci set wireless.@wifi-iface[3].bssid=
uci set wireless.@wifi-iface[3].ssid=mr-c6.mesh1.dl
uci set wireless.@wifi-iface[3].mcast_rate=11000 

uci set wireless.@wifi-iface[4].device=radio2 
uci set wireless.@wifi-iface[4].encryption=none
uci set wireless.@wifi-iface[4].network=mesh2
uci set wireless.@wifi-iface[4].mode=ap
uci set wireless.@wifi-iface[4].macaddr=FA:D1:11:3B:6D:CA
uci set wireless.@wifi-iface[4].bssid= 
uci set wireless.@wifi-iface[4].ssid=mr-c6.mesh2.dl 
uci set wireless.@wifi-iface[4].mcast_rate=11000 

uci commit

Otros unsoloclick para otras comunidades consistirían en cambiar, básicamente:

uci set wireless.@wifi-iface[0].ssid=nombredecomunidadlibre

y

uci set wireless.@wifi-iface[2].bssid=MACDELACOMUNIDAD"

Reiniciamos la máquina y ya la tenemos en la nube mesh de deltalibre.org.ar

Nota: Este manual no incluye la instalación del router con salida a Internet u a otras redes, como guifi.net

Ver también

Herramientas personales