{"id":3437,"date":"2025-06-29T19:03:53","date_gmt":"2025-06-29T19:03:53","guid":{"rendered":"https:\/\/zilleali.com\/?p=3437"},"modified":"2026-11-21T15:15:31","modified_gmt":"2026-11-21T10:15:31","slug":"vlans-and-inter-vlan-routing-explained-for-ccna-2025","status":"publish","type":"post","link":"https:\/\/zilleali.com\/zh\/vlans-and-inter-vlan-routing-explained-for-ccna-2025\/","title":{"rendered":"VLAN \u4e0e\u8de8 VLAN \u8def\u7531\u8be6\u89e3\uff08\u9002\u7528\u4e8e CCNA\uff0c2025\uff09"},"content":{"rendered":"<h2 id=\"introduction-why-vlans-matter-in-modern-networks\" class=\"wp-block-heading\">\u8de8 VLAN \u8def\u7531 CCNA\uff1a\u4e3a\u4f55 VLAN \u5728\u73b0\u4ee3\u7f51\u7edc\u4e2d\u81f3\u5173\u91cd\u8981<\/h2>\n<p class=\"wp-block-paragraph\">\u8de8 VLAN \u8def\u7531 CCNA \u4e3b\u9898\u76f4\u63a5\u57fa\u4e8e VLAN \u6700\u521d\u5b58\u5728\u7684\u539f\u56e0\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u60f3\u8c61\u4e00\u4e0b\uff0c\u5982\u679c\u7ec4\u7ec7\u4e2d\u7684\u6bcf\u53f0\u8bbe\u5907\u2014\u2014\u4ece\u4eba\u529b\u8d44\u6e90\u5230 IT\u2014\u2014\u90fd\u5171\u4eab\u540c\u4e00\u4e2a\u5e7f\u64ad\u57df\u3002\u4f1a\u5f88\u6df7\u4e71\uff0c\u5bf9\u5427\uff1f<\/p>\n<p class=\"wp-block-paragraph\">\u8fd9\u5c31\u662f <strong>VLAN\uff08\u865a\u62df\u5c40\u57df\u7f51\uff09<\/strong> \u7684\u7528\u6b66\u4e4b\u5730\u3002\u5b83\u4eec\u8ba9\u60a8 <strong>\u5212\u5206<\/strong> \u60a8\u7684\u7f51\u7edc <strong>\u903b\u8f91\u4e0a<\/strong> \u800c\u65e0\u9700\u589e\u52a0\u66f4\u591a\u7269\u7406\u4ea4\u6362\u673a\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u5728\u5b9e\u9645\u7684 Cisco \u7f51\u7edc\u4e2d\uff0c\u60a8\u8fd8\u9700\u8981 <strong>\u5728 VLAN \u4e4b\u95f4\u8fdb\u884c\u8def\u7531<\/strong>\uff0c\u8fd9\u6b63\u662f\u8de8 VLAN \u8def\u7531\u53d1\u6325\u4f5c\u7528\u7684\u5730\u65b9\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u672c\u535a\u5ba2\u4ee5\u4e00\u79cd <strong>\u6e05\u6670\u3001\u7b26\u5408 CCNA \u8981\u6c42\u7684\u683c\u5f0f<\/strong>\uff0c\u63d0\u4f9b\u5b9e\u9a8c\u3001\u547d\u4ee4\u548c\u771f\u5b9e\u6848\u4f8b\u3002<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 id=\"what-is-a-vlan\" class=\"wp-block-heading\">\ud83e\udde9 \u4ec0\u4e48\u662f VLAN\uff1f<\/h2>\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A\/\/www.w3.org\/2000\/svg%22%20viewBox%3D%220%200%20760%20340%22%20font-family%3D%22Arial%2C%20sans-serif%22%3E%0A%3Crect%20width%3D%22760%22%20height%3D%22340%22%20fill%3D%22%231b0e1f%22\/%3E%0A%3Ctext%20x%3D%22380%22%20y%3D%2236%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f5%22%20font-size%3D%2220%22%20font-weight%3D%22bold%22%3EInter-VLAN%20Routing%20CCNA%3A%20Router-on-a-Stick%3C\/text%3E%0A%3Crect%20x%3D%22310%22%20y%3D%2260%22%20width%3D%22140%22%20height%3D%2250%22%20rx%3D%226%22%20fill%3D%22%232a1830%22%20stroke%3D%22%23f5f5f5%22%20stroke-width%3D%221.5%22\/%3E%0A%3Ctext%20x%3D%22380%22%20y%3D%2290%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f5%22%20font-size%3D%2215%22%20font-weight%3D%22bold%22%3ERouter%3C\/text%3E%0A%3Cline%20x1%3D%22380%22%20y1%3D%22110%22%20x2%3D%22380%22%20y2%3D%22150%22%20stroke%3D%22%23f5f5f5%22%20stroke-width%3D%222%22\/%3E%0A%3Ctext%20x%3D%22400%22%20y%3D%22135%22%20fill%3D%22%23b9a8bd%22%20font-size%3D%2212%22%3EGi0\/0%20trunk%3C\/text%3E%0A%3Ctext%20x%3D%22300%22%20y%3D%22150%22%20fill%3D%22%23a502a8%22%20font-size%3D%2212%22%3E.10%20sub-interface%3C\/text%3E%0A%3Ctext%20x%3D%22420%22%20y%3D%22150%22%20fill%3D%22%23E8521A%22%20font-size%3D%2212%22%3E.20%20sub-interface%3C\/text%3E%0A%3Crect%20x%3D%22260%22%20y%3D%22150%22%20width%3D%22240%22%20height%3D%2250%22%20rx%3D%226%22%20fill%3D%22%232a1830%22%20stroke%3D%22%23f5f5f5%22%20stroke-width%3D%221.5%22\/%3E%0A%3Ctext%20x%3D%22380%22%20y%3D%22180%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f5%22%20font-size%3D%2215%22%20font-weight%3D%22bold%22%3ESwitch%20%28trunk%20port%29%3C\/text%3E%0A%3Crect%20x%3D%2260%22%20y%3D%22230%22%20width%3D%22300%22%20height%3D%2280%22%20rx%3D%228%22%20fill%3D%22none%22%20stroke%3D%22%23a502a8%22%20stroke-width%3D%222%22%20stroke-dasharray%3D%226%2C4%22\/%3E%0A%3Ctext%20x%3D%22210%22%20y%3D%22255%22%20text-anchor%3D%22middle%22%20fill%3D%22%23a502a8%22%20font-size%3D%2215%22%20font-weight%3D%22bold%22%3EVLAN%2010%3C\/text%3E%0A%3Ccircle%20cx%3D%22210%22%20cy%3D%22285%22%20r%3D%2220%22%20fill%3D%22%23a502a8%22\/%3E%3Ctext%20x%3D%22210%22%20y%3D%22290%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f5%22%20font-size%3D%2211%22%3EPC1%3C\/text%3E%0A%3Crect%20x%3D%22400%22%20y%3D%22230%22%20width%3D%22300%22%20height%3D%2280%22%20rx%3D%228%22%20fill%3D%22none%22%20stroke%3D%22%23E8521A%22%20stroke-width%3D%222%22%20stroke-dasharray%3D%226%2C4%22\/%3E%0A%3Ctext%20x%3D%22550%22%20y%3D%22255%22%20text-anchor%3D%22middle%22%20fill%3D%22%23E8521A%22%20font-size%3D%2215%22%20font-weight%3D%22bold%22%3EVLAN%2020%3C\/text%3E%0A%3Ccircle%20cx%3D%22550%22%20cy%3D%22285%22%20r%3D%2220%22%20fill%3D%22%23E8521A%22\/%3E%3Ctext%20x%3D%22550%22%20y%3D%22290%22%20text-anchor%3D%22middle%22%20fill%3D%22%23f5f5f5%22%20font-size%3D%2211%22%3EPC2%3C\/text%3E%0A%3Cline%20x1%3D%22310%22%20y1%3D%22200%22%20x2%3D%22210%22%20y2%3D%22230%22%20stroke%3D%22%23a502a8%22%20stroke-width%3D%222%22\/%3E%0A%3Cline%20x1%3D%22450%22%20y1%3D%22200%22%20x2%3D%22550%22%20y2%3D%22230%22%20stroke%3D%22%23E8521A%22%20stroke-width%3D%222%22\/%3E%0A%3C\/svg%3E\" alt=\"Inter-VLAN routing CCNA diagram showing router-on-a-stick with sub-interfaces for VLAN 10 and VLAN 20\" style=\"max-width:100%;height:auto;\" \/><figcaption>\u8de8 VLAN \u8def\u7531 CCNA\uff1a\u4e00\u79cd\u5728\u4ea4\u6362\u673a\u4e0a\u627f\u8f7d VLAN 10 \u548c VLAN 20 \u7684\u5b50\u63a5\u53e3\u5e72\u7ebf\u7684\u8def\u7531\u5668-\u5728-\u68d2\uff08router\u2011on\u2011a\u2011stick\uff09\u65b9\u6848\u3002<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\"><strong>VLAN\uff08<a href=\"https:\/\/www.ieee802.org\/1\/pages\/802.1Q.html\">\u865a\u62df\u5c40\u57df\u7f51<\/a>)<\/strong> \u662f\u4ea4\u6362\u673a\u5185\u90e8\u8bbe\u5907\u7684\u903b\u8f91\u5206\u7ec4\uff0c\u8868\u73b0\u5f97\u597d\u50cf\u5b83\u4eec\u4f4d\u4e8e\u4e0d\u540c\u7684\u7269\u7406\u7f51\u7edc\u4e2d\u3002<\/p>\n<p class=\"wp-block-paragraph\"><strong>\u53ef\u4ee5\u628a VLAN \u770b\u4f5c\u662f\u5728\u540c\u4e00\u4ea4\u6362\u673a\u5185\u90e8\u521b\u5efa\u7684\u5fae\u578b\u7f51\u7edc\u3002<\/strong><\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h3 id=\"why-use-vlans\" class=\"wp-block-heading\">\ud83d\udd0d \u4e3a\u4ec0\u4e48\u4f7f\u7528 VLAN\uff1f<\/h3>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>\u4f18\u52bf<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u2705 \u5212\u5206<\/td>\n<td>\u5c06\u6d41\u91cf\uff08\u4eba\u529b\u8d44\u6e90\u3001IT\u3001\u9500\u552e\uff09\u5206\u79bb\uff0c\u4ee5\u5b9e\u73b0\u5b89\u5168\u4e0e\u63a7\u5236<\/td>\n<\/tr>\n<tr>\n<td>\u2705 \u5b89\u5168<\/td>\n<td>\u9664\u975e\u6388\u6743\uff0c\u5426\u5219 VLAN 10 \u7684\u7528\u6237\u65e0\u6cd5\u4e0e VLAN 20 \u901a\u4fe1<\/td>\n<\/tr>\n<tr>\n<td>\u2705 \u5e7f\u64ad\u63a7\u5236<\/td>\n<td>VLAN \u53ef\u7f29\u5c0f\u5e7f\u64ad\u57df\u7684\u89c4\u6a21<\/td>\n<\/tr>\n<tr>\n<td>\u2705 \u6548\u7387<\/td>\n<td>\u8f7b\u677e\u7ba1\u7406\u5927\u578b\u7f51\u7edc\uff0c\u65e0\u9700\u989d\u5916\u786c\u4ef6<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 id=\"vlan-types\" class=\"wp-block-heading\">\ud83d\udcca VLAN \u7c7b\u578b<\/h2>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>\u7c7b\u578b<\/th>\n<th>\u63cf\u8ff0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u9759\u6001 VLAN<\/td>\n<td>\u7aef\u53e3\u624b\u52a8\u5206\u914d\u5230 VLAN<\/td>\n<\/tr>\n<tr>\n<td>\u52a8\u6001 VLAN<\/td>\n<td>\u8bbe\u5907\u6839\u636e MAC \u5730\u5740\u5206\u914d<\/td>\n<\/tr>\n<tr>\n<td>\u8bed\u97f3 VLAN<\/td>\n<td>\u7528\u4e8e VoIP \u6d41\u91cf\uff08\u72ec\u7acb\u4f18\u5148\u7ea7\uff09<\/td>\n<\/tr>\n<tr>\n<td>\u9ed8\u8ba4 VLAN<\/td>\n<td>\u901a\u5e38\u4e3a VLAN 1\uff08\u4e0d\u5efa\u8bae\u4f7f\u7528\uff09<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 id=\"how-to-configure-vlans-on-cisco-switches\" class=\"wp-block-heading\">\ud83d\udee0\ufe0f \u5982\u4f55\u5728 Cisco \u4ea4\u6362\u673a\u4e0a\u914d\u7f6e VLAN<\/h2>\n<p class=\"wp-block-paragraph\">\u4ee5\u4e0b\u662f\u4f7f\u7528 CLI \u7684\u57fa\u672c\u793a\u4f8b\uff1a<\/p>\n<pre class=\"wp-block-preformatted has-ast-global-color-8-color has-ast-global-color-7-background-color has-text-color has-background has-link-color wp-elements-1\">Switch&gt; enable<br>Switch# configure terminal<br>Switch(config)# vlan 10<br>Switch(config-vlan)# name HR<br>Switch(config)# interface fastEthernet 0\\\/1<br>Switch(config-if)# switchport mode access<br>Switch(config-if)# switchport access vlan 10<\/pre>\n<p class=\"wp-block-paragraph\">\u5bf9\u6bcf\u4e2a VLAN \u91cd\u590d\u6b64\u64cd\u4f5c\u3002<\/p>\n<h2 id=\"inter-vlan-routing-why-its-needed\" class=\"wp-block-heading\">\u8de8 VLAN \u8def\u7531 \u2013 \u4e3a\u4ec0\u4e48\u9700\u8981\u5b83<\/h2>\n<p class=\"wp-block-paragraph\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c <strong>\u4e0d\u540c VLAN \u7684\u8bbe\u5907\u65e0\u6cd5\u76f8\u4e92\u901a\u4fe1<\/strong>.<\/p>\n<p class=\"wp-block-paragraph\">\u8981\u542f\u7528\u901a\u4fe1 <strong>\u5728 VLAN \u4e4b\u95f4<\/strong>\uff0c\u6211\u4eec\u9700\u8981\u4e00\u4e2a <strong>\u4e09\u5c42\u8bbe\u5907<\/strong> \u2014\u2014\u6bd4\u5982\u4e00\u4e2a <strong>\u8def\u7531\u5668<\/strong> \u6216 <strong>\u4e09\u5c42\u4ea4\u6362\u673a<\/strong>.<\/p>\n<p class=\"wp-block-paragraph\">\u6b64\u8fc7\u7a0b\u79f0\u4e3a <strong>\u8de8 VLAN \u8def\u7531<\/strong>.<\/p>\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n<h2 id=\"methods-of-inter-vlan-routing\" class=\"wp-block-heading\">\u8de8 VLAN \u8def\u7531\u7684\u65b9\u6cd5<\/h2>\n<h3 id=\"1-router-on-a-stick-traditional-method\" class=\"wp-block-heading\">1. <strong>\u8def\u7531\u5668-\u5728-\u4e00\u6839\u7ebf\u4e0a\uff08\u4f20\u7edf\u65b9\u6cd5\uff09<\/strong><\/h3>\n<p class=\"wp-block-paragraph\">\u4e3a\u6bcf\u4e2a VLAN \u4f7f\u7528\u4e00\u4e2a\u8def\u7531\u5668\u63a5\u53e3\u53ca\u5176\u5b50\u63a5\u53e3\u3002<\/p>\n<pre class=\"wp-block-code has-ast-global-color-8-color has-ast-global-color-7-background-color has-text-color has-background has-link-color wp-elements-2\"><code>interface FastEthernet0\\\/0.10\n encapsulation dot1Q 10\n ip address 192.168.10.1 255.255.255.0<\/code><\/pre>\n<p class=\"wp-block-paragraph\">\u8def\u7531\u5668\u7aef\u53ea\u662f\u6b64\u914d\u7f6e\u7684\u4e00\u534a\u2014\u2014\u8fde\u63a5\u5230\u8def\u7531\u5668\u7684\u4ea4\u6362\u673a\u7aef\u53e3\u4e5f\u5fc5\u987b\u8bbe\u7f6e\u4e3a trunk \u6a21\u5f0f\uff0c\u5426\u5219\u4e0a\u8ff0 VLAN \u6807\u8bb0\u6d41\u91cf\u6839\u672c\u65e0\u6cd5\u5230\u8fbe\u8def\u7531\u5668\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>Switch(config)# interface fastEthernet 0\\\/1\nSwitch(config-if)# switchport mode trunk<\/code><\/pre>\n<p class=\"wp-block-paragraph\">\u5728\u8def\u7531\u5668\u4e0a\u770b\u4f3c\u6b63\u786e\u4f46\u672a\u5728\u4ea4\u6362\u673a\u4e0a\u4f7f\u7528\u5339\u914d\u7684 trunk \u7aef\u53e3\u8fdb\u884c\u6d4b\u8bd5\u7684 router-on-a-stick \u914d\u7f6e\uff0c\u662f\u5b9e\u9a8c\u5ba4\u548c\u5b9e\u9645\u90e8\u7f72\u4e2d\u6700\u5e38\u89c1\u7684\u201c\u4e3a\u4ec0\u4e48\u8de8 VLAN \u8def\u7531\u4e0d\u8d77\u4f5c\u7528\u201d\u5de5\u5355\u4e4b\u4e00\u3002<\/p>\n<h3 id=\"2-layer-3-switch-routing-modern\" class=\"wp-block-heading\">2. <strong>\u4e09\u5c42\u4ea4\u6362\u673a\u8def\u7531\uff08\u73b0\u4ee3\uff09<\/strong><\/h3>\n<p class=\"wp-block-paragraph\">\u9700\u8981\u4f7f\u7528 <strong>SVI\uff08\u4ea4\u6362\u865a\u62df\u63a5\u53e3\uff09<\/strong>.<\/p>\n<pre class=\"wp-block-code has-ast-global-color-8-color has-ast-global-color-7-background-color has-text-color has-background has-link-color wp-elements-3\"><code>interface vlan 10\n ip address 192.168.10.1 255.255.255.0\n no shutdown<\/code><\/pre>\n<p class=\"wp-block-paragraph\">\u542f\u7528\u8def\u7531\uff1a<\/p>\n<pre class=\"wp-block-preformatted has-ast-global-color-8-color has-ast-global-color-7-background-color has-text-color has-background has-link-color wp-elements-4\">ip routing<\/pre>\n<h3 id=\"router-on-a-stick-vs-l3-switch\" class=\"wp-block-heading\">Router-on-a-Stick \u4e0e Layer 3 Switch\uff1a\u8be5\u5982\u4f55\u9009\u62e9<\/h3>\n<p class=\"wp-block-paragraph\">\u4e24\u79cd\u65b9\u6cd5\u90fd\u80fd\u6ee1\u8db3 CCNA \u8003\u8bd5\u7684\u8de8 VLAN \u8def\u7531\u8981\u6c42\uff0c\u4f46\u5728\u5b9e\u9645\u7f51\u7edc\u4e2d\u5e76\u975e\u53ef\u4e92\u6362\u7684\u9009\u62e9\uff1a<\/p>\n<ul class=\"wp-block-list\">\n<li><strong>Router-on-a-stick<\/strong> \u53d7\u9650\u4e8e\u5355\u4e00\u7269\u7406\u94fe\u8def\u7684\u5e26\u5bbd\u2014\u2014\u6bcf\u4e2a VLAN \u7684\u8de8 VLAN \u6d41\u91cf\u5171\u4eab\u540c\u4e00\u6839\u4e3b\u5e72\u7ebf\uff0c\u8d85\u8fc7\u5c11\u6570 VLAN \u6216\u4efb\u4f55\u663e\u8457\u6d41\u91cf\u91cf\u540e\u5c31\u4f1a\u6210\u4e3a\u771f\u6b63\u7684\u74f6\u9888\u3002\u5b83\u5728\u5df2\u6709\u4e13\u7528\u8def\u7531\u5668\u4e14\u4e0d\u503c\u5f97\u6dfb\u52a0 Layer 3 \u4ea4\u6362\u673a\u786c\u4ef6\u7684\u573a\u666f\u4e2d\u4ecd\u7136\u6709\u7528\u3002<\/li>\n<li><strong>Layer 3 \u4ea4\u6362\u673a\u8def\u7531\uff08SVI\uff09<\/strong> \u5728\u4ea4\u6362\u673a\u81ea\u8eab\u786c\u4ef6\u5185\u4ee5\u7ebf\u901f\u8def\u7531\uff0c\u6ca1\u6709\u5355\u94fe\u8def\u74f6\u9888\u2014\u2014\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u51e0\u4e4e\u6240\u6709\u73b0\u4ee3\u4f01\u4e1a\u7f51\u7edc\u90fd\u4f7f\u7528 Layer 3 \u4ea4\u6362\u673a\u8fdb\u884c\u8de8 VLAN \u8def\u7531\uff0c\u5e76\u5c06 Router-on-a-stick \u4fdd\u7559\u7ed9\u5c0f\u578b\u5b9e\u9a8c\u5ba4\u3001\u5206\u652f\u673a\u6784\u6216 CCNA \u5b66\u4e60\u3002<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">\u8003\u8bd5\u4e2d\uff1a\u4e86\u89e3\u5982\u4f55\u914d\u7f6e\u5e76\u89e3\u91ca\u4e24\u8005\u3002\u5bf9\u4e8e\u5c0f\u578b\u529e\u516c\u5ba4\u4e4b\u5916\u7684\u5b9e\u9645\u8bbe\u8ba1\u51b3\u7b56\uff0cLayer 3 \u4ea4\u6362\u673a\u51e0\u4e4e\u603b\u662f\u6b63\u786e\u7b54\u6848\u3002<\/p>\n<h3 id=\"verifying-inter-vlan-routing\" class=\"wp-block-heading\">\u9a8c\u8bc1\u8de8 VLAN \u8def\u7531<\/h3>\n<p class=\"wp-block-paragraph\">\u770b\u4f3c\u5b8c\u6574\u7684\u914d\u7f6e\u4ecd\u9700\u9a8c\u8bc1\u540e\u624d\u80fd\u79f0\u4e4b\u4e3a\u5b8c\u6210\uff1a<\/p>\n<pre class=\"wp-block-code\"><code>Switch# show vlan brief\nSwitch# show ip interface brief\nSwitch# show ip route<\/code><\/pre>\n<p class=\"wp-block-paragraph\"><code>show vlan brief<\/code> \u786e\u8ba4\u4e24\u4e2a VLAN \u5b58\u5728\u4e14\u5df2\u5206\u914d\u7aef\u53e3\u3002 <code>show ip interface brief<\/code> \u786e\u8ba4\u6bcf\u4e2a SVI\uff08\u6216\u8def\u7531\u5668\u5b50\u63a5\u53e3\uff09\u662f <code>up\\\/up<\/code>, \u672a\u88ab\u7ba1\u7406\u5173\u95ed \u2013 \u7f3a\u5c11 <code>no shutdown<\/code> \u5728 SVI \u4e0a\u7f3a\u5c11 no shutdown \u662f\u8def\u7531\u9759\u9ed8\u5931\u6548\u7684\u5e38\u89c1\u539f\u56e0\u3002 <code>show ip route<\/code> \u786e\u8ba4\u4e24\u4e2a VLAN \u5b50\u7f51\u663e\u793a\u4e3a\u76f4\u63a5\u8fde\u63a5\u8def\u7531\uff0c\u8fd9\u662f\u8de8 VLAN \u8def\u7531\u6b63\u5e38\u5de5\u4f5c\u7684\u524d\u63d0\u3002\u53ea\u6709\u5728\u4e09\u9879\u68c0\u67e5\u5168\u90e8\u901a\u8fc7\u540e\uff0cVLAN \u4e4b\u95f4\u7684 ping \u6d4b\u8bd5\u624d\u662f\u6709\u610f\u4e49\u7684\u786e\u8ba4\uff0c\u800c\u975e\u731c\u6d4b\u3002<\/p>\n<h2 id=\"vlan-lab-in-cisco-packet-tracer\" class=\"wp-block-heading\">\ud83e\uddea Cisco Packet Tracer \u4e2d\u7684 VLAN \u5b9e\u9a8c<\/h2>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>\u8bbe\u5907<\/th>\n<th>VLAN<\/th>\n<th>IP \u5730\u5740<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>PC1\uff08HR\uff09<\/td>\n<td>10<\/td>\n<td>192.168.10.2\/24<\/td>\n<\/tr>\n<tr>\n<td>PC2\uff08Sales\uff09<\/td>\n<td>20<\/td>\n<td>192.168.20.2\/24<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p class=\"wp-block-paragraph\">\u5728\u4ea4\u6362\u673a\u4e0a\u5206\u914d VLAN\uff0c\u7136\u540e\u5728 Layer 3 \u4ea4\u6362\u673a\u4e0a\u914d\u7f6e SVI\uff1a<\/p>\n<pre class=\"wp-block-preformatted has-ast-global-color-8-color has-ast-global-color-7-background-color has-text-color has-background has-link-color wp-elements-5\">interface vlan 10<br> ip address 192.168.10.1 255.255.255.0<br>interface vlan 20<br> ip address 192.168.20.1 255.255.255.0<\/pre>\n<p class=\"wp-block-paragraph\">PC \u53ef\u4ee5\u73b0\u5728\u8de8 VLAN ping \u901a\uff01<\/p>\n<h2 id=\"common-vlan-mistakes-in-ccna\" class=\"wp-block-heading\">\u2757 CCNA \u4e2d\u5e38\u89c1\u7684 VLAN \u9519\u8bef<\/h2>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>\u9519\u8bef<\/th>\n<th>\u4fee\u6b63<\/th>\n<\/tr>\n<\/thead>\n<\/table>\n<\/figure>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td>\u4f7f\u7528 VLAN 1<\/td>\n<td>\u6539\u4e3a\u521b\u5efa\u65b0 VLAN<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td>\u5426 <code>ip routing<\/code> \u547d\u4ee4<\/td>\n<td>\u5728 L3 \u4ea4\u6362\u673a\u4e0a\u5fc5\u9700<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td>\u672a\u5c06\u7aef\u53e3\u5206\u914d\u5230 VLAN<\/td>\n<td>\u4f7f\u7528 <code>switchport access vlan x<\/code><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<tbody>\n<tr>\n<td>\u672a\u5339\u914d\u7684\u5e72\u9053\u914d\u7f6e<\/td>\n<td>\u4f7f\u7528 <code>switchport mode trunk<\/code> \u6b63\u786e\u5730<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p class=\"wp-block-paragraph\">\u4e86\u89e3\u66f4\u591a\uff1a<\/p>\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/zilleali.com\/zh\/blog\/networking\/ccna\/10-essential-ccna-lab-exercises-to-practice-in-2025\/\" rel=\"sponsored ugc\" title=\"2025\u5e74\u5fc5\u505a\u768410\u4e2a\u5173\u952eCCNA\u5b9e\u9a8c\u7ec3\u4e60\">\u9876\u7ea7CCNA\u5b9e\u9a8c\u7ec3\u4e60<\/a><\/li>\n<li>CCNA \u7f51\u7edc\u8bbe\u5907<\/li>\n<li>\u601d\u79d1 VLAN \u914d\u7f6e\u6307\u5357<\/li>\n<li>VLANs \u2013 NetworkLessons.com<\/li>\n<\/ul>\n<div data-schema-only=\"false\" class=\"wp-block-aioseo-faq\">\n<h3 id=\"what-is-a-vlan-in-networking\" class=\"aioseo-faq-block-question\">\u4ec0\u4e48\u662f\u7f51\u7edc\u4e2d\u7684 VLAN\uff1f<\/h3>\n<div class=\"aioseo-faq-block-answer\">\n<p class=\"wp-block-paragraph\">VLAN \u662f\u4e00\u79cd\u865a\u62df\u5c40\u57df\u7f51\uff0c\u5b83\u5c06\u7f51\u7edc\u903b\u8f91\u4e0a\u5212\u5206\u4e3a\u72ec\u7acb\u7684\u5e7f\u64ad\u57df\uff0c\u5373\u4f7f\u8bbe\u5907\u5728\u540c\u4e00\u53f0\u4ea4\u6362\u673a\u4e0a\u4e5f\u5982\u6b64\u3002<\/p>\n<\/div>\n<\/div>\n<div data-schema-only=\"false\" class=\"wp-block-aioseo-faq\">\n<h3 id=\"what-is-inter-vlan-routing\" class=\"aioseo-faq-block-question\">\u4ec0\u4e48\u662f VLAN \u95f4\u8def\u7531\uff1f<\/h3>\n<div class=\"aioseo-faq-block-answer\">\n<p class=\"wp-block-paragraph\">VLAN \u95f4\u8def\u7531\u5141\u8bb8\u4f7f\u7528\u8def\u7531\u5668\u6216\u4e09\u5c42\u4ea4\u6362\u673a\u5728\u4e0d\u540c VLAN \u4e4b\u95f4\u8fdb\u884c\u901a\u4fe1\u3002<\/p>\n<\/div>\n<\/div>\n<div data-schema-only=\"false\" class=\"wp-block-aioseo-faq\">\n<h3 id=\"can-vlans-communicate-with-each-other\" class=\"aioseo-faq-block-question\">VLAN \u4e4b\u95f4\u80fd\u76f8\u4e92\u901a\u4fe1\u5417\uff1f<\/h3>\n<div class=\"aioseo-faq-block-answer\">\n<p class=\"wp-block-paragraph\">\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0d\u80fd\u3002VLAN \u662f\u9694\u79bb\u7684\u3002\u4f60\u9700\u8981 <strong>\u8de8 VLAN \u8def\u7531<\/strong> \u5141\u8bb8\u901a\u4fe1\u3002<\/p>\n<\/div>\n<\/div>\n<div data-schema-only=\"false\" class=\"wp-block-aioseo-faq\">\n<h3 id=\"whats-the-difference-between-vlan-and-subnet\" class=\"aioseo-faq-block-question\">VLAN \u4e0e\u5b50\u7f51\u6709\u4ec0\u4e48\u533a\u522b\uff1f<\/h3>\n<div class=\"aioseo-faq-block-answer\">\n<p class=\"wp-block-paragraph\">A <strong>VLAN<\/strong> \u662f\u4e00\u4e2a\u4e8c\u5c42\u6982\u5ff5\uff08\u57fa\u4e8e\u4ea4\u6362\u673a\u7aef\u53e3\uff09\uff0c\u800c <strong>\u5b50\u7f51<\/strong> \u662f\u4e09\u5c42\uff08\u57fa\u4e8e IP \u5730\u5740\uff09\u3002<\/p>\n<\/div>\n<\/div>\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u66f4\u613f\u610f\u6709\u4eba\u4e00\u6b65\u6b65\u5e26\u4f60\u5b8c\u6210\u6b64\u8fc7\u7a0b\uff0c\u6216\u8005\u9700\u8981\u7279\u5b9a\u7684 Packet Tracer \u5b9e\u9a8c\u5b8c\u6210\u5e76\u89e3\u91ca\uff0c\u800c\u4e0d\u662f\u81ea\u5df1\u6478\u7d22\uff0c\u8bf7\u67e5\u770b <a href=\"https:\/\/zilleali.com\/zh\/ccna-packet-tracer-help\/\">CCNA \u4e0e Packet Tracer \u8f85\u5bfc<\/a> \u9875\u9762\u4e86\u89e3\u5176\u5de5\u4f5c\u539f\u7406\u3002<\/p>\n<p class=\"wp-block-paragraph\">\u4e00\u65e6\u6d41\u91cf\u88ab\u5212\u5206\u5230 VLAN\uff0c\u5982\u4f55\u5728\u5b83\u4eec\u4e4b\u95f4\u8def\u7531\u540c\u6837\u91cd\u8981\u2014\u2014\u8bf7\u53c2\u9605 <a href=\"https:\/\/zilleali.com\/zh\/static-vs-dynamic-routing-explained-ccna-guide\/\">\u9759\u6001\u4e0e\u52a8\u6001\u8def\u7531\u89e3\u91ca<\/a> \u4ee5\u4e86\u89e3\u8be5\u65b9\u9762\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>\u4e86\u89e3 VLAN \u5e76\u5b66\u4e60\u5982\u4f55\u5728\u5b83\u4eec\u4e4b\u95f4\u8def\u7531\uff0c\u4f7f\u7528\u6b64 CCNA \u6307\u5357\u3002<\/p>","protected":false},"author":1,"featured_media":5442,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"googlesitekit_rrm_CAow6N_ODA:productID":"","_chatbot_visible":"","_zea_seo_title":"Inter-VLAN Routing CCNA: Complete 2025 Guide","_zea_seo_description":"Inter-VLAN routing CCNA guide: why VLANs matter in modern networks and how to route between them the way real Cisco networks require.","_zea_seo_focus_keyphrase":"inter-VLAN routing CCNA","_zea_seo_canonical":"","_zea_seo_robots_noindex":false,"_zea_seo_robots_nofollow":false,"_zea_seo_sitemap_exclude":false,"_zea_seo_cornerstone":false,"_zea_seo_sitemap_priority":"","_zea_seo_og_title":"#post_title #separator_sa #site_title","_zea_seo_og_description":"#post_excerpt","_zea_seo_og_image":"https:\/\/zilleali.com\/wp-content\/uploads\/2026\/05\/vlans-inter-vlan-routing-ccna-guide-2025-zill-e-ali.png","_zea_seo_twitter_title":"","_zea_seo_twitter_description":"","_zea_seo_analysis_score":0,"_zea_ai_pending":false,"_zea_ai_notes":"","_zea_ai_keyword":"","footnotes":""},"categories":[174],"tags":[28,30,32,82,135],"class_list":["post-3437","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cisco-networking","tag-ccna","tag-ccna-certification","tag-cisco","tag-inter-vlan","tag-vlan"],"_links":{"self":[{"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/posts\/3437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/comments?post=3437"}],"version-history":[{"count":6,"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/posts\/3437\/revisions"}],"predecessor-version":[{"id":6394,"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/posts\/3437\/revisions\/6394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/media\/5442"}],"wp:attachment":[{"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/media?parent=3437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/categories?post=3437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zilleali.com\/zh\/wp-json\/wp\/v2\/tags?post=3437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}