{"id":83,"date":"2015-06-16T14:39:17","date_gmt":"2015-06-16T19:39:17","guid":{"rendered":"http:\/\/sinjinsmith.net\/?p=83"},"modified":"2015-06-16T14:39:49","modified_gmt":"2015-06-16T19:39:49","slug":"setting-a-static-ip-address-in-metasploitable","status":"publish","type":"post","link":"https:\/\/sinjinsmith.net\/?p=83","title":{"rendered":"Setting a Static IP Address in Metasploitable"},"content":{"rendered":"<p>This should also work for command line IP address changes to Linux:<\/p>\n<p>edit the file \/etc\/network\/interfaces<\/p>\n<p>Change:<\/p>\n<p>auto eth0<br \/>\niface eth0 inet dhcp<\/p>\n<p>To:<\/p>\n<p>auto eth0<br \/>\niface eth0 inet static<br \/>\naddress 172.16.40.10<br \/>\nnetmask 255.255.0.0<br \/>\nnetwork 172.16.0.0<br \/>\nbroadcast 172.16.255.255<br \/>\ngateway 172.16.2.47<br \/>\ndns-nameservers 172.16.2.4 172.16.2.15<\/p>\n<p>Restart neworking<\/p>\n<p>sudo \/etc\/init.d\/networking restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This should also work for command line IP address changes to Linux: edit the file \/etc\/network\/interfaces Change: auto eth0 iface eth0 inet dhcp To: auto eth0 iface eth0 inet static address 172.16.40.10 netmask 255.255.0.0 network 172.16.0.0 broadcast 172.16.255.255 gateway 172.16.2.47 dns-nameservers 172.16.2.4 172.16.2.15 Restart neworking sudo \/etc\/init.d\/networking restart<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,8],"tags":[],"class_list":["post-83","post","type-post","status-publish","format-standard","hentry","category-linux","category-metasploit"],"_links":{"self":[{"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=\/wp\/v2\/posts\/83","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=83"}],"version-history":[{"count":2,"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions"}],"predecessor-version":[{"id":85,"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=\/wp\/v2\/posts\/83\/revisions\/85"}],"wp:attachment":[{"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=83"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=83"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sinjinsmith.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=83"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}