{"id":5128,"date":"2021-12-15T16:00:00","date_gmt":"2021-12-16T00:00:00","guid":{"rendered":"https:\/\/www.xh86.me\/?p=5128"},"modified":"2021-12-18T17:56:11","modified_gmt":"2021-12-19T01:56:11","slug":"%e8%b6%85%e5%85%a8%ef%bc%81%e5%8d%8e%e4%b8%ba%e4%ba%a4%e6%8d%a2%e6%9c%ba%e7%ab%af%e5%8f%a3vlan%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.xh86.me\/?p=5128","title":{"rendered":"\u534e\u4e3a\u4ea4\u6362\u673a\u7aef\u53e3vlan\u8be6\u89e3"},"content":{"rendered":"<div class=\"wxsyncmain\">\n<section data-mpa-template=\"t\" data-mpa-powered-by=\"yiban.io\">\n<section style=\"display: flex; justify-content: center; align-items: center;\" data-mpa-category=\"\u6a21\u677f\" data-mid=\"\">\n<section style=\"display: flex; justify-content: center; align-items: center;\" data-mid=\"\"><\/section>\n<\/section>\n<\/section>\n<section style=\"margin-right: 8px; margin-left: 8px; letter-spacing: 0.544px; white-space: normal; font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; background-color: #ffffff; font-size: 16px; line-height: 1.5em; text-align: center;\"><\/section>\n<section>\n<section data-author=\"Wxeditor\">\n<section>\n<section><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u534e\u4e3a\u4ea4\u6362\u673a\u548c\u5176\u4ed6\u54c1\u724c\u7684\u4ea4\u6362\u673a\u5728\u7aef\u53e3\u7684vlan\u5212\u5206\u4e0a\u6709\u4e00\u4e9b\u533a\u522b\uff0c\u4eca\u5929\u5c31\u548c\u5927\u5bb6\u8be6\u7ec6\u8bf4\u8bf4\u534e\u4e3a\u4ea4\u6362\u673a\u7684\u7aef\u53e3vlan\u5c5e\u6027~<\/span><\/p>\n<p style=\"margin-right: 15px; margin-left: 15px; max-width: 100%; min-height: 1em; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<\/section>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6309\u7167IEEE802.1Q\u6807\u51c6\uff0cvlan\u5e27\u7684\u683c\u5f0f\u5982\u4e0b\uff1a<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-b68d9202fb15ee3436ec76f24189e19d.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"rich_pages wxw-img\" style=\"box-sizing: border-box !important; overflow-wrap: break-word !important; width: 592px !important; visibility: visible !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-b68d9202fb15ee3436ec76f24189e19d.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"0.3546666666666667\" data-type=\"png\" data-w=\"750\" \/><\/div><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u6b64\u5904\u7684Tag\u5c31\u662fvlan tag\uff0c\u5373\u6211\u4eec\u5e38\u8bf4\u7684vlan\u6807\u7b7e\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u5177\u4f53\u542b\u4e49\u5982\u4e0b\uff1a<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 14px; color: #7f7f7f; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2460TPID\u4e3a\u56fa\u5b9a\u503c0x8100\uff0c\u8868\u660e\u52a0\u4e86\u4e00\u4e2avlan\u6807\u7b7e<\/span><\/p>\n<p><span style=\"max-width: 100%; font-size: 14px; color: #7f7f7f; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2461PRI\u4e3a\u4f18\u5148\u7ea7\uff0c0~7<\/span><\/p>\n<p><span style=\"max-width: 100%; font-size: 14px; color: #7f7f7f; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2462CFI\uff0c\u53d60\u8868\u793a\u4e3a\u89c4\u8303\u683c\u5f0f\uff0c\u53d61\u8868\u793a\u975e\u89c4\u8303\u683c\u5f0f<\/span><\/p>\n<p><span style=\"max-width: 100%; font-size: 14px; color: #7f7f7f; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2463vlan ID\u4e3avlan\u53f7\uff0c\u53d6\u503c\u8303\u56f41-4094<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"margin-right: 15px; margin-left: 15px; max-width: 100%; min-height: 1em; font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"background-color: #ffffff;\">\u9996\u5148\u63d0\u4e00\u4e2a\u6982\u5ff5\uff0c\u5373PVID\uff08Port Vlan ID\uff09\uff0c\u8fd9\u662f\u7aef\u53e3\u7684\u4e00\u4e2a\u57fa\u672c\u5c5e\u6027\uff0c\u53ef\u624b\u52a8\u8bbe\u7f6e\uff0c\u9ed8\u8ba4\u503c\u4e3a1\u3002<\/span><span style=\"background-color: #ffffff;\">\u5176\u6b21\uff0c\u6240\u6709\u7684\u4ee5\u592a\u7f51\u5e27\u5728\u4ea4\u6362\u673a\u4e2d\u8fdb\u884c\u5904\u7406<\/span>\u7684<span style=\"background-color: #ffffff;\">\u65f6\u5019\uff0c\u90fd\u662f\u6309\u7167\u4e0a\u56fe\u683c\u5f0f\u6765\u8fdb\u884c\u5904\u7406\u7684<\/span><span style=\"background-color: #ffffff;\">\uff0c\u5373\u5e27\u90fd\u662f\u5e26\u4e86vlan tag\u7684\u3002<\/span><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u534e\u4e3a\u4ea4\u6362\u673a\u7684\u7aef\u53e3\u6709\u4e09\u79cd\u6a21\u5f0f\uff0c\u5206\u522b\u662f<span style=\"max-width: 100%; color: #c00000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">access\uff0ctrunk\uff0chybrid\u3002<\/span><\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"93196\">\n<section style=\"max-width: 100%; text-align: center; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; display: flex; justify-content: center; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; width: 50px; height: 50px; z-index: 2; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-df0ba37c34d6f70ac04d444558611b2c.gif'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"__bg_gif\" style=\"background-color: #eeedeb; background-size: 22px; background-position: center center; background-repeat: no-repeat; box-sizing: border-box !important; overflow-wrap: break-word !important; height: 50px !important; width: 50px !important; border: 1px solid #eeedeb;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-df0ba37c34d6f70ac04d444558611b2c.gif\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1\" data-type=\"gif\" data-w=\"512\" \/><\/div><\/section>\n<section style=\"margin-top: 25px; margin-left: -30px; max-width: 100%; display: inline-block; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; box-sizing: border-box; height: 5px; background: #d3efe4; overflow-wrap: break-word !important; border: 1px solid #496785;\"><\/section>\n<section style=\"padding: 5px 0.8em; max-width: 100%; box-sizing: border-box; border-right: 1px solid #496785; border-bottom: 1px solid #496785; border-left: 1px solid #496785; border-top: none; color: #3f3f3f; letter-spacing: 1.5px; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-brushtype=\"text\"><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\">access<\/strong><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; color: #c00000; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">1\u3001access\u7aef\u53e3\u63a5\u6536\u5e27\u65f6\uff1a<\/span><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2460\u5982\u679c\u63a5\u6536\u7684\u5e27\u6709vlan tag\u65f6\uff0c\u8be5\u5e27\u7684vlan ID\u548caccess\u7aef\u53e3\u7684PVID\u76f8\u540c\u65f6\uff0c\u5c06\u6539\u5e27\u9001\u5165\u4ea4\u6362\u673a\uff1b\u8be5\u5e27\u7684vlan ID\u548caccess\u7aef\u53e3\u7684PVID\u4e0d\u540c\u65f6\uff0c\u4e22\u5f03\u5e27\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2461\u5982\u679c\u63a5\u6536\u7684\u5e27\u6ca1\u6709vlan tag\u65f6\uff0caccess\u7aef\u53e3\u4f1a\u5c06\u8be5\u5e27\u6253\u4e0avlan tag\uff0cvlan ID\u5373\u4e3a\u672c\u7aef\u53e3\u7684PVID\uff0c\u9001\u5165\u4ea4\u6362\u673a\u3002<\/span><\/p>\n<p style=\"text-align: center;\">\n<p><span style=\"max-width: 100%; color: #c00000; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">2\u3001access\u7aef\u53e3\u53d1\u9001\u5e27\u65f6\uff1a<\/span><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">access\u7aef\u53e3\u53ea\u80fd\u53d1\u9001vlan ID\u548c\u7aef\u53e3PVID\u76f8\u540c\u7684\u5e27\uff0c\u53d1\u9001\u51fa\u53bb\u65f6\u4f1a\u5265\u6389vlan tag\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u4f8b\u5b50\uff1a<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/3<\/span>]port\u00a0link-type\u00a0access<\/span><\/code><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/3<\/span>]port\u00a0<span class=\"code-snippet__keyword\">default<\/span>\u00a0vlan\u00a0<span class=\"code-snippet__number\">10<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">\u6b64\u65f6\u8be5\u7aef\u53e3\u4e3aaccess\u7aef\u53e3\uff0cPVID\u4e3a<span class=\"code-snippet__number\">10<\/span>\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be5\u7aef\u53e3\u53ea\u80fd\u53d1\u9001vlan\u00a0ID\u4e3a<span class=\"code-snippet__number\">10<\/span>\u7684\u5e27\uff0c\u53d1\u9001\u51fa\u6765\u7684\u5e27\u6ca1\u6709vlan tag\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be5\u7aef\u53e3\u53ef\u4ee5\u63a5\u6536vlan\u00a0ID\u4e3a<span class=\"code-snippet__number\">10<\/span>\u7684\u5e27\uff08\u5982\u4ea4\u6362\u673a\u4f20\u51fa\u7684\u5e27\uff09\uff1b\u4e5f\u53ef\u4ee5\u63a5\u6536\u6ca1\u6709vlan tag\u7684\u5e27\uff08\u5982PC\u4f20\u51fa\u7684\u5e27\uff09\uff0c\u6b64\u5e27\u5c06\u6253\u4e0avlan tag\uff08vlan ID=<span class=\"code-snippet__number\">10<\/span>\uff09\u4f20\u5165\u4ea4\u6362\u673a\u3002<\/span><\/code><\/pre>\n<\/section>\n<p>&nbsp;<\/p>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"93196\">\n<section style=\"max-width: 100%; text-align: center; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; display: flex; justify-content: center; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; width: 50px; height: 50px; z-index: 2; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-df0ba37c34d6f70ac04d444558611b2c.gif'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"__bg_gif\" style=\"box-sizing: border-box !important; overflow-wrap: break-word !important; width: 512px !important; visibility: visible !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-df0ba37c34d6f70ac04d444558611b2c.gif\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1\" data-type=\"gif\" data-w=\"512\" \/><\/div><\/section>\n<section style=\"margin-top: 25px; margin-left: -30px; max-width: 100%; display: inline-block; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; box-sizing: border-box; height: 5px; background: #d3efe4; overflow-wrap: break-word !important; border: 1px solid #496785;\"><\/section>\n<section style=\"padding: 5px 0.8em; max-width: 100%; box-sizing: border-box; border-right: 1px solid #496785; border-bottom: 1px solid #496785; border-left: 1px solid #496785; border-top: none; color: #3f3f3f; letter-spacing: 1.5px; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-brushtype=\"text\"><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\">trunk<\/strong><\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #c00000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">1\u3001trunk\u7aef\u53e3\u63a5\u6536\u5e27\u65f6\uff1a<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2460\u63a5\u6536\u6ca1\u6709vlan tag\u7684\u5e27\uff0ctrunk\u7aef\u53e3\u5c06\u5e27\u6253\u4e0avlan tag\uff0cvlan ID\u548c\u672c\u7aef\u53e3\u7684PVID\u76f8\u540c\uff0c\u82e5\u8be5PVID\u5728trunk\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u9001\u5165\u4ea4\u6362\u673a\uff0c\u82e5PVID\u4e0d\u5728trunk\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u4e22\u5f03\u8be5\u5e27\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2461\u63a5\u6536\u6709vlan tag\u7684\u5e27\uff0c\u82e5\u5e27\u7684vlan ID\u5728trunk\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u9001\u5165\u4ea4\u6362\u673a\uff0c\u82e5vlan ID\u4e0d\u5728trunk\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u4e22\u5f03\u8be5\u5e27\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; color: #c00000; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; box-sizing: border-box !important; overflow-wrap: break-word !important;\">2\u3001trunk\u7aef\u53e3\u53d1\u9001\u5e27\u65f6\uff1a<\/span><\/strong><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">trunk\u7aef\u53e3\u53ea\u80fd\u53d1\u9001\u653e\u884cvlan\u4e2d\u7684\u5e27\uff0c\u82e5\u8be5\u5e27\u7684vlan ID\u548ctrunk\u7684PVID\u76f8\u540c\uff0c\u5219\u5265\u6389vlan tag\u53d1\u9001\uff1b\u82e5\u8be5\u5e27\u7684vlan ID\u548ctrunk\u7684PVID\u4e0d\u540c\uff0c\u5219\u4fdd\u7559\u539f\u6709vlan tag\u53d1\u9001\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u4f8b\u5b50<\/span><\/strong><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\uff1a<\/span><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">&nbsp;<\/p>\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/4<\/span>]port\u00a0link-type\u00a0trunk<\/span><\/code><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/4<\/span>]port\u00a0trunk\u00a0pvid\u00a0vlan\u00a0<span class=\"code-snippet__number\">5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/4<\/span>]port\u00a0trunk\u00a0allow-pass\u00a0vlan\u00a0<span class=\"code-snippet__number\">10<\/span>\u00a0<span class=\"code-snippet__number\">20<\/span>\u00a0<span class=\"code-snippet__number\">30<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">\u6b64\u65f6\u8be5\u7aef\u53e3\u4e3atrunk\u7aef\u53e3\uff0cPVID\u4e3a<span class=\"code-snippet__number\">5<\/span>\uff0c\u653e\u884cvlan\u4e3a<span class=\"code-snippet__number\">10<\/span>\uff0c<span class=\"code-snippet__number\">20<\/span>\uff0c<span class=\"code-snippet__number\">30<\/span>\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be5\u7aef\u53e3\u53ef\u4ee5\u53d1\u9001vlan\u00a0ID\u4e3a<span class=\"code-snippet__number\">10<\/span>\uff0c<span class=\"code-snippet__number\">20<\/span>\uff0c<span class=\"code-snippet__number\">30<\/span>\u7684\u5e27\u65f6\uff0c\u53d1\u9001\u51fa\u53bb\u7684\u5e27\u662f\u6709vlan tag\u7684\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be5\u7aef\u53e3\u53ef\u4ee5\u63a5\u6536vlan ID\u4e3a<span class=\"code-snippet__number\">10<\/span>\uff0c<span class=\"code-snippet__number\">20<\/span>\uff0c<span class=\"code-snippet__number\">30<\/span>\u7684\u5e27\u3002<\/span><\/code><\/pre>\n<\/section>\n<section class=\"code-snippet__fix code-snippet__js\">&nbsp;<\/p>\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/5<\/span>]port\u00a0link-type\u00a0trunk<\/span><\/code><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/5<\/span>]port\u00a0trunk\u00a0pvid\u00a0vlan\u00a0<span class=\"code-snippet__number\">5<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/5<\/span>]port trunk allow-pass vlan <span class=\"code-snippet__number\">5<\/span> <span class=\"code-snippet__number\">10<\/span> <span class=\"code-snippet__number\">20<\/span> <span class=\"code-snippet__number\">30<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">\u6b64\u65f6\u8be5\u7aef\u53e3\u4e3atrunk\u7aef\u53e3\uff0cPVID\u4e3a<span class=\"code-snippet__number\">5<\/span>\uff0c\u653e\u884cvlan\u4e3a<span class=\"code-snippet__number\">5<\/span>\uff0c<span class=\"code-snippet__number\">10<\/span>\uff0c<span class=\"code-snippet__number\">20<\/span>\uff0c<span class=\"code-snippet__number\">30<\/span>\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be5\u7aef\u53e3\u53ef\u4ee5\u53d1\u9001vlan\u00a0ID\uff0c<span class=\"code-snippet__number\">5<\/span>\uff0c<span class=\"code-snippet__number\">10<\/span>\uff0c<span class=\"code-snippet__number\">20<\/span>\uff0c<span class=\"code-snippet__number\">30<\/span>\u7684\u5e27\uff0c\u53d1\u9001vlan\u00a0ID\u4e3a<span class=\"code-snippet__number\">10<\/span>\u3001<span class=\"code-snippet__number\">20<\/span>\u3001<span class=\"code-snippet__number\">30<\/span>\u7684\u5e27\u65f6\uff0c\u5e27\u662f\u6709vlan tag\u7684\uff1b\u53d1\u9001vlan ID\u4e3a<span class=\"code-snippet__number\">5<\/span>\u7684\u5e27\uff0c\u5e27\u662f\u6ca1\u6709vlan tag\u7684\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u8be5\u7aef\u53e3\u53ef\u4ee5\u63a5\u6536vlan\u00a0ID\u4e3a<span class=\"code-snippet__number\">5<\/span>\uff0c<span class=\"code-snippet__number\">10<\/span>\uff0c<span class=\"code-snippet__number\">20<\/span>\uff0c<span class=\"code-snippet__number\">30<\/span>\u7684\u5e27\uff0c\u4e5f\u53ef\u4ee5\u63a5\u6536\u6ca1\u6709vlan tag\u7684\u5e27\u3002<\/span><\/code><\/pre>\n<\/section>\n<section style=\"max-width: 100%; font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif; font-size: 16px; letter-spacing: 0.544px; white-space: normal; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"93521\">\n<section style=\"background-color: #ffffff; margin-top: -21px; max-width: 100%; display: flex; justify-content: flex-end; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><\/section>\n<\/section>\n<section data-tools=\"135\u7f16\u8f91\u5668\" data-id=\"93196\">\n<section style=\"max-width: 100%; text-align: center; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; display: flex; justify-content: center; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; width: 50px; height: 50px; z-index: 2; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-df0ba37c34d6f70ac04d444558611b2c.gif'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"__bg_gif\" style=\"box-sizing: border-box !important; overflow-wrap: break-word !important; width: 512px !important; visibility: visible !important;\" data-original=\"https:\/\/www.xh86.me\/wp-content\/uploads\/2021\/12\/wxsync-2021-12-df0ba37c34d6f70ac04d444558611b2c.gif\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" data-ratio=\"1\" data-type=\"gif\" data-w=\"512\" \/><\/div><\/section>\n<section style=\"margin-top: 25px; margin-left: -30px; max-width: 100%; display: inline-block; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; box-sizing: border-box; height: 5px; background: #d3efe4; overflow-wrap: break-word !important; border: 1px solid #496785;\"><\/section>\n<section style=\"padding: 5px 0.8em; max-width: 100%; box-sizing: border-box; border-right: 1px solid #496785; border-bottom: 1px solid #496785; border-left: 1px solid #496785; border-top: none; color: #3f3f3f; letter-spacing: 1.5px; overflow-wrap: break-word !important;\">\n<section style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\" data-brushtype=\"text\">hybrid<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #c00000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">1\u3001hybrid\u7aef\u53e3\u63a5\u6536\u5e27\u65f6\uff1a<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2460\u63a5\u6536\u6ca1\u6709vlan tag\u7684\u5e27\uff0chybrid\u7aef\u53e3\u5c06\u5e27\u6253\u4e0avlan tag\uff0cvlan ID\u548c\u672c\u7aef\u53e3\u7684PVID\u76f8\u540c\uff0c\u82e5\u8be5PVID\u5728hybrid\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u9001\u5165\u4ea4\u6362\u673a\uff0c\u82e5PVID\u4e0d\u5728hybrid\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u4e22\u5f03\u8be5\u5e27\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u2461\u63a5\u6536\u6709vlan tag\u7684\u5e27\uff0c\u82e5\u5e27\u7684vlan ID\u5728hybrid\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u9001\u5165\u4ea4\u6362\u673a\uff0c\u82e5vlan ID\u4e0d\u5728hybrid\u7aef\u53e3\u7684\u653e\u884cvlan\u4e2d\uff0c\u4e22\u5f03\u8be5\u5e27\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #c00000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">2\u3001hybrid\u7aef\u53e3\u53d1\u9001\u5e27\u65f6\uff1a<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">hybrid\u7aef\u53e3\u53ea\u80fd\u53d1\u9001\u653e\u884cvlan\u4e2d\u7684\u5e27\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u6765\u63a7\u5236\u53d1\u9001\u65f6\u662f\u5426\u643a\u5e26vlan tag\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><strong style=\"max-width: 100%; box-sizing: border-box !important; overflow-wrap: break-word !important;\"><span style=\"max-width: 100%; font-size: 15px; color: #000000; box-sizing: border-box !important; overflow-wrap: break-word !important;\">\u4f8b\u5b50\uff1a<\/span><\/strong><\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<pre class=\"code-snippet__js\" data-lang=\"cs\"><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/6<\/span>]port\u00a0hybrid\u00a0pvid\u00a0vlan\u00a0<span class=\"code-snippet__number\">10<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/6<\/span>]port\u00a0hybrid\u00a0tagged\u00a0vlan\u00a0<span class=\"code-snippet__number\">10<\/span>\u00a0<span class=\"code-snippet__number\">20<\/span>\u00a0<span class=\"code-snippet__number\">30<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">[<span class=\"code-snippet__meta\">Huawei-GigabitEthernet0\/0\/6<\/span>]port hybrid untagged vlan <span class=\"code-snippet__number\">100<\/span> <span class=\"code-snippet__number\">200<\/span> <span class=\"code-snippet__number\">300<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\">\u6b64\u7aef\u53e3\u4e3ahybrid\u7aef\u53e3\uff0cPVID\u4e3a<span class=\"code-snippet__number\">10<\/span>\uff0c\u653e\u884c\u7684vlan\u6709<span class=\"code-snippet__number\">10<\/span>\u3001<span class=\"code-snippet__number\">20<\/span>\u3001<span class=\"code-snippet__number\">30<\/span>\u3001<span class=\"code-snippet__number\">100<\/span>\u3001<span class=\"code-snippet__number\">200<\/span>\u3001<span class=\"code-snippet__number\">300<\/span>\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u7aef\u53e3\u63a5\u6536\u5e27\u65f6\u540ctrunk\u662f\u4e00\u6837\u3002<\/span><\/code><code><span class=\"code-snippet_outer\">\u7aef\u53e3\u53d1\u9001\u5e27\u65f6\uff0cvlan\u00a0ID\u4e3a<span class=\"code-snippet__number\">10<\/span>\u3001<span class=\"code-snippet__number\">20<\/span>\u3001<span class=\"code-snippet__number\">30<\/span>\u7684\u5e27\u662f\u6709vlan tag\u7684\uff1bvlan ID\u4e3a<span class=\"code-snippet__number\">100<\/span>\u3001<span class=\"code-snippet__number\">200<\/span>\u3001<span class=\"code-snippet__number\">300<\/span>\u7684\u5e27\u662f\u6ca1\u6709vlan tag\u7684\u3002<\/span><\/code><\/pre>\n<\/section>\n<\/section>\n<\/section>\n<\/section>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u534e\u4e3a\u4ea4\u6362\u673a\u548c\u5176\u4ed6\u54c1\u724c\u7684\u4ea4\u6362\u673a\u5728\u7aef\u53e3\u7684vlan\u5212\u5206\u4e0a\u6709\u4e00\u4e9b\u533a\u522b\uff0c\u4eca\u5929\u5c31\u548c\u5927\u5bb6\u8be6\u7ec6\u8bf4\u8bf4\u534e\u4e3a\u4ea4\u6362\u673a\u7684\u7aef\u53e3vlan\u5c5e\u6027 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-5128","post","type-post","status-publish","format-standard","hentry","category-hw"],"_links":{"self":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5128","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=5128"}],"version-history":[{"count":1,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5128\/revisions"}],"predecessor-version":[{"id":5252,"href":"https:\/\/www.xh86.me\/index.php?rest_route=\/wp\/v2\/posts\/5128\/revisions\/5252"}],"wp:attachment":[{"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xh86.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}