{"id":46,"date":"2016-04-24T01:35:35","date_gmt":"2016-04-24T06:35:35","guid":{"rendered":"https:\/\/servertricks.com\/?p=46"},"modified":"2016-04-24T19:24:31","modified_gmt":"2016-04-25T00:24:31","slug":"set-static-ip-ubuntu","status":"publish","type":"post","link":"https:\/\/servertricks.com\/index.php\/2016\/04\/24\/set-static-ip-ubuntu\/","title":{"rendered":"Set Static IP Ubuntu"},"content":{"rendered":"<p>Currently most versions of Ubuntu use the same method to set a static IP address. Simply edit the interfaces file.<\/p>\n<p><code>$ sudo nano \/etc\/network\/interfaces<\/code><\/p>\n<p>and modify the following to suit your needs <\/p>\n<pre>iface eth0 inet static\r\n      address 192.168.1.50\r\n      netmask 255.255.255.0\r\n      network 192.168.1.0\r\n      broadcast 192.168.1.255\r\n      gateway 192.168.1.1\r\n      dns-nameservers 8.8.8.8 8.8.4.4<\/pre>\n<p>Once completed, reboot the system. <\/p>\n<p><code>$ sudo reboot -n<\/code><\/p>\n<p>Now that the system has come back online verify the IP address is correct but running either of the following.<\/p>\n<p><code>$ ifconfig<\/code><\/p>\n<p>or<\/p>\n<p><code>$ ip addr<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Currently most versions of Ubuntu use the same method to set a static IP address. Simply edit the interfaces file. $ sudo nano \/etc\/network\/interfaces and modify the following to suit your needs iface eth0 inet static address 192.168.1.50 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255 gateway 192.168.1.1 dns-nameservers 8.8.8.8 8.8.4.4 Once completed, reboot the system. $ [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[11,10],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-ubuntu","tag-14-04","tag-16-04"],"_links":{"self":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":6,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":86,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/posts\/46\/revisions\/86"}],"wp:attachment":[{"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/servertricks.com\/index.php\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}