{"id":29,"date":"2012-12-11T12:28:00","date_gmt":"2012-12-11T12:28:00","guid":{"rendered":"http:\/\/ibcloud.com.br\/blog\/configurar-eth-no-ifcfg-eth-distros-derivadas-do-redhat\/"},"modified":"2014-05-13T02:55:34","modified_gmt":"2014-05-13T02:55:34","slug":"configurar-eth-no-ifcfg-eth-distros-derivadas-do-redhat","status":"publish","type":"post","link":"https:\/\/humanizati.com.br\/blog\/2012\/12\/11\/configurar-eth-no-ifcfg-eth-distros-derivadas-do-redhat\/","title":{"rendered":"Configurar eth no ifcfg-eth &#8211; distros derivadas do RedHat"},"content":{"rendered":"<p>Ta ai uma coisa que sempre fa\u00e7o e nunca lembro de cabe\u00e7a. \ud83d\ude42<\/p>\n<p>Sempre que vou configurar uma nova interface tenho que dar uma olhadinha nos arquivos para relembrar os par\u00e2metros que devem ser passados.<\/p>\n<p>Abaixo vai os par\u00e2metros b\u00e1sicos para subir uma interface no Linux em distros derivadas do RedHat, como CentOS, Fedora e por ai vai.<\/p>\n<p>DEVICE=eth0 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>BOOTPROTO=static &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>ONBOOT=yes &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br \/>IPADDR=192.168.1.1 &nbsp; &nbsp; <br \/>NETMASK=255.255.255.0 <\/p>\n<p>Detalhando um pouco:<\/p>\n<p>DEVICE indica o nome da interface criada.<\/p>\n<p>BOOTPROTO indica o comportamento da interface referente a IPs, se deve buscar por DHCP ou ter\u00e1 IP fixado.<\/p>\n<p>ONBOOT indica se esta interface dever\u00e1 subir no boot do servidor.<\/p>\n<p>IPADDR define o IP que ser\u00e1 utilizado pela interface.<\/p>\n<p>NETMASK define a mascar\u00e1 de rede atribu\u00edda a esta interface.<\/p>\n<p>Por enquanto \u00e9 isso!<\/p>\n<p>Abra\u00e7os!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ta ai uma coisa que sempre fa\u00e7o e nunca lembro de cabe\u00e7a. \ud83d\ude42 Sempre que vou configurar uma nova interface tenho que dar uma olhadinha&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[61,60,62],"class_list":["post-29","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-ifcfg-eth","tag-ifcfg-eth0","tag-interface-centos"],"_links":{"self":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/29","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":1,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions"}],"predecessor-version":[{"id":89,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/posts\/29\/revisions\/89"}],"wp:attachment":[{"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/categories?post=29"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/humanizati.com.br\/blog\/wp-json\/wp\/v2\/tags?post=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}