VTP技术实验配置(超详细_原创) (1)

合集下载

实验报告6_交换机实验VTP配置_姓名

实验报告6_交换机实验VTP配置_姓名
配置Sw1的管理IP地址
Sw1(config)#interface vlan 1
Sw1(config-if)#ip address 192.168.1.1 255.255.255.0
Sw1(config-if)#no shutdown
为了查看方便,为Sw1配置管理IP地址,否则显示的更新者标识中的地址为0.0.0.0
SW1(config-vlan)#exit
SW1(config)#vlan 3
SW1(config-vlan)#exit
配置验证:
SW1#showvlan
查看配置:SW1#showvtp sta贴图
注意:Configuration Revision : 2
问题:解释与步骤1中两次SW1#showvtp sta,“Configuration Revision”值的不同的原因?
实验报告6
课程名称
核心路由交换技术
实验名称
VTPபைடு நூலகம்
姓名
学号
班级




【实验目的】
通过实验掌握VTP的应用及相应配置
能够通过配置VTP,来简化VLAN的配置与管理
理解VTP的工作原理
【背景描述】
从一个控制点,维护整个企业网上VLAN的添加、删除和重命名工作在企业中往往有很多层二交换机,而每个交换机上都划分有VLAN,如果在每个交换机上都一一划分费时又费力,可以通过VTP来减少配置的复杂度,从一个控制点,维护整个企业网上VLAN的添加、删除和重命名工作,即在单个交换机上管理整个交换网络内的的VLAN,提高工作效率。
SW2(config-if)# switchportmodetrunk
Sw3(config)# interfacef0/24

VTP配置实验报告

VTP配置实验报告

vtp实验报告实验名称配置(vtp)vlan中继协议实验目的:了解vtp的作用;理解vtp的三种模式;熟练配置vtp 理论原理:1、vtp的作用简化vlan的配置与管理2、vtp的三种模式 ? 服务器模式(server)创建、修改、删除vlan从中继端口学习/转发信息通告在nvram存贮vlan配置信息缺省模式? 客户机模式(client) 不能创建、修改、删除vlan 从中继端口学习/转发信息通告不会在nvram存贮vlan配置信息? 透明模式(transparen) 创建、修改、删除vlan从中继端口不学习收到的信息通告从中继端口转发收到的信息通告在nvram存贮自己的vlan配置信息不通告自己的 vlan配置3、配置vtpswitch(config)# vtp mode server | client | transparent switch(config)# vtp domain abc switch(config)# vtp password 123 实验功能:实现服务器模式交换机上的vlan信息通过中继端口通告给客户机模式的交换机,在透明模式的交换机上创建独立的vlan 实验设备:交换机4台,交叉线4根实验拓朴:实验步骤:1、设置各交换机的显示名和主机名分别为s1、s2、s3、s4、s5 switch(config)#hostname s1 …………2、将交换机与交换机相连的接口模式设置为trunk s1(config)#interface range f0/1 - 3 s1(config-if-range)#switchport mode trunk s2(config)#interface f0/4s2(config-if)#switchport mode trunk 3、在s1上配置vtp,模式为服务器模式s1(config)# vtp mode server s1(config)# vtp domain abc s1(config)# vtp password1234、在s2、s3、s4、s5配置vtp,模式为客户机模式s2(config)# vtp mode client s2(config)# vtp domain abc s2(config)# vtp password123s3(config)# vtp mode client s3(config)# vtp domain abc s3(config)# vtp password123s4(config)# vtp mode client s4(config)# vtp domain abc s4(config)# vtp password123s5(config)# vtp mode client s5(config)# vtp domain abc s5(config)# vtp password1235、在s1上创建vlan 10 vlan 20,将f0/10口划分给vlan10, f0/20口划分给vlan20,查看vlan配置 s1(config)#vlan 10 s1(config-vlan)#name sales s1(config-vlan)#exit s1(config)#vlan 20 s1(config-vlan)#name produce s1(config)#interface f0/10s1(config-if)#switchport access vlan 10 s1(config)#interface f0/20 s1(config-if)#switchport access vlan 20 s1#show vlanvlan name status ports ---- -------------------------------- ---------------------------------------- 1 default active fa0/4, fa0/5, fa0/6, fa0/7 fa0/8, fa0/9, fa0/11, fa0/12 fa0/13, fa0/14, fa0/15, fa0/16 fa0/17, fa0/18, fa0/19, fa0/21 fa0/22, fa0/23, fa0/24 10 sales active fa0/10 20produce active fa0/20 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default active vlan type said mtu parent ringno bridgeno stp brdgmode trans1 trans2---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 1 enet 100001 1500 - - - - - 0 0 10enet 100010 1500 - - - - - 0 0 20 enet100020 1500 - - - - - 0 0 1002 enet 1010021500 - - - - - 0 0 1003 enet 101003 1500 -- - - - 0 0 1004 enet 101004 1500 - -- - - 0 0 1005 enet 101005 1500 - - -- - 0 06、在s1、s2、s3、s4、s5上show vlan s2#show vlan vlan name status ports ---- -------------------------------- ---------------------------------------- 1 default active fa0/4, fa0/5, fa0/6, fa0/7 fa0/8, fa0/9, fa0/11, fa0/12 fa0/13, fa0/14, fa0/15, fa0/16 fa0/17, fa0/18, fa0/19, fa0/21 fa0/22, fa0/23, fa0/24 10 sales active 20produce active 1002 fddi-default active 1003 token-ring-default active 1004 fddinet-default active 1005 trnet-default activevlan type said mtu parent ringno bridgeno stp brdgmode trans1 trans2---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------ 1 enet 100001 1500 - - - - - 0 0 10enet 100010 1500 - - - - - 0 0 20 enet 100020 1500 - - - - - 0 01002 enet 1003 enet 1004 enet 1005 enet 101002 101003 101004 101005 1500 1500 1500 1500- - - - - - - - - - - - - - - - - - - - 0 0 0 00 0 0 0结论: s2、s3、s4、s5已经通过vtp协议学习到了s1上的vlan信息,但是不学习vlan中添加的端口7、在s1上删除vlan 10s1(config)#no vlan 10 在各交换机上show vlan 结论:每台交换机上都不存在vlan 10,服务器模式交换机上的vlan有变化,则客户机模式交换机上的vlan会同步8、需要在s2上单独创建vlan 30 其他交换机上不存在vlan 30实现方法:将s2的vtp模式改为透明模式,在s2上创建vlan 30 s2(config)#vtp modetransparent s2(config)#vlan 30 s2(config-vlan)#name human 在各交换机上show vlan 结论:只在s2上有vlan 30,透明模式交换机只传递vlan,不会把自己的vlan信息通告给其他交换机篇二:vtp配置及vlan间路由实验报告桂林电子科技大学网络交换及路由技术实验报告第一部分基本vtp配置【实验目的:】1、执行基本交换机配置2、配置主机 pc 上的以太网接口3、在交换机上配置 vtp 和安全功能。

