{"id":273,"date":"2020-03-01T20:48:15","date_gmt":"2020-03-01T12:48:15","guid":{"rendered":"http:\/\/118.25.47.203\/?p=273"},"modified":"2020-06-03T19:10:16","modified_gmt":"2020-06-03T11:10:16","slug":"bond","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2020\/03\/01\/bond\/","title":{"rendered":"linux\u914d\u7f6ebond\u7f51\u5361\u670d\u52a1"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4e00\u822c\u6765\u8bb2\uff0c\u751f\u4ea7\u73af\u5883\u5fc5\u987b\u63d0\u4f9b 7\u00d724 \u5c0f\u65f6\u7684\u7f51\u7edc\u4f20\u8f93\u670d\u52a1\u3002 \u501f\u52a9\u4e8e\u7f51\u5361\u7ed1\u5b9a\u6280\u672f\uff0c\u4e0d\u4ec5 \u53ef\u4ee5\u63d0\u9ad8\u7f51\u7edc\u4f20\u8f93\u901f\u5ea6\uff0c\u66f4\u91cd\u8981\u7684\u662f\uff0c\u8fd8\u53ef\u4ee5\u786e\u4fdd\u5728\u5176\u4e2d\u4e00\u5757\u7f51\u5361\u51fa\u73b0\u6545\u969c\u65f6\uff0c\u4f9d\u7136\u53ef\u4ee5\u6b63\u5e38\u63d0\u4f9b\u7f51\u7edc\u670d\u52a1\u3002\u5047\u8bbe\u6211\u4eec\u5bf9\u4e24\u5757\u7f51\u5361\u5b9e\u65bd\u4e86\u7ed1\u5b9a\u6280\u672f\uff0c\u8fd9\u6837\u5728\u6b63\u5e38\u5de5\u4f5c\u4e2d\u5b83\u4eec\u4f1a\u5171\u540c\u4f20\u8f93\u6570\u636e\uff0c\u4f7f\u5f97\u7f51\u7edc\u4f20\u8f93\u7684\u901f\u5ea6\u53d8\u5f97\u66f4\u5feb\uff1b\u800c\u4e14\u5373\u4f7f\u6709\u4e00\u5757\u7f51\u5361\u7a81\u7136\u51fa\u73b0\u4e86\u6545\u969c\uff0c\u53e6\u5916\u4e00\u5757\u7f51\u5361\u4fbf\u4f1a\u7acb\u5373\u81ea\u52a8\u9876\u66ff\u4e0a\u53bb\uff0c\u4fdd\u8bc1\u6570\u636e\u4f20\u8f93\u4e0d\u4f1a\u4e2d\u65ad\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> \u5728\u865a\u62df\u673a\u7cfb\u7edf\u4e2d\u518d\u6dfb\u52a0\u4e00\u5757\u7f51\u5361\u8bbe\u5907\uff0c\u8bf7\u786e\u4fdd\u4e24\u5757\u7f51\u5361\u90fd\u5904\u5728\u540c\u4e00\u4e2a\u7f51\u7edc\u8fde\u63a5\u4e2d\uff08\u5373\u7f51\u5361\u6a21\u5f0f\u76f8\u540c),\u5904\u4e8e\u6a21\u5f0f\u7684\u7f51\u5361\u8bbe\u5907\u624d\u53ef\u4ee5\u8fdb\u884c\u7f51\u5361\u7ed1\u5b9a\uff0c \u5426\u5219\u8fd9\u4e24\u5757\u7f51\u5361\u65e0\u6cd5\u4e92\u76f8\u4f20\u9001\u6570\u636e\uff0c\u5982\u4e0b\u56fe\u90fd\u662f\u6865\u63a5\u6a21\u5f0f\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"238\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/8-4.png\" alt=\"\" class=\"wp-image-774\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/8-4.png 500w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/8-4-300x143.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u63a5\u4e0b\u6765\u5bf9\u7f51\u5361\u8bbe\u7f6e\u8fdb\u884c\u521d\u59cb\u8bbe\u7f6e\uff0c \u539f\u672c\u72ec\u7acb\u7684\u7f51\u5361\u8bbe\u5907\u6b64\u65f6\u9700\u8981\u88ab\u914d\u7f6e\u6210\u4e3a\u4e00\u5757\u201c\u4ece\u5c5e\u201d\u7f51\u5361 \uff0c \u670d\u52a1\u4e8e\u201c\u4e3b\u201d\u7f51\u5361\uff0c \u4e0d\u5e94\u8be5\u518d\u6709\u81ea\u5df1\u7684 IP \u5730\u5740\u7b49\u4fe1\u606f\u3002\u5728\u8fdb\u884c\u4e86\u521d\u59cb\u8bbe\u7f6e\u4e4b\u540e\uff0c\u5b83\u4eec\u5c31\u53ef\u4ee5\u652f\u6301\u7f51\u5361\u7ed1\u5b9a\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7f16\u8f91\u539f\u7f51\u5361\u914d\u7f6e\u6587\u4ef6vi \/etc\/sysconfig\/network-script\/ifcfg-eth0,\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"312\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/15-5.png\" alt=\"\" class=\"wp-image-788\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/15-5.png 502w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/15-5-300x186.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"> \u7f16\u8f91\u540e\u6dfb\u52a0\u7684\u7f51\u5361\u914d\u7f6e\u6587\u4ef6\uff0cvi \/etc\/sysconfig\/network-script\/ifcfg-eth1<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"503\" height=\"302\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/17-5.png\" alt=\"\" class=\"wp-image-790\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/17-5.png 503w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/17-5-300x180.png 300w\" sizes=\"auto, (max-width: 503px) 100vw, 503px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u8fd8\u9700\u8981\u5c06\u7ed1\u5b9a\u540e\u7684\u8bbe\u5907\u547d\u540d\u4e3a bond0 \u5e76\u628a IP \u5730\u5740\u7b49\u4fe1\u606f\u586b\u5199\u8fdb\u53bb\uff0c\u8fd9\u6837\u5f53\u7528\u6237\u8bbf\u95ee\u76f8\u5e94\u670d\u52a1\u7684\u65f6\u5019\uff0c\u5b9e\u9645\u4e0a\u5c31\u662f\u7531\u8fd9\u4e24\u5757\u7f51\u5361\u8bbe\u5907\u5728\u5171\u540c\u63d0\u4f9b\u670d\u52a1\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"495\" height=\"244\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/11-4.png\" alt=\"\" class=\"wp-image-779\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/11-4.png 495w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/11-4-300x148.png 300w\" sizes=\"auto, (max-width: 495px) 100vw, 495px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u521b\u5efa\u4e00\u4e2a\u7528\u4e8e\u7f51\u5361\u7ed1\u5b9a\u7684\u9a71\u52a8\u6587\u4ef6\uff0c\u4f7f\u5f97\u7ed1\u5b9a\u540e\u7684 bond0 \u7f51\u5361\u8bbe\u5907\u80fd\u591f\u652f\u6301\u7ed1\u5b9a\u6280\u672f\uff08bonding\uff09\uff1b\u540c\u65f6\u5b9a\u4e49\u7f51\u5361\u4ee5 mode1 \u6a21\u5f0f\u8fdb\u884c\u7ed1\u5b9a\uff0c\u4e14\u51fa\u73b0\u6545\u969c\u65f6\u81ea\u52a8\u5207\u6362\u7684\u65f6\u95f4\u4e3a 100 \u6beb\u79d2 <\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"134\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/13-5.png\" alt=\"\" class=\"wp-image-781\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/13-5.png 500w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/13-5-300x80.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/figure>\n\n\n\n<p class=\"has-background has-very-light-gray-background-color wp-block-paragraph\"> \u5e38\u89c1\u7684\u7f51\u5361\u7ed1\u5b9a\u9a71\u52a8\u6709\u4e09\u79cd\u6a21\u5f0f:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li> mode0\uff08\u5e73\u8861\u8d1f\u8f7d\u6a21\u5f0f\uff09\uff1a\u5e73\u65f6\u4e24\u5757\u7f51\u5361\u5747\u5de5\u4f5c\uff0c\u4e14\u81ea\u52a8\u5907\u63f4\uff0c\u4f46\u9700\u8981\u5728\u4e0e\u670d\u52a1\u5668\u672c\u5730 \u7f51\u5361\u76f8\u8fde\u7684\u4ea4\u6362\u673a\u8bbe\u5907\u4e0a\u8fdb\u884c\u7aef\u53e3\u805a\u5408\u6765\u652f\u6301\u7ed1\u5b9a\u6280\u672f\u3002 <\/li><li> mode1\uff08\u81ea\u52a8\u5907\u63f4\u6a21\u5f0f\uff09\uff1a\u5e73\u65f6\u53ea\u6709\u4e00\u5757\u7f51\u5361\u5de5\u4f5c\uff0c\u5728\u5b83\u6545\u969c\u540e\u81ea\u52a8\u66ff\u6362\u4e3a\u53e6\u5916\u7684\u7f51\u5361\u3002 <\/li><li> mode6\uff08\u5e73\u8861\u8d1f\u8f7d\u6a21\u5f0f\uff09\uff1a\u5e73\u65f6\u4e24\u5757\u7f51\u5361\u5747\u5de5\u4f5c\uff0c\u4e14\u81ea\u52a8\u5907\u63f4\uff0c\u65e0\u987b\u4ea4\u6362\u673a\u8bbe\u5907\u63d0\u4f9b\u8f85 \u52a9\u652f\u6301\u3002 <\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u914d\u7f6e\u5b8c\u6210\u540e\u5173\u95edNetworkManager\uff0c\u5982\u679c\u4e0d\u5173\u95ed\u4f1a\u62a5\u9519master connection not found or invalid,\u6267\u884c\u547d\u4ee4:  <strong>service  NetworkManager  stop<\/strong>    <strong> chkconfig NetworkManager  off <\/strong>\uff0c\u5982\u679c\u662fcentos7\u7cfb\u7edf\u5219\u662fsystemctl    stop NetworkManager   stop   systemctl  diabled  NetworkManager<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5173\u95ed\u540e\u91cd\u542f\u7f51\u5361\u5373\u53ef\uff0cservice network restart \u6216\u8005systemctl restart network<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"201\" src=\"http:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/14-4.png\" alt=\"\" class=\"wp-image-784\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/14-4.png 502w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2020\/03\/14-4-300x120.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u81f3\u6b64\uff0c\u7f51\u5361bond\u914d\u7f6e\u5b8c\u6210\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u822c\u6765\u8bb2\uff0c\u751f\u4ea7\u73af\u5883\u5fc5\u987b\u63d0\u4f9b 7\u00d724 \u5c0f\u65f6\u7684\u7f51\u7edc\u4f20\u8f93\u670d\u52a1\u3002 \u501f\u52a9\u4e8e\u7f51\u5361\u7ed1\u5b9a\u6280\u672f\uff0c\u4e0d\u4ec5 \u53ef\u4ee5\u63d0\u9ad8\u7f51\u7edc\u4f20\u8f93\u901f\u5ea6\uff0c\u66f4 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":793,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,22],"tags":[63],"class_list":["post-273","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-server","tag-bond"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=273"}],"version-history":[{"count":9,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":1368,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/273\/revisions\/1368"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/793"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}