Home > OpenWrt, Tutorials > Static IP on OpenWrt

Static IP on OpenWrt

January 23, 2012 Leave a comment Go to comments

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
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s