实验二十:VTP配置

实验二十:VTP配置

实验二十:VTP配置VTP(VLAN Trunking Protocol)是一个用于传播和同步关于整个交换网络的VLAN信息的协议,工作在OSI参考模型的第二层。

VTP使我们在扩展交换网络规模时减少人工配置的工作量,并通过统一地管理交换网络中VLAN的增加、删除和名称变更,以维持整个网络VLAN配置的一致性,最大限度地减少可能带来问题的错配和配置不一致情况(如VLAN名称重复使用或错误的VLAN类型说明)。

VTP的三种模式:Server服务器模式、Client客户机模式、Transparent 透明模式。

1、Server 服务器模式:可以创建、更改和删除VLAN信息,并设置用于整个VTP域的其它配置参数。

Server交换机上设置的这些消息会通过中断线路依次传到相同域中的VTP客户机中,以同步相同域内多台交换机Vlan的配置。

2、Client客户机模式:不能创建、更改和删除VLAN,只能通过中继线路同步接收相同域内VTP server服务器发来的VLAN信息。

3、Transparent透明模式:当前交换机不参加VTP,该种模式主要是用作本地管理,它不与其它交换机共享VLAN信息,但仍可以将VTP通告转送到其它交换机。

一、实验内容1、使用VTP协议实现多交换机VLAN配置二、实验目的1、掌握VTP原理及工作过程2、掌握VTP的三种工作模式3、掌握交换机Trunking中继线路的配置三、网络拓朴四、实验设备1、四台安装有windows 98/xp/2000的微机2、两台Cisco 2950 交换机3、多条直通网线和交叉网线4、思科(Cisco)专用控制端口连接电缆五、实验过程(需要将相关命令写入实验报告)1、使用直通线和交叉线将电脑与交换机、交换机与交换机正确进行连接2、配置各主机IP地址和子网掩码3、将交换机A设置为VTP Server服务器模式,同时设置VTP域名称并在该交换机上添加添加VLAN 100和VLAN 2004、将交换机B设置为VTP Client客户机模式。

VTP技术实验配置(超详细_原创)

VTP技术实验配置(超详细_原创)

