{"id":45,"date":"2010-10-07T11:06:19","date_gmt":"2010-10-07T09:06:19","guid":{"rendered":"http:\/\/blog.sfsoft.it\/?p=45"},"modified":"2010-10-07T11:07:39","modified_gmt":"2010-10-07T09:07:39","slug":"set-a-static-ip-in-ubuntu-from-the-shell","status":"publish","type":"post","link":"https:\/\/www.sfsoft.it\/blog\/2010\/10\/07\/set-a-static-ip-in-ubuntu-from-the-shell\/","title":{"rendered":"Set a static IP in Ubuntu from the shell"},"content":{"rendered":"<p>Edit<\/p>\n<p>[plain]\/etc\/network\/interfaces[\/plain]<\/p>\n<p>and adjust it to your needs (in this example setup I will use the IP address  192.168.0.100):<\/p>\n<p>[plain]<\/p>\n<p># This file describes the network interfaces available on your system<\/p>\n<p># and how to activate them. For more information, see interfaces(5).<\/p>\n<p># The loopback network interface auto lo iface lo inet loopback<\/p>\n<p># This is a list of hotpluggable network interfaces.<\/p>\n<p># They will be activated automatically by the hotplug subsystem. mapping hotplug         script grep         map eth0<\/p>\n<p># The primary network interface<\/p>\n<p>auto eth0<br \/>\niface eth0 inet static<br \/>\naddress 192.168.0.100<br \/>\nnetmask 255.255.255.0<br \/>\nnetwork 192.168.0.0<br \/>\nbroadcast 192.168.0.255<br \/>\ngateway 192.168.0.1<br \/>\n[\/plain]<\/p>\n<p><a href=\"http:\/\/codesnippets.joyent.com\/posts\/show\/319\" target=\"_blank\">http:\/\/codesnippets.joyent.com\/posts\/show\/319<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit [plain]\/etc\/network\/interfaces[\/plain] and adjust it to your needs (in this example setup I will use the IP address 192.168.0.100): [plain] # 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 # This [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[15,3],"tags":[16,8,20,5],"_links":{"self":[{"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/45"}],"collection":[{"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/comments?post=45"}],"version-history":[{"count":5,"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions"}],"predecessor-version":[{"id":50,"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/posts\/45\/revisions\/50"}],"wp:attachment":[{"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/media?parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/categories?post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sfsoft.it\/blog\/wp-json\/wp\/v2\/tags?post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}