[信息与通信]第9章 路由器VTP.ppt

上传人:音乐台 文档编号:2001129 上传时间:2019-01-30 格式:PPT 页数:39 大小:969.17KB
返回 下载 相关 举报
[信息与通信]第9章 路由器VTP.ppt_第1页
第1页 / 共39页
[信息与通信]第9章 路由器VTP.ppt_第2页
第2页 / 共39页
[信息与通信]第9章 路由器VTP.ppt_第3页
第3页 / 共39页
亲,该文档总共39页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述

《[信息与通信]第9章 路由器VTP.ppt》由会员分享,可在线阅读,更多相关《[信息与通信]第9章 路由器VTP.ppt(39页珍藏版)》请在三一文库上搜索。

1、 2002, Cisco Systems, Inc. All rights reserved.,1,第9章 VTP,学习目标,理解VTP的工作原理 了解VTP的几种通告以及通告内容 掌握VTP的配置,一、VTP 概述,VLAN对网络进行逻辑上的分段,Page 4/47,VLAN 1,VLAN 1,VLAN 2,VLAN 1与VLAN 2之间需要通过路由器才能通信,连接在不同交换机上的相同ID的VLAN,需要经过Trunk通信,1、VTP的引入及功能介绍,添加VLAN 给VLAN命名 删除VLAN,这些配置在同一企业网中的交换机上配置基本相同,重复配置浪费时间,也容易出错!,switch(con

2、fig)#vlan 2 switch(config)#vlan 3 . . .,VLAN Trunk Protocol 从一个控制点,维护整个企业网上VLAN的添加、删除和重命名工作。,VLAN 2 name abc VLAN 3 name def,VTP域,VTP通告,VTP在整个网络上维持VLAN配置的一致性。 VTP是一种消息协议,它使用第2层trunk帧在 全网基础上管理VLAN的添加、删除和重命名。,2、VTP域,VTP域的组成 相同域名的、通过Trunk相互连接的一组交换机。,域名:abc,VTP域的服务器,使用Trunk连接,3、VTP通告,VTP 通告传递的只是VLAN的配置信

3、息,且只从 Trunk口发送,并不传递端口与VLAN的对应信息,故在非 VTP Server上,仍需要配置端口与VLAN的对应信息,而不 需配置VLAN。 VTP通告每5分钟或者VTP Server的VLAN配置发生变化(变 化一次,配置修订号加1)时发送一次; VTP通告发送给二层组播地址01-00-0c-cc-cc-cc . VTP通告通过VLAN 1传送 VTP通告只能在同一VTP域内传播,不同VTP域不能共享 VTP通告。,4、VTP的运行模式,VTP模式有3种: 服务器模式(Server) 客户机模式(Client) 透明模式(Transparent),4、VTP的运行模式(续),服

4、务器模式,客户模式,透明模式,发送/转发 VTP通告 同步 不会存贮于NVRAM,创建vlan 修改vlan 删除vlan 发送/转发 VTP通告 同步 存贮于NVRAM,创建vlan 修改vlan 删除vlan 转发VTP通告 不同步 存贮于NVRAM,Catalyst switches 上默认的VTP模式是服务器模式,这样在向VLAN中增加一台交换机时必须注意这一点。,注意:,VTP的同步是覆盖性的,具有高配置修订号的交换机的VLAN配置信息,将覆盖具有低配置修订号的交换机的VLAN配置信息。,5、VTP配置步骤,1)配置VTP域名(名字大小写敏感) 2)配置VTP 模式 (服务器/客户/

5、透明) VTP服务器模式是交换机的缺省模式。 3)VTP password(口令)(可选) 4)VTP 修剪(可选) 5)VTP trap和SNMP工作站配合(可选)。,6、VTP 配置命令,创建VTP 域 switch(config)# vtp domian domain_name 配置交换机的VTP模式 switch(config)# vtp mode server | client | transparent ,配置VTP口令 switch(config)# vtp password password 配置VTP修剪 switch(config)# vtp pruning VTP版本的配