VTP 的配置实验目的: 了解熟悉vtp 的配置命令 熟悉VTP 配置步骤及过程实验内容:1.求证两台server 模式之间修订号改变随之的变化2.求证两台server 模式 一台transparnet 模式修改修订号之间他们的变化命令:1.创建VTP 域Swith(config)#vtp domain domain_name2.配置交换机的VTP 模式Swith(config)#vtp mode server | client | transparent一.两台server 模式之间修订号修改之间的变化实验拓扑:1. 构建物理拓扑图如上 //注意选用的是交叉线,所对应的端口号2. 创建switch7,switch8的trunk 链路Switch7switch7(config)#int f0/1switch7(config-if)#switchport mode trunkswitch7(config-if)#switchport trunk enswitch7(config-if)#switchport trunk encapsulation dot1q switch7(config-if)#no shudown switch8switch8(config)#int f0/1switch8(config-if)#switchport mode trunkswitch8(config-if)#switchport trunk encapsulation dot1q switch8(config-if)#no shutdown3. 创建域和模式Switch7switch7(config)#vtp domain zichunliSwitch7Switch8F0/1Switch7Switch8server server F0/1trunkswitch7(config)#vtp mode serverSwitch8Switch8(config)#vtp domain zichunliSwitch8(config)#vtp mode server4.在switch7里面创建valn 10,vlan 20switch7(config)#vlan 10switch7(config)#vlan 205.在switch8里面创建vlan 30Switch8(config)#vlan 30实验测试:1.当switch7里创建vlan 10,vlan 20 ,查看switch8 VTP和vlan状态情况结果显示switch8#show vtp statusVTP V ersion : 2Configuration Revision : 2 //修订号学习switch7修订号Maximum VLANs supported locally : 1005Number of existing VLANs : 7VTP Operating Mode : ServerVTP Domain Name : zichunliVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x50 0x30 0x57 0x39 0xE6 0xCB 0x30 0x6BConfiguration last modified by 0.0.0.0 at 3-1-93 01:35:52Local updater ID is 0.0.0.0 (no valid interface found)switch8#show vlan brieVLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/6, Fa0/7, Fa0/8, Fa0/9Fa0/10, Fa0/11, Fa0/12, Fa0/13Fa0/14, Fa0/15, Fa0/16, Fa0/17Fa0/18, Fa0/19, Fa0/20, Fa0/21Fa0/22, Fa0/23, Fa0/24, Gi0/1Gi0/210 VLAN0010 active //学习到sw7的vlan 1020 VLAN0020 active //学习到sw7的vlan 201002 fddi-default act/unsup1003 token-ring-default act/unsup1004 fddinet-default act/unsup1005 trnet-default act/unsup2.当switch8创建vlan 30时Switch7#show vlan brieVLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/6, Fa0/7, Fa0/8, Fa0/9Fa0/10, Fa0/11, Fa0/12, Fa0/13Fa0/14, Fa0/15, Fa0/16, Fa0/17Fa0/18, Fa0/19, Fa0/20, Fa0/21Fa0/22, Fa0/23, Fa0/24, Gi0/1Gi0/210 VLAN0010 active20 VLAN0020 active30 VLAN0030 active //switch7 自动学习switch8所创建的vlan301002 fddi-default act/unsup1003 token-ring-default act/unsup1004 fddinet-default act/unsup1005 trnet-default act/unsupswitch7#show vtp statusVTP V ersion : 2Configuration Revision : 3 .//switch7自动学习到switch8的修订号Maximum VLANs supported locally : 1005Number of existing VLANs : 8VTP Operating Mode : ServerVTP Domain Name : zichunliVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x50 0x30 0x57 0x39 0xE6 0xCB 0x30 0x6BConfiguration last modified by 0.0.0.0 at 3-1-93 01:35:52小结: 当两台配置vtp为server模式时,修订号变化决定哪台为老大.他们能相互学习.二.两台server 模式加一台transparent 模式修订号修改之间的变化一.实验拓扑:二.基本配置:1.trunk 链路的创建 Switch1:switch1(config)#int f0/1switch1(config-if)#switchport trunk encapsulation dot1qswitch1(config-if)#switchport mode trunk //配置switch1的f0/1为trunk 链路 switch1(config-if)#no shutdownSwitch2:switch2(config)#int f0/1switch2(config-if)#switchport trunk encapsulation dot1qswitch2(config-if)#switchport mode trunk //配置switch2的f0/1为trunk 链路 switch2(config-if)#no shut switch2(config-if)#*Mar 1 00:04:45.135: %DTP-5-TRUNKPORTON: Port Fa0/1 has become dot1q trunk switch2(config-if)#exitswitch2(config)#int f0/2switch2(config-if)#switchport trunk encapsulation dot1qswitch2(config-if)#switchport mode trunk //配置switch2的f0/2为trunk 链路 switch2(config-if)#no shut*Mar 1 00:05:17.003: %DTP-5-TRUNKPORTON: Port Fa0/2 has become dot1q trunkdwo% Invalid input detected at '^' marker. switch2(config-if)#no shutdownswitch3:switch3(config)#int f0/1switch3(config-if)#switchport trunk encapsulation dot1qswitch3(config-if)#switchport mode trunk //配置switch3的f0/1为trunk 链路 switch3(config-if)#no shutdownserver transparent Switch2 Switch3 trunk F0/1server Switch1trunkF0/1 F0/1 F0/22.创建vtp域,模式switch1:switch1#vlan database //在模拟器上是这个格式switch1(vlan)#vtp domain zi //创建域名为”zi”switch1(vlan)#vtp server //模式为”server”switch2:switch2#vlan databaseswitch2(vlan)#vtp domain zi //创建域名为”zi”switch2(vlan)#vtp transparent //模式为” transparent ”switch3:switch3#vlan databaseswitch3(vlan)#vtp domain zi //创建域名为”zi”switch3(vlan)#vtp server //模式为”server”实验测试:(1).swithc1创建vlan 10,vlan 20 查看switch3是否能学到Step1: switch1 创建vlan 10 ,vlan 20switch1#vlan dataswitch1(vlan)#vlan 10VLAN 10 added:Name: VLAN0010switch1(vlan)#exitswitch1#vlan dataswitch1(vlan)#vlan 20VLAN 20 added:Name: VLAN0020switch1(vlan)#exitAPPLY completed.Exiting....Step2.:查看switch3是否能学到switch3#show vlan-swVLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/0, Fa0/2, Fa0/3, Fa0/4Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/14, Fa0/1510 VLAN0010 active //学到switch1的vlan 1020 VLAN0020 active //学到switch1的vlan 101002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default activeVLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------1 enet 100001 1500 - - - - - 1002 100310 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 fddi 101002 1500 - 0 - - - 1 10031003 tr 101003 1500 1005 0 - - srb 1 10021004 fdnet 101004 1500 - - 1 ibm - 0 01005 trnet 101005 1500 - - 1 ibm - 0 0switch3#show vtp staVTP V ersion : 2Configuration Revision : 2 //修订号变为2学到switch1了Maximum VLANs supported locally : 256Number of existing VLANs : 7 //vlan 自动加到7VTP Operating Mode : ClientVTP Domain Name : ziVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x6C 0x7B 0xA9 0xFA 0x83 0x95 0x05 0xD4Configuration last modified by 0.0.0.0 at 3-1-02 00:25:20小结:当中间配置为”transparent”模式的时候,并不影响switch3学习到switch1的vlan ,验证transparent 模式仍会转为vtp通告.switch1和switch3之间还是会随着哪个的修订号版高的变化而变化(2)当switch3域名改”wu”(与前两个不同)时,在switch1添加vlan 30,验证switch3是否能够学到.Step1: 修改switch3的域名switch3:switch3#vlan databaseswitch3(vlan)#vtp domain wustep2:在switch1中添加vlan 30switch1#vlan dataswitch1(vlan)#vlan 30VLAN 30 added:Name: VLAN0030switch1(vlan)#exitstep3:查看switch3是否能够学到switch1里添加的vlan30VLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/0, Fa0/2, Fa0/3, Fa0/4Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/14, Fa0/1510 VLAN0010 active20 VLAN0020 active1002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default activeVLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------1 enet 100001 1500 - - - - - 1002 100310 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 01005 trnet 101005 1500 - - 1 ibm - 0 0switch3#show vtp staVTP V ersion : 2Configuration Revision : 2 //修订号为2未学到switch1Maximum VLANs supported locally : 256Number of existing VLANs : 7 //vlan 也没有增加VTP Operating Mode : ClientVTP Domain Name : ziVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x6C 0x7B 0xA9 0xFA 0x83 0x95 0x05 0xD4 Configuration last modified by 0.0.0.0 at 3-1-02 00:25:20小结: 当域名不同时.vtp的各个模式之间是不能相互学习.如果要配置使他们能相互学习,前提是vtp的域名必须相同.总结: 1.vtp是一个cisco专有的技术,能够帮助管理员自动完成vlan 的创建,删除和同步等工作.2.Vtp分为三个模式服务模式,客户模式,透明模式3.vtp是基于vlan的一种技术,vtp在vlan.dat的vlan数据库存储vlan配置,当配置时会直接覆盖vlan.dat4.vtp通告分汇总通告(确定领导地位) 子集通告请求通告5.vtp技术核心本质”修订号”。

(精选)利用交换机VTP协议实验来配置VLAN

(精选)利用交换机VTP协议实验来配置VLAN

利用交换机VTP协议实验来配置VLAN一、VTP介绍VTP(VLAN Trunking Protocol):是VLAN中继协议,也被称为虚拟局域网干道协议。

它是思科私有协议。

作用是十几台交换机在企业网中,配置VLAN工作量大,可以使用VTP协议,把一台交换机配置成VTP Server, 其余交换机配置成VTP Client,这样他们可以自动学习到server 上的VLAN 信息。

VTP模式有3种服务器模式(Server)客户机模式(Client)透明模式(Transparent)Server(服务器)模式——可以学习转发、可以添加删除或修改VLAN信息Client(客户机)模式——可以学习转发、但不可以添加删除或修改Transparent(透明)模式——不学习,但可以转发VLAN信息;可以创建或删除VLAN,只在本地有效,不影响其它路由器。

新交换机出厂时的默认配置是预配置为VLAN1,VTP 模式为服务器。

VTP协议只能学习到VLAN的信息,并不能学习到端口划分的信息配置命令若给VTP配置密码,那么本域内的所有交换机的VTP密码必须保持一致。

创建VTP域命令思科IOS系统switch(config)#vtp domain DOMAIN_NAME配置交换机的VTP模式三种模式server client transparent(透明模式)switch(config)# vtp mode server | client | transparent配置VTP口令switch (config) # vtp password PASSWORD配置VTP修剪能够减少中继端口上不必要的广播信息量,在模拟器中无此命令switch (config) # vtp pruning配置VTP版本switch (config) # vtp version 2(默认是版本1) ,客户机不可以配置ver 2查看VTP配置信息switch# show vtp status在三层路由器加了一块二层档板时,命令环境改变。

