{"id":319,"date":"2007-07-09T11:24:50","date_gmt":"2007-07-09T03:24:50","guid":{"rendered":"http:\/\/blog.smallken.ink\/2007\/07\/09\/linux\/319.html"},"modified":"2007-07-09T11:26:09","modified_gmt":"2007-07-09T03:26:09","slug":"%e5%85%a9%e5%bc%b5%e7%b6%b2%e5%8d%a1%e5%90%88%e4%bd%b5%e9%a0%bb%e5%af%ac%e5%af%a6%e4%bd%9c-for-cenos5","status":"publish","type":"post","link":"https:\/\/blog.smallken.site\/?p=319","title":{"rendered":"\u5169\u5f35\u7db2\u5361\u5408\u4f75\u983b\u5bec\u5be6\u4f5c for CenOS5"},"content":{"rendered":"<p>\u4e00\u822c\u4e2d\u968e\u4ee5\u4e0a\u7684\u4f3a\u670d\u5668\u90fd\u5df2\u7d93\u6709\u63d0\u4f9b\u5169\u5f35\u7db2\u8def\u5361\uff0c\u9019\u500b\u5be6\u4f5c\u53ef\u4ee5\u5145\u4efd\u5229\u7528\u5230\u5169\u5f35\u7db2\u8def\u5361\uff0c\u5169\u5f35\u7db2\u8def\u5361\u5408\u4f75\uff0c\u770b\u8d77\u4f86\u597d\u50cf\u662f\u4e00\u5f35\u7db2\u8def\u5361\uff0c\u7576\u7136\u6703\u591a\u5229\u7528\u5230\u4e00\u689d\u7db2\u8def\u7dda\uff0c\u597d\u8655\u5c31\u662f1.\u5408\u4f75\u983b\u5bec\uff0c\u4ee5\u53ca2.\u7db2\u8def\u5099\u63f4<\/p>\n<p>\u5be6\u4f5c\u6a5f\u5668:IBM xSeries 260 Server<br \/>\nOS:CentOS release 5<\/p>\n<p>\u7de8\u8f2f \/etc\/modprobe.conf\uff0c\u4f7f eth0 \u548c eth1 \u4ecb\u9762\u5408\u4f75\u6210 bond0 \u4ecb\u9762<br \/>\n# vi \/etc\/modprobe.conf<br \/>\nalias eth0 tg3<br \/>\nalias eth1 tg3<br \/>\nalias scsi_hostadapter aic79xx<br \/>\nalias scsi_hostadapter1 aacraid<br \/>\n<font color=\"#ff0000\">alias bond0 bonding<br \/>\noptions bond0 miimon=80 mode=5<\/font><\/p>\n<p>\u7de8\u8f2f\u7b2c\u4e00\u5f35\u7db2\u8def\u5361<\/p>\n<p><!--more--><\/p>\n<p># vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<br \/>\nDEVICE=eth0<br \/>\nONBOOT=yes<br \/>\nBOOTPROTO=none<br \/>\nUSERCTL=no<br \/>\nMASTER=bond0<br \/>\nSLAVE=yes<\/p>\n<p>\u7de8\u8f2f\u7b2c\u4e8c\u5f35\u7db2\u8def\u5361<br \/>\n# vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth1<br \/>\nDEVICE=eth1<br \/>\nONBOOT=yes<br \/>\nBOOTPROTO=none<br \/>\nUSERCTL=no<br \/>\nMASTER=bond0<br \/>\nSLAVE=yes<\/p>\n<p>\u91cd\u65b0\u555f\u52d5 network<br \/>\n# service network restart<\/p>\n<p># ifconfig<br \/>\n<img decoding=\"async\" src=\"http:\/\/aycu19.webshots.com\/image\/22418\/2001520493802510462_rs.jpg\" \/><br \/>\n\u4e8b\u5be6\u4e0a\u4f60\u6703\u770b\u5230\u4e09\u5f35\u7db2\u8def\u5361\uff0c\u90a3\u5176\u5be6\u53ea\u6709 bond0 \u9019\u5f35\u6709 IP \u5c0d\u5916\u800c\u5df2<\/p>\n<p>\u6e2c\u8a66\u983b\u5bec\uff0c\u56e0\u70ba\u7db2\u8def\u8a2d\u5099\u53ea\u6709100M\u7684\u95dc\u4fc2\uff0c\u6700\u9ad8\u53ea\u98ca\u5230 10MB\/s \u5c31\u4e0a\u4e0d\u53bb\u4e86\uff0c\u4e0d\u904e\u770b\u7db2\u5361\u71c8\u865f\uff0c\u7684\u78ba\u5169\u5f35\u7db2\u8def\u5361\u90fd\u6709\u5728\u9001\u8cc7\u6599<\/p>\n<p>\u6e2c\u8a66\u7db2\u8def\u5099\u63f4\uff0c\u5728\u50b3\u8cc7\u6599\u6a94\u4e2d\u6211\u7a81\u7136\u62d4\u6389\u5176\u4e2d\u4e00\u689d\u7db2\u8def\u7dda\uff0c\u7d50\u679c\u6c92\u932f\uff0c\u9084\u662f\u53ef\u4ee5\u7e7c\u7e8c\u50b3\u6c92\u554f\u984c\uff0c\u4f46\u662f\u518d\u63d2\u56de\u53bb\u4e4b\u5f8c\uff0c\u5076\u723e\u9023\u7dda\u6703 timeout\uff0c\u9700\u8981\u518d\u91cd\u65b0\u9023\u7dda\u624d\u53ef\u4ee5\u3002<\/p>\n<p>\u53c3\u8003\uff1a<a href=\"http:\/\/www.howtoforge.com\/network_card_bonding_centos\" title=\"http:\/\/www.howtoforge.com\/network_card_bonding_centos\">http:\/\/www.howtoforge.com\/network_card_bonding_centos<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u822c\u4e2d\u968e\u4ee5\u4e0a\u7684\u4f3a\u670d\u5668\u90fd\u5df2\u7d93\u6709\u63d0\u4f9b\u5169\u5f35\u7db2\u8def\u5361\uff0c\u9019\u500b\u5be6\u4f5c\u53ef\u4ee5\u5145\u4efd\u5229\u7528\u5230\u5169\u5f35\u7db2\u8def\u5361\uff0c\u5169\u5f35\u7db2\u8def\u5361\u5408\u4f75\uff0c\u770b\u8d77\u4f86\u597d\u50cf\u662f\u4e00\u5f35&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-319","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=319"}],"version-history":[{"count":0,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=\/wp\/v2\/posts\/319\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.smallken.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}