6、置 switch(config)# vtp version 2,7、查看VTP配置,switch# show vtp status,8、VTP配置实例,A,B,C,f0/23,f0/23,f0/22,f0/22,VLAN 2,VLAN 3,VLAN 2,VLAN 3,VLAN 2,VLAN 3,Port 2-3,Port 4-5,VTP域名:test VTP模式:Server,Vlan 1:192.168.1.1/24,(1)在SwA上配置VTP,SwA(config)# vtp domain test Changing VTP domain name from null to test Sw

7、A(config)# vtp mode server Device mode already VTP SERVER. SwA(config)#interface fastEthernet 0/23 SwA(config-if)#switchport mode trunk,配置交换机的VTP域名为test,配置交换机的VTP运行模式为服务器模式,配置交换机之间连接的端口为trunk,A,B,C,f0/23,f0/23,f0/22,f0/22,VLAN 2,VLAN 3,VLAN 2,VLAN 3,VLAN 2,VLAN 3,Port 2-3,Port 4-5,VTP域名:test VTP模式:C

8、lient,(2)在SwB上配置VTP,SwB(config)# vtp domain test Changing VTP domain name from null to test SwB(config)# vtp mode client Device mode already VTP CLIENT mode. SwB(config)#interface fastEthernet 0/22 SwB(config-if)#switchport mode trunk SwB(config)#interface fastEthernet 0/23 SwB(config-if)#switchport

9、 mode trunk,(3)在SwA上添加VLAN,SwA#vlan database SwA(vlan)#vlan 2 name sales VLAN 2 added: Name: sales SwA(vlan)#vlan 3 name develop VLAN 3 added: Name: develop SwA(vlan)#exit APPLY completed. Exiting,(4)在SwA上将端口划入VLAN,SwA(config)#interface range fastEthernet 0/2 - 3 SwA(config-if-range)#switchport acce

10、ss vlan 2 SwA(config)#interface range fastEthernet 0/4 - 5 SwA(config-if-range)#switchport access vlan 3,(5)配置SwA的管理IP地址,SwA(config)#interface vlan 1 SwA(config-if)#ip address 192.168.1.1 255.255.255.0 SwA(config-if)#no shutdown,为了查看方便,为SwA配置管理IP地址,否则显示的更新者标识中的地址为0.0.0.0,在SwA上查看VLAN信息,SwA#show vlan

11、brief VLAN Name Status Ports - - - - 1 default active Fa0/1, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22, Fa0/24 2 sales active Fa0/2, Fa0/3 3 develop active Fa0/4, Fa0/5 1002 fddi-default active 1003 token-ring-defau

12、lt active 1004 fddinet-default active 1005 trnet-default active,在SwA上查看VTP状态信息,SwA#show vtp status VTP Version : 2 Configuration Revision : 2 Maximum VLANs supported locally : 64 Number of existing VLANs : 7 VTP Operating Mode : Server VTP Domain Name : test VTP Pruning Mode : Disabled VTP V2 Mode :

13、 Disabled VTP Traps Generation : Disabled MD5 digest : 0x34 0x9D 0xE1 0x18 0x50 0x4C 0xC1 0xD0 Configuration last modified by 192.168.1.1 at 7-27-06 11:27:16 Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered VLAN interface found),可以支持VTP版本2,VTP的配置修订号,没有使用VTP版本2,MD5摘要信息,更新者信息,VTP的运行模式

14、是Server,VTP域名为test,没有启用VTP修剪,共支持64个VLAN,在SwB上查看VLAN信息,SwB#show vlan brief VLAN Name Status Ports - - - - 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/24 2 sales active 3

15、develop active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup,已经通过VTP协议学习到了VLAN的信息,但是不学习VLAN中添加的端口,在SwB上查看VTP信息,SwB#show vtp status VTP Version : 2 Configuration Revision : 2 Maximum VLANs supported locally : 64 Number of exi

16、sting VLANs : 7 VTP Operating Mode : Client VTP Domain Name : test VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x34 0x9D 0xE1 0x18 0x50 0x4C 0xC1 0xD0 Configuration last modified by 192.168.1.1 at 7-27-06 11:27:16,A,B,C,f0/23,f0/23,f0/22,f0/22,VLAN

17、 2,VLAN 3,VLAN 2,VLAN 3,VLAN 2,VLAN 3,Port 2-3,Port 4-5,请学员完成,VTP域名:test VTP模式:Client,(6)在SwC上配置VTP,(7)配置可选项,配置SwA的VTP口令 SwA(config)#vtp password cisco Setting device VLAN database password to cisco 修改SwA的VLAN配置,添加VLAN 4 SwA#vlan database SwA(vlan)#vlan 4 name market VLAN 4 added: Name: market SwA(v

18、lan)#exit,查看SwA的VTP信息 SwA#show vtp status VTP Version : 2 Configuration Revision : 3 Maximum VLANs supported locally : 64 Number of existing VLANs : 8 VTP Operating Mode : Server VTP Domain Name : test VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x

19、BE 0x93 0x37 0xDD 0xE5 0x27 0x30 0x9D Configuration last modified by 192.168.1.1 at 7-27-06 13:42:38 Local updater ID is 192.168.1.1 on interface Vl1 (lowest numbered VLAN interface found),配置修订号增加1,在SwB没有配置VTP口令的情况下查看VTP信息 SwB#show vtp status VTP Version : 2 Configuration Revision : 2 Maximum VLANs

20、supported locally : 64 Number of existing VLANs : 7 VTP Operating Mode : Client VTP Domain Name : test VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x34 0x9D 0xE1 0x18 0x50 0x4C 0xC1 0xD0 Configuration last modified by 192.168.1.1 at 7-27-06 11:27:1

21、6,配置修订号没变,查看SwB的VLAN信息 SwB#show vlan brief VLAN Name Status Ports - - - - 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/24 2 sales active 3 develop active 1002 fddi-defaul

22、t act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup,新的VLAN信息也没有学到,配置SwB的VTP密码 SwB(config)#vtp password cisco Setting device VLAN database password to cisco,查看SwB的VTP信息 SwB#show vtp status VTP Version : 2 Configuration Revision : 3 Maximum VLANs s

23、upported locally : 64 Number of existing VLANs : 8 VTP Operating Mode : Client VTP Domain Name : test VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0xBE 0x93 0x37 0xDD 0xE5 0x27 0x30 0x9D Configuration last modified by 192.168.1.1 at 7-27-06 13:42:38

24、,等到SwA发送汇总通告时,SwB发现配置修订号发生了变更,会发送通告请求,SwA会发送携带VLAN信息的子集通告,查看SwB的VLAN信息 SwB#show vlan brief VLAN Name Status Ports - - - - 1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/5, Fa0/6, Fa0/7, Fa0/8 Fa0/9, Fa0/10, Fa0/11, Fa0/12 Fa0/13, Fa0/14, Fa0/15, Fa0/16 Fa0/17, Fa0/18, Fa0/19, Fa0/20 Fa0/21, Fa0/22,

25、 Fa0/24 2 sales active 3 develop active 4 market active 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup,在SwA上配置VTP修剪 SwA(config)#vtp pruning Pruning switched on 查看VTP状态 SwA#show vtp status VTP Version : 2 Configuration Revisio

26、n : 4 Maximum VLANs supported locally : 64 Number of existing VLANs : 8 VTP Operating Mode : Server VTP Domain Name : test VTP Pruning Mode : Enabled VTP V2 Mode : Disabled,本章总结,VTP协议,配置VTP修剪,配置VTP域名,配置VTP口令,配置VTP运行模式,VTP修剪,VTP通告,VTP运行模式,VTP域,Server模式 Client模式 Transparent模式,减少Trunk链路上 不必要的广播流量,Vtp m

27、ode server|client|Transparent,Vtp domain xxx,Vtp password xxx,Vtp pruning,实验,任务 在Catalyst 2950交换机上配置VTP,A,B,C,f0/23,f0/23,f0/24,f0/24,VLAN 2,VLAN 3,VLAN 2,VLAN 3,VLAN 4,VLAN 5,VTP域名:ht VTP模式:Client,VTP域名:ht VTP模式:Server,VTP域名:ht VTP模式:Transparent,f0/2,f0/3,实验目标,在SwA上添加VLAN2和3 SwC可以学习到VLAN2和3的信息 在SwB上添加VLAN4和5,其他交换机不学习 配置VTP口令 配置VTP修剪,

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 其他


经营许可证编号:宁ICP备18001539号-1