Last active
August 7, 2017 00:16
-
-
Save braian87b/f9f95dba064a90d6b2d9673e051c1025 to your computer and use it in GitHub Desktop.
Como configurar Cliente Enrutado para OpenWRT / LEDE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ver imagen: https://forum.lede-project.org/t/help-to-create-2-wifi-networks-in-the-same-router/3320/6 | |
English instructions: https://gist.github.com/braian87b/2333a32577a221c8d62b5ce8b54a4d95 | |
Si tu Router es el de la izquierda del grafico: | |
# Borras interfaces wifi que tengas: | |
uci del wireless.@wifi-iface[-1] | |
uci del wireless.@wifi-iface[-1] | |
uci del wireless.@wifi-iface[-1] | |
# Importante, para que no interfiera el puerto WAN fisico (lo dejarás de usar, si quieres usarlo en combinación es mucho mas complejo requiere que uses MWAN3) | |
uci del network.wan.ifname | |
# Primer RED Cliente se conecta a Router Principal (derecha del grafico) | |
uci add wireless wifi-iface | |
uci set wireless.@wifi-iface[0].network='wan' | |
uci set wireless.@wifi-iface[0].device='radio0' | |
uci set wireless.@wifi-iface[0].mode='sta' | |
# Utiliza 'psk' si es WPA, o 'psk2' si es WPA2 | |
uci set wireless.@wifi-iface[0].encryption='psk2' | |
uci set wireless.@wifi-iface[0].ssid='NOMBRE de la RED EXACTO' | |
uci set wireless.@wifi-iface[0].key='contraseña exacta de la red' | |
uci set wireless.@wifi-iface[0].wds='1' | |
# Segunda RED para que tengas red tu | |
uci add wireless wifi-iface | |
uci set wireless.@wifi-iface[-1].network='lan' | |
uci set wireless.@wifi-iface[-1].device='radio0' | |
uci set wireless.@wifi-iface[-1].mode='ap' | |
uci set wireless.@wifi-iface[-1].encryption='psk-mixed+tkip+aes' | |
uci set wireless.@wifi-iface[-1].ssid='NOMBRE de la red para TI' | |
uci set wireless.@wifi-iface[-1].key='contraseña tuya' | |
# Otra red (opcional) | |
uci add wireless wifi-iface | |
uci set wireless.@wifi-iface[-1].network='lan' | |
uci set wireless.@wifi-iface[-1].device='radio0' | |
uci set wireless.@wifi-iface[-1].mode='ap' | |
uci set wireless.@wifi-iface[-1].encryption='psk2+aes' | |
uci set wireless.@wifi-iface[-1].ssid='Otra RED mas segura WPA2 AES' | |
uci set wireless.@wifi-iface[-1].key='otra contraseña tuya' | |
# Tu red de la izquierda segun el grafico será 192.168.2.0/24 (en color rojo) | |
uci set network.lan.ipaddr='192.168.2.1' | |
# Nombre del Router, para encontrarlo en la red (opcional) | |
uci set system.@system[0].hostname='TuRouter' | |
uci set network.lan.hostname="`uci get system.@system[0].hostname`" | |
# Habilitamos radio wifi, ampliamos de HT20 a HT40 (por las dudas que sea compatible) y ponemos canal en automático (ya que no sabemos en cual estará) | |
uci set wireless.radio0.htmode='HT40' | |
uci set wireless.radio0.channel='auto' | |
uci set wireless.radio0.disabled='0' | |
# guardas cambios y reinicias | |
uci commit | |
sync | |
reboot | |
# en caso de que algo salga mal, apretas el reset de atras durante 30 segundos al prenderlo y volveras a la configuración inicial |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment