{"id":183,"date":"2011-01-16T19:05:09","date_gmt":"2011-01-17T00:05:09","guid":{"rendered":"http:\/\/mtecheasy.wordpress.com\/?p=183"},"modified":"2011-01-16T19:05:09","modified_gmt":"2011-01-17T00:05:09","slug":"dhcp-to-static-ip-configuration-in-ubuntu-server","status":"publish","type":"post","link":"https:\/\/bourbonnaisservices.com\/blog\/2011\/01\/dhcp-to-static-ip-configuration-in-ubuntu-server\/","title":{"rendered":"DHCP to static IP configuration in Ubuntu Server"},"content":{"rendered":"<p>If your running a server, you should have a static IP, yes this could be accomplished with DHCP, but what happens when the DHCP server goes down? That&#8217;s why I like to setup static IPs, especially on my servers!<\/p>\n<p>Run the following command to open the interface config file:<br \/>\n<em># sudo vi \/etc\/network\/interfaces<\/em><\/p>\n<p>Replace this:<br \/>\n<em>iface eth0 inet dhcp<\/em><\/p>\n<p>With the following:<br \/>\n<em>iface eth0 inet static<\/em><br \/>\n<em> address 192.168.2.55<\/em><br \/>\n<em> netmask 255.255.255.0<\/em><br \/>\n<em> network 192.168.2.0<\/em><br \/>\n<em> broadcast 192.168.2.255<\/em><br \/>\n<em> gateway 192.168.2.1<\/em><\/p>\n<p><em>Then you have to restart your network adapter for the changes to take affect:<br \/>\n<\/em><em># sudo \/etc\/init.d\/networking restart<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If your running a server, you should have a static IP, yes this could be accomplished with DHCP, but what happens when the DHCP server goes down? That&#8217;s why I like to setup static IPs, especially on my servers! Run the following command to open the interface config file: # sudo vi \/etc\/network\/interfaces Replace this: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,15],"tags":[],"_links":{"self":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/posts\/183"}],"collection":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/comments?post=183"}],"version-history":[{"count":0,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/posts\/183\/revisions"}],"wp:attachment":[{"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/media?parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/categories?post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bourbonnaisservices.com\/blog\/wp-json\/wp\/v2\/tags?post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}