Centos65多網(wǎng)卡綁定
Centos65多網(wǎng)卡綁定
通過網(wǎng)口綁定(bond)技術(shù),可以很容易實現(xiàn)網(wǎng)口冗余,負載均衡,從而達到高可用負載均衡的目的。[root@localhost~]#cat/etc/issue。CentOSrelease6.5(Final)。Kernelonanm。[root@localhost~]#echo";aliasnetdev-bond0bonding";>;/etc/modprobe.d/bonding.conf。網(wǎng)卡綁定前需要執(zhí)行這個命令,以此來添加服務(wù)器啟動時加載的模塊。修改新建網(wǎng)卡綁定bond0配置文件。 。[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-bond0。 。DEVICE=bond0。
導(dǎo)讀通過網(wǎng)口綁定(bond)技術(shù),可以很容易實現(xiàn)網(wǎng)口冗余,負載均衡,從而達到高可用負載均衡的目的。[root@localhost~]#cat/etc/issue。CentOSrelease6.5(Final)。Kernelonanm。[root@localhost~]#echo";aliasnetdev-bond0bonding";>;/etc/modprobe.d/bonding.conf。網(wǎng)卡綁定前需要執(zhí)行這個命令,以此來添加服務(wù)器啟動時加載的模塊。修改新建網(wǎng)卡綁定bond0配置文件。 。[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-bond0。 。DEVICE=bond0。
系統(tǒng)大全為您提供通過網(wǎng)口綁定(bond)技術(shù),可以很容易實現(xiàn)網(wǎng)口冗余,負載均衡,從而達到高可用負載均衡的目的。[root@localhost~]#cat/etc/issueCentOSrelease6.5(Final)Kernelonanm[root@localhost~]#echo"aliasnetdev-bond0bonding">/etc/modprobe.d/bonding.conf網(wǎng)卡綁定前需要執(zhí)行這個命令,以此來添加服務(wù)器啟動時加載的模塊。修改新建網(wǎng)卡綁定bond0配置文件?[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-bond0?DEVICE=bond0TYPE=EthernetONBOOT=yesBOOTPROTO=staticUSERCTL=noPEERDNS=yesIPV6INIT=noIPADDR=112.25.xx.xxNETMASK=255.255.255.192broADCAST=112.25.xx.xxGATEWAY=112.25.xx.xxBONDING_OPTS="miimon=80mode=6"miimon是鏈路監(jiān)測的時間間隔單位是毫秒,miimon=80的意思就是每80ms監(jiān)測一次鏈路連接狀態(tài),如果有一條線路不通就轉(zhuǎn)入另一條線路。mode=0表示負載均衡方式,兩塊網(wǎng)卡都工作,需要交換機作支持mode=1表示冗余方式,網(wǎng)卡只有一個工作,一個出問題啟用另外的mode=6表示負載均衡方式,兩塊網(wǎng)卡都工作,不需要交換機作支持我這里做的是四個網(wǎng)卡的綁定,服務(wù)器是dellR720,其網(wǎng)卡默認(rèn)名稱為em1--em4,網(wǎng)卡綁定時候,四個網(wǎng)卡的配置基本相似,master需要制定為bond0,四個網(wǎng)卡均為slave重啟服務(wù)器然后查看網(wǎng)卡綁定信息[root@localhost~]#ifconfigbond0Linkencap:EthernetHWaddrF8:BC:12:38:BF:04inetaddr:112.25.xx.17Bcast:112.25.xx.63Mask:255.255.255.192UPbroADCASTRUNNINGMASTERMULTICASTMTU:1500Metric:1RXpackets:198948errors:0dropped:0overruns:0frame:0TXpackets:374418errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:20792024(19.8MiB)TXbytes:29577760(28.2MiB)??em1Linkencap:EthernetHWaddrF8:BC:12:38:BF:04UPbroADCASTRUNNINGSLAVEMULTICASTMTU:1500Metric:1RXpackets:36838errors:0dropped:0overruns:0frame:0TXpackets:123885errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:3250190(3.0MiB)TXbytes:12842300(12.2MiB)Interrupt:35??em2Linkencap:EthernetHWaddrF8:BC:12:38:BF:05UPbroADCASTRUNNINGSLAVEMULTICASTMTU:1500Metric:1RXpackets:88178errors:0dropped:0overruns:0frame:0TXpackets:87303errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:11017650(10.5MiB)TXbytes:6243968(5.9MiB)Interrupt:38??em3Linkencap:EthernetHWaddrF8:BC:12:38:BF:06UPbroADCASTRUNNINGSLAVEMULTICASTMTU:1500Metric:1RXpackets:37044errors:0dropped:0overruns:0frame:0TXpackets:81803errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:3274966(3.1MiB)TXbytes:5272322(5.0MiB)Interrupt:34??em4Linkencap:EthernetHWaddrF8:BC:12:38:BF:07UPbroADCASTRUNNINGSLAVEMULTICASTMTU:1500Metric:1RXpackets:36888errors:0dropped:0overruns:0frame:0TXpackets:81427errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:1000RXbytes:3249218(3.0MiB)TXbytes:5219170(4.9MiB)Interrupt:36??loLinkencap:LocalLoopbackinetaddr:127.0.0.1Mask:255.0.0.0UPLOOPBACKRUNNINGMTU:16436Metric:1RXpackets:1errors:0dropped:0overruns:0frame:0TXpackets:1errors:0dropped:0overruns:0carrier:0collisions:0txqueuelen:0RXbytes:99(99.0b)TXbytes:99(99.0b)???以上就是系統(tǒng)大全給大家介紹的如何使的方法都有一定的了解了吧,好了,如果大家還想了解更多的資訊,那就趕緊點擊系統(tǒng)大全官網(wǎng)吧。??本文來自系統(tǒng)大全http:///如需轉(zhuǎn)載請注明!推薦:win7純凈版
Centos65多網(wǎng)卡綁定
通過網(wǎng)口綁定(bond)技術(shù),可以很容易實現(xiàn)網(wǎng)口冗余,負載均衡,從而達到高可用負載均衡的目的。[root@localhost~]#cat/etc/issue。CentOSrelease6.5(Final)。Kernelonanm。[root@localhost~]#echo";aliasnetdev-bond0bonding";>;/etc/modprobe.d/bonding.conf。網(wǎng)卡綁定前需要執(zhí)行這個命令,以此來添加服務(wù)器啟動時加載的模塊。修改新建網(wǎng)卡綁定bond0配置文件。 。[root@localhost~]#vim/etc/sysconfig/network-scripts/ifcfg-bond0。 。DEVICE=bond0。
為你推薦