{"id":80,"date":"2009-09-02T20:27:06","date_gmt":"2009-09-02T12:27:06","guid":{"rendered":"http:\/\/karyleong.net\/?p=80"},"modified":"2009-09-02T20:27:50","modified_gmt":"2009-09-02T12:27:50","slug":"load-balance-in-centos","status":"publish","type":"post","link":"https:\/\/karyleong.net\/?p=80","title":{"rendered":"Load balance in CentOS"},"content":{"rendered":"<p>1. Testing your system if the bonding driver is available<\/p>\n<p><em>modprobe bonding miimon=100<br \/>\nifconfig bond0 192.168.1.1 netmask 255.255.255.0<br \/>\nifconfig eth0 down<br \/>\nifconfig eth1 down<br \/>\nifenslave bond0 eth0 eth1<\/em><\/p>\n<p>2. Create the network configration file for next reboot<\/p>\n<p>create \/etc\/sysconfig\/network-scripts\/ifcfg-bond0<\/p>\n<blockquote><p>DEVICE=bond0<br \/>\nBOOTPROTO=static<br \/>\nONBOOT=yes<br \/>\nNETWORK=192.168.1.0<br \/>\nNETMASk=255.255.255.0<br \/>\nIPADDR=192.168.1.13<br \/>\nGATEWAY=192.168.1.1<br \/>\nUSERCTL=no<\/p><\/blockquote>\n<p>edit \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 and eth1<\/p>\n<blockquote><p>**** original config *****<br \/>\nMASTER=bond0<br \/>\nSLAVE=yes<\/p><\/blockquote>\n<p>load bonding driver to modprode<\/p>\n<p>edit \/etc\/modprobe.conf add<\/p>\n<blockquote><p>****** original config ********<br \/>\nalias bond0 bonding<br \/>\noptions bond0 miimon=100 mode=1<\/p><\/blockquote>\n<p>reboot system<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. Testing your system if the bonding driver is available modprobe bonding miimon=100 ifconfig bond0 192.168.1.1 netmask 255.255.255.0 ifconfig eth0 down ifconfig eth1 down ifenslave bond0 eth0 eth1 2. Create the network configration file for next reboot create \/etc\/sysconfig\/network-scripts\/ifcfg-bond0 DEVICE=bond0 BOOTPROTO=static ONBOOT=yes NETWORK=192.168.1.0 NETMASk=255.255.255.0 IPADDR=192.168.1.13 GATEWAY=192.168.1.1 USERCTL=no edit \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 and eth1 **** original config ***** &#8230; <a title=\"Load balance in CentOS\" class=\"read-more\" href=\"https:\/\/karyleong.net\/?p=80\" aria-label=\"More on Load balance in CentOS\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[37,71,36,38],"_links":{"self":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/80"}],"collection":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=80"}],"version-history":[{"count":2,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/karyleong.net\/index.php?rest_route=\/wp\/v2\/posts\/80\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=80"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=80"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/karyleong.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=80"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}