1.建在交换机上创建vlan 立一个vtp管理域 为了在交换机上创建vlan,必须首先建立一个vtp管理域以使它能够核验网络上当前的vlan Catalyst 4000 系列交换机模块只支持802.1q。 判断硬件是否支持干道,及硬件所支持的干道封装使用:show portcapabilities 首先运行clear config allvtp command: 在基于IOS的交换机上配置VTP管理域或加入一个管理域: switch# vlan database witch(vlan)# vtp domain domain-name 在基于CLI的交换机上配置VTP管理域: switch(enable) set vtp [domain domain-name] passwd password在基于IOS的交换机上配置VTP 模式: witch# vlan database witch(vlan)# vtp domain domain-name witch(vlan)# vtp {sever|cilent|transparent} witch(vlan)# vtp password password 在基于CLI的交换机上配置VTP 模式: switch(enable) set vtp [domain domain-name] [mode{sever|cilent|transparent }][password password] 核验vtp的配置: how vtp domain how vtp statistics 在基于IOS的交换机上配置VTP版本: VTP版本1是缺省配置 witch# vlan database witch(vlan)# vtp v2-mode 在基于CLI的交换机上配置VTP版本: witch(enable) set vtp v2 enable在基于IOS的交换机上启动VTP剪裁: witch# vlan database witch(vlan)# vtp pruning 在基于CLI 的交换机上启动VTP剪裁: witch(enable) set vtp pruning enable (set vtp pruneeligible vlan-range) 不起用vtp修剪: clear vtp pruneeligible vlan-range