{"id":414,"date":"2014-09-10T09:00:00","date_gmt":"2014-09-10T09:00:00","guid":{"rendered":"http:\/\/mini.jellypo.pe.kr\/wp\/?p=414"},"modified":"2014-09-10T09:00:00","modified_gmt":"2014-09-10T09:00:00","slug":"centos-bonding-%ed%85%8c%ec%8a%a4%ed%8a%b8-%ec%8b%9c-%ec%a3%bc%ec%9d%98%ec%a0%90","status":"publish","type":"post","link":"https:\/\/mini.jellypo.pe.kr\/wp\/?p=414","title":{"rendered":"CentOS Bonding \ud14c\uc2a4\ud2b8 \uc2dc \uc8fc\uc758\uc810"},"content":{"rendered":"<p><span style=\"font-size: 11pt;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">CentOS\uc5d0\uc11c \uc774\ub354\ub137 \uc778\ud398\uc774\uc2a4 UP\/DOWN\uc6a9 \uba85\ub839\uc744 \ud1b5\ud574 bonding failover \ud14c\uc2a4\ud2b8 \uc2dc<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">1. ifup eth0 \/ ifdown eth0<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">2. echo +eth0 &gt; \/sys\/class\/net\/bond0\/bonding\/slaves \/ echo -eth0 &gt; \/sys\/class\/net\/bond0\/bonding\/slaves<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">3. <\/span><strong><span style=\"font-size: 11pt;\">ifconfig eth0 up \/ ifonfig eth0 down<\/span><\/strong><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">\uc138 \uac00\uc9c0 \uba85\ub839\uc5b4\uc744 \ub5a0\uc62c\ub9ac\uaca0\uc9c0\ub9cc&#8230; \uacb0\ub860\ubd80\ud130 \ub9d0\ud558\uba74 ifup\/ifdown\uc774\ub791 ifconfig DEV up\/down \uc774\ub791 \uad6c\ub3d9 \ubc29\ubc95\uc774 \ub2e4\ub974\uba70, bonding failover \ud14c\uc2a4\ud2b8\ud560 \ub54c\ub294<\/span><strong><span style=\"font-size: 11pt;\"> ifconfig<\/span><\/strong><span style=\"font-size: 11pt;\"> \ub9cc \uc815\uc0c1\uc801\uc778 bonding failover \ud14c\uc2a4\ud2b8 \uac00\ub2a5. <\/span><a href=\"https:\/\/access.redhat.com\/solutions\/27166\"><span style=\"font-size: 11pt;\">https:\/\/access.redhat.com\/solutions\/27166<\/span><\/a><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<blockquote class=\"tx-quote-tistory\">\n<p><span style=\"font-size: 11pt;\"><b><span style=\"font-size: 11pt;\">bonding, primary_reselect=2 <\/span><\/b><br \/><\/span><\/p>\n<\/blockquote>\n<p><span style=\"font-size: 11pt;\"><span style=\"font-size: 11pt;\">\uc704 \uc124\uc815\uc740 primary slave\uc5d0 \ubb38\uc81c\uac00 \uc0dd\uaca8 \uc778\ud130\ud398\uc774\uc2a4 \ubcc0\uacbd \ub41c \uc774\ud6c4, primary slave \ubcf5\uad6c \ub418\uc5b4\ub3c4 \uc0ac\uc6a9 \uc911\uc778 \uc778\ud130\ud398\uc774\uc2a4\ub97c \uc720\uc9c0\ud558\ub294 \uc124\uc815.<\/span><br \/><\/span><\/p>\n<p><span style=\"font-size: 11pt;\"><br \/><\/span><\/p>\n<p><span style=\"font-size: 11pt;\">echo -eth0 &gt; \/sys\/class\/net\/bond0\/bonding\/slaves, \ud588\ub2e4\uac00 +eth0 \ud558\ub2c8 eht1\ub85c \uc720\uc9c0\ub418\uc5b4\uc57c \ud560 Currently Active Slave\uac00 \uae08\uc0c8 eth0\ub85c \ub3cc\uc544\uac10. ifdown eth0, ifup eth0 \ud574\ub3c4 \ub9c8\ucc2c\uac00\uc9c0.   <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">\uc544\uc608 \ud558\ub4dc\uc6e8\uc5b4(\uc774\ub354\ub137 \ucf00\uc774\ube14)\uc744 \ubf51\ub294 \uac83\ub3c4 \ubc29\ubc95\uc774\uaca0\ub2e4.<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">&nbsp;<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">  <\/span><\/p>\n<p><span style=\"font-size: 11pt;\">\uacb0\ub860 : ifconfig \ub97c \uc4f0\uc790<\/span><\/p>\n<p><\/p>\n<p><span style=\"font-size: 11pt;\">\ucc38\uace0<\/span><\/p>\n<p><span style=\"font-size: 11pt;\"><b><span style=\"font-size: 11pt;\"> primary_reselect <\/span><\/b><span style=\"font-size: 11pt;\">\uc758 \uc635\uc158 \uc124\uba85<\/span><\/span><\/p>\n<p><span style=\"font-size: 11pt;\">0 : \ubcf5\uad6c\ub41c primary slave\ub97c \ubb34\uc870\uac74 \uc0ac\uc6a9. 0 \ub300\uc2e0 always \ub85c \uc801\uc5b4\ub3c4 \ub41c\ub2e4. \uae30\ubcf8\uac12\uc774\ub77c <\/span><span style=\"font-size: 11pt;\"><b><span style=\"font-size: 11pt;\"> <\/span><\/b><span style=\"font-size: 11pt;\">primary_reselect \uc635\uc158\uc744 \ub530\ub85c \uc9c0\uc815 \uc54a\uc73c\uba74 \uc774 \ub3d9\uc791\uc744 \ud55c\ub2e4.<\/span><br \/><\/span><\/p>\n<p><span style=\"font-size: 11pt;\">1 : \ubcf5\uad6c\ub41c primary slave\uac00 active slave\ubcf4\ub2e4 \ub098\uc744 \uacbd\uc6b0(ethtools \ub85c \ud655\uc778 \uac00\ub2a5\ud55c <\/span><span style=\"font-size: 11pt;\">speed, duplex)\ub9cc primary slave \uc0ac\uc6a9.<\/span><span style=\"font-size: 11pt;\"> <\/span><span style=\"font-size: 11pt;\">1 \ub300\uc2e0 better \ub85c \uc801\uc5b4\ub3c4 \ub428.<\/span><\/p>\n<p><span style=\"font-size: 11pt;\">2 : \ud604\uc7ac active slave\uac00 fail \ub418\uac70\ub098 \uc778\uc704\uc801\uc73c\ub85c \ubcc0\uacbd\ud574\uc57c primary slave\ub85c \ubc14\ub01c. \uc138 \uac1c \uc774\uc0c1\uc758 \uc778\ud130\ud398\uc774\uc2a4\uc77c \uacbd\uc6b0 \uc6b0\uc120\uc21c\uc704\ub300\ub85c \uac00\ub294 \ub4ef? 2 \ub300\uc2e0 failure \ub85c \uc801\uc5b4\ub3c4 \ub428.<\/span><br \/><span style=\"font-size: 11pt;\"><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; CentOS\uc5d0\uc11c \uc774\ub354\ub137 \uc778\ud398\uc774\uc2a4 UP\/DOWN\uc6a9 \uba85\ub839\uc744 \ud1b5\ud574 bonding failover \ud14c\uc2a4\ud2b8 \uc2dc 1. ifup eth0 \/ ifdown eth0 2. echo +eth0 &gt; \/sys\/class\/net\/bond0\/bonding\/slaves \/ echo -eth0 &gt; \/sys\/class\/net\/bond0\/bonding\/slaves 3. ifconfig eth0 up \/ ifonfig eth0 down &nbsp; \uc138 \uac00\uc9c0 \uba85\ub839\uc5b4\uc744 \ub5a0\uc62c\ub9ac\uaca0\uc9c0\ub9cc&#8230; \uacb0\ub860\ubd80\ud130 \ub9d0\ud558\uba74 ifup\/ifdown\uc774\ub791 ifconfig DEV up\/down \uc774\ub791 \uad6c\ub3d9 \ubc29\ubc95\uc774 \ub2e4\ub974\uba70, bonding failover \ud14c\uc2a4\ud2b8\ud560 \ub54c\ub294 ifconfig [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[86],"class_list":["post-414","post","type-post","status-publish","format-standard","hentry","tag-gnu-linux"],"_links":{"self":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=414"}],"version-history":[{"count":0,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=\/wp\/v2\/posts\/414\/revisions"}],"wp:attachment":[{"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mini.jellypo.pe.kr\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}