Archive

Archive for the ‘OpenWrt’ Category

Static IP on OpenWrt

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=8.8.8.8

/etc/init.d/network restart

Also you can edit accordingly the /etc/config/network file.

Advertisements
Categories: OpenWrt, Tutorials