Paramétrer OpenWRT sur PI3 (ou autre)

De Wiki de Mémoire Vive
Aller à la navigation Aller à la recherche

Commande à taper après démarrage pour modifier l'adresse IP du routeur

uci set network.lan.ipaddr='192.168.1.xx' # choisir xx
uci set network.lan.netmask='255.255.255.0'
uci set network.lan.gateway='192.168.1.1'  # Facultatif, à définir si besoin
uci set network.lan.dns='8.8.8.8 1.1.1.1'  # Facultatif, pour configurer les DNS
uci commit network

/etc/init.d/network restart

A noter : si on s'en tient à ces modifications, c'est le DHCP de la box qui est utilisé. Si on désactive ce dernier la connexion internet ne fonctionne pas.