{"id":208,"date":"2017-11-01T16:13:57","date_gmt":"2017-11-01T16:13:57","guid":{"rendered":"https:\/\/langhard.net\/?p=208"},"modified":"2018-10-12T07:49:31","modified_gmt":"2018-10-12T07:49:31","slug":"change-ip-static-ubuntu","status":"publish","type":"post","link":"https:\/\/langhard.net\/?p=208","title":{"rendered":"Change ip to static Ubuntu"},"content":{"rendered":"<p>A small guide to how you change from DHCP to static.<\/p>\n<p>sudo nano \/etc\/network\/interfaces<\/p>\n<p># This file describes the network interfaces available on your system<br \/>\n# and how to activate them. For more information, see interfaces(5).<\/p>\n<p># The loopback network interface<br \/>\nauto lo<br \/>\niface lo inet loopback<\/p>\n<p># The primary network interface<br \/>\nauto eth0<br \/>\niface eth0 inet static<br \/>\naddress 192.168.0.X<br \/>\nnetmask 255.255.255.0<br \/>\nnetwork 192.168.0.0<br \/>\nbroadcast 192.168.0.255<br \/>\ngateway 192.168.0.X<br \/>\ndns-nameservers 192.168.0.X<\/p>\n<p>sudo \/etc\/init.d\/networking restart<br \/>\nAnd that will get you fixed up.<\/p>\n<p>Or Reboot the server<\/p>\n<p>Connect to the new ipnr<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A small guide to how you change from DHCP to static. sudo nano \/etc\/network\/interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback # The primary network interface auto eth0 iface [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":216,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[89],"tags":[85,69,87,73],"class_list":["post-208","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux-en","tag-ipnr-en","tag-linux-en","tag-static-en","tag-ubuntu-en"],"_links":{"self":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts\/208","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=208"}],"version-history":[{"count":0,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/posts\/208\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=\/wp\/v2\/media\/216"}],"wp:attachment":[{"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=208"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=208"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/langhard.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=208"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}