{"id":298,"date":"2018-09-05T22:44:58","date_gmt":"2018-09-06T01:44:58","guid":{"rendered":"http:\/\/www.bfnetworks.com.br\/?p=298"},"modified":"2022-07-15T10:18:35","modified_gmt":"2022-07-15T13:18:35","slug":"configurando-agregamento-de-interfaces-nic-bonding-centos7","status":"publish","type":"post","link":"https:\/\/bfnetworks.com.br\/configurando-agregamento-de-interfaces-nic-bonding-centos7\/","title":{"rendered":"CONFIGURANDO AGREGAMENTO DE INTERFACES (NIC BONDING) – CENTOS7"},"content":{"rendered":"

Neste poste mostraremos como configurar um agregamento de interfaces de Centos 7, o famoso NIC bonding, que \u00e9 um\u00a0recurso de kernel e\u00a0\u00e9 geralmente usado para fornecer servi\u00e7os de alta disponibilidade e balanceamento de carga.<\/p>\n

CONFIGURANDO INTERFACE BOND0<\/h3>\n

Crie e edite o arquivo como abaixo:<\/p>\n

DEVICE=bond0\nTYPE=Bond\nNAME=bond0\nBONDING_MASTER=yes\nBOOTPROTO=none\nONBOOT=yes\nIPADDR=192.168.0.60\nNETMASK=255.255.255.0\nGATEWAY=192.168.0.1\nBONDING_OPTS=\"mode=5 miimon=100\"<\/pre>\n

Para saber mais sobre as op\u00e7\u00f5es de BONDING_OPTS acesse aqui<\/a>.<\/p>\n

CONFIGURANDO INTERFACES F\u00cdSICAS<\/h3>\n

Edite com comando abaixo o arquivo da interface 1, usando seu editor de texto:
\n

\n
vi \/etc\/sysconfig\/network-scripts\/ifcfg-enp0s3<\/div> <\/div><\/p>\n
BOOTPROTO=none\nDEVICE=enp0s3\nONBOOT=yes\nMASTER=bond0\nSLAVE=yes<\/pre>\n

Edite o arquivo da interface 2 e coloque o conte\u00fado semelhante abaixo:
\n

\n
vi \/etc\/sysconfig\/network-scripts\/ifcfg-enp0s8<\/div> <\/div><\/p>\n
BOOTPROTO=none\nDEVICE=enp0s3\nONBOOT=yes\nMASTER=bond0\nSLAVE=yes\n<\/pre>\n

Reinicie o servi\u00e7o de network:
\n

\n
systemctl restart network<\/div> <\/div><\/p>\n

VALIDA\u00c7\u00c3O<\/h3>\n

No comando abaixo podemos verificar o status das interfaces:
\n

\n
ip a<\/div> <\/div>
\n\"\"
\nCom o comando seguinte vemos o status, velocidade dentre outras informa\u00e7\u00f5es do bond0.
\n
\n
cat \/proc\/net\/bonding\/bond0<\/div> <\/div>
\n\"\"<\/p>\n

FONTES:<\/h3>\n

linuxtechi.com\/configure-nic-bonding-in-centos-7-rhel-7\/
\nlinuxtechi.com\/network-bonding-centos-6-rhel-6\/<\/p>\n","protected":false},"excerpt":{"rendered":"

Neste poste mostraremos como configurar um agregamento de interfaces de Centos 7, o famoso NIC bonding, que \u00e9 um\u00a0recurso de kernel e\u00a0\u00e9 geralmente usado para fornecer servi\u00e7os de alta disponibilidade e balanceamento de carga. CONFIGURANDO INTERFACE BOND0 Crie e edite o arquivo como abaixo: DEVICE=bond0 TYPE=Bond NAME=bond0 BONDING_MASTER=yes BOOTPROTO=none ONBOOT=yes IPADDR=192.168.0.60 NETMASK=255.255.255.0 GATEWAY=192.168.0.1 BONDING_OPTS=”mode=5 miimon=100″ […]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6,24,8,15],"tags":[40,42,67,124],"_links":{"self":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/298"}],"collection":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":1,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":1897,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/posts\/298\/revisions\/1897"}],"wp:attachment":[{"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bfnetworks.com.br\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}