第13章 交换机VTP配置实训

第13章 交换机VTP配置实训

13.1
实训环境的建立
利用Boson Network Designer 绘制实验网 络拓扑图,我们选择 3550交换机,并将两 台交换机的快速以太网接口 Fast Ethernet 0/1 连接。将PC1 接入交换机 Switch 1 的 Fast Ethernet 0/11,PC2 接入交换机 Switch1 的 Fast Ethernet 0/12,PC3 接入 交换机 Switch2 的Fast Ethernet 0/11, PC4 接入交换机 Switch2 的 Fast Ethernet 0/12。
13.4.3 验证 验证VTP
13.4.3 验证 验证VTP
3.
查看Switch2上的 上的vlan信息的变化 查看 上的 信息的变化
《计算机网络技术实训教程》 计算机网络技术实训教程》
第13章 交换机 章 交换机VTP配置实训 配置实训
第13章 交换机 章 交换机VTP配置实训 配置实训
13.1 13.2 13.3 13.4 实训环境的建立 配置Vlan IP 配置 配置TRUNK 配置 配置VTP 配置
第13章 交换机 章 交换机VTP配置实训 配置实训
13.4.3 验证 验证VTP
1.
查看Switch2上的 上的vlan信息 查看 上的 信息 Switch2#show vlan (验证Switch2上vlan的信息,是否存在vlan 10 和vlan 20)
13.4.3 验证 验证VTP
2.
配置Switch1上的 上的vlan 配置 上的 Switch1#vlan database Switch1(vlan)#vlan 10 name top10 Switch1(vlan)#vlan 20 name top20 Switch1(vlan)#int f0/11 Switch1(config-if)#switchport access vlan 10 Switch1(config-if)#int f0/12 Switch1(config-if)#switchport access vlan 20 Switch1 (config-if)#end Switch1#copy run start Switch1#show vlan

项目实验3:VTP配置及利用三层交换机实现VLAN间路由配置

项目实验3:VTP配置及利用三层交换机实现VLAN间路由配置

项目实验3:VTP配置与利用三层交换机实现VLAN间路由配置实验3-1 VTP配置实验〔一〕实验目的:●掌握交换机上创建VTP的方法。

●掌握交换机上使用VTP的应用场景。

〔二〕实验设备:●packet tracert模拟软件●调试工作站PC六台●交换机3台(三)实验环境拓扑图:vtp 配置说明:1.在3560交换机上划分两个 VLAN,分别为VLAN1和VLAN22.在3560交换机上创建VTP,设置域名为dhynet,服务器模式,密码为dhynet3.将两台2950交换机分别设置为3560的同域名的VTP客户端模式,学习3560上的VLAN设置4.3560交换机实验23与23端口分别连接2950 的23端口,并设置为干道5.在两台2950交换机上,将1-12端口划分为VLAN1,13-23端口划分为VLAN2,6.6台PC机按照拓扑图接好7.要求PC0能够PING通PC3、PC2。

PC1能够PING通PC3、PC5。

8.IP网段为192.168.1.0/23。

192.168.2.0/23,分别对应于VLAN1和VLAN2.〔四〕实验结果要求正确设置IP地址之后要求PC0能够PING通PC3、PC2。

