{"id":890,"date":"2019-09-20T09:32:29","date_gmt":"2019-09-20T09:32:29","guid":{"rendered":"https:\/\/www.jayjaydream.com\/?p=890"},"modified":"2019-09-20T09:38:01","modified_gmt":"2019-09-20T09:38:01","slug":"%e4%ba%a4%e6%8d%a2%e6%9c%batrunk%e8%af%a6%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.jayjaydream.com\/?p=890","title":{"rendered":"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3"},"content":{"rendered":"<h2 id=\"meta_content\" class=\"rich_media_meta_list\">\u4e00\u3001Trunk\u6982\u8ff0<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c1\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c1\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-891 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk1.jpg\" alt=\"\" width=\"560\" height=\"162\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk1.jpg 560w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk1-150x43.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk1-300x87.jpg 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<div id=\"js_content\" class=\"rich_media_content \">\n<ul class=\"list-paddingleft-2\">\n<li>\u5f53\u4e00\u6761\u94fe\u8def\uff0c\u9700\u8981\u627f\u8f7d\u591aVLAN\u4fe1\u606f\u7684\u65f6\u5019\uff0c\u9700\u4f7f\u7528trunk\u6765\u5b9e\u73b0<\/li>\n<li>Trunk\u4e24\u7aef\u7684\u4ea4\u6362\u673a\u9700\u91c7\u7528\u76f8\u540c\u7684\u5e72\u9053\u534f\u8bae<\/li>\n<li>\u4e00\u822c\u89c1\u4e8e\u4ea4\u6362\u673a\u4e4b\u95f4\u6216\u4ea4\u6362\u673a\u4e0e\u8def\u7531\u5668\u3001\u670d\u52a1\u5668\u4e4b\u95f4<\/li>\n<\/ul>\n<h2>\u4e8c\u3001\u5c01\u88c5\u534f\u8bae<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c2\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c2\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-892 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk2.jpg\" alt=\"\" width=\"496\" height=\"115\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk2.jpg 496w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk2-150x35.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk2-300x70.jpg 300w\" sizes=\"auto, (max-width: 496px) 100vw, 496px\" \/><\/p>\n<p>1.baby giant frame\u5927\u4e8e\u6807\u51c6\u7684MTU1500\u5b57\u8282\uff0c\u4f46\u662f\u5c0f\u4e8e2000\u5b57\u8282<\/p>\n<p>\u5bf9\u4e8e\u91c7\u7528ISL\u5c01\u88c5\u7684\uff0cMTU=1548 (\u4e0b\u6587\u6709\u89e3\u91ca)<\/p>\n<p>\u5bf9\u4e8eDot1Q\u00a0MTU=1522<\/p>\n<p>2.Vlan\u8303\u56f4\u548c\u6620\u5c04<\/p>\n<p>ISL \u652f\u6301\u7684vlan\u7f16\u53f7\u662f1-1005\uff08\u9ed8\u8ba4\u5141\u8bb8\u6b63\u5e38\u7684\uff09\uff0c802.1q\u662f1-4094\uff08\u9ed8\u8ba4\u5141\u8bb8\u6240\u6709\u6b63\u5e38\u548c\u6269\u5c55\u7684\uff09<\/p>\n<p>\u6240\u4ee5\u5f53\u7a7f\u8fc7802.1q\u548cISL\u7684\u5e72\u9053\u7684\u65f6\u5019\u5c31\u9700\u8981\u6620\u5c04\u3002<\/p>\n<p>\uff081\uff09 \u5355\u53f0\u4ea4\u6362\u673a\u4e0a\u6700\u591a\u5141\u8bb88\u4e2a802.1q\u5230ISL vlan\u7684\u6620\u5c04<\/p>\n<p>\uff082\uff09 \u53ea\u80fd\u6620\u5c04\u5230ethernet\u7684vlan<\/p>\n<p>\uff083\uff09 \u8be5\u88ab\u6620\u5c04\u7684ethernet vlan\u5c06\u88ab\u963b\u585e<\/p>\n<p>\uff084\uff09 \u6620\u5c04\u4ec5\u5728\u672c\u5730\u6709\u6548<\/p>\n<p>3.\u94fe\u8def\u805a\u96c6\u6a21\u5f0f<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>trunk\u00a0 \u6c38\u4e45\u94fe\u8def\u805a\u96c6\u6a21\u5f0f\uff0c\u5f3a\u5236trunk\uff0c\u53d1\u9001DTP\u5e27<\/li>\n<li>Nonegotiate \u6c38\u4e45\u94fe\u8def\u805a\u96c6\u6a21\u5f0f\uff0c\u5fc5\u987b\u624b\u52a8\u5c06\u90bb\u5c45\u914d\u4e3a\u5e72\u9053\u53e3\uff0c\u4e0d\u53d1\u9001DTP\u5e27\u3002\u4e00\u822c\u7528\u4e8e\u5bf9\u7aef\u8bbe\u5907\u4e0d\u652f\u6301DTP\u7684\u60c5\u51b5<\/li>\n<li>Desirable \u4e3b\u52a8\u5c1d\u8bd5\u5c06\u94fe\u8def\u6210\u4e3a\u5e72\u9053 \uff08\u9ed8\u8ba4\u6a21\u5f0f\uff09\uff0c\u53d1\u9001DTP\u5e27\uff0c\u5982\u679c\u90bb\u63a5\u63a5\u53e3\u4e3atrunk\u3001desirable\u3001\u6216AUTO\uff0c\u90a3\u4e48\u6b64\u63a5\u53e3\u6210\u4e3aTrunk\u3002<\/li>\n<li>Auto \u63a5\u53e3\u613f\u610f\u6210\u4e3atrunk\uff0c\u5982\u679c\u90bb\u63a5\u63a5\u53e3\u88ab\u8bbe\u7f6e\u4e3atrunk\u6216desirable\uff0c\u90a3\u4e48\u63a5\u53e3\u5c31\u6210\u4e3atrunk<\/li>\n<li>Access\u00a0 \u6c38\u4e45\u7684nontrunking\u6a21\u5f0f\uff0c\u5e76\u4e14\u4e0e\u5bf9\u7aef\u63a5\u53e3\u534f\u5546\uff0c\u4f7f\u5176\u6210\u4e3anontrunking\u94fe\u8def<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c3\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c3\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-893 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk3.jpg\" alt=\"\" width=\"532\" height=\"196\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk3.jpg 532w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk3-150x55.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk3-300x111.jpg 300w\" sizes=\"auto, (max-width: 532px) 100vw, 532px\" \/><\/p>\n<h2>\u4e09\u3001ISL<\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c4\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c4\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-894 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk4.jpg\" alt=\"\" width=\"548\" height=\"149\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk4.jpg 548w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk4-150x41.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk4-300x82.jpg 300w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/p>\n<ul class=\"list-paddingleft-2\">\n<li>CISCO\u79c1\u6709\u534f\u8bae<\/li>\n<li>\u652f\u6301PVST<\/li>\n<li>\u5728\u539f\u59cb\u7684\u6570\u636e\u5e27\u57fa\u7840\u4e0a\u5c01\u88c5\u4e0aISL\u5934\u53ca\u65b0\u7684FCS<\/li>\n<li>\u6ca1\u6709\u4fee\u6539\u539f\u59cb\u7684\u6570\u636e\u5e27\uff0c\u56e0\u6b64\u5904\u7406\u6548\u7387\u6bd4802.1Q\u9ad8<\/li>\n<li>VLAN\u5b57\u6bb5\uff0c15\u4e2a\u6bd4\u7279\u76ee\u524d\u7528\u4e8610\u4e2a\uff0c\u90a3\u4e48\u6700\u591a\u652f\u63012\u768410\u6b21\u65b9=1024\u4e2aVLAN<\/li>\n<li>\u201c\u539f\u59cb\u4ee5\u592a\u7f51\u5e27\u201d\u6700\u5927\u662f1518\u4e2a\u5b57\u8282\uff0c1500\u7684IP MTU\uff0c\u52a0\u4e0a\u6e90\u76ee\u7684MAC\u5730\u5740\u517112\uff0c\u7c7b\u578b\u5b57\u6bb52\u4e2a\uff0c CRC4\uff0c\u518d\u52a0\u4e0a30\u5b57\u8282\u7684ISL\u5c01\u88c5\uff0c\u5c31\u662f1548\u5b57\u8282\u4e86<\/li>\n<\/ul>\n<p>\u4e0a\u56fe\u4e2d\u51e0\u4e2a\u5b57\u6bb5\uff08ISL\u5934\uff09\u7684\u63cf\u8ff0\u5982\u4e0b\uff1a<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>DA\u00a0 40bit\u7684\u7ec4\u64ad\u5730\u5740\u7528\u4e8e\u6807\u793a\u8fd9\u4e2aFRAME\u662fISL\u7684<\/li>\n<li>TYPE\u00a0 \u6807\u793a\u8fd9\u4e2a\u5e27\u662f\u4ec0\u4e48\u7c7b\u578b\u7684\uff0c\u5982\u4ee5\u592a\u3001\u4ee4\u724c\u73af\u7b49<\/li>\n<li>SA\u00a0 \u53d1\u9001\u5e27\u7684\u539f\u4ea4\u6362\u673aMAC<\/li>\n<li>AAAA03\u00a0 \u00a0 SNAP\uff08\u56fa\u5b9a\u503c\uff09<\/li>\n<li>VLAN\u00a0 15\u4e2a\u6bd4\u7279\u76ee\u524d\u7528\u4e8610\u4e2a\uff0c\u90a3\u4e48\u6700\u591a\u652f\u63012\u768410\u6b21\u65b9=1024 VLAN<\/li>\n<li>INDEX\u00a0 \u8fd9\u4e2a\u5e27\u7684\u5bf9\u7aef\u4ea4\u6362\u673a\u6765\u6e90\u7aef\u53e3<\/li>\n<\/ul>\n<p>\u6240\u4ee5ISL\u5e27\u6700\u59271548bytes\uff081518+26+4\uff09<\/p>\n<h2>\u56db\u3001Dot1q<\/h2>\n<p>1.\u5e27\u683c\u5f0f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c5\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c5\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-895 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk5.jpg\" alt=\"\" width=\"508\" height=\"258\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk5.jpg 508w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk5-150x76.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk5-300x152.jpg 300w\" sizes=\"auto, (max-width: 508px) 100vw, 508px\" \/><\/p>\n<p>802.1Q Tag\u5305\u542b4\u4e2a\u5b57\u6bb5\uff0c\u5176\u542b\u4e49\u5982\u4e0b\uff1a<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>Type \u957f\u5ea6\u4e3a2\u5b57\u8282\uff0c\u8868\u793a\u5e27\u7c7b\u578b\u3002\u53d6\u503c\u4e3a0x8100\u65f6\u8868\u793a802.1Q Tag\u5e27\u3002\u5982\u679c\u4e0d\u652f\u6301802.1Q\u7684\u8bbe\u5907\u6536\u5230\u8fd9\u6837\u7684\u5e27\uff0c\u4f1a\u5c06\u5176\u4e22\u5f03\u3002<\/li>\n<li>PRI Priority\uff0c\u957f\u5ea6\u4e3a3\u6bd4\u7279\uff0c\u8868\u793a\u5e27\u7684\u4f18\u5148\u7ea7\uff0c\u53d6\u503c\u8303\u56f4\u4e3a0\uff5e7\uff0c\u503c\u8d8a\u5927\u4f18\u5148\u7ea7\u8d8a\u9ad8\u3002\u7528\u4e8e\u5f53\u4ea4\u6362\u673a\u963b\u585e\u65f6\uff0c\u4f18\u5148\u53d1\u9001\u4f18\u5148\u7ea7\u9ad8\u7684\u6570\u636e\u5305\u3002<\/li>\n<li>CFI Canonical Format Indicator\uff0c\u957f\u5ea6\u4e3a1\u6bd4\u7279\uff0c\u8868\u793aMAC\u5730\u5740\u662f\u5426\u662f\u7ecf\u5178\u683c\u5f0f\u3002CFI\u4e3a0\u8bf4\u660e\u662f\u7ecf\u5178\u683c\u5f0f\uff0cCFI\u4e3a1\u8868\u793a\u4e3a\u975e\u7ecf\u5178\u683c\u5f0f\u3002\u7528\u4e8e\u533a\u5206\u4ee5\u592a\u7f51\u5e27\u3001FDDI\uff08Fiber Distributed Digital Interface\uff09\u5e27\u548c\u4ee4\u724c\u73af\u7f51\u5e27\u3002\u5728\u4ee5\u592a\u7f51\u4e2d\uff0cCFI\u7684\u503c\u4e3a0\u3002<\/li>\n<li>VID \u00a0VLAN ID\uff0c\u957f\u5ea6\u4e3a12\u6bd4\u7279\uff0c\u8868\u793a\u8be5\u5e27\u6240\u5c5e\u7684VLAN\u3002\u5728VRP\u4e2d\uff0c\u53ef\u914d\u7f6e\u7684VLAN ID\u53d6\u503c\u8303\u56f4\u4e3a1\uff5e4094\u3002<\/li>\n<\/ul>\n<p>2.\u4f18\u7f3a\u70b9<\/p>\n<p>\u7f3a\u70b9\u662f\u7834\u574f\u4e86\u539f\u59cb\u4ee5\u592a\u5e27\u4ee5\u53ca\u91cd\u65b0\u8ba1\u7b97FCS\uff0cISL\u662f\u76f4\u63a5\u5c01\u88c5\u5934\u548c\u5c3e\u3002DOT1q\u516c\u7528\uff0cISL\u79c1\u6709802.1Q\u652f\u63014096\u4e2aVLAN \u00a0\u00a0\u6700\u5927\u5e27\uff1a1518+4=1522<\/p>\n<p>3.Native Vlan<\/p>\n<p>\u5728802.1q\u7684native vlan \u662f\u4e0d\u6253\u6807\u7b7e\u7684\uff0c\u4f7f\u7528Dot1q\u7684\u4ea4\u6362\u673a\u628a\u6240\u6709\u672a\u88ab\u6807\u8bb0\u7684frame\u8f6c\u53d1\u5230native vlan \u4e2d\uff0c\u800cISL\u4f1a\u5bf9\u6240\u6709\u7684\u6570\u636e\u5e27\uff0c\u5305\u62ecnative vlan \u8fdb\u884c\u5c01\u88c5\uff0c\u56e0\u6b64\u5982\u679c\u6536\u5230\u6ca1\u6709\u5c01\u88c5\u7684\u6570\u636e\u5e27\u5b83\u4f1a\u4e22\u5f03\uff08ISL\u6ca1\u6709native VLAN\u7684\u6982\u5ff5\uff09\u3002<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>Native VLAN\u6240\u5c5e\u7684\u5e27\u5728\u7ecf\u8fc7trunk\u65f6\u4e0d\u6253\u6807\u7b7e<\/li>\n<li>Native VLAN\u5728Trunk\u4e24\u7aef\u5fc5\u987b\u5339\u914d\uff0c\u5426\u5219\u4f1a\u51fa\u73b0VLAN\u6d41\u91cf\u4e92\u4e32<\/li>\n<li>\u9ed8\u8ba4\u7684native vlan\u662fvlan 1<\/li>\n<li>\u5efa\u8bae\u5c06\u4e00\u4e2a\u751f\u50fb\u7684VLAN\u914d\u7f6e\u4e3aNative vlan<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c6\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c6\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-896 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk6.jpg\" alt=\"\" width=\"572\" height=\"180\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk6.jpg 572w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk6-150x47.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk6-300x94.jpg 300w\" sizes=\"auto, (max-width: 572px) 100vw, 572px\" \/><\/p>\n<p>\u6211\u4eec\u770b\u4e0a\u9762\u8fd9\u4e2a\u56fe\uff0c\u4e24\u53f0\u4ea4\u6362\u673atrunk\u4e24\u7aefnative vlan\u4e0d\u4e00\u6837\uff0c\u4f1a\u6709\u4ec0\u4e48\u95ee\u9898\uff1f\u9996\u5148\u4e24\u7aef\u7684vlan2\u901a\u4fe1\u80af\u5b9a\u662f\u6ca1\u6709\u95ee\u9898\u7684\uff0c\u4f46\u662fvlan3 \u548cvlan4\u901a\u4fe1\u5c31\u6709\u95ee\u9898\u4e86\uff0c\u5de6\u8fb9vlan3\u7684\u7528\u6237\u53d1\u51fa\u6765\u7684\u6570\u636e\u5e27\u4ece\u5de6\u4ea4\u6362\u673a\u51fa\u53bb\u4e0atrunk\uff0c\u662f\u4e0d\u6253\u6807\u7b7e\u7684\uff0c\u4f46\u662f\u8fd9\u4e9b\u6570\u636e\u5e27\u5230\u4e86\u53f3\u4ea4\u6362\u673a\uff0c\u5b83\u4f1a\u8ba4\u4e3a\u8fd9\u4e9b\u6570\u636e\u5e27\u662f\u5c5e\u4e8evlan4\u7684\uff0c\u8fd9\u5c31\u51fa\u73b0\u95ee\u9898\u4e86\u3002<\/p>\n<p>\u76f8\u5173\u914d\u7f6e\uff1a<\/p>\n<p>Switch(config-if)# switchport trunk native vlan ?<\/p>\n<p>\u5728trunk\u4e0a\u8bbe\u7f6enative vlan<\/p>\n<p>Switch(config)# vlan dot1q tag native<\/p>\n<p>\u4e0a\u8ff0\u547d\u4ee4\u5c06\u5bf9native vlan\u4e5f\u6253\u6807\u7b7e<\/p>\n<p>4.Vlan\u8303\u56f4<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c7\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c7\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-897 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk7.jpg\" alt=\"\" width=\"464\" height=\"175\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk7.jpg 464w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk7-150x57.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk7-300x113.jpg 300w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/p>\n<h2>\u4e94\u3001DTP<\/h2>\n<ul class=\"list-paddingleft-2\">\n<li>Trunk\u53ef\u4ee5\u624b\u5de5\u9759\u6001\u914d\u7f6e\u6216\u8005\u901a\u8fc7DTP\u8fdb\u884c\u534f\u5546<\/li>\n<li>DTP\u4f7f\u5f97\u4ea4\u6362\u673a\u4e4b\u95f4\u80fd\u591f\u8fdb\u884ctrunk\u534f\u5546<br \/>\n<img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c8\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c8\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-898 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk8.jpg\" alt=\"\" width=\"524\" height=\"194\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk8.jpg 524w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk8-150x56.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk8-300x111.jpg 300w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/li>\n<\/ul>\n<h2>\u516d\u3001Trunk\u914d\u7f6e<\/h2>\n<p>Switch(config-if)# switchport mode access<\/p>\n<p>\u5c06\u63a5\u53e3\u8bbe\u7f6e\u4e3aaccess\u6a21\u5f0f<\/p>\n<p>Switch(config-if)# switchport mode encapsulation {dot1q | ISL}<\/p>\n<p>\u5982\u679c\u63a5\u53e3\u4e3atrunk\uff0c\u8bbe\u7f6e\u5e72\u9053\u534f\u8bae\u7c7b\u578b<\/p>\n<p>Switch(config-if)# switchport mode dynamic {auto | desirable}<\/p>\n<p>\u5c06\u63a5\u53e3\u8bbe\u7f6e\u4e3aDTP\u52a8\u6001\u534f\u5546\uff0c\u53ef\u9009auto\u6216desirable<\/p>\n<p>Switch(config-if)# switchport nonegotiate<\/p>\n<p>\u5c06\u63a5\u53e3\u8bbe\u7f6e\u4e3anonegotiate\uff0c\u4e0d\u53d1\u9001DTP\u5e27\uff0c\u5982\u679c\u914d\u7f6e\u4e3a\u975e\u534f\u5546\uff0c\u90a3\u4e48\u5c31\u5fc5\u987b\u624b\u5de5\u914d\u7f6e\u63a5\u53e3\u6a21\u5f0f\uff0c\u4e3aaccess\u6216trunk<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c9\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c9\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-899 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk9.jpg\" alt=\"\" width=\"484\" height=\"86\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk9.jpg 484w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk9-150x27.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk9-300x53.jpg 300w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/p>\n<p>SW1(config)# interface fast0\/23<\/p>\n<p>SW1(config-if)# switchport trunk encapsulation dot1q<\/p>\n<p>SW1(config-if)# switchport mode trunk<\/p>\n<p>SW1(config-if)# switchport native vlan 1<\/p>\n<p>SW1(config-if)# switchport nonegotiate<\/p>\n<p>SW1(config-if)# switchport trunk allowed vlan ?<\/p>\n<p>WORD \u00a0\u00a0VLAN IDs of the allowed VLANs when this port is in trunking mode<\/p>\n<p>add \u00a0\u00a0\u00a0\u00a0add VLANs to the current list<\/p>\n<p>all \u00a0\u00a0\u00a0\u00a0all VLANs<\/p>\n<p>except \u00a0\u00a0all VLANs except the following<\/p>\n<p>none \u00a0\u00a0\u00a0\u00a0no VLANs<\/p>\n<p>remove \u00a0\u00a0remove VLANs from the current list<\/p>\n<p>\u4e0a\u56fe\u4e2d\uff0c\u4e24\u7aefPC\u90fd\u5c5e\u4e8evlan10d\u7684\u8bdd\uff0c\u5982\u679cSW1\u7684fa0\/23\u53e3\u5c06vlan10remove\u6389\uff0c\u90a3\u4e48PC\u80af\u5b9a\u5c31\u65e0\u6cd5\u901a\u4fe1\u4e86\u3002<\/p>\n<h2>\u4e03\u3001MTU\u95ee\u9898<\/h2>\n<p>MTU\u5c31\u662f\u6700\u5927\u4f20\u8f93\u5355\u5143\uff0c\u4e0d\u540c\u7684\u7cfb\u7edf\u5bf9\u4e8eMTU\u7684\u8bbe\u5b9a\u548c\u7406\u89e3\u662f\u4e0d\u540c\u7684\u3002<\/p>\n<p>CISCO IOS\u4e0a\uff0cinterface x\u63a5\u53e3\u6a21\u5f0f\u4e0b\uff1a<\/p>\n<ul class=\"list-paddingleft-2\">\n<li>\u300bMTU \u6307\u7684\u662f\u4e8c\u5c42\u7684MTU\uff0c\u8fd9\u662f\u63a5\u53e3MTU\uff0c\u6307\u7684\u662f\u4e0d\u5305\u542b\u4e8c\u5c42\u5e27\u5934\u7684\u3001Payload\u7684MTU\uff0c\u8fd9\u4e2aMTU\u503c\u4e00\u822c\u662f\u4e0d\u80fd\u624b\u5de5\u4fee\u6539\u7684\uff0c\u9ed8\u8ba4\u662f1500\u5b57\u8282\u3002\u5982\u6b64\u4e00\u6765CISCO\u8def\u7531\u5668\u652f\u6301\u7684\u4e8c\u5c42\u6570\u636e\u5e27\u6700\u5927\u503c\u5c31\u662f1500\u7684payload\u52a0\u4e0a\u4e8c\u5c42\u5e27\u5934\u53ca\u4e8c\u5c42FCS\uff1a\u76ee\u7684mac6\u5b57\u8282+\u6e90mac6\u5b57\u8282+\u7c7b\u578b\u5b57\u6bb52\u5b57\u8282+FCS4\u5b57\u8282\uff0c\u6240\u4ee5\u603b\u7684\u5c31\u662f1518\u5b57\u8282\u3002<\/li>\n<li>\u300bIp mtu \u00a0\u6307\u7684\u662f\u4e09\u5c42\u7684MTU\uff0c\u8fd9\u4e2a\u503c\u53ef\u4ee5\u624b\u5de5\u4fee\u6539\uff0c\u4f46\u662f\u6700\u5927\u503c\u5fc5\u987b\u5c0f\u4e8e\u63a5\u53e3\u7684\u4e8c\u5c42MTU\u503c\u4e5f\u5c31\u662f1500\u3002\u8fd9\u4e2aMTU\u6307\u7684\u662f\u4e09\u5c42IP\u5305\u7684\u603b\u5927\u5c0f\uff0c\u5982\u679c\u63a5\u53e3\u53d1\u51fa\u7684\u5305\u5927\u4e8e\u8fd9\u4e2a\u63a5\u53e3\u7684ip mtu\uff0c\u90a3\u4e48\u8fd9\u4e2aIP\u5305\u5c06\u88ab\u5206\u7247<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" title=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c10\u5f20  | \u9e7f\u9e23\u5929\u6daf\" alt=\"Cisco\u4ea4\u6362\u673aTrunk\u8be6\u89e3 - \u7b2c10\u5f20  | \u9e7f\u9e23\u5929\u6daf\" class=\"size-full wp-image-900 alignnone\" src=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk10.jpg\" alt=\"\" width=\"336\" height=\"61\" srcset=\"https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk10.jpg 336w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk10-150x27.jpg 150w, https:\/\/www.jayjaydream.com\/wp-content\/uploads\/2019\/09\/trunk10-300x54.jpg 300w\" sizes=\"auto, (max-width: 336px) 100vw, 336px\" \/><\/p>\n<p>\u505a\u4e2a\u6d4b\u8bd5\uff1a\u4e0a\u56fe\u4e2d\uff0cR1\u7684fa0\/0\u53e3 ip mtu\u4e3a1500\uff0c<\/p>\n<p>\u6211\u4eec\u53bbping 1.1.1.2 repeat 1 size 1500\uff0c\u6211\u4eec\u4f1a\u53d1\u73b0R1\u76f4\u63a5\u5c06\u4e00\u4e2aICMP\u5305\u53d1\u51fa\u53bb\u4e86\uff0c\u6ca1\u6709\u5206\u7247\u3002<\/p>\n<p>\u4ece\u62a5\u6587\u4e2d\u6211\u4eec\u53ef\u4ee5\u5f97\u51fa\uff0c\u8fd9\u4e2aIP\u5305\u7684\u5927\u5c0f\u4e3a1500\u5b57\u8282\u3002<\/p>\n<p>\u5176\u4e2dIP\u62a5\u593420\u5b57\u8282\uff0cICMP\u62a5\u59348\u5b57\u8282\uff0cICMP data\u8377\u8f7d 1472\u5b57\u8282\uff0c\u521a\u597d1500\u5b57\u8282\u3002\u56e0\u6b64\u5728CISCO IOS\u8bbe\u5907\u4e0a\uff0cping\u540e\u9762\u8ddf\u7740\u7684size\u6307\u7684\u5c31\u662f\u53d1\u51fa\u53bb\u7684IP\u5305\u6574\u4e2a\u7684\u5927\u5c0f\u3002\u800c\u5728windows PC \u7684cmd\u4e0b\uff0cping\u540e\u8ddf\u7684\u5305\u5927\u5c0f\u5c31\u662fICMP data\u5927\u5c0f\uff0cping \u2013l 1472\uff0c\u4ea7\u751f\u7684\u5305\u5c31\u662f1500\u5b57\u8282<\/p>\n<p>\u8fd8\u662f\u4e0a\u9762\u7684\u4f8b\u5b50\uff0c\u5982\u679c\u6211\u4eec\u5728R1\u4e0a\uff0cping 1.1.1.2 repeat 1 size 1501\uff0c\u8fd9\u4e2a\u65f6\u5019\uff0cR1\u7531\u4e8e\u4ea7\u751f\u7684\u8fd9\u4e2aIP\u5305\u5927\u4e8emtu 1500\uff0c\u56e0\u6b64\u4f1a\u88ab\u5206\u7247\uff0c\u7136\u540e\u5728R2\u4e0a\uff0c\u8fd9\u4e24\u4e2a\u5206\u7247\u88ab\u91cd\u7ec4\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001Trunk\u6982\u8ff0 \u5f53\u4e00\u6761\u94fe\u8def\uff0c\u9700\u8981\u627f\u8f7d\u591aVLAN\u4fe1\u606f\u7684\u65f6\u5019\uff0c\u9700\u4f7f\u7528trunk\u6765 &hellip; <a href=\"https:\/\/www.jayjaydream.com\/?p=890\">\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":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[67],"class_list":["post-890","post","type-post","status-publish","format-standard","hentry","category-27","tag-cisco"],"_links":{"self":[{"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=\/wp\/v2\/posts\/890","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=890"}],"version-history":[{"count":3,"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=\/wp\/v2\/posts\/890\/revisions"}],"predecessor-version":[{"id":903,"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=\/wp\/v2\/posts\/890\/revisions\/903"}],"wp:attachment":[{"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=890"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=890"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jayjaydream.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=890"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}