{"id":5399,"date":"2022-01-09T01:29:46","date_gmt":"2022-01-09T09:29:46","guid":{"rendered":"https:\/\/www.xh86.me\/?p=5399"},"modified":"2022-01-09T02:37:39","modified_gmt":"2022-01-09T10:37:39","slug":"%e9%80%9a%e8%bf%87%e4%ba%8c%e5%b1%82%e6%8a%80%e6%9c%af%ef%bc%8c%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e4%b8%8d%e5%90%8cvlan%e9%97%b4%e9%80%9a%e8%ae%af","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=5399","title":{"rendered":"\u901a\u8fc7\u4e8c\u5c42\u6280\u672f\uff0c\u5982\u4f55\u5b9e\u73b0\u4e0d\u540cVLAN\u95f4\u901a\u8baf"},"content":{"rendered":"<p>\u524d\u8a00<\/p>\n<p>VLAN Switch\u662f\u4e00\u79cd\u6309\u7167VLAN Tag\u8fdb\u884c\u6570\u636e\u8f6c\u53d1\u7684\u8f6c\u53d1\u6280\u672f\uff0c\u9700\u8981\u9884\u5148\u5728\u7f51\u7edc\u4e2d\u5404\u4ea4\u6362\u8282\u70b9\u4e0a\u5efa\u7acb\u4e00\u6761\u9759\u6001\u8f6c\u53d1\u8def\u5f84\u3002\u4ea4\u6362\u8282\u70b9\u63a5\u6536\u5230\u7b26\u5408\u8f6c\u53d1\u6761\u4ef6\u7684VLAN\u62a5\u6587\u540e\uff0c\u6839\u636eVLAN Switch\u8868\u5c06\u62a5\u6587\u76f4\u63a5\u8f6c\u53d1\u5230\u76f8\u5e94\u7684\u63a5\u53e3\uff0c\u65e0\u9700\u67e5\u770bMAC\u5730\u5740\u8868\uff0c\u63d0\u9ad8\u4e86\u8f6c\u53d1\u6548\u7387\u53ca\u5b89\u5168\u6027\uff0c\u53ef\u6709\u6548\u7684\u907f\u514dMAC\u5730\u5740\u653b\u51fb\u53ca\u5e7f\u64ad\u98ce\u66b4\u3002<\/p>\n<p>&nbsp;<\/p>\n<section>\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0%; text-align: center; justify-content: center;\">\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; align-self: flex-end; min-width: 10%; height: auto; line-height: 1; letter-spacing: 0px;\">\n<section style=\"margin-right: 0%; margin-left: 0%; transform: translate3d(-10px, 0px, 0px);\">\n<section style=\"color: #7342d7; font-size: 32px; padding-right: 18px; padding-left: 18px; letter-spacing: 0px; line-height: 1;\"><strong>01<\/strong><\/section>\n<\/section>\n<section style=\"margin-top: -14px; margin-right: 0%; margin-left: 0%;\">\n<section style=\"display: inline-block; width: 100%; height: 18px; vertical-align: top; overflow: hidden; background-color: rgba(149, 114, 239, 0.12);\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; align-self: flex-end; flex: 100 100 0%; height: auto; padding-left: 6px; margin-left: -30px; border-style: none; border-width: 0px; border-right-color: #9572ef;\">\n<section style=\"color: #7342d7; text-align: left; letter-spacing: 1px;\"><strong>\u00a0 \u00a0 \u00a0VLAN Switch\u7b80\u4ecb<\/strong><\/section>\n<section style=\"margin-right: 0%; margin-bottom: 4px; margin-left: 0%;\">\n<section style=\"background-color: #9572ef; height: 1px;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"color: #d03a3a;\">\n<p style=\"white-space: normal;\"><span style=\"color: #000000;\">VLAN Switch\u529f\u80fd\u5305\u62ec\uff1a<\/span><\/p>\n<ul class=\"list-paddingleft-2\">\n<li><span style=\"color: #000000;\">\u6dfb\u52a0\u5916\u5c42VLAN Tag\u529f\u80fd\uff0c\u5373VLAN Switch stack-vlan\u529f\u80fd\u3002<\/span>&nbsp;<\/li>\n<li><span style=\"color: #000000;\">\u5728\u4e0d\u540c\u63a5\u53e3\u4e4b\u95f4\u8f6c\u6362\u5916\u5c42VLAN Tag\uff0c\u5373VLAN Switch switch-vlan\u529f\u80fd\u3002<\/span><\/li>\n<\/ul>\n<p style=\"white-space: normal;\"><span style=\"color: #1a7f09;\"><strong>1.1\u00a0 VLAN Switch stack-vlan<\/strong><\/span><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: #000000;\">VLAN Switch stack-vlan\u529f\u80fd\u4e0eVLAN Stacking\u529f\u80fd\u7c7b\u4f3c\uff0c\u4e5f\u662f\u4e00\u79cd\u9488\u5bf9\u7528\u6237\u4e0d\u540cVLAN\u5c01\u88c5\u5916\u5c42VLAN Tag\u7684<\/span><strong><span style=\"color: #ff4c00;\">\u4e8c\u5c42\u6280\u672f<\/span><\/strong><span style=\"color: #000000;\">\u3002\u4e0eVLAN Stacking\u529f\u80fd\u7684\u5dee\u5f02\u5982\u8868 1 \u6240\u793a\u3002<\/span><\/p>\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px;\">\n<section style=\"vertical-align: middle; display: inline-block; line-height: 0;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-514c43e557d3d71f6f351874030a37ab.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"vertical-align: middle; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-514c43e557d3d71f6f351874030a37ab.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1.1470588\" data-type=\"png\" data-w=\"510\" \/><\/div><\/section>\n<\/section>\n<section style=\"color: #000000;\">\n<p style=\"text-align: center; white-space: normal;\"><span style=\"color: #220f8e;\"><em>\u8868 1\u00a0\u00a0VLAN Switch\u529f\u80fd\u4e0eVLAN Stacking\u529f\u80fd\u5dee\u5f02\u8868<\/em><\/span><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: #1a7f09;\"><strong>1.2\u00a0 VLAN Switch switch-vlan<\/strong><\/span><\/p>\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<p style=\"white-space: normal;\">VLAN Switch switch-vlan\u529f\u80fd\u4e0eVLAN Mapping\u529f\u80fd\u7c7b\u4f3c\uff0c\u53ef\u4ee5\u5b9e\u73b0\u4e0d\u540cVLAN\u95f4\u7684\u901a\u4fe1\u3002\u4e0eVLAN Mapping\u529f\u80fd\u7684\u5dee\u5f02\u5982\u8868 2 \u6240\u793a\u3002<\/p>\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px;\">\n<section style=\"vertical-align: middle; display: inline-block; line-height: 0;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-cc3917602c929fdf6f03b1b280e2da8d.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"vertical-align: middle; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-cc3917602c929fdf6f03b1b280e2da8d.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1.2848837\" data-type=\"png\" data-w=\"516\" \/><\/div><\/section>\n<\/section>\n<section style=\"color: #000000;\">\n<p style=\"text-align: center; white-space: normal;\"><span style=\"color: #220f8e;\"><em>\u8868\u00a0 2\u00a0\u00a0VLAN Switch\u529f\u80fd\u4e0eVLAN Mapping\u529f\u80fd\u5dee\u5f02\u8868<\/em><\/span><\/p>\n<p style=\"text-align: center; white-space: normal;\">\n<\/section>\n<section>\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0%; text-align: center; justify-content: center;\">\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; align-self: flex-end; min-width: 10%; height: auto; line-height: 1; letter-spacing: 0px;\">\n<section style=\"margin-right: 0%; margin-left: 0%; transform: translate3d(-10px, 0px, 0px);\">\n<section style=\"color: #7342d7; font-size: 32px; padding-right: 18px; padding-left: 18px; letter-spacing: 0px; line-height: 1;\"><strong>02<\/strong><\/section>\n<\/section>\n<section style=\"margin-top: -14px; margin-right: 0%; margin-left: 0%;\">\n<section style=\"display: inline-block; width: 100%; height: 18px; vertical-align: top; overflow: hidden; background-color: rgba(149, 114, 239, 0.12);\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; align-self: flex-end; flex: 100 100 0%; height: auto; padding-left: 6px; margin-left: -30px; border-style: none; border-width: 0px; border-right-color: #9572ef;\">\n<section style=\"color: #7342d7; text-align: left; letter-spacing: 1px;\"><strong>\u00a0 \u00a0VLAN Switch\u5e94\u7528\u573a\u666f<\/strong><\/section>\n<section style=\"margin-right: 0%; margin-bottom: 4px; margin-left: 0%;\">\n<section style=\"background-color: #9572ef; height: 1px;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"color: #000000;\">\n<p style=\"white-space: normal;\">\u5982\u56fe\u00a0 1 \u6240\u793a\uff0cPC1\u548cPC2\u5206\u522b\u4e3aVLAN 2\u548cVLAN 3\u5185\u7684\u7528\u6237\uff0c\u8981\u6c42PC1\u3001PC2\u95f4\u4e92\u901a\u3002<\/p>\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px;\">\n<section style=\"vertical-align: middle; display: inline-block; line-height: 0;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-e607dba7f9e56758e991f0c46e63a348.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"vertical-align: middle; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-e607dba7f9e56758e991f0c46e63a348.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.8356546\" data-type=\"png\" data-w=\"359\" \/><\/div><\/section>\n<\/section>\n<section style=\"color: #000000;\">\n<p style=\"text-align: center; white-space: normal;\"><span style=\"color: #220f8e;\"><em>\u56fe\u00a0 1\u00a0\u00a0\u901a\u8fc7VLAN Switch\u5b9e\u73b0VLAN\u95f4\u901a\u4fe1\u7ec4\u7f51\u56fe<\/em><\/span><\/p>\n<p style=\"white-space: normal;\">\u53ef\u5728\u8bbe\u5907SwitchA\u4e0a\u914d\u7f6eVLAN Switch\u7684switch-vlan\u529f\u80fd\u5b9e\u73b0\u6b64\u573a\u666f\u4e0bVLAN\u95f4\u7684\u4e92\u901a\u3002\u914d\u7f6e\u540e\uff0c\u7528\u6237\u62a5\u6587\u6309\u914d\u7f6e\u7684\u6307\u5b9a\u8def\u5f84\u8f6c\u53d1\uff0c\u53ef\u4ee5\u5c06port2\u4e0a\u6536\u5230\u7684VLAN2\u7684\u62a5\u6587\u8f6c\u6362\u4e3aVLAN 3\uff0c\u5e76\u6307\u5b9a\u4eceport3\u53d1\u51fa\uff1b\u800cport3\u4e0a\u6536\u5230\u7684VLAN 3\u7684\u62a5\u6587\u5c06\u8f6c\u6362\u4e3aVLAN 2\uff0c\u5e76\u6307\u5b9a\u4eceport2\u53d1\u51fa\u3002\u8fd9\u6837VLAN 2\u548cVLAN 3\u5c31\u5b9e\u73b0\u4e86\u4e92\u76f8\u901a\u4fe1\u3002<\/p>\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<p style=\"white-space: normal;\"><span style=\"color: #ff4c00;\">\u5982\u679cSwitchA\u4e3a\u4e09\u5c42\u4ea4\u6362\u673a\uff0c\u4e5f\u53ef\u901a\u8fc7VLANIF\u5b9e\u73b0VLAN\u95f4\u7684\u4e92\u901a\uff1b\u4f46\u5982\u679cSwitchA\u4e3a\u4e8c\u5c42\u4ea4\u6362\u673a\uff0c\u5219\u53ea\u80fd\u901a\u8fc7VLAN Switch\u7684switch-vlan\u529f\u80fd\u5b9e\u73b0VLAN\u95f4\u7684\u4e92\u901a\u3002<\/span><\/p>\n<p style=\"white-space: normal;\">\n<\/section>\n<section>\n<section style=\"display: flex; flex-flow: row nowrap; margin: 10px 0%; text-align: center; justify-content: center;\">\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; flex: 0 0 auto; align-self: flex-end; min-width: 10%; height: auto; line-height: 1; letter-spacing: 0px;\">\n<section style=\"margin-right: 0%; margin-left: 0%; transform: translate3d(-10px, 0px, 0px);\">\n<section style=\"color: #7342d7; font-size: 32px; padding-right: 18px; padding-left: 18px; letter-spacing: 0px; line-height: 1;\"><strong>03<\/strong><\/section>\n<\/section>\n<section style=\"margin-top: -14px; margin-right: 0%; margin-left: 0%;\">\n<section style=\"display: inline-block; width: 100%; height: 18px; vertical-align: top; overflow: hidden; background-color: rgba(149, 114, 239, 0.12);\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"display: inline-block; vertical-align: bottom; width: auto; align-self: flex-end; flex: 100 100 0%; height: auto; padding-left: 6px; margin-left: -30px; border-style: none; border-width: 0px; border-right-color: #9572ef;\">\n<section style=\"color: #7342d7; text-align: left; letter-spacing: 1px;\"><strong>\u00a0 \u00a0 \u00a0VLAN\u95f4\u901a\u8fc7VLAN Switch\u901a\u4fe1<\/strong><\/section>\n<section style=\"margin-right: 0%; margin-bottom: 4px; margin-left: 0%;\">\n<section style=\"background-color: #9572ef; height: 1px;\">\n<section><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<section style=\"color: #000000;\">\n<p style=\"white-space: normal;\"><span style=\"color: #1a7f09;\"><strong>3.1\u00a0 \u7ec4\u7f51\u9700\u6c42<\/strong><\/span><\/p>\n<p style=\"white-space: normal;\">\u5982\u56fe 2 \u6240\u793a\uff0cSwitch\u7684\u63a5\u53e3GE1\/0\/1\u3001GE1\/0\/2\u5206\u522b\u4e0eSwitchA\u3001SwitchB\u4e0a\u884c\u53e3\u76f8\u8fde\uff0cSwitchA\u3001SwitchB\u7684\u4e0b\u884c\u63a5\u53e3\u5206\u522b\u52a0\u5165VLAN10\u3001VLAN20\u3002\u8981\u6c42VLAN10\u5185\u7684PC\u4e0eVLAN20\u5185\u7684PC\u80fd\u591f\u4e92\u76f8\u8bbf\u95ee\u3002<\/p>\n<\/section>\n<section style=\"text-align: center; margin-top: 10px; margin-bottom: 10px;\">\n<section style=\"vertical-align: middle; display: inline-block; line-height: 0;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-540156c17b59a277f76548328d6dc53c.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"vertical-align: middle; box-sizing: border-box;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2022\/01\/wxsync-2022-01-540156c17b59a277f76548328d6dc53c.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.661442\" data-type=\"png\" data-w=\"319\" \/><\/div><\/section>\n<\/section>\n<section style=\"color: #000000;\">\n<p style=\"text-align: center; white-space: normal;\"><span style=\"color: #220f8e;\"><em>\u56fe 2\u00a0\u00a0\u914d\u7f6eVLAN\u95f4\u901a\u8fc7VLAN Switch\u901a\u4fe1\u7ec4\u7f51\u56fe<\/em><\/span><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: #1a7f09;\"><strong>3.2\u00a0 \u914d\u7f6e\u601d\u8def<\/strong><\/span><\/p>\n<p style=\"white-space: normal;\">\u91c7\u7528\u5982\u4e0b\u7684\u601d\u8def\u914d\u7f6e\u4e0d\u540cVLAN\u901a\u8fc7Switch\u4e92\u76f8\u901a\u4fe1\uff1a<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u914d\u7f6eSwitchA\u3001SwitchB\u7684\u76f8\u5173\u63a5\u53e3\u52a0\u5165VLAN\u3002&nbsp;<\/li>\n<li>\u914d\u7f6eSwitch\u7684VLAN\u00a0Switch\u529f\u80fd<\/li>\n<\/ul>\n<p style=\"white-space: normal;\"><span style=\"color: #ff4c00;\">VLAN10\u3001VLAN20\u4e0d\u80fd\u662fSwitch\u5df2\u7ecf\u521b\u5efa\u7684\u5168\u5c40VLAN\uff0c\u4e14\u63a5\u53e3GE1\/0\/1\u4e0d\u80fd\u52a0\u5165VLAN10\uff0cGE1\/0\/2\u4e0d\u80fd\u52a0\u5165VLAN20\uff0c\u5426\u5219\u65e0\u6cd5\u914d\u7f6eVLAN Switch\u3002<\/span><\/p>\n<p style=\"white-space: normal;\"><span style=\"color: #1a7f09;\"><strong>3.3\u00a0 \u64cd\u4f5c\u6b65\u9aa4<\/strong><\/span><\/p>\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<p style=\"white-space: normal;\">\u30101\u3011\u5728SwitchA\u4e0a\u521b\u5efaVLAN10\uff0c\u914d\u7f6eSwitchA\u7684\u63a5\u53e3GE1\/0\/1\u4ee5tagged\u65b9\u5f0f\u52a0\u5165VLAN10\uff0cGE1\/0\/2\u548cGE1\/0\/3\u4ee5Access\u65b9\u5f0f\u52a0\u5165VLAN10\u3002SwitchB\u7684\u914d\u7f6e\u4e0eSwitchA\u7c7b\u4f3c\uff0c\u4e0d\u518d\u8d58\u8ff0\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; padding: 8px; -webkit-tap-highlight-color: transparent; background-color: #dddddd; overflow: auto; color: #494949; font-size: 14px; text-align: left; border: initial none initial;\">&lt;<span style=\"-webkit-tap-highlight-color: transparent;\">HUAWEI<\/span>&gt; <strong style=\"-webkit-tap-highlight-color: transparent;\">system-view<\/strong>\r\n[<span style=\"-webkit-tap-highlight-color: transparent;\">HUAWEI<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">sysname SwitchA<\/strong>\r\n[SwitchA] <strong style=\"-webkit-tap-highlight-color: transparent;\">vlan 10<\/strong>\r\n[SwitchA-vlan10] <strong style=\"-webkit-tap-highlight-color: transparent;\">quit<\/strong>\r\n[SwitchA] <strong style=\"-webkit-tap-highlight-color: transparent;\">interface <span style=\"-webkit-tap-highlight-color: transparent;\">gigabitethernet<\/span> <span style=\"-webkit-tap-highlight-color: transparent;\">1\/0\/1<\/span><\/strong>\r\n<span style=\"-webkit-tap-highlight-color: transparent;\">[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>] <\/span><span style=\"-webkit-tap-highlight-color: transparent; color: #ff4c00;\"><strong style=\"-webkit-tap-highlight-color: transparent;\">port link-type hybri<\/strong><\/span><span style=\"-webkit-tap-highlight-color: transparent;\"><strong style=\"-webkit-tap-highlight-color: transparent;\">d <\/strong>\r\n<\/span>[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>] <span style=\"color: #ff4c00;\"><strong style=\"-webkit-tap-highlight-color: transparent;\">port hybrid tagged vlan 10<\/strong><\/span>\r\n[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">quit<\/strong>\r\n[SwitchA] <strong style=\"-webkit-tap-highlight-color: transparent;\">interface <span style=\"-webkit-tap-highlight-color: transparent;\">gigabitethernet<\/span> <span style=\"-webkit-tap-highlight-color: transparent;\">1\/0\/2<\/span><\/strong>\r\n[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">port link-type access<\/strong>\r\n[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">port default vlan 10<\/strong>\r\n[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">quit<\/strong>\r\n[SwitchA] <strong style=\"-webkit-tap-highlight-color: transparent;\">interface <span style=\"-webkit-tap-highlight-color: transparent;\">gigabitethernet<\/span> <span style=\"-webkit-tap-highlight-color: transparent;\">1\/0\/3<\/span><\/strong>\r\n[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/3<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">port link-type access<\/strong>\r\n[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/3<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">port default vlan 10<\/strong>\r\n[SwitchA-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/3<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">quit<\/strong><\/pre>\n<p style=\"white-space: normal;\">\u30102\u3011\u914d\u7f6eSwitch<\/p>\n<p style=\"white-space: normal;\"><strong># \u914d\u7f6eSwitch\u7684VLAN Switch\u529f\u80fd<\/strong><\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; padding: 8px; -webkit-tap-highlight-color: transparent; background-color: #dddddd; overflow: auto; color: #494949; font-size: 14px; text-align: left; border: initial none initial;\">&lt;<span style=\"-webkit-tap-highlight-color: transparent;\">HUAWEI<\/span>&gt; <strong style=\"-webkit-tap-highlight-color: transparent;\">system-view<\/strong>\r\n[<span style=\"-webkit-tap-highlight-color: transparent;\">HUAWEI<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">sysname Switch<\/strong>\r\n<span style=\"-webkit-tap-highlight-color: transparent;\">[<span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">interface <span style=\"-webkit-tap-highlight-color: transparent;\">gigabitethernet<\/span> <span style=\"-webkit-tap-highlight-color: transparent;\">1\/0\/1<\/span><\/strong>\r\n[<span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>] <\/span><span style=\"-webkit-tap-highlight-color: transparent; color: #ff4c00;\"><strong style=\"-webkit-tap-highlight-color: transparent;\">port link-type hybrid<\/strong><\/span><span style=\"-webkit-tap-highlight-color: transparent;\">\r\n[<span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">quit<\/strong>\r\n[<span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">interface <span style=\"-webkit-tap-highlight-color: transparent;\">gigabitethernet<\/span> <span style=\"-webkit-tap-highlight-color: transparent;\">1\/0\/2<\/span><\/strong>\r\n[<span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>] <\/span><span style=\"-webkit-tap-highlight-color: transparent; color: #ff4c00;\"><strong style=\"-webkit-tap-highlight-color: transparent;\">port link-type hybrid<\/strong><\/span><span style=\"-webkit-tap-highlight-color: transparent;\">\r\n[<span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>-<span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>] <strong style=\"-webkit-tap-highlight-color: transparent;\">quit<\/strong>\r\n<\/span>[<span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>] <span style=\"color: #ff4c00;\"><strong style=\"-webkit-tap-highlight-color: transparent;\">vlan-switch name1 interface <span style=\"color: #ff4c00; -webkit-tap-highlight-color: transparent;\">gigabitethernet<\/span> <span style=\"color: #ff4c00; -webkit-tap-highlight-color: transparent;\">1\/0\/1<\/span> vlan 10 interface <span style=\"color: #ff4c00; -webkit-tap-highlight-color: transparent;\">gigabitethernet<\/span> <span style=\"color: #ff4c00; -webkit-tap-highlight-color: transparent;\">1\/0\/2<\/span> switch-vlan 20<\/strong><\/span><\/pre>\n<p style=\"white-space: normal;\">\u30103\u3011\u68c0\u67e5\u914d\u7f6e\u7ed3\u679c<\/p>\n<p style=\"white-space: normal;\">\u914d\u7f6e\u5b8c\u6210\u540e\uff0cVLAN10\u5185\u7684PC\u4e0eVLAN20\u7684PC\u80fd\u591f\u76f8\u4e92\u8bbf\u95ee\u3002<\/p>\n<p style=\"white-space: normal;\"><span style=\"color: #1a7f09;\"><strong>3.4\u00a0 \u914d\u7f6e\u6587\u4ef6<\/strong><\/span><\/p>\n<section class=\"mp_profile_iframe_wrp\"><\/section>\n<p style=\"white-space: normal;\">SwitchA\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; padding: 8px; -webkit-tap-highlight-color: transparent; background-color: #dddddd; overflow: auto; color: #494949; font-size: 14px; text-align: left; border: initial none initial;\">#\r\nsysname SwitchA\r\n#\r\nvlan batch 10\r\n#\r\ninterface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>\r\n<strong><span style=\"color: #ff4c00;\"><span style=\"-webkit-tap-highlight-color: transparent;\"> port link-type hybrid\r\n<\/span> port hybrid tagged vlan 10<\/span><\/strong>\r\n#\r\ninterface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>\r\n port link-type access\r\n port default vlan 10\r\n#\r\ninterface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/3<\/span>\r\n port link-type access\r\n port default vlan 10\r\n#\r\nreturn<\/pre>\n<p style=\"white-space: normal;\">SwitchB\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; padding: 8px; -webkit-tap-highlight-color: transparent; background-color: #dddddd; overflow: auto; color: #494949; font-size: 14px; text-align: left; border: initial none initial;\">#\r\nsysname SwitchB\r\n#\r\nvlan batch 20\r\n#\r\ninterface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>\r\n<strong><span style=\"color: #ff4c00;\"><span style=\"-webkit-tap-highlight-color: transparent;\"> port link-type hybrid\r\n<\/span> port hybrid tagged vlan 20<\/span><\/strong>\r\n#\r\ninterface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>\r\n port link-type access\r\n port default vlan 20\r\n#\r\ninterface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/3<\/span>\r\n port link-type access\r\n port default vlan 20\r\n#\r\nreturn<\/pre>\n<p style=\"white-space: normal;\">Switch\u7684\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n<pre style=\"margin-top: 10px; margin-bottom: 10px; padding: 8px; -webkit-tap-highlight-color: transparent; background-color: #dddddd; overflow: auto; color: #494949; font-size: 14px; text-align: left; border: initial none initial;\">#\r\nsysname <span style=\"-webkit-tap-highlight-color: transparent;\">Switch<\/span>\r\n#\r\n<strong><span style=\"color: #ff4c00;\">vlan-switch name1 interface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span> vlan 10 interface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span> switch-vlan 20<\/span><\/strong>\r\n#\r\n<span style=\"-webkit-tap-highlight-color: transparent;\">interface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/1<\/span>\r\n<\/span><strong><span style=\"-webkit-tap-highlight-color: transparent; color: #ff4c00;\"> port link-type hybrid<\/span><\/strong><span style=\"-webkit-tap-highlight-color: transparent;\">\r\n#\r\ninterface <span style=\"-webkit-tap-highlight-color: transparent;\">GigabitEthernet1\/0\/2<\/span>\r\n <\/span><strong><span style=\"-webkit-tap-highlight-color: transparent; color: #ff4c00;\">port link-type hybrid<\/span><\/strong><span style=\"-webkit-tap-highlight-color: transparent;\">\r\n#\r\n<\/span>return<\/pre>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u524d\u8a00 VLAN Switch\u662f\u4e00\u79cd\u6309\u7167VLAN Tag\u8fdb\u884c\u6570\u636e\u8f6c\u53d1\u7684\u8f6c\u53d1\u6280\u672f\uff0c\u9700\u8981\u9884\u5148\u5728\u7f51\u7edc\u4e2d\u5404\u4ea4\u6362\u8282\u70b9\u4e0a\u5efa\u7acb [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-5399","post","type-post","status-publish","format-standard","hentry","category-cisco"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5399"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5399\/revisions"}],"predecessor-version":[{"id":5837,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5399\/revisions\/5837"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}