{"id":7445,"date":"2021-07-27T15:09:49","date_gmt":"2021-07-27T07:09:49","guid":{"rendered":"https:\/\/blog.pfchina.org\/?p=7445"},"modified":"2021-07-28T08:24:14","modified_gmt":"2021-07-28T00:24:14","slug":"opnsense%e9%93%be%e8%b7%af%e8%81%9a%e5%90%88%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/blog.pfchina.org\/?p=7445","title":{"rendered":"OPNsense\u94fe\u8def\u805a\u5408\u914d\u7f6e\uff08LAGG\uff09"},"content":{"rendered":"<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-8 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\">\n<div class=\"fusion-builder-row fusion-row\">\n<div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-7 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\">\n<div class=\"fusion-text fusion-text-10\">\n<p style=\"text-align: justify;\">OPNsense\u7684\u63a5\u53e3\u63d0\u4f9b\u4e86\u914d\u7f6eLAGG\uff0c\u5fc5\u987b\u5728\u672a\u4f7f\u7528\u7684\u63a5\u53e3\u4e0a\u8fdb\u884c\u6dfb\u52a0\u3002LAGG\u6709\u4ee5\u4e0b\u56db\u79cd\u8fd0\u884c\u6a21\u5f0f\uff1a<\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: bold; text-align: justify;\">Failover\uff1a<\/span><span style=\"text-align: justify;\">\u53ea\u901a\u8fc7\u4e3b\u7f51\u53e3\u6536\u53d1\u6570\u636e\u3002 \u5982\u679c\u4e3b\u7f51\u53e3\u4e0d\u53ef\u7528\uff0c \u5219\u4f7f\u7528\u4e0b\u4e00\u4e2a\u6fc0\u6d3b\u7684\u7f51\u53e3\u3002 \u52a0\u5165\u7684\u7b2c\u4e00\u4e2a\u7f51\u53e3\u4fbf\u4f1a\u88ab\u89c6\u4e3a\u4e3b\u7f51\u53e3\uff1b \u6b64\u540e\u52a0\u5165\u7684\u5176\u4ed6\u7f51\u53e3\uff0c \u5219\u4f1a\u88ab\u89c6\u4e3a\u6545\u969c\u8f6c\u79fb\u7684\u5907\u7528\u7f51\u53e3\u3002 \u5982\u679c\u53d1\u751f\u6545\u969c\u8f6c\u79fb\u4e4b\u540e\uff0c \u539f\u5148\u7684\u7f51\u53e3\u53c8\u6062\u590d\u4e86\u53ef\u7528\u72b6\u6001\uff0c \u5b83\u4f1a\u6062\u590d\u4f5c\u4e3a\u4e3b\u7f51\u53e3\u4f7f\u7528\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: bold; text-align: justify;\">FEC\uff1a<\/span><span class=\"trademark\" style=\"text-align: justify;\">Cisco<\/span><span style=\"text-align: justify;\">\u00ae Fast\u00a0<\/span><span class=\"trademark\" style=\"text-align: justify;\">EtherChannel<\/span><span style=\"text-align: justify;\">\u00ae (FEC) \u662f\u4e00\u79cd\u9759\u6001\u914d\u7f6e\uff0c \u4e0d\u8fdb\u884c\u8282\u70b9\u95f4\u534f\u5546\u6216\u4ea4\u6362\u4ee5\u592a\u7f51\u5e27\u6765\u76d1\u63a7\u94fe\u8def\u60c5\u51b5\u3002 \u5982\u679c\u4ea4\u6362\u673a\u652f\u6301 LACP\uff0c \u5219\u5e94\u4f18\u5148\u4f7f\u7528LACP\u3002\u5728pfSense\u4e2d\uff0c\u5df2\u653e\u5f03\u4e86\u5bf9\u8fd9\u79cd\u6a21\u5f0f\u7684\u652f\u6301\u3002<\/span><acronym class=\"acronym\" style=\"text-align: justify;\">FEC<\/acronym><span style=\"text-align: justify;\"> \u5c06\u8f93\u51fa\u6d41\u91cf\u5728\u6fc0\u6d3b\u7684\u7f51\u53e3\u4e4b\u95f4\u4ee5\u534f\u8bae\u5934\u6563\u5217\u4fe1\u606f\u4e3a\u4f9d\u636e\u5206\u62c6\uff0c \u5e76\u63a5\u6536\u6765\u81ea\u4efb\u610f\u6fc0\u6d3b\u7f51\u53e3\u7684\u8fdb\u5165\u6d41\u91cf\u3002 \u6563\u5217\u4fe1\u606f\u5305\u542b\u4ee5\u592a\u7f51\u6e90\u5730\u5740\u3001 \u76ee\u7684\u5730\u5740\uff0c \u4ee5\u53ca (\u5982\u679c\u6709\u7684\u8bdd) VLAN tag \u548c IPv4\/IPv6 \u6e90\u5730\u5740\u53ca\u76ee\u7684\u5730\u5740\u4fe1\u606f\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: bold; text-align: justify;\">LACP\uff1a<\/span><span style=\"text-align: justify;\">\u652f\u6301\u00a0<\/span><span class=\"trademark\" style=\"text-align: justify;\">IEEE<\/span><span style=\"text-align: justify;\">\u00ae 802.3ad \u94fe\u8def\u805a\u5408\u63a7\u5236\u534f\u8bae (LACP) \u548c\u6807\u8bb0\u534f\u8bae\u3002 LACP \u80fd\u591f\u5728\u8282\u70b9\u4e0e\u82e5\u5e72\u94fe\u8def\u805a\u5408\u7ec4\u4e4b\u95f4\u534f\u5546\u94fe\u8def\u3002 \u6bcf\u4e00\u4e2a\u94fe\u8def\u805a\u5408\u7ec4 (LAG) \u7531\u4e00\u7ec4\u76f8\u540c\u901f\u5ea6\u3001 \u4ee5\u5168\u53cc\u5de5\u6a21\u5f0f\u8fd0\u884c\u7684\u7f51\u53e3\u7ec4\u6210\u3002 \u6d41\u91cf\u5728 LAG \u4e2d\u7684\u7f51\u53e3\u4e4b\u95f4\uff0c \u4f1a\u4ee5\u603b\u901f\u5ea6\u6700\u5927\u7684\u539f\u5219\u8fdb\u884c\u5206\u644a\u3002 \u5f53\u7269\u7406\u94fe\u8def\u53d1\u751f\u53d8\u5316\u65f6\uff0c \u94fe\u8def\u805a\u5408\u4f1a\u8fc5\u901f\u9002\u5e94\u53d8\u52a8\u5f62\u6210\u65b0\u7684\u914d\u7f6e\u3002<\/span><acronym class=\"acronym\" style=\"text-align: justify;\">LACP<\/acronym><span style=\"text-align: justify;\"> \u4e5f\u662f\u5c06\u8f93\u51fa\u6d41\u91cf\u5728\u6fc0\u6d3b\u7684\u7f51\u53e3\u4e4b\u95f4\u4ee5\u534f\u8bae\u5934\u6563\u5217\u4fe1\u606f\u4e3a\u4f9d\u636e\u5206\u62c6\uff0c \u5e76\u63a5\u6536\u6765\u81ea\u4efb\u610f\u6fc0\u6d3b\u7f51\u53e3\u7684\u5165\u6d41\u91cf\u3002 \u6563\u5217\u4fe1\u606f\u5305\u542b\u4ee5\u592a\u7f51\u6e90\u5730\u5740\u3001 \u76ee\u7684\u5730\u5740\uff0c \u4ee5\u53ca (\u5982\u679c\u6709\u7684\u8bdd) VLAN tag \u548c IPv4\/IPv6 \u6e90\u5730\u5740\u53ca\u76ee\u7684\u5730\u5740\u4fe1\u606f\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: bold; text-align: justify;\">Loadbalance\uff1a<\/span><span style=\"text-align: justify;\">\u8d1f\u8f7d\u5e73\u8861\u6a21\u5f0f\u63a5\u53d7 LAGG \u7ec4\u4efb\u610f\u7aef\u53e3\u4e0a\u7684\u5165\u7ad9\u6d41\u91cf\uff0c\u5e76\u5e73\u8861 LAGG \u7ec4\u4e2d\u4efb\u610f\u6d3b\u52a8\u7aef\u53e3\u4e0a\u7684\u51fa\u7ad9\u6d41\u91cf\u3002\u5b83\u662f\u4e00\u79cd\u9759\u6001\u8bbe\u7f6e\uff0c\u65e2\u4e0d\u76d1\u89c6\u94fe\u8def\u72b6\u6001\u4e5f\u4e0d\u4e0e\u4ea4\u6362\u673a\u534f\u5546\u3002\u51fa\u7ad9\u6d41\u91cf\u57fa\u4e8e LAGG \u4e2d\u7684\u6240\u6709\u6d3b\u52a8\u7aef\u53e3\u8fdb\u884c\u8d1f\u8f7d\u5e73\u8861\uff0c\u8be5\u54c8\u5e0c\u4f7f\u7528\u591a\u4e2a\u56e0\u7d20\u8ba1\u7b97\u5f97\u51fa\uff0c\u4f8b\u5982\u6e90\u548c\u76ee\u6807 IP \u5730\u5740\u3001MAC \u5730\u5740\u548c VLAN \u6807\u8bb0\u3002\u4e0eFEC\u6a21\u5f0f\u7c7b\u4f3c\u3002<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"font-weight: bold; text-align: justify;\">Round-robin\uff1a<\/span><span style=\"text-align: justify;\">\u5c06\u8f93\u51fa\u6d41\u91cf\u4ee5\u8f6e\u5faa\u65b9\u5f0f\u5728\u6240\u6709\u6fc0\u6d3b\u7aef\u53e3\u4e4b\u95f4\u8c03\u5ea6\uff0c \u5e76\u4ece\u4efb\u610f\u6fc0\u6d3b\u7aef\u53e3\u63a5\u6536\u8fdb\u5165\u6d41\u91cf\u3002 \u8fd9\u79cd\u6a21\u5f0f\u8fdd\u53cd\u4e86\u4ee5\u592a\u7f51\u5e27\u6392\u5e8f\u89c4\u5219\uff0c \u56e0\u6b64\u5e94\u5c0f\u5fc3\u4f7f\u7528\u3002<\/span><\/p>\n<h1 style=\"text-align: justify;\">\u9632\u706b\u5899\u914d\u7f6e<\/h1>\n<p style=\"text-align: justify;\">\u5bfc\u822a\u5230Opnsense\u9632\u706b\u5899\u7684<strong>\u63a5\u53e3&gt;\u5176\u4ed6\u7c7b\u578b<\/strong>\u83dc\u5355\uff0c\u627e\u5230<strong>LAGG<\/strong>\u63a5\u53e3\u7c7b\u578b\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\"><span class=\" fusion-imageframe imageframe-none imageframe-3 hover-type-none\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-menu.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7450 alignnone\" title=\"opnsense \u94fe\u63a5\u805a\u5408\u83dc\u5355\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-menu.jpg\" alt=\"opnsense \u94fe\u63a5\u805a\u5408\u83dc\u5355\" width=\"237\" height=\"447\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-menu.jpg 237w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-menu-159x300.jpg 159w\" sizes=\"auto, (max-width: 237px) 100vw, 237px\" \/><\/a><\/span><\/p>\n<div class=\"fusion-text fusion-text-11\" style=\"text-align: justify;\">\n<p>\u5355\u51fb\u6dfb\u52a0\u914d\u7f6eLAGG\u63a5\u53e3\uff1a<\/p>\n<p>\u2022 \u7236\u63a5\u53e3\uff1a\u9009\u62e9\u81f3\u5c112\u4e2a\u63a5\u53e3<br \/>\n\u2022 LAGG \u534f\u8bae\uff1a\u9009LACP<br \/>\n\u2022 \u8f93\u5165\u63cf\u8ff0\u8bf4\u660e<\/p>\n<p>\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u5b8c\u6210\u94fe\u8def\u805a\u5408\u63a5\u53e3\u7684\u521b\u5efa\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\"><span class=\" fusion-imageframe imageframe-none imageframe-4 hover-type-none\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-configuration.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7451 alignnone\" title=\"opnsense \u94fe\u8def\u805a\u5408\u914d\u7f6e\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-configuration.jpg\" alt=\"opnsense \u94fe\u8def\u805a\u5408\u914d\u7f6e\" width=\"517\" height=\"290\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-configuration.jpg 517w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-configuration-300x168.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-configuration-500x280.jpg 500w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><\/a><\/span><\/p>\n<div class=\"fusion-text fusion-text-12\" style=\"text-align: justify;\">\n<p>\u5bfc\u822a\u5230Opnsense\u7684<strong>\u63a5\u53e3<\/strong>\u83dc\u5355\uff0c\u5355\u51fb<strong>\u5206\u914d<\/strong>\u9009\u9879\u3002<\/p>\n<\/div>\n<div class=\"fusion-text fusion-text-13\" style=\"text-align: justify;\">\n<p>\u5728\u63a5\u53e3\u5206\u914d\u9875\u9762\uff0c\u9009\u62e9\u65b0\u7684\u94fe\u8def\u805a\u5408\u63a5\u53e3\u5e76\u5355\u51fb\u6dfb\u52a0\u6309\u94ae\u3002<\/p>\n<p>\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\"><span class=\" fusion-imageframe imageframe-none imageframe-5 hover-type-none\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7452 alignnone\" title=\"opnsense \u94fe\u8def\u805a\u5408\u63a5\u53e3\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface.jpg\" alt=\"opnsense \u94fe\u8def\u805a\u5408\u63a5\u53e3\" width=\"464\" height=\"192\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface.jpg 464w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface-300x124.jpg 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/a><\/span><\/p>\n<div class=\"fusion-text fusion-text-14\" style=\"text-align: justify;\">\n<p>\u5728\u672c\u4f8b\u4e2d\uff0cOPT1\u63a5\u53e3\u4e3aOPNsense \u9632\u706b\u5899\u5206\u914d\u7684\u94fe\u8def\u805a\u5408\u63a5\u53e3\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\"><span class=\" fusion-imageframe imageframe-none imageframe-6 hover-type-none\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface-1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7453 alignnone\" title=\"opnsense \u94fe\u8def\u805a\u5408\u63a5\u53e3\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface-1.jpg\" alt=\"opnsense \u94fe\u8def\u805a\u5408\u63a5\u53e3\" width=\"427\" height=\"191\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface-1.jpg 427w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-link-aggregation-interface-1-300x134.jpg 300w\" sizes=\"auto, (max-width: 427px) 100vw, 427px\" \/><\/a><\/span><\/p>\n<div class=\"fusion-text fusion-text-15\" style=\"text-align: justify;\">\n<p>\u8bbf\u95eeOpnsense<strong>\u63a5\u53e3<\/strong>\u83dc\u5355\u5e76\u6253\u5f00\u65b0\u5efa\u7acb\u7684OPT1\u63a5\u53e3\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\"><span class=\" fusion-imageframe imageframe-none imageframe-7 hover-type-none\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-trunk.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7454 alignnone\" title=\"opnsense vlan \u4e2d\u7ee7\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-trunk.jpg\" alt=\"opnsense vlan \u4e2d\u7ee7\" width=\"236\" height=\"332\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-trunk.jpg 236w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-trunk-213x300.jpg 213w\" sizes=\"auto, (max-width: 236px) 100vw, 236px\" \/><\/a><\/span><\/p>\n<div class=\"fusion-text fusion-text-16\" style=\"text-align: justify;\">\n<p>\u5728\u5e38\u89c4\u914d\u7f6e\u533a\u57df\uff0c\u586b\u5199\u5982\u4e0b\u9009\u9879\uff1a<\/p>\n<p>\u2022 \u542f\u7528\uff1a\u9009\u4e2d<br \/>\n\u2022 \u8bf4\u660e\uff1a\u9009\u62e9\u94fe\u8def\u805a\u5408\u63a5\u53e3\u7684\u540d\u79f0<br \/>\n\u2022 IPv4 \u914d\u7f6e\u7c7b\u578b\uff1a\u9759\u6001 IPV4<br \/>\n\u2022 IPv6 \u914d\u7f6e\u7c7b\u578b\uff1aNone<br \/>\n\u2022 \u901f\u5ea6\u548c\u53cc\u5de5\uff1a\u9ed8\u8ba4<\/p>\n<\/div>\n<p style=\"text-align: justify;\"><span class=\" fusion-imageframe imageframe-none imageframe-8 hover-type-none\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-Vlan-interface-configuration.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7455 alignnone\" title=\"opnsense Vlan\u63a5\u53e3\u914d\u7f6e\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-Vlan-interface-configuration.jpg\" alt=\"opnsense Vlan\u63a5\u53e3\u914d\u7f6e\" width=\"617\" height=\"586\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-Vlan-interface-configuration.jpg 617w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-Vlan-interface-configuration-300x285.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-Vlan-interface-configuration-316x300.jpg 316w\" sizes=\"auto, (max-width: 617px) 100vw, 617px\" \/><\/a><\/span><\/p>\n<div class=\"fusion-text fusion-text-17\" style=\"text-align: justify;\">\n<p>\u5728\u9759\u6001 IPv4 \u914d\u7f6e\u90e8\u5206\u8f93\u5165\u94fe\u8def\u805a\u5408\u63a5\u53e3 IP \u5730\u5740\u548c\u7f51\u7edc\u63a9\u7801\uff0c\u7136\u540e\u5355\u51fb\u201c\u4fdd\u5b58\u201d\u6309\u94ae\u5e76\u5355\u51fb\u5e94\u7528\u66f4\u6539\u6309\u94ae\u3002<\/p>\n<\/div>\n<p style=\"text-align: justify;\"><span class=\" fusion-imageframe imageframe-none imageframe-9 hover-type-none\"><a href=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-ip-address.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7456 alignnone\" title=\"opnsense vlan ip\u5730\u5740\" src=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-ip-address.jpg\" alt=\"opnsense vlan ip\u5730\u5740\" width=\"614\" height=\"134\" srcset=\"https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-ip-address.jpg 614w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-ip-address-300x65.jpg 300w, https:\/\/blog.pfchina.org\/wp-content\/uploads\/2021\/07\/opnsense-vlan-ip-address-500x109.jpg 500w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/a><\/span><\/p>\n<div class=\"fusion-text fusion-text-18\" style=\"text-align: justify;\">\n<p>OPNsense\u9632\u706b\u5899\u4e0a\u7684\u94fe\u8def\u805a\u5408\u914d\u7f6e\u90e8\u5206\u5b8c\u6210\u3002\u4e0b\u9762\u8f6c\u5230\u4ea4\u6362\u673a\u7684\u914d\u7f6e\u3002<\/p>\n<\/div>\n<h1 class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\">\u4ea4\u6362\u673a\u914d\u7f6e<\/h1>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"fusion-fullwidth fullwidth-box fusion-builder-row-10 nonhundred-percent-fullwidth non-hundred-percent-height-scrolling\" style=\"text-align: justify;\">\n<div class=\"fusion-builder-row fusion-row\">\n<div class=\"fusion-layout-column fusion_builder_column fusion-builder-column-9 fusion_builder_column_1_1 1_1 fusion-one-full fusion-column-first fusion-column-last\">\n<div class=\"fusion-column-wrapper fusion-flex-column-wrapper-legacy\">\n<div class=\"fusion-text fusion-text-20\">\n<div>\n<p>\u4e0b\u9762\u4ecb\u7ecd\u5982\u4f55\u5728 Cisco \u4ea4\u6362\u673a\u4e0a\u6267\u884c\u94fe\u8def\u805a\u5408\u914d\u7f6e\u3002<\/p>\n<\/div>\n<div class=\"fusion-text fusion-text-20\">\n<p>\u5728\u63d0\u793a\u5c4f\u5e55\u4e0a\uff0c\u8f93\u5165\u7ba1\u7406\u767b\u5f55\u4fe1\u606f\u3002\u4f7f\u7528 configure terminal \u547d\u4ee4\u8fdb\u5165\u914d\u7f6e\u6a21\u5f0f\u3002<\/p>\n<pre>Switch&gt; enable\r\nSwitch# configure terminal<\/pre>\n<\/div>\n<div class=\"fusion-text fusion-text-21\">\n<p>\u5728\u914d\u7f6e\u6a21\u5f0f\u4e0b\uff0c\u9700\u8981\u6e05\u9664\u4ea4\u6362\u673a\u7aef\u53e3\u7684\u6240\u6709\u914d\u7f6e\u3002<\/p>\n<\/div>\n<div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-2 fusion-syntax-highlighter-theme-dark\">\n<pre class=\"syntax-highlighter-copy-code\">Switch(config)# default interface gigabitEthernet 0\/11\r\nSwitch(config-if)# default interface gigabitEthernet 0\/12<\/pre>\n<div class=\"CodeMirror cm-s-hopscotch\">\n<div class=\"CodeMirror-scroll\" tabindex=\"-1\">\n<div class=\"CodeMirror-sizer\">\n<div>\n<div class=\"CodeMirror-lines\" role=\"presentation\">\n<div role=\"presentation\">\n<div>\u00a0\u5728\u914d\u7f6e\u6a21\u5f0f\u4e0b\uff0c\u5c06\u4ea4\u6362\u673a\u7aef\u53e3\u52a0\u5165\u94fe\u8def\u805a\u5408\u7ec4\u3002<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-3 fusion-syntax-highlighter-theme-dark\">\n<pre class=\"syntax-highlighter-copy-code\">Switch(config)# interface gigabitethernet0\/11\r\nSwitch(config-if)# channel-group 1 mode active\r\nSwitch(config)# interface gigabitethernet0\/12\r\nSwitch(config-if)# channel-group 1 mode active\r\nSwitch(config-if)# exit<\/pre>\n<div class=\"CodeMirror cm-s-hopscotch\">\n<div class=\"CodeMirror-scroll\" tabindex=\"-1\">\u5728\u672c\u4f8b\u4e2d\uff0c\u4ea4\u6362\u673a\u768411\u548c12\u7aef\u53e3\u88ab\u914d\u7f6e\u4e3a<em>channel-group 1<\/em>\u7684\u6210\u5458\u3002\u914d\u7f6e\u94fe\u8def\u805a\u5408\u7aef\u53e3\u547d\u4ee4\u5982\u4e0b\uff1a<\/div>\n<\/div>\n<\/div>\n<div class=\"fusion-syntax-highlighter-container fusion-syntax-highlighter-4 fusion-syntax-highlighter-theme-dark\">\n<pre class=\"syntax-highlighter-copy-code\">Switch(config)# interface Port-channel 1\r\nSwitch(config)# switchport mode access\r\nSwitch(config-if)# description opnsense link aggregation\r\nSwitch(config-if)# exit\r\nSwitch(config)# exit<\/pre>\n<div class=\"CodeMirror cm-s-hopscotch\">\n<div class=\"CodeMirror-scroll\" tabindex=\"-1\">\n<div class=\"CodeMirror-gutters\">\n<div class=\"CodeMirror-gutter CodeMirror-linenumbers\">\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u4ea4\u6362\u673a\u4e24\u4e2a\u7aef\u53e3\u5206\u522b\u4e0e\u9632\u706b\u5899\u7684\u4e24\u4e2a\u7aef\u53e3\u8fde\u63a5\uff0c\u5b8c\u6210LAGG\u7684\u8bbe\u7f6e\u3002<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>OPNsense\u7684\u63a5\u53e3\u63d0\u4f9b\u4e86\u914d\u7f6eLAGG\uff0c\u5fc5\u987b\u5728\u672a\u4f7f\u7528\u7684\u63a5\u53e3\u4e0a\u8fdb\u884c\u6dfb\u52a0\u3002LAGG &hellip; <a href=\"https:\/\/blog.pfchina.org\/?p=7445\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[204],"class_list":["post-7445","post","type-post","status-publish","format-standard","hentry","category-opnsense","tag-lagg"],"_links":{"self":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/7445","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7445"}],"version-history":[{"count":0,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=\/wp\/v2\/posts\/7445\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7445"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7445"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pfchina.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7445"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}