{"id":825,"date":"2017-12-22T21:34:21","date_gmt":"2017-12-23T06:34:21","guid":{"rendered":"\/blog\/?p=825"},"modified":"2023-09-21T09:37:40","modified_gmt":"2023-09-21T00:37:40","slug":"bonding-centos-6","status":"publish","type":"post","link":"https:\/\/hasu0707.duckdns.org\/blog\/?p=825","title":{"rendered":"bonding (CentOS 6)"},"content":{"rendered":"\n<div style=\"\"><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 bonding \ubaa8\ub4c8 \ub85c\ub4dc<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">modprobe --first-time bonding<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 \/etc\/sysconfig\/network-scripts\/ifcfg-bond0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">DEVICE=bond0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">IPADDR=10.10.10.105<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">NETMASK=255.255.255.0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">GATEWAY=10.10.10.254<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">DNS1=8.8.8.8<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">DNS2=8.8.4.4<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">ONBOOT=yes<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">BOOTPROTO=none<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">USERCTL=no<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">NM_CONTROLLED=no<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">DEVICE=eth0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">MASTER=bond0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">SLAVE=yes<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">ONBOOT=yes<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">BOOTPROTO=none<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">USERCTL=no<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">NM_CONTROLLED=no<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 \/etc\/sysconfig\/network-scripts\/ifcfg-eth1<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">DEVICE=eth1<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">MASTER=bond0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">SLAVE=yes<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">ONBOOT=yes<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">BOOTPROTO=none<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">USERCTL=no<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">NM_CONTROLLED=no<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 \/etc\/sysconfig\/network<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">NETWORKING=yes<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">NETWORKING_IPV6=no<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">HOSTNAME=vertica3<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">GATEWAYDEV=bond0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 \/etc\/modprobe.d\/bonding.conf<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">alias bond0 bonding<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">options bond0 mode=1 miimon=100<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">&gt;&gt; mode=<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">0. balance-rr : (Round Robin) Load Balancing, \uc1a1\uc2e0\ud560 \ud328\ud0b7\ub9c8\ub2e4 \uc0ac\uc6a9\ud558\ub294 NIC\uc744 \ubc14\uafbc\ub2e4.<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><strong>1. active-backup : Failover, bond\ub0b4\uc5d0\uc11c \ud55c\uac1c\uc758 Slave\ub9cc \uc0ac\uc6a9 \ud3ec\ud2b8\ubb38\uc81c\uac00 \uc0dd\uae38\uacbd\uc6b0 \ub2e4\ub978 Slave\uac00 Enable<\/strong><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">2. balance-xor : Load Balancing, \uc18c\uc2a4\uc640 \ubaa9\uc801\uc9c0\uc758 MAC\uc744 XOR \uc5f0\uc0b0\uc744 \ud1b5\ud574 \uc0ac\uc6a9\ud560 NIC\ub97c \uacb0\uc815\ud558\uc5ec \ubd84\ubc30<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">3. Broadcast : Fault-Tolerance, \ubaa8\ub4e0 Slave\uc73c\ub85c \ub370\uc774\ud130\uc804\uc1a1(failover), \uc77c\ubc18\uc801\uc73c\ub85c\ub294 \uc798 \uc0ac\uc6a9\uc548\ud568.<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">4. 802.3ad : Dynamic Link Aggregation, IEEE 802.3ad \ud504\ub85c\ud1a0\ucf5c\uc744 \uc774\uc6a9\ud558\uc5ec \ub3d9\uc801 Aggregation \uc791\uc131. \ub300\uc5ed\ud3ed \uc0c1\uc2b9, \ubd80\ud558 \ubd84\uc0b0, Failover \uc9c0\uc6d0<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">5. balance-tlb(TLB) : \uc801\uc751\ud615 \uc1a1\uc2e0 \ubd80\ud558 \ubd84\uc0b0, \uc1a1\uc2e0\ud328\ud0b7 \ub85c\ub4dc\ubc38\ub7f0\uc2f1, \uc1a1\uc2e0\uc2dc \ubd80\ud558\uac00 \ub0ae\uc740 NIC\uc774\uc6a9. \uc218\uc2e0\uc740 \ud2b9\uc815 NIC\uc774\uc6a9<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">6. balance-alb(ALB) : \uc801\uc751\ud615 \ubd80\ud558 \ubd84\uc0b0, \uc1a1\uc218\uc2e0\ud328\ud0b7 \ub85c\ub4dc\ubc38\ub7f0\uc2f1, \uc1a1\uc218\uc2e0\uc2dc \ubd80\ud558\uac00 \ub0ae\uc740 NIC\ub97c \uc0ac\uc6a9<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 \uc11c\ube44\uc2a4 \uc7ac\uc2dc\uc791<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">service network restart<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\"><br \/><\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">\u25a0 bonding \uc0c1\ud0dc \uccb4\ud06c<\/span><\/font><\/div><div style=\"\"><font face=\"GulimChe, Courier New, Lucida Console\"><span style=\"font-size: 12px;\">cat \/proc\/net\/bonding\/bond0<\/span><\/font><\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u25a0 bonding \ubaa8\ub4c8 \ub85c\ub4dc modprobe &#8211;first-time bonding \u25a0 \/etc\/sysconfig\/network-scripts\/ifcfg-bond0 DEVICE=bond0 IPADDR=10.10.10.105 NETMASK=255.255.255.0 GATEWAY=10.10.10.254 DNS1=8.8.8.8 DNS2=8.8.4.4 ONBOOT=yes BOOTPROTO=none USERCTL=no NM_CONTROLLED=no \u25a0 \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 DEVICE=eth0 MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no NM_CONTROLLED=no \u25a0 \/etc\/sysconfig\/network-scripts\/ifcfg-eth1 DEVICE=eth1 MASTER=bond0 SLAVE=yes ONBOOT=yes BOOTPROTO=none USERCTL=no NM_CONTROLLED=no \u25a0 \/etc\/sysconfig\/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=vertica3 GATEWAYDEV=bond0 \u25a0 \/etc\/modprobe.d\/bonding.conf alias bond0 bonding options bond0 mode=1 miimon=100 &gt;&gt; mode= 0. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[39],"tags":[],"class_list":["post-825","post","type-post","status-publish","format-standard","hentry","category-os_linux_unix_macos"],"_links":{"self":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/825","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=825"}],"version-history":[{"count":0,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/825\/revisions"}],"wp:attachment":[{"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=825"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=825"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hasu0707.duckdns.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}