{"id":126,"date":"2011-06-29T18:08:34","date_gmt":"2011-06-29T21:08:34","guid":{"rendered":"http:\/\/blog.abratel.com.br\/2011\/06\/29\/setar-enderecos-ips-rotas-linux-debian\/"},"modified":"2011-06-29T18:08:34","modified_gmt":"2011-06-29T21:08:34","slug":"setar-enderecos-ips-rotas-linux-debian","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=126","title":{"rendered":"Setar endere\u00e7os ips rotas linux debian"},"content":{"rendered":"<p>para um funcionamento imediato.. exemplo:<br \/>\nifconfig eth1 192.168.1.10 netmask 255.255.255.0<br \/>\nroute add -net 192.168.1.0 netmask 255.255.255.0 eth1<\/p>\n<p>route add default eth1<br \/>\nroute add default gw 192.168.1.1<\/p>\n<p>mcedit \/etc\/resolv.conf<br \/>\nnameserver 8.8.8.8<\/p>\n<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>Fixar ip para quando startar levantar com o mesmo:<\/p>\n<p>vim \/etc\/network\/interfaces<\/p>\n<p>auto lo<br \/>\niface lo inet loopback<\/p>\n<p>allow-hotplug eth0<\/p>\n<p>allow-hotplug eth1<\/p>\n<p>allow-hotplug eth2<br \/>\niface eth2 inet static<br \/>\n        address 192.168.254.254<br \/>\n        netmask 255.255.255.0<br \/>\n        network 192.168.254.0<br \/>\n        broadcast 192.168.254.255<br \/>\n        # dns-* options are implemented by the resolvconf package, if installed<br \/>\n        dns-nameservers 127.0.0.1 200.165.132.147 8.8.8.8<br \/>\n        dns-search debian.abratel<\/p>\n<p>Para funcionamento permanente:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>para um funcionamento imediato.. exemplo: ifconfig eth1 192.168.1.10 netmask 255.255.255.0 route add -net 192.168.1.0 netmask 255.255.255.0 eth1 route add default eth1 route add default gw 192.168.1.1 mcedit \/etc\/resolv.conf nameserver 8.8.8.8 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Fixar ip para quando startar levantar com o mesmo: vim \/etc\/network\/interfaces auto lo iface&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/126"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=126"}],"version-history":[{"count":0,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/126\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=126"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}