« Paramétrer OpenWRT sur PI3 (ou autre) » : différence entre les versions

De Wiki de Mémoire Vive
Aller à la navigation Aller à la recherche
Page créée avec « Commande à taper après démarrage pour modifier l'adresse IP du routeur <pre> 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 »
 
Aucun résumé des modifications
 
(Une version intermédiaire par le même utilisateur non affichée)
Ligne 7 : Ligne 7 :
uci set network.lan.dns='8.8.8.8 1.1.1.1'  # Facultatif, pour configurer les DNS
uci set network.lan.dns='8.8.8.8 1.1.1.1'  # Facultatif, pour configurer les DNS
uci commit network
uci commit network
/etc/init.d/network restart
</pre>
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.

Dernière version du 25 février 2025 à 21:33

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.