{"id":440,"date":"2007-12-02T16:25:00","date_gmt":"2007-12-02T16:25:00","guid":{"rendered":"http:\/\/blog.pmail.idv.tw\/?p=440"},"modified":"2007-12-02T16:25:00","modified_gmt":"2007-12-02T16:25:00","slug":"cisco%e5%ad%b8%e7%bf%92%e7%ad%86%e8%a8%9820071130","status":"publish","type":"post","link":"https:\/\/blog.pmail.idv.tw\/?p=440","title":{"rendered":"Cisco\u5b78\u7fd2\u7b46\u8a1820071130"},"content":{"rendered":"<p>Cisco\u5b78\u7fd2\u7b46\u8a1820071130<\/p>\n<p><!--more--><\/p>\n<p>VTP\u5354\u5b9a(<strong>VLAN Trunking Protocol<\/strong>)\uff1a\u7528\u4f86\u50b3\u9001\u548c\u540c\u6b65VLAN\u7684\u8cc7\u8a0a <\/p>\n<p>Cisco-Switch\u9810\u8a2d\u6240\u6709\u7684port\u90fd\u5728VLAN1 <\/p>\n<p><strong>IEEE 802.1Q : \u7528\u4f86\u8fa8\u8b58\u5e36\u6709VLAN\u8cc7\u8a0a\u7684 Frame<\/strong> <\/p>\n<p><strong>Trunk-port : \u5141\u8a31\u591a\u500bVLAN<\/strong> <\/p>\n<p><strong>Access-port : \u53ea\u80fd\u6709\u4e00\u500bVLAN<\/strong> <\/p>\n<p><strong>Trunking: Switch \u548c Switch \u4e00\u5b9a\u8981\u8dd1 Trunk<\/strong> <\/p>\n<p><strong>VTP-Modes\uff1a<\/strong> <\/p>\n<p><strong>\u81f3\u5c11\u6709\u4e00\u500b\u89d2\u8272\u53ebServer \u5176\u5b83\u7684\u53ebClient , \u6703\u6709\u4e00\u500bVTP-Domain , VTP-password<\/strong> <\/p>\n<p><strong>\u50b3\u9001\u65b9\u5f0f\uff1aMutilcast <\/strong> <\/p>\n<p><strong>PS:&nbsp; \u53ea\u6709Server\u53ef\u4ee5 add,delete,modify VLAN <\/strong> <\/p>\n<p><strong>PS: \u7576VLAN\u8cc7\u6599\u540c\u6b65\u6642\uff0c\u6703\u5e36\u4e00\u500b\u6578\u5b57revison , vtp-client \u5c31\u6703\u4ee5\u9019\u500b\u6578\u5b57\u4f86\u5224\u65b7\u662f\u5426\u8981\u540c\u6b65\uff0c\u53ea\u8981\u6709<\/strong><strong>add,delete,modify VLAN\uff0c<\/strong><strong>revison\u5c31\u52a01 <\/strong> <\/p>\n<p><strong>PS : VTP-mode \u9084\u6709\u4e00\u500b\u6210\u54e1Transparent , \u7576Server \u6709\u4fee\u6539VLAN\u8cc7\u8a0a\u6642\uff0c\u672c\u8eab\u4e0d\u6703\u548cServer\u540c\u6b65\uff0c\u4f46\u4ed6\u6703\u52a0\u5165VTP-domain\uff0c<\/strong> <\/p>\n<p><strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u624d<\/strong><strong>\u6703\u5e6b\u5fd9forward vlan\u8cc7\u8a0a&nbsp;&nbsp; <\/strong> <\/p>\n<p><strong>server : send,forward<\/strong> <\/p>\n<p><strong>clinet :forward<\/strong> <\/p>\n<p>\u9810\u8a2d \u6bce\u500bSwitch \u90fd\u662f<strong>Server mode<\/strong> <\/p>\n<p><strong>advertisements \u662fVTP\u50b3\u9001\u51fa\u4f86\u7684\u8cc7\u6599(\u53ea\u8981\u6709\u6539\u8b8avlan\u5c31\u99ac\u4e0a\u9001\uff0c\u82e5\u7121\u7684\u8a71\u5c315\u5206\u9418\u9001\u4e00\u6b21)<\/strong> <\/p>\n<p><strong>VTP Pruning \u7279\u6027\uff1a<\/strong> <\/p>\n<p><strong>1.\u6e1b\u5c11\u6c92\u6709\u5fc5\u8981\u7684 flooding traffic(decreasewn unnecessary flooding traffic)<\/strong> <\/p>\n<p><strong>2.\u589e\u52a0\u53ef\u7528\u7684\u983b\u5bec ( increase available bandwidth)<\/strong> <\/p>\n<p><strong>\u8a2d\u5b9aSwitch-VTP-LAB:<\/strong><\/p>\n<p><strong><a href=\"https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2012\/01\/cs4.jpg\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; border-bottom: 0px; border-left: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top: 0px; border-right: 0px; padding-top: 0px\" title=\"cs4\" border=\"0\" alt=\"cs4\" src=\"https:\/\/blog.pmail.idv.tw\/wp-content\/uploads\/2012\/01\/cs4_thumb.jpg\" width=\"244\" height=\"153\"><\/a><\/strong><\/p>\n<p><strong> <\/p>\n<p>VTP-domain : ICND <\/p>\n<p>VTP-PASSWORD : ccna <\/p>\n<p><strong>\u6b65\u9a5f: <\/strong> <\/p>\n<p><strong>1. \u5148\u8a2d\u5b9avtp-server (\u4e0a\u5716\u7b2c\u4e00\u5c64switch)<\/strong> <\/p>\n<p><strong>\u9032\u5165command <\/strong> <\/p>\n<p><strong>\u80fd\u7528\u7e2e\u5beb\u6307\u4ee4\u5c31\u7528\u56c9<\/strong> <\/p>\n<p><strong>Switch&gt;en&nbsp; <\/strong> <\/p>\n<p><strong>Switch#conf t<\/strong> <\/p>\n<p><strong>Switch(config)#hostname server&nbsp; (\u8a2d\u5b9aswitch \u540d\u7a31\u70ba server,\u6307\u4ee4\u548c\u524d\u4e00\u7bc7\u7b46\u8a18\u7684router\u76f8\u540c)<\/strong> <\/p>\n<p><strong>server(config)#vtp domain mis (\u8a2d\u5b9avtp domain ,\u6307\u4ee4\u57f7\u884c\u5f8c\u6703\u6709\u4e0b\u9762\u4e00\u6bb5\u8a0a\u606f)<\/strong> <\/p>\n<p><strong>Changing VTP domain name from NULL to mis<\/strong> <\/p>\n<p><strong>server(config)#vtp password mis (\u8a2d\u5b9a vtp\u5bc6\u78bc,\u6307\u4ee4\u57f7\u884c\u5f8c\u6703\u6709\u4e0b\u9762\u4e00\u6bb5\u8a0a\u606f)<\/strong> <\/p>\n<p><strong>Setting device VLAN database password to mis<\/strong> <\/p>\n<p><strong>server(config)#vtp mode server<\/strong> <\/p>\n<p><strong>(\u8a2d\u5b9avtp\u7684\u89d2\u8272\u70baServer,\u6307\u4ee4\u57f7\u884c\u5f8c\u6703\u6709\u4e0b\u9762\u4e00\u6bb5\u8a0a\u606f,\u4f46\u56e0\u70ba\u9810\u8a2dcisco\u7684switch\u90fd\u662fserver-mode\u6240\u4ee5\u8a0a\u7cfb\u6703\u8aaa\u88dd\u7f6e\u5df2\u7d93\u662f server\u4e86)<\/strong> <\/p>\n<p><strong>Device mode already VTP SERVER<\/strong> <\/p>\n<p><strong>\u8a2d\u5b9aServer-switch f0\/1 f0\/2\u70batrunk-port (switch &amp; switch \u5fc5\u9808\u8d70trunk)<\/strong> <\/p>\n<p><strong>server(config)#interface fastEthernet0\/1<\/strong> <\/p>\n<p><strong>server(config-if)#switchport mode trunk<\/strong> <\/p>\n<p><strong>server(config-if)#interface fastEthernet0\/2<\/strong> <\/p>\n<p><strong>server(config-if)#switchport mode trunk<\/strong> <\/p>\n<p><strong>\u67e5\u8a62vtp \u72c0\u614b<\/strong> <\/p>\n<p><strong>server#show vtp status ( \u5230\u7279\u6b0a\u6a21\u5f0f\u57f7\u884c\u8a72\u6307\u4ee4)<br \/>VTP Version : 2<br \/>Configuration Revision : 0<br \/>Maximum VLANs supported locally : 64<br \/>Number of existing VLANs : 5<br \/>VTP Operating Mode : Server&nbsp; (\u78ba\u5b9a\u89d2\u8272\u70bavtp-server)<br \/>VTP Domain Name : mis<br \/>VTP Pruning Mode : Disabled<br \/>VTP V2 Mode : Disabled<br \/>VTP Traps Generation : Disabled<br \/>MD5 digest : 0x63 0x8F 0xF3 0xC0 0x35 0x2F 0xC6 0xD0<br \/>Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00<br \/>Local updater ID is 0.0.0.0 (no valid interface found)<\/strong> <\/p>\n<p><strong>2. \u8a2d\u5b9avtp-client (\u4e0a\u5716\u7b2c\u4e8c\u5c642\u500bswitch)<\/strong> <\/p>\n<p><strong> \u8a2d\u5b9aSwitchA ,\u9032\u5165command <\/strong> <\/p>\n<p><strong>Switch&gt;en&nbsp; <\/strong> <\/p>\n<p><strong>Switch#conf t<\/strong> <\/p>\n<p><strong>Switch(config)#hostname SwitchA (\u8a2d\u5b9aswitch \u540d\u7a31\u70ba SwitchA)<\/strong> <\/p>\n<p><strong>SwitchA(config)#vtp domain mis (\u8a2d\u5b9avtp domain )<\/strong> <\/p>\n<p><strong>SwitchA(config)#vtp password mis (\u8a2d\u5b9a vtp\u5bc6\u78bc)<\/strong> <\/p>\n<p><strong>\u8a2d\u5b9aswitchA f0\/1 \u70ba access-port f0\/2\u70batrunk-port (switch \u8207 pc \u5fc5\u9808\u8d70 access)<\/strong> <\/p>\n<p><strong>SwitchA(config)#interface fastEthernet0\/1<\/strong> <\/p>\n<p><strong>SwitchA(config-if)#switchport mode access<\/strong> <\/p>\n<p><strong>SwitchA(config-if)#interface fastEthernet0\/2<\/strong> <\/p>\n<p><strong>SwitchA(config-if)#switchport mode trunk<\/strong> <\/p>\n<p><strong>switchA#show vtp status<br \/>VTP Version : 2<br \/>Configuration Revision : 2<br \/>Maximum VLANs supported locally : 64<br \/>Number of existing VLANs : 6<br \/>VTP Operating Mode : Client (\u78ba\u5b9a\u89d2\u8272\u70bavtp-client)<br \/>VTP Domain Name : mis<br \/>VTP Pruning Mode : Disabled<br \/>VTP V2 Mode : Disabled<br \/>VTP Traps Generation : Disabled<br \/>MD5 digest : 0x4D 0x09 0x37 0xD1 0xAD 0x1E 0xBC 0xA0<br \/>Configuration last modified by 0.0.0.0 at 3-1-93 00:16:22<\/strong> <\/p>\n<p><strong>\u8a2d\u5b9aSwitchB,\u9032\u5165command <\/strong> <\/p>\n<p><strong>Switch&gt;en&nbsp; <\/strong> <\/p>\n<p><strong>Switch#conf t<\/strong> <\/p>\n<p><strong>Switch(config)#hostname SwitchB (\u8a2d\u5b9aswitch \u540d\u7a31\u70ba SwitchB)<\/strong> <\/p>\n<p><strong>SwitchB(config)#vtp domain mis (\u8a2d\u5b9avtp domain )<\/strong> <\/p>\n<p><strong>SwitchB(config)#vtp password mis (\u8a2d\u5b9a vtp\u5bc6\u78bc)<\/strong> <\/p>\n<p><strong>\u8a2d\u5b9aswitchB f0\/1 \u70ba access-port f0\/2\u70batrunk-port (switch \u8207 pc \u5fc5\u9808\u8d70 access)<\/strong> <\/p>\n<p><strong>SwitchB(config)#interface fastEthernet0\/1<\/strong> <\/p>\n<p><strong>SwitchB(config-if)#switchport mode access<\/strong> <\/p>\n<p><strong>SwitchB(config-if)#interface fastEthernet0\/2<\/strong> <\/p>\n<p><strong>SwitchB(config-if)#switchport mode trunk<\/strong> <\/p>\n<p><strong>switchB#show vtp status<br \/>VTP Version : 2<br \/>Configuration Revision : 2<br \/>Maximum VLANs supported locally : 64<br \/>Number of existing VLANs : 6<br \/>VTP Operating Mode : Client (\u78ba\u5b9a\u89d2\u8272\u70bavtp-client)<br \/>VTP Domain Name : mis<br \/>VTP Pruning Mode : Disabled<br \/>VTP V2 Mode : Disabled<br \/>VTP Traps Generation : Disabled<br \/>MD5 digest : 0x4D 0x09 0x37 0xD1 0xAD 0x1E 0xBC 0xA0<br \/>Configuration last modified by 0.0.0.0 at 3-1-93 00:16:22<\/strong> <\/p>\n<p><strong>3. \u5728VTP-Server \u5efa\u7acb\u4e00\u500b\u65b0\u7684Vlan 4 \u540d\u7a31\u70ba mis002<\/strong> <\/p>\n<p><strong>server(config)# vlan 4 (\u65b0\u589e\u4e00\u500bvlan ID \u662f4)<\/strong> <\/p>\n<p><strong>server(config-vlan)# name mis002 (\u53d6\u4e00\u500b\u540d\u7a31\u70bamis002)<\/strong> <\/p>\n<p><strong>server(config-vlan)#exit (\u96e2\u958b)<\/strong> <\/p>\n<p><strong>\u67e5\u8a62 vtp-domain vlan \u72c0\u614b<\/strong> <\/p>\n<p><strong>server# sh vlan <\/strong> <\/p>\n<p><strong>VLAN Name Status Ports<br \/>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>1 default active Fa0\/3, Fa0\/4, Fa0\/5, Fa0\/6<br \/>Fa0\/7, Fa0\/8, Fa0\/9, Fa0\/10<br \/>Fa0\/11, Fa0\/12, Fa0\/13, Fa0\/14<br \/>Fa0\/15, Fa0\/16, Fa0\/17, Fa0\/18<br \/>Fa0\/19, Fa0\/20, Fa0\/21, Fa0\/22<br \/>Fa0\/23, Fa0\/24<br \/>3 mis001 active<br \/>4 mis002 active&nbsp; (\u78ba\u5be6\u6709\u525b\u624d\u65b0\u589e\u7684vlan)<br \/>1002 fddi-default active<br \/>1003 token-ring-default active<br \/>1004 fddinet-default active<br \/>1005 trnet-default active<br \/>VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2<br \/>&#8212;- &#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8211; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8211; &#8212;- &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;<br \/>1 enet 100001 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>3 enet 100003 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>4 enet 100004 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1002 enet 101002 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1003 enet 101003 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1004 enet 101004 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1005 enet 101005 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<\/strong> <\/p>\n<p>\u518d\u4f86\u5c31\u662f\u53bbvtp-client SwitchA SwitchB \u67e5\u8a62Vlan\u72c0\u614b \u61c9\u8a72\u4e5f\u6703\u540c\u6b65\u66f4\u65b0\u5594 <\/p>\n<p>4. \u8a2d\u5b9aSwitchA \u7684 f0\/1 \u70ba vlan 4 <\/p>\n<p>&nbsp;&nbsp; SwitchA(config)# int f0\/1 <\/p>\n<p>&nbsp;&nbsp; SwitchA(config-if)# <strong>switchport access vlan 4 (\u7528\u6b64\u6307\u4ee4\u8a2d\u5b9a)<\/strong> <\/p>\n<p>&nbsp;&nbsp; VLAN Name Status Ports<br \/>&#8212;- &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>1 default active Fa0\/3, Fa0\/4, Fa0\/5, Fa0\/6<br \/>Fa0\/7, Fa0\/8, Fa0\/9, Fa0\/10<br \/>Fa0\/11, Fa0\/12, Fa0\/13, Fa0\/14<br \/>Fa0\/15, Fa0\/16, Fa0\/17, Fa0\/18<br \/>Fa0\/19, Fa0\/20, Fa0\/21, Fa0\/22<br \/>Fa0\/23, Fa0\/24<br \/>3 mis001 active<br \/><strong>4 mis002 active Fa0\/1&nbsp; (\u78ba\u5b9a\u6709\u5c07f0\/1\u6307\u4ee4\u6210vlan 4)<\/strong><br \/>1002 fddi-default active <br \/>1003 token-ring-default active<br \/>1004 fddinet-default active<br \/>1005 trnet-default active<br \/>VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2<br \/>&#8212;- &#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8211; &#8212;&#8212; &#8212;&#8212; &#8212;&#8212;&#8211; &#8212;- &#8212;&#8212;&#8211; &#8212;&#8212; &#8212;&#8212;<br \/>1 enet 100001 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>3 enet 100003 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>4 enet 100004 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1002 enet 101002 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1003 enet 101003 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1004 enet 101004 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<br \/>1005 enet 101005 1500 &#8211; &#8211; &#8211; &#8211; &#8211; 0 0<\/strong><strong><\/p>\n<p><\/strong><\/p>\n<div class=\"21cd169d3c0f71e95b84db320302cb4a\" data-index=\"1\" style=\"float: right; margin:10px 0 10px 10px;\">\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-8711325745898650\"\r\n     crossorigin=\"anonymous\"><\/script>\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Cisco\u5b78\u7fd2\u7b46\u8a1820071130<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-440","post","type-post","status-publish","format-standard","hentry","category-cisco"],"_links":{"self":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=440"}],"version-history":[{"count":0,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/440\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pmail.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}