PC1能够PING通PC3、PC5 〔五〕准备工作按上图所示,用适宜的双绞线将6台PC通过各自网卡接口与三台交换机接口相连。

〔六〕实验步骤:(1)3560交换机sw0的配置Switch>enSwitch#vlan database /! 进入交换机虚拟局域网数据库模式% Warning: It is remended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#vtp server /! 设置交换机的VTP服务器模式Device mode already VTP SERVER.Switch(vlan)#vtp domain dhynet /! 设置交换机的VTP域名为dhynetChanging VTP domain name from NULL to dhynetSwitch(vlan)#vtp password dhynet /! 设置交换机的VTP密码为dhynetSetting device VLAN database password to dhynetSwitch(vlan)#vlan 2 name dhy2 /! 建立虚拟局域网VLAN 2 并设置别名为dhy2VLAN 2 added:Name: dhy2Switch(vlan)#exit /! 退出虚拟局域网VLAN设置APPL Y pleted.Exiting....查看虚拟局域网VLAN设置Switch#show vlan /! 查看虚拟局域网VLAN设置VLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/3Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/13, Fa0/15, Fa0/16Fa0/17, Fa0/18, Fa0/19, Fa0/20Fa0/21, Fa0/22, Fa0/23, Fa0/23Gig0/1, Gig0/22 dhy2 active /! 注意已经建立了VLAN2与其别名为dhy2信息1002 fddi-default act/unsup1003 token-ring-default act/unsup1003 fddinet-default act/unsup1005 trnet-default act/unsupVLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------1 enet 100001 1500 - - - - - 0 02 enet 100002 1500 - - - - - 0 01002 fddi 101002 1500 - - - - - 0 01003 tr 101003 1500 - - - - - 0 01003 fdnet 101003 1500 - - - ieee - 0 01005 trnet 101005 1500 - - - ibm - 0 0Remote SPAN VLANs----------------------------------------------Primary Secondary Type Ports------------------------------------------Switch#3560交换机干道模式配置Switch#conf tEnter configuration mands, one per line. End with TL/Z.Switch(config)#int f0/23Switch(config-if)#switchport trunk encapsulation dot1q /!在交换机3560的f0/23端口设置干道应用802.1q 协议,由于2950自动支持该协议,无须配置。

VTP实验

VTP实验

实验二:交换机VTP配置一、实验内容与要求:1、掌握交换剂VLAN的基本配置2、掌握VTP的基本配置二、设备需求安装了WindowsXP的计算机一台,Packet Tracer模拟器软件。

三、线缆连接及配置说明在模拟器软件中,设置如下图所示的拓扑结构交换机2交换机1交换机3四、实验步骤VTP的作用是流量在穿越整个网络的过程中维持vlan信息不变。

VTP是一种消息协议,通过使用2层中Frame 在整个网络中负责管理vlan的添加,删除和重命名。

通过一台工作在VTP 服务器模式下的中央交机完成这些任务。

VTP负责在vlan域内同步vlan信息,这样就不需要在每台交换机配置vlan信息了。

VTP 有3种模式Server 服务器模式缺省模式, 可建立、修改和删除 VLAN, 向同一域中的交换机通告它的 VLAN 配置,并接受从Trunk 链路上收到的通告与其它交换机进行VLAN 配置的同步。

VTP服务器还可以确定其他参数, 例如 VTP 版本号和整个 VTP 域中的 VTP 裁剪, VTP 信息放置在VRAM中。

Client 客户端模式行为同服务器模式, 但不能建立、改变或删除VLAN;倾听vlan信息, 使得自己的vlan 配置信息保持与VTP服务器同步;也可以把vlan信息转发给其它交换机。

Transparent 透明模式不参与 VTP。

在 VTP v2 中, 配置为透明模式的交换机将在 Trunk 端口上转发 VTP 信息以保证其他交换机接收到更新信息, 但这些交换机将不修改自己的数据库, 也不发送指示VLAN 状态发生变化的更新信息。

VTP v1中, 透明模式的交换机也不转发vtp信息到其它交换机。

需要注意的是透明模式下的交换机可以在本地创建 vlan, 但这些vlan的变化信息不会扩散到其它交换机。

(1)登陆交换机:单击PC-PT PC0图标,出现图1所示窗口,单击途中红色框选图标,进入图2所示的超级终端设置界面,保持其默认设置。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

