{"id":259,"date":"2016-10-26T16:37:22","date_gmt":"2016-10-26T07:37:22","guid":{"rendered":"http:\/\/jook.pe.kr\/?p=259"},"modified":"2016-10-26T16:37:22","modified_gmt":"2016-10-26T07:37:22","slug":"%eb%84%a4%ed%8a%b8%ec%9b%8c%ed%81%ac-bonding%ec%84%a4%ec%a0%95","status":"publish","type":"post","link":"http:\/\/jook.pe.kr\/?p=259","title":{"rendered":"\ub124\ud2b8\uc6cc\ud06c bonding\uc124\uc815"},"content":{"rendered":"<p>\ub124\ud2b8\uc6cc\ud06c bonding\uc740 \ub450\uac1c\uc758 \ub124\ud2b8\uc6cc\ud06c \ub77c\uc778\uc744 \ud558\ub098\ub85c \ubb36\uc5b4\uc11c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc73c\ub85c mode\uc5d0 \ub530\ub77c \ud655\uc7a5\uacfc \ubc31\uc5c5\ub4f1\uc758 \uc5ec\ub7ec\uac00\uc9c0 \uc6a9\ub3c4\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4.<\/p>\n<p>&nbsp;<br \/>\n1. \/etc\/modprobe.conf \ud30c\uc77c\uc5d0 \ubcf8\ub529 \uc635\uc158 \ucd94\uac00<\/p>\n<p>&nbsp;<\/p>\n<p>&#8211; RHEL6, CentOS6 \ubc84\uc804\uc5d0\uc11c\ub294\u00a0\/etc\/modprobe.d\/bonding.conf \uc5d0 \uc124\uc815\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# cat \/etc\/modprobe.conf<br \/>\nalias eth0 bnx2<br \/>\nalias eth1 bnx2<br \/>\nalias eth2 e1000<br \/>\nalias eth3 e1000<br \/>\nalias scsi_hostadapter cciss<br \/>\nalias scsi_hostadapter1 ata_piix<\/p>\n<p>alias bond0 bonding<br \/>\noptions bond0 mode=1 miimon=100<br \/>\nalias bond1 bonding<br \/>\noptions bond1 mode=1 miimon=100<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>2. \/etc\/sysconfig\/network-scripts\/ifcfg-bondX \ud30c\uc77c \uc0dd\uc131<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-bond0<br \/>\nDEVICE=bond0<br \/>\nBOOTPROTO=none<br \/>\nIPADDR=192.168.100.101<br \/>\nNETMASK=255.255.255.0<br \/>\nONBOOT=yes<br \/>\nUSERCTL=no<\/p>\n<p>[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-bond1<br \/>\nDEVICE=bond1<br \/>\nBOOTPROTO=none<br \/>\nIPADDR=192.168.100.102<br \/>\nNETMASK=255.255.255.0<br \/>\nONBOOT=yes<br \/>\nUSERCTL=no<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>3. slave device \ud30c\uc77c \ud3b8\uc9d1<br \/>\n[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<br \/>\nDEVICE=eth0<br \/>\nBOOTPROTO=none<br \/>\nMASTER=bond0<br \/>\nSLAVE=yes<br \/>\nHWADDR=00:1B:78:CD:4A:AE<br \/>\nONBOOT=yes<br \/>\nUSERCTL=no<\/p>\n<p>[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth1<br \/>\nDEVICE=eth1<br \/>\nBOOTPROTO=none<br \/>\nMASTER=bond0<br \/>\nSLAVE=yes<br \/>\nHWADDR=00:1B:78:CD:4A:BA<br \/>\nONBOOT=yes<br \/>\nUSERCTL=no<\/p>\n<p>[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth2<br \/>\nDEVICE=eth2<br \/>\nBOOTPROTO=none<br \/>\nMASTER=bond1<br \/>\nSLAVE=yes<br \/>\nHWADDR=00:1B:78:CD:4A:AE<br \/>\nONBOOT=yes<br \/>\nUSERCTL=no<\/p>\n<p>[root@localhost ~]# cat \/etc\/sysconfig\/network-scripts\/ifcfg-eth3<br \/>\nDEVICE=eth3<br \/>\nBOOTPROTO=none<br \/>\nMASTER=bond0<br \/>\nSLAVE=yes<br \/>\nHWADDR=00:1B:78:CD:4A:BA<br \/>\nONBOOT=yes<br \/>\nUSERCTL=no<\/p>\n<p>&nbsp;<br \/>\n4. bonding \ubaa8\ub4c8 \ud65c\uc131\ud654<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# modprobe bond0<br \/>\n[root@localhost ~]# modprobe bond1<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>5. Network Daemon \uc7ac\uc2dc\uc791<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# service network restart<\/p>\n<p>&nbsp;<br \/>\n6. bonding \ub3d9\uc791 \ud655\uc778<\/p>\n<p>&nbsp;<\/p>\n<p>[root@localhost ~]# cat \/proc\/net\/bonding\/bond0<br \/>\nEthernet Channel Bonding Driver: v3.4.0 (October 7, 2008)<\/p>\n<p>Bonding Mode: fault-tolerance (active-backup)<br \/>\nPrimary Slave: None<br \/>\n<span class=\"Apple-style-span\">Currently Active Slave: eth0<\/span><br \/>\nMII Status: up<br \/>\nMII Polling Interval (ms): 100<br \/>\nUp Delay (ms): 0<br \/>\nDown Delay (ms): 0<\/p>\n<p>Slave Interface: eth0<br \/>\nMII Status: up<br \/>\nLink Failure Count: 0<br \/>\nPermanent HW addr: 00:1B:78:CD:4A:AE<\/p>\n<p>Slave Interface: eth1<br \/>\nMII Status: up<br \/>\nLink Failure Count: 1<br \/>\nPermanent HW addr: 00:1B:78:CD:4A:BA<br \/>\n[root@localhost ~]# cat \/proc\/net\/bonding\/bond1<br \/>\nEthernet Channel Bonding Driver: v3.4.0 (October 7, 2008)<\/p>\n<p>Bonding Mode: fault-tolerance (active-backup)<br \/>\nPrimary Slave: None<br \/>\nCurrently Active Slave: eth2<br \/>\nMII Status: up<br \/>\nMII Polling Interval (ms): 100<br \/>\nUp Delay (ms): 0<br \/>\nDown Delay (ms): 0<\/p>\n<p>Slave Interface: eth2<br \/>\nMII Status: up<br \/>\nLink Failure Count: 0<br \/>\nPermanent HW addr: 00:1B:78:CD:4A:AE<\/p>\n<p>Slave Interface: eth3<br \/>\nMII Status: up<br \/>\nLink Failure Count: 1<br \/>\nPermanent HW addr: 00:1B:78:CD:4A:BA<\/p>\n<p>&#8211; \ud604\uc7ac bond0 \uc5d0\uc11c\ub294 eth0, bond1 \uc5d0\uc11c\ub294 eth2 \uac00 active\ub85c \ub3d9\uc791\ud558\uace0 \uc788\ub2e4.<br \/>\neth0 \uacfc eth2 \uc758 \ub79c\ucf00\uc774\ube14\uc744 \ubf51\uac70\ub098 \ub124\ud2b8\uc6cc\ud06c \uce74\ub4dc\uc5d0 \uc7a5\uc560\uac00 \ubc1c\uc0dd\ud560 \uacbd\uc6b0,<br \/>\neth1 \uacfc eth3 \uc774 active\ub85c \ub3d9\uc791\ud558\uac8c \ub41c\ub2e4.<\/p>\n<p>&nbsp;<br \/>\n7. bonding mode<\/p>\n<p>&nbsp;<\/p>\n<p>&#8211; bonding mode\ub294 \uc544\ub798\uc640 \uac19\uc774 \uc5ec\ub7ec\uac00\uc9c0\uac00 \uc788\uc73c\ub098, \uc77c\ubc18\uc801\uc73c\ub85c mode 0 \uacfc mode 1 \uc744 \ub9ce\uc774 \uc4f4\ub2e4.<br \/>\nmode 0 \uc740 \ub300\uc5ed\ud3ed\uc744 \ud655\uc7a5\ud558\uae30 \uc704\ud574\uc11c \uc0ac\uc6a9\ud558\uace0 mode 1 \uc740 active + standby \ub85c \uad6c\uc131\ud558\uc5ec \uc7a5\uc560\ub97c \ub300\ube44\ud558\uae30 \uc704\ud574\uc11c \ub9ce\uc774 \uc0ac\uc6a9\ud55c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>Mode 0 (balance-rr)<br \/>\nMode 1 (active-backup)<br \/>\nMode 3 (broadcast)<br \/>\nMode 4 (802.3ad)<br \/>\nMode 5 (balance-tlb)<br \/>\nMode 6 (balance-alb)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ub124\ud2b8\uc6cc\ud06c bonding\uc740 \ub450\uac1c\uc758 \ub124\ud2b8\uc6cc\ud06c \ub77c\uc778\uc744 \ud558\ub098\ub85c \ubb36\uc5b4\uc11c \uc0ac\uc6a9\ud558\ub294 \ubc29\ubc95\uc73c\ub85c mode\uc5d0 \ub530\ub77c \ud655\uc7a5\uacfc \ubc31\uc5c5\ub4f1\uc758 \uc5ec\ub7ec\uac00\uc9c0 \uc6a9\ub3c4\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub2e4. &nbsp; 1.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"_links":{"self":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/259"}],"collection":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259"}],"version-history":[{"count":0,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions"}],"wp:attachment":[{"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/jook.pe.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}