Archive for the ‘OpenWrt’ Category
January 23, 2012 Leave a comment
If you want your router to assign a static IP on a specific OpenWrt Machice you just have to run something like the following:
uci set network.lan.proto=static uci set network.lan.ipaddr=192.168.1.130 uci set network.lan.netmask=255.255.255.0 uci set network.lan.gateway=192.168.1.1 uci set network.lan.dns=220.127.116.11 /etc/init.d/network restart
Also you can edit accordingly the /etc/config/network file.