VTP 的配置实验目的: 了解熟悉vtp 的配置命令熟悉VTP 配置步骤及过程实验内容:1.求证两台server 模式之间修订号改变随之的变化2.求证两台server 模式 一台transparnet 模式修改修订号之间他们的变化命令:1.创建VTP 域Swith(config)#vtp domain domain_name2.配置交换机的VTP 模式Swith(config)#vtp mode server | client | transparent一.两台server 模式之间修订号修改之间的变化实验拓扑:1. 构建物理拓扑图如上 //注意选用的是交叉线,所对应的端口号2. 创建switch7,switch8的trunk 链路Switch7switch7(config)#int f0/1switch7(config-if)#switchport mode trunk switch7(config-if)#switchport trunk enswitch7(config-if)#switchport trunk encapsulation dot1q switch7(config-if)#no shudown switch8switch8(config)#int f0/1switch8(config-if)#switchport mode trunkswitch8(config-if)#switchport trunk encapsulation dot1q switch8(config-if)#no shutdown3. 创建域和模式Switch7switch7(config)#vtp domain zichunliSwitch7Switch8 F0/1 Switch7 Switch8server server F0/1 trunkswitch7(config)#vtp mode serverSwitch8Switch8(config)#vtp domain zichunliSwitch8(config)#vtp mode server4.在switch7里面创建valn 10,vlan 20switch7(config)#vlan 10switch7(config)#vlan 205.在switch8里面创建vlan 30Switch8(config)#vlan 30实验测试:1.当switch7里创建vlan 10,vlan 20 ,查看switch8 VTP和vlan状态情况结果显示switch8#show vtp statusVTP Version : 2Configuration Revision : 2 //修订号学习switch7修订号Maximum VLANs supported locally : 1005Number of existing VLANs : 7VTP Operating Mode : ServerVTP Domain Name : zichunliVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x50 0x30 0x57 0x39 0xE6 0xCB 0x30 0x6BConfiguration last modified by 0.0.0.0 at 3-1-93 01:35:52Local updater ID is 0.0.0.0 (no valid interface found)switch8#show vlan brieVLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/6, Fa0/7, Fa0/8, Fa0/9Fa0/10, Fa0/11, Fa0/12, Fa0/13Fa0/14, Fa0/15, Fa0/16, Fa0/17Fa0/18, Fa0/19, Fa0/20, Fa0/21Fa0/22, Fa0/23, Fa0/24, Gi0/1Gi0/210 VLAN0010 active //学习到sw7的vlan 1020 VLAN0020 active //学习到sw7的vlan 201002 fddi-default act/unsup1003 token-ring-default act/unsup1004 fddinet-default act/unsup1005 trnet-default act/unsup2.当switch8创建vlan 30时Switch7#show vlan brieVLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/6, Fa0/7, Fa0/8, Fa0/9Fa0/10, Fa0/11, Fa0/12, Fa0/13Fa0/14, Fa0/15, Fa0/16, Fa0/17Fa0/18, Fa0/19, Fa0/20, Fa0/21Fa0/22, Fa0/23, Fa0/24, Gi0/1Gi0/210 VLAN0010 active20 VLAN0020 active30 VLAN0030 active //switch7 自动学习switch8所创建的vlan301002 fddi-default act/unsup1003 token-ring-default act/unsup1004 fddinet-default act/unsup1005 trnet-default act/unsupswitch7#show vtp statusVTP Version : 2Configuration Revision : 3 .//switch7自动学习到switch8的修订号Maximum VLANs supported locally : 1005Number of existing VLANs : 8VTP Operating Mode : ServerVTP Domain Name : zichunliVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x50 0x30 0x57 0x39 0xE6 0xCB 0x30 0x6BConfiguration last modified by 0.0.0.0 at 3-1-93 01:35:52小结: 当两台配置vtp为server模式时,修订号变化决定哪台为老大.他们能相互学习.二.两台server 模式加一台transparent 模式修订号修改之间的变化一.实验拓扑:二.基本配置:1.trunk 链路的创建 Switch1:switch1(config)#int f0/1switch1(config-if)#switchport trunk encapsulation dot1qswitch1(config-if)#switchport mode trunk //配置switch1的f0/1为trunk 链路 switch1(config-if)#no shutdownSwitch2:switch2(config)#int f0/1switch2(config-if)#switchport trunk encapsulation dot1qswitch2(config-if)#switchport mode trunk //配置switch2的f0/1为trunk 链路 switch2(config-if)#no shut switch2(config-if)#*Mar 1 00:04:45.135: %DTP-5-TRUNKPORTON: Port Fa0/1 has become dot1q trunk switch2(config-if)#exitswitch2(config)#int f0/2switch2(config-if)#switchport trunk encapsulation dot1qswitch2(config-if)#switchport mode trunk //配置switch2的f0/2为trunk 链路 switch2(config-if)#no shut*Mar 1 00:05:17.003: %DTP-5-TRUNKPORTON: Port Fa0/2 has become dot1q trunkdwo% Invalid input detected at '^' marker. switch2(config-if)#no shutdownswitch3:switch3(config)#int f0/1switch3(config-if)#switchport trunk encapsulation dot1qswitch3(config-if)#switchport mode trunk //配置switch3的f0/1为trunk 链路 switch3(config-if)#no shutdownserver transparent Switch2 Switch3 trunk F0/1server Switch1 trunkF0/1 F0/1 F0/22.创建vtp域,模式switch1:switch1#vlan database //在模拟器上是这个格式switch1(vlan)#vtp domain zi //创建域名为”zi”switch1(vlan)#vtp server //模式为”server”switch2:switch2#vlan databaseswitch2(vlan)#vtp domain zi //创建域名为”zi”switch2(vlan)#vtp transparent //模式为” transparent ”switch3:switch3#vlan databaseswitch3(vlan)#vtp domain zi //创建域名为”zi”switch3(vlan)#vtp server //模式为”server”实验测试:(1).swithc1创建vlan 10,vlan 20 查看switch3是否能学到Step1: switch1 创建vlan 10 ,vlan 20switch1#vlan dataswitch1(vlan)#vlan 10VLAN 10 added:Name: VLAN0010switch1(vlan)#exitswitch1#vlan dataswitch1(vlan)#vlan 20VLAN 20 added:Name: VLAN0020switch1(vlan)#exitAPPL Y completed.Exiting....Step2.:查看switch3是否能学到switch3#show vlan-swVLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/0, Fa0/2, Fa0/3, Fa0/4Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/14, Fa0/1510 VLAN0010 active //学到switch1的vlan 1020 VLAN0020 active //学到switch1的vlan 101002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default activeVLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------1 enet 100001 1500 - - - - - 1002 100310 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 fddi 101002 1500 - 0 - - - 1 10031003 tr 101003 1500 1005 0 - - srb 1 10021004 fdnet 101004 1500 - - 1 ibm - 0 01005 trnet 101005 1500 - - 1 ibm - 0 0switch3#show vtp staVTP Version : 2Configuration Revision : 2 //修订号变为2学到switch1了Maximum VLANs supported locally : 256Number of existing VLANs : 7 //vlan 自动加到7VTP Operating Mode : ClientVTP Domain Name : ziVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x6C 0x7B 0xA9 0xFA 0x83 0x95 0x05 0xD4Configuration last modified by 0.0.0.0 at 3-1-02 00:25:20小结:当中间配置为”transparent”模式的时候,并不影响switch3学习到switch1的vlan ,验证transparent 模式仍会转为vtp通告.switch1和switch3之间还是会随着哪个的修订号版高的变化而变化(2)当switch3域名改”wu”(与前两个不同)时,在switch1添加vlan 30,验证switch3是否能够学到.Step1: 修改switch3的域名switch3:switch3#vlan databaseswitch3(vlan)#vtp domain wustep2:在switch1中添加vlan 30switch1#vlan dataswitch1(vlan)#vlan 30VLAN 30 added:Name: VLAN0030switch1(vlan)#exitstep3:查看switch3是否能够学到switch1里添加的vlan30VLAN Name Status Ports---- -------------------------------- --------- -------------------------------1 default active Fa0/0, Fa0/2, Fa0/3, Fa0/4Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/14, Fa0/1510 VLAN0010 active20 VLAN0020 active1002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default activeVLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 ---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------1 enet 100001 1500 - - - - - 1002 100310 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 fddi 101002 1500 - 0 - - - 1 1003 1003 tr 101003 1500 1005 0 - - srb 1 1002 1004 fdnet 101004 1500 - - 1 ibm - 0 01005 trnet 101005 1500 - - 1 ibm - 0 0switch3#show vtp staVTP Version : 2Configuration Revision : 2 //修订号为2未学到switch1Maximum VLANs supported locally : 256Number of existing VLANs : 7 //vlan 也没有增加VTP Operating Mode : ClientVTP Domain Name : ziVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x6C 0x7B 0xA9 0xFA 0x83 0x95 0x05 0xD4 Configuration last modified by 0.0.0.0 at 3-1-02 00:25:20小结: 当域名不同时.vtp的各个模式之间是不能相互学习.如果要配置使他们能相互学习,前提是vtp的域名必须相同.总结: 1.vtp是一个cisco专有的技术,能够帮助管理员自动完成vlan 的创建,删除和同步等工作.2.Vtp分为三个模式服务模式,客户模式,透明模式3.vtp是基于vlan的一种技术,vtp在vlan.dat的vlan数据库存储vlan配置,当配置时会直接覆盖vlan.dat4.vtp通告分汇总通告(确定领导地位) 子集通告请求通告5.vtp技术核心本质”修订号”。

相关文档
最新文档