实验3:VTP配置

合集下载

基本VTP配置

基本VTP配置

基本VTP 配置任务1:执行基本交换机配置根据以下原则配置交换机S1、S2 和S3 并保存配置:按照拓扑所示配置交换机主机名。

禁用DNS 查找。

将执行模式口令配置为class。

为控制台连接配置口令cisco。

为vty 连接配置口令cisco。

Switch>enableSwitch#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S1S1(config)#enable secret classS1(config)#no ip domain-lookupS1(config)#line console 0S1(config-line)#password ciscoS1(config-line)#loginS1(config-line)#line vty 0 15S1(config-line)#password ciscoS1(config-line)#loginS1(config-line)#end%SYS-5-CONFIG_I: Configured from console by consoleS1#copy running-config startup-configDestination filename [startup-config]?Building configuration...[OK]任务2:配置主机PC 上的以太网接口使用地址表中的IP 地址和默认网关配置PC1、PC2、PC3、PC4、PC5 和PC6 的以太网接口。

任务3:在交换机上配置VTP 和安全功能步骤1. 启用S2 和S3 上的用户端口。

将用户端口配置为接入模式。

请参阅拓扑图来确定哪些端口连接到最终用户设备。

S2(config)#interface fa0/6S2(config-if)#switchport mode accessS2(config-if)#no shutdownS2(config-if)#interface fa0/11S2(config-if)#switchport mode accessS2(config-if)#no shutdownS2(config-if)#interface fa0/18S2(config-if)#switchport mode accessS2(config-if)#no shutdown步骤2. 检查三台交换机上的当前VTP 配置。

计算机网络应用 操作实例——配置VTP

计算机网络应用  操作实例——配置VTP

计算机网络应用 操作实例——配置VTPVTP 是一种消息协议,在全网的基础上管理VLAN 的添加、删除和重命名,以实现VLAN 配置的一致性,从而达到在同一个管理域内交换机可以共享他们的VLAN 信息,方便管理的目的。

在此,借助【工大瑞普路由模拟器】来进行VTP 的配置,其配置方法与真实环境相同。

1.实验目的:● 学会如何配置VTP● 掌握VTP 消息协议的实现原理● 学会VTP 口令的设置方法2.实验步骤:(1)在用户模式下,输入enable (进入特权模式)命令,并按【回车】键,如图10-26所示。

图10-26 输入enable 命令提示 交换机开机自动加载完成后,默认进入的是用户模式。

(2)在特权模式下,输入config terminal (进入全局配置模式)命令,并按【回车】键,如图10-27所示。

图10-27 输入config terminal 命令(3)在全局配置模式下,输入vtp domain comment (命名VTP 域)命令,并按【回车】键,如图10-28所示。

图10-28 命名VTP 管理域提 示 要让交换机之间能够共享vtp 信息,他们必须在相同的管理域中,图10-28中的“commenty”字段为设置的VTP 域名。

(4)在配置模式下输入vtp mode server(定义VTP模式)命令,并按【回车】键,如图10-29所示。

图10-29 配置VTP模式提示Vtp协议分为server、client和transfer三种模式,在server模式下,能够创建、删除vlan及更改vlan名称,并能同步vlan信息;而在其他两种模式下,就不能完全具备执行上述操作的权限。

(5)在该模式下输入vtp password 123(设置VTP密码)命令,并按【回车】键,如图10-30所示。

图10-30 配置VTP口令(6)在配置模式下输入vtp pruning(开启VTP修剪功能)命令,并按【回车】键,如图10-31所示。

交换机上vtp的配置

交换机上vtp的配置

任务3 在catalyst2950 交换机上配置vtp一、实验目的:掌握vtp的配置,深入了解vtp的工作原理,并掌握调试和检查方法。

二、背景描述:企业有采购部和销售部两个部门,采购部需要实时了解销售部的销售情况,以便做出合理的采购方案。

为了保持通信通畅,采购部与销售部在相同的vlan下。

三、实验拓扑结构:VTP网络拓扑图四、实验步骤:1.交换机Host name和Trunk配置Switch1>e nableSwitch1#config tSwitch1(co nfig)#host name SwitchA // SwitchA(co nfig)#i nterface faO/1SwitchA(c on fig-if)#switchport mode trunk // SwitchA(co nfig-if)#exitSwitch2>e nable更改switch1 为switchA 设置fa0/1为trunk模式更改switch2 为switchBSwitch2#config tSwitch2(co nfig)#host name SwitchB // SwitchB(config)#interface fa0/1SwitchB(config-if)#switchport mode trunk // SwitchB(config-if)#exitSwitchB(config)#interface fa0/2SwitchB(config-if)#switchport mode trunk // SwitchB(config-if)#exit 设置fa0/1 为trunk 模式设置fa0/2 为trunk 模式Switch3#config tSwitch3(config)#hostname SwitchCSwitchC(config)#interface fa0/1// 更改switch3 为switchCSwitchC(config-if)#switchport mode trunk SwitchC(config-if)#exit // 设置fa0/2 为trunk 模式Switch3>enable 2. 配置交换机的VTPSwitchA(config)#vtp domain Cisco // Change VTP domain from NULL to Cisco SwitchA(config)#vtp mode server // Device mode already VTP SERVER. 设置SwitchA 的域名为Cisco 设置vtp 为serverSwitchB(config)#vtp domain Cisco // 设置SwitchB 的域名为CiscoDomain name already ser to CiscoSwitchB(config)#vtp mode transparent // 设置vtp 为transparentSwitchC(config)#vtp domain Cisco // Change VTP domain from NULL to Cisco SwitchC(config)#vtp mode client // 设置SwitchC 的域名为Cisco 设置vtp 为client3. 验证VTPSwitchA# show vtp statusSwitchAt3haw vtp VTP VeraianCcnfiguration RevisionMaximum VLANs supported locally : 2S6:S :Server:Cisco:Di^abl&di Disabled:Disabled:0xA9 OxCB 0x52 0x12 0x94 0x71 0x£9 OxSCLocal updates ID is 0.0.0.0 ■:nc valid interface found)SwitchAtSwitchB# show vtp statusSwitchB^en^ble SuitchBtshow vtp VTF VersionCcnfiguraticn ReviHicnMaxinum VLANm supported locally Number cf exiating VLANm VTF Operaring - Mode VTF Domain Nans VTF Pruning Mede VTP V2 MadeVTP Tcaps Generation MD5 digestConfiguration last modified by SwitchB#|SwitchC# show vtp statusSwitch-C^shcw vtp srstus VTF VersionCcnfiguraticfi P.evisicnMaximuni VLAMs supperted locally Humber of existing '/LANs VTF Dperi^inj Mede VTF Domain Name VTF Pruning Me de VTP V2 Mede VTF Traps Generaticn MD5 digestConfiguraticn last modified by 0 SwirchC#| :0 :2S5 z S :Client:Cisco :Disabled :Disabled :Disabled:0xA9 0X C8 0K 52 0X 12 0X 94 0X 71 0x^9+ 0.0*0 at 0-0-00 00:00:00Ccnfiguraticn lasr modified by0.0.0.0ar 0-0-0000:00:00tTumbez of existing ^TANs VTP Opecoting Mede VTP Oqjnain VTP Pruning Mode VTP V2 Mede VTP Traps {Jeneration MDS digest:2SS :5Transparent :Cisco Disabled Dinabled Disabled0xA9 QxCB 0xS2 0x1: 094 0x71 QxZS QxSC4•配置交换机的vlan,并验证vtp各模式的特点(1) SwitchA交换机vlan的配置SwitchA# vlan database SwitchA(vlan)#vlan 2 // SwitchA(vlan)#vlan 3 //SwitchA(vlan)#exit(2) SwitchB 交换机 vlan 的配置 SwitchB# vlan databaseSwitchB(vlan)#vlan 4 // SwitchB(vlan)#vlan 5 //SwitchB(vlan)#exit6.在交换机 SwitchC 上 show vlan ,结果是 SwitchC 加入了 vlan2 , vlan3,如下图所示:5.配置交换机的 vtp 口令 (1) SwitchA 交换机 vtp 口令配置: SwitchA# config tSwitchA(config)#vtp password cisco SwitchA(config)#exit (2) SwitchB 交换机 vtp 口令配置: SwitchB# config t SwitchB(config)#vtp password cisco SwitchB(config)#exit (3) SwitchC 交换机 vtp 口令配置: SwitchC# config t SwitchC(config)#vtp password cisco SwitchC(config)#exit // 设置 vtp 密码为 cisco// 设置 vtp 密码为 cisco// 设置 vtp 密码为 cisco新建 vlan2 新建 vlan3新建 vlan4 新建 vlan5r VTP Client ?Physical Config ) CLIIOS Command Line Interfacen w 亠LT-riiZIM X JL-I H IT 丄■-Na.zDiz百七口P 口:rf■1d-ef eu.lt activeFaO/JL, Fa0/3p Fa0-/4r FaO/SFsOZ€, FaO/7.FaO/3FaO/10r Fa0/ll…. FaO/12,FaO/13FaO/14, FaO/l£p FaO/lfi,FaQ/17FaO/lB, FaO/13. FaO/20,F*O/22, Faa/23,. F*O/24FaO/2X z1^LAN0002active3VUUST0003ac t iiu p e1002 f dd.±—-daf aigrt/u-Tiaup1003c-a k*n-£ 丄ng— defaixl 匚A et/unaup10-0-4 f d.d.ina 七—da f at口JLt a iTt/11 Fl a up1005t me t - <le f au.1 匸aet/unsupT^pa SAID MTU Paxrenx; SfexnyTJo Brl-dgeNo Stp B■若旦Gtcd 冒Tran al Trans^ 1ono七10QQG1l&QQ—— -一一O02enet 100Q口21500= = =- = 00□■anst 10QQQ31B0Q- - -- - 00二1QQ2ra<ii laioaz15QQ- - -一一Q0■=Copy | PasteL. -J在SwitchA上新建vlan 6,发现SwitchC上的vlan与SwitchA实现同步更新: SwitchA# vla n database SwitchA(vlan)#vlan 6 // 新建vlan6SwitchA(co nfig)#exitSwitchC的show vlan结果如下图:。

3.VTP实验

3.VTP实验

VTP实验实验拓扑:实验目的:掌握VLAN及VTP的配置实验要求:VTP域名为cisco, 密码为passwordSwitchA配置成Server模式,创建VLAN 10和VLAN 20名为aa bb,并开启VTP修剪功能SwitchB配置成客户模式,并将端口1—10加入VLAN10,11—20划分到VLAN20SwitchC配置成透明模式实验步骤:步骤1 因为VTP信息之在trunk接口上发送,所以先将交换机相连的接口配置成trunk接口SwitchA(config)#int f0/0如果交换机支持多种VTP封装的话,则需要先指定封装SwitchA(config-if)#switchport trunk encapsulation dot1q //2950上无此命令SwitchA(config-if)#switchport mode trunkSwitchA(config)#int f0/1SwitchA(config-if)#switchport trunk encapsulation dot1qSwitchA(config-if)#switchport mode trunkSwitchB(config)#int f0/0SwitchB(config-if)#switchport trunk encapsulation dot1qSwitchB(config-if)#switchport mode trunkSwitchC(config)#int f0/0SwitchC(config-if)#switchport trunk encapsulation dot1qSwitchC(config-if)#switchport mode trunk步骤2 在SwitchA上做VTP的配置并创建vlanSwitchA(config)#vtp mode serverSwitchA(config)#vtp domain stsdSwitchA(config)#vtp password ciscoSwitchA(config)#vtp pruningSwitchA#vlan 10 name aaSwitchA#vlan 20 name bb步骤3 在SwitchB上做配置SwitchB(config)#vtp mode clientSwitchB(config)#vtp domain stsdSwitchB(config)#vtp password cisco步骤4在SwitchC上做配置SwitchC(config)#vtp mode transparent步骤5 在SwitchB上查看vlan信息,看是否可以看到创建的vlan10 和vlan20可以尝试在SwitchB上面创建vlan,观察client模式的交换机是否能够创建vlan。

配置vtp

配置vtp

配置 VTP VTP (VLAN Trunking Protocol) 是一种消息协议, 用于在 VTP 域内同步 VLAN 信息 (VLANs 的添加、删除和重命名),而不必在每个交换上配置相同的 VLAN 信息,从而实现 VLAN 配置的一致性。

使用 VTP,可以在一个或多个交换机上建立配置修改中心,并自动完成与 网络中其他所有交换机的通信,可以有效地减少交换网络中的管理事务。

1.VTP 简介 (1)VTP 域 VTP 域(也称 VLAN 管理域),由一个或多个相互连接、使用相同 VTP 域名的交换机所组 成。

一台交换机能够被配置而且也只能被配置一个 VTP 域。

使用命令行界面或 SNMP,可 以修改全局 VLAN 的域配置。

默认状态下,交换机处于 VTP Server 模式,并且在收到由中继连接传来的 VTP 通告(VTP Advertisement)或由配置一个管理域之前,一直处于非管理域状态。

不能在 VTP 服务器上 建立或修改 VLAN,直到管理域名被指定或被学习。

如果交换机收到一个从中继连接传来的 VTP 通告,它将继承管理域名和 VTP 配置版本号, 并且不再理睬不同的管理域名或更早的配置版本号。

如果将交换机配置为 VTP 透明,可以建立可修改的 VLAN,但修改将只影响到个别的交换 机。

当修改位于 VTP Server 上的 VLAN 配置时,该修改将传播至 VTP 域中所有的交换机。

VTP 通告 被发送至所有的中继连接,包括 Inter-Switch Link (ISL)、IEEE 802.1Q、IEEE 802.10和 ATM LAN Emulation(LANE)。

(2)VTP 模式 可以将交换机配置在以下任何一种 VTP 模式操作: Server。

在 VTP Server(服务器)模式,可以为整个 VTP 域建立、修改和删除 VLAN,并指 定其他配置参数(如 VTP 版本和 VTP 修剪)。

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 和安全功能。

【实训3.2】配置Trunk、VTP

【实训3.2】配置Trunk、VTP

【实训3.2】配置Trunk 、VTP一、实训目的1.了解Trunk 链路的封装方式2.熟悉VTP 的操作及配置3.掌握网络中VTP 的部署方法二、实训逻辑图SWA(2960或3560)SWB(2960或3560)F0/24F0/1VLAN2VLAN2PC1PC2F0/24TRUNKVTP domain:hngyVTP mode:server VTP domain:hngy VTP mode:client图3.2-1 实训逻辑图 三、实训内容及步骤1.进入交换机(先不要按逻辑图连PC 机到交换机),查看是否已有Vlan 配置 Switch# show flash :若看到有Vlan.dat 文件和config.text 文件(启动配置文件),使用delete 命令删除这两个文件(否则有可能影响本次实训的结果),并重启交换机: Switch# delete config.textSwitch# delete vlan.datSwitch# reload2.对交换机进行VLAN 配置对SW1进行VLAN 配置 Switch(config)#host SWASWA(config)#vlan 2 //创建VLAN 2SWA(config-vlan)#exitSWA(config-if)#int f0/1SWA(config-if)#switchport mode accessSWA(config-if)#switchport access vlan 2 //将F0/1接口划入VLAN 2 SWA#show vlan brief //查看VLAN创建结果VLAN Name Status Ports1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5Fa0/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/23, Fa0/24, Gig1/1 Gig1/22 VLAN0002 active Fa0/1SWB同SWA操作3.手工静态配置端口处于Trunk工作模式用手工方法指定某端口处于Trunk工作模式。

配置vtp协议

配置vtp协议

实验报告实验名称:配置vtp协议,同步vlan信息实验步骤:1.在sw1上创建vlan。

首先进入vlan数据库,然后创建vlan2和vlan32.在sw1上查看vlan。

输入命令show vlan-switch brief查看sw1上已经有创建的vlan2和vlan33.将sw1设置为vtp域服务器。

输入命令vlan database进入vlan输入库,然后按下图的操作将sw1设置为vtp域服务器,并将vtp域命名为0904,并设置vtp域的密码为1234.查看交换机sw1上的vtp状态。

下图是相关的信息介绍5.在sw1上开启trunk。

进入接口f0/0,输入下图的命令开启trunk6.在sw2上设置他为vtp透明模式。

7.查看sw2上的vtp状态。

此时的sw2属于透明模式,并属于0904这个vtp域8.在sw2上,分别进入端口f0/0和f0/1,将他们设置为trunk9.配置sw3。

进入vlan数据库,将sw3设置为vtp域客户端,并加入到vtp域0904,设置vtp域的密码为123。

然后输入exit退出vlan数据库,便可以生效。

10.在sw3上,进入端口f0/1,将它设为trunk11.此时在sw3便可以同步到服务器的vlan信息,如下图12.vtp客户端不能删除创建或者修改vlan。

13.透明模式可以创建删除修改vlan心得:1.trunk只能更新到vlan信息,不能更新到vlan下面的端口。

2.新打开三个交换机,初始它们都是服务器,都没有加入到域。

下面做如下配置:将sw1加入到vtp域,其余的交换机都不加入到域,然后将所有端口都设置为trunk,那么在sw1上创建vlan,在sw2和sw3上都能更新到sw1上的vlan信息,但是因为sw2和sw3也是服务器,所以他们也可以随意的添加,删除或者修改vlan。

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技术核心本质”修订号”。

第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自动支持该协议,无须配置。

PT 练习 4.3.3:配置 VTP(教师版)

PT 练习 4.3.3:配置 VTP(教师版)

PT 练习 4.3.3:配置 VTP(教师版)拓扑图学习目标∙检查当前配置∙将 S1 配置为 VTP 服务器∙将 S2 和 S3 配置为 VTP 客户端∙在 S1 上配置 VLAN∙在 S1、S2 和 S3 上配置中继∙检验 S1、S2 和 S3 上的 VTP 状态∙将 VLAN 分配给 S2 和 S3 上的端口∙检验 VLAN 实施情况并测试连通性简介在本练习中,您将练习配置 VTP。

当首次打开 Packet Tracer 时,交换机已经包含部分配置。

用户执行口令为cisco,特权执行口令为class。

任务 1:检查当前配置步骤1. 检验交换机的当前运行配置。

交换机目前的配置包含哪些?____________________________________________________________________________________ ____________________________________________________________________________________ ____________________________________________________________________________________ 交换机已配置有主机名、口令、线路配置和标语。

此外还创建并配置了接口 VLAN 99。

步骤 2. 显示每台交换机上的当前 VLAN。

是否存在任何 VLAN?这些 VLAN 是用户创建的 VLAN 还是默认 VLAN?____________________________________________________________________________________ 这些 VLAN 是默认 VLAN。

还没有创建用户 VLAN。

S1#show vlan briefVLAN Name Status Ports---- ------------------------ --------- -----------------------------1 default active Fa0/1, Fa0/2, Fa0/3, Fa0/4Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/14, Fa0/15, Fa0/16Fa0/17, Fa0/18, Fa0/19, Fa0/20Fa0/21, Fa0/22, Fa0/23, Fa0/24Gig1/1, Gig1/21002 fddi-default active1003 token-ring-default active1004 fddinet-default active1005 trnet-default active此任务结束时,完成率应该是0%。

《计算机网络》实验三 交换机基本配置 实验报告

《计算机网络》实验三 交换机基本配置 实验报告
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
!
interface GigabitEthernet0/2
五、实际步骤
建立超级连接
建立CONSOLE连接
进入特权命令状态
进入全局状态模式
设置交换机的名字为SWITCH_2
进入接口设置状态,设置接口参数
(1)进入接口设置状态
(2)设置交换机的duplex方式
退出配置状态,在特权命令状态,验证端口工作状态
检查4台机的通信状态
设置switch2为端口VTP的server
Enter enable secret:
% No defaulting allowed
Enter enable secret:
% No defaulting allowed
Enter enable secret: switch>
The enable password is used when you do not specify an
Would you like to enable as a cluster command switch? [yes/no]: n
The following configuration command script was created:
hostname Switch
enable secret 5 $1$Aj2X$oQ4NIEhr7TX023s32vivd1

交换机vtp配置

交换机vtp配置

项目三:VTP配置实验(一)教学目的、要求1、掌握VTP的配置,包括VTP SERVER和VTP CLIENT模式的配置;2、掌握一些VTP配置的相关命令;3、要求能用VTP信息显示命令进行调试和维护;(二)知识要点VTP的创建、模式设置、端口封装(三)技能要点能创建VTP、把相应端口划入VLAN(四)技能训练1、环境要求采用一台具备三层交换功能的核心交换机接几台分支交换机(不一定具备三层交换能力)。

核心交换机采用3550并命名为:COM;分支交换机采用2950并分别命名为:PAR1、PAR2、PAR3,分别通过双绞线与核心交换机相连;并且VLAN名称分别为COUNTER、MARKET、MANAGING2、设置VTP DOMAIN。

VTP DOMAIN 称为管理域。

交换VTP更新信息的所有交换机必须配置为相同的管理域。

如果所有的交换机都以中继线相连,那么只要在核心交换机上设置一个管理域,网络上所有的交换机都加入该域,这样管理域里所有的交换机就能够了解彼此的VLAN列表。

COM#vlan database 进入VLAN配置模式COM(vlan)#vtp domain COM 设置VTP管理域名称COMCOM(vlan)#vtp server 设置交换机为服务器模式PAR1#vlan database 进入VLAN配置模式PAR1(vlan)#vtp domain COM 设置VTP管理域名称COMPAR1(vlan)#vtp Client 设置交换机为客户端模式PAR2#vlan database 进入VLAN配置模式PAR2(vlan)#vtp domain COM 设置VTP管理域名称COMPAR2(vlan)#vtp Client 设置交换机为客户端模式PAR3#vlan database 进入VLAN配置模式PAR3(vlan)#vtp domain COM 设置VTP管理域名称COMPAR3(vlan)#vtp Client 设置交换机为客户端模式3、配置中继为了保证管理域能够覆盖所有的分支交换机,必须配置中继。

实验3 VTP 配置

实验3 VTP 配置

实验3 VTP 配置VTP(VLAN Trunk Protocol)提供了一种用于在交换机上管理VLAN 的方法,该协议使得我们可以在一个或者几个中央点(Server)上创建、修改、删除VLAN,VLAN 信息通过Trunk 链路自动扩散到其他交换机。

VTP 被组织成管理域(VTP Domain),相同域中的交换机能共享VLAN 信息。

根据交换机在VTP 域中的作用不同,VTP 可以分为三种模式:(1)服务器模式(Server):在VTP 服务器上能创建、修改、删除VLAN,同时这些信息会通告给域中的其他交换机。

默认情况下,交换机是服务器模式。

每个VTP 域必须至少有一台服务器,域中的VTP 服务器可以有多台。

(2)客户机模式(Client):VTP 客户机上不允许创建、修改、删除VLAN,但它会监听来自其他交换机的VTP 通告并更改自己的VLAN 信息。

接收到的VTP 信息也会在Trunk 链路上向其他交换机转发,因此这种交换机还能充当VTP 中继。

(3)透明模式(Transparent):这种模式的交换机不参与VTP。

可以在这种模式的交换机上创建、修改、删除VLAN,但是这些VLAN 信息并不会通告给其他交换机,它也不接受其他交换机的VTP 通告而更新自己的VLAN 信息。

然而需要注意的是,它会通过Trunk 链路转发接收到的VTP 通告从而充当了VTP 中继的角色,因此完全可以把该交换机看成是透明的。

VTP 通告是以组播帧的方式发送的,VTP 通告中有一个字段称为修订号(Revision),初始值为0。

只要在VTP Server 上创建、修改、删除VLAN,通告的Revision 就增加1,通告中还包含了VLAN 的变化信息。

需要注意的是:高Revision 的通告会覆盖低Revision 的通告,而不管谁是Server 还是Client。

交换机只接受比本地保存的Resivison 号更高的通告;如果交换机收到Resivison 号更低的通告,会用自己的VLAN 信息反向覆盖。

实验指导书-基于思科模拟器的私有协议VTP的配置

实验指导书-基于思科模拟器的私有协议VTP的配置

4.3 VTP的配置【实验目的】学习思科私有协议VTP的配置方法,观察VTP三种工作模式的通信方式【知识点】VTP的工作原理,VTP的工作模式【实验场景】三台交换机串联,其中一个作为sever模式,通过VLAN配置信息,一个作为transparent 模式,一个作为client模式。

【实验原理】(1) VTP Server维护该VTP域中所有VLAN 信息列表,VTP Server可以建立、删除或修改VLAN,发送并转发相关的通告信息,同步VLAN配置,会把配置保存在NVRAM中。

(2) VTP 虽然也维护所有VLAN信息列表,但其VLAN的配置信息是从VTP Server学到的,VTP Client不能建立、删除或修改VLAN,但可以转发通告,同步VLAN配置,不保存配置到NVRAM中。

(3) VTP Transparent相当于是一项独立的交换机,它不参与VTP工作,不从VTP Se rver学习VLAN的配置信息,而只拥有本设备上自己维护的VLAN信息。

VTP Transparent可以建立、删除和修改本机上的 VLAN信息,同时会转发通告并把配置保存到NVRAM中。

【实验设备】Cisco Packet Tracer软件中:三台2960交换机。

【实验拓扑】【实验思路】1. 配置交换机接口模式2. 做VTP模式配置3. 查看三台交换机VLAN配置信息4. 创建VLAN5. 查看三台交换机VLAN配置信息【实验步骤】1. 先在三台交换机上做配置,将接口全部配置为trunk模式。

配置命令为:SwitchSwitch>enableSwitch#configure terminal(config-if)#int f0/1Switch(config-if)#switchport mode trunk2. 在三台交换机上做VTP基础配置。

需要注意的是,所有需要共享VLAN 信息的服务器必须使用同样的域名,而且交换机一次只能在一个域中。

VTP实验指南

VTP实验指南

VTP实验指南1.实验目的能够掌握VTP的配置,深入了解VTP的工作原理,并学会调试和检查方法。

2.配置需求按照拓扑图要去连接交换机,在VTP服务器上配置VLAN,配置为VTP客户机的交换机能够学习到VLAN信息,不能添加、删除和修改VLAN.配置为透明模式的交换机可以自己添加、删除和修改VLAN,但是不学习VLAN信息。

3.网络拓扑4.操作步骤配置交换机的VTP(1)配置交换机A 、B和C的VTP域为benet(2)配置交换机A 、B和C的VTP模式分别为Server、Transparent和Client.查看VTP状态信息:查看交换机A 、B和C的VTP状态信息中,VTP模式显示分别是什么?配置交换机的VLAN,并验证VTP各模式的特点(1)在交换机A上配置VLAN2和VLAN3查看交换机的VLAN信息:查看交换机A中包含哪些VLAN查看交换机B中包含哪些VLAN查看交换机C中包含哪些VLAN(2)在交换机B上配置VLAN4和VLAN5查看交换机的VLAN信息:查看交换机A中包含哪些VLAN查看交换机B中包含哪些VLAN查看交换机C中包含哪些VLAN配置交换机的VTP口令(1)配置交换机A的VTP口令,添加VLAN6查看VTP状态信息:查看交换机A的VTP信息,配置修改编号是否增加查看交换机B和C的VTP状态信息,配置修改编号是否增加(2)配置交换机B和C的VTP口令查看VTP状态信息:查看交换机B的VTP状态信息,配置修改编号是否增加查看交换机C的VTP状态信息,配置修改编号是否增加查看VLAN信息:查看交换机C的VLAN信息,是否学习到了VLAN6配置VTP修剪在交换机A、B和C上配置VTP修剪查看VTP状态信息:查看交换机A、B和C的VTP修剪是否已经启用5.配置命令配置交换机的VTPSA(config)#vtp domain benetSB和SC相同SA(config)#vtp mode serverSB(config)#vtp mode transparentSC(config)#vtp mode client验证方法:show vtp status配置交换机的VLAN,并验证VTP各模式的特点SA#vlan databaseSA(vlan)#vlan 2SA(vlan)#vlan 3SA(vlan)#exitSB#vlan databaseSB(vlan)#vlan 4SB(vlan)#vlan 5SB(vlan)#exit验证方法:show vtp brief配置交换机的VTP口令SA(config)#vtp password 123Sa(config)#exitSA#vlan databaseSA(vlan)#vlan 6SA(vlan)#exitSB(config)#vtp password 123SC(config)#vtp password 123配置VTP修剪SA#vtp pruningSB#vtp pruningSC#vtp pruningVTP修剪VTP修剪是VTP的一个功能,它能减少中继链路上不必要的信息量。

实验三vtpserver交换机的配置

实验三vtpserver交换机的配置

实验三 vtp server交换机的配置网络11-2班 3110757214 陈宇鹏1.vtp原理:〔1〕VTP(Vlan Trunking Protocol)是VLAN传输协议,在含有多个交换机的网络中,可以将中心交换机的VLAN信息发送到下级的交换机中。

中心交换机设置为VTP Server,下级交换机设置为VTP Client。

VTP Client要能学习到VTP Server的VLAN信息,要求在同一个VTP域,并要口令一样。

(2)VLAN共享:假设要求某个VLAN与其他VLAN访问,可以设置VLAN共享或主附VLAN。

共享形式的VLAN端口,可以成为多个VLAN的成员或同时属于多个VLAN。

在主附VLAN构造中,子VLAN与主VLAN可以互相访问,子VLAN间的端口不能互相访问。

一般的VLAN间使用不同网络地址;主附VLAN中主VLAN和子VLAN使用同一个网络地址。

2.实验目的:通过vtp实验掌握vtp的原理3.vtp的配置步骤:(1)实验拓扑图:(2) 进入第一台交换机配置VTP工作形式为server , 进入第二台交换机配置VTP工作形式为client4.测试:一样vlan中的主机能ping通,不同vlan中主机ping不通。

主机PC0_vlan2与主机PC2_vlan2同属于vlan2,主机PC1_vlan3与主机PC3_vlan3同属于vlan3。

用主机PC0_vlan2来ping其他3台主机,结果如以下图:用主机PC1_vlan3来ping其他3台主机,结果如以下图:测试结果:一样vlan中的主机能ping通,不同vlan中主机ping不通。

4,实验遇到的问题和触决方案在安照要求连接好线后,发现连接两个交换机的两个端口一直处于红色的状态。

在寻问同学后才知道,原来两个路由器属于同种设备,在同种设备中,要用穿插线来连接,而在不同的设备中,用直通线来连接。

于是把直通线换成穿插线之后,连接路由器的两个端口不久后还真的变成绿色了。

实验三 VTP

实验三   VTP

实验三VTP一、实验组网拓扑二、实验目的:(1)掌握VTP的配置命令;(2)掌握VTP的三种模式的主要特点;(3)掌握VTP的修剪;(4)分析交换机的Vlan信息的学习过程。

三、实验步骤:(1)基本配置信息;Router>enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostRouter(config)#hostname SW1SW1(config)#no ip domain-lookupSW1(config)#line console 0SW1(config-line)#logging synchronousSW1(config-line)#no loginSW1(config-line)#line vty 0 4SW1(config-line)#no loginSW1(config-line)#endSW2、SW3基本配置和SW1一样(2)创建VTP域,域名为cisco,交换机2为server模式,1和3为client模式;SW1#vlan databaseSW1(vlan)#vtp domain ciscoChanging VTP domain name from NULL to ciscoSW1(vlan)#vtp clientSetting device to VTP CLIENT mode.SW1(vlan)#exitIn CLIENT state, no apply attempted.Exiting....SW2#vlan databaseSW2(vlan)#vtp domain ciscoChanging VTP domain name from NULL to ciscoSW2(vlan)#vtp serverDevice mode already VTP SERVER.SW2(vlan)#exitAPPLY completed.Exiting....SW3#vlan databaseSW3(vlan)#vtp domain ciscoChanging VTP domain name from NULL to ciscoSW3(vlan)#vtp clientSetting device to VTP CLIENT mode.SW3(vlan)#exitIn CLIENT state, no apply attempted.Exiting....(3)将交换机之间连接端口设置为TRUNK;SW2(config)#int range f0/1 -2SW2(config-if-range)#switchport mode trunk*Mar 1 00:22:11.247: %DTP-5-TRUNKPORTON: Port Fa0/1-2 has become dot1q trunk SW2(config-if-range)#no shutdownSW2(config-if-range)#exitSW1(config)#int f0/1SW1(config-if)#switchport mode trunk*Mar 1 00:23:27.547: %DTP-5-TRUNKPORTON: Port Fa0/1 has become dot1q trunko SW1(config-if)#no shutdownSW1(config-if)#exitSW3(config)#int f0/1SW3(config-if)#switchport mode trunk*Mar 1 00:24:09.651: %DTP-5-TRUNKPORTON: Port Fa0/1 has become dot1q trunko SW3(config-if)#no shutdownSW3(config-if)#exit(4)查看没有改变VLAN之前的VTP参数SW1#show vtp statusVTP Version : 2Configuration Revision : 0Maximum VLANs supported locally : 256Number of existing VLANs : 5VTP Operating Mode : ClientVTP Domain Name : ciscoVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x89 0x5D 0x37 0xD0 0x91 0x71 0xF7 0x96 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00SW2#show vtp stSW2#show vtp statusVTP Version : 2Configuration Revision : 0Maximum VLANs supported locally : 256Number of existing VLANs : 5VTP Operating Mode : ServerVTP Domain Name : ciscoVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x89 0x5D 0x37 0xD0 0x91 0x71 0xF7 0x96Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00Local updater ID is 0.0.0.0 (no valid interface found)(5)在2交换机上创建vlan2;SW2#vlan databaseSW2(vlan)#vlan 2VLAN 2 added:Name: VLAN0002SW2(vlan)#exitAPPLY completed.Exiting....(6)使用show vtp status在交换机1和3查看vtp状态,看是否尝到server 的信息。

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

13.4 实验3:VTP配置
1.实验目的
通过本实验,读者可以掌握如下技能:
①理解VTP的3种模式;
②熟悉VTP的配置。

2.实验拓扑
实验拓扑图如图13-4所示
13-4 实验3拓扑图
3.实验步骤
(1)把3台交换机配置清除干净,重启交换机
S1#delete flash;vlan.dat
S1#erase startup-config
S1#reload
//S2和S3采用相同步骤
(2)检查
检查S1和S3之间、S3和S2之间链路Trunk是否自动形成,如果没有形成,请参照实验2步骤配置Trunk。

(3)配置S1为VTP server
S1(config)#vtp mode server
Device mode already VTP SERVER.
//以上配置S1为VTP server,实际上这时默认值
S1(config)#vtp domain VTP-TEST
Changing VTP domain name from NULL to VTP-TEST
//以上配置VTP域名
S1(config)#vtp password cisco
Setting device VLAN database password to cicso
//以上配置VTP的密码,目的是为了安全,防止不明身份的交换机加入到域中
(4)配置S3为VTP transparent
S3#vlan database
S3(vlan)#vtp transparent
Setting device VTP TRANSPARENT mode.
S3(vlan)#vtp domain VTP-TEST
Domain name already set to VTP-TSET
S3(config)#vtp password cisco
Setting device VLAN database password to cicso
【提示】
有的IOS版本只支持在VLAN Database下配置VLAN。

(5)配置S2为VTP client
S2(vlan)#vtp mode client
Setting device VTP CLIENT mode.
S2(vlan)#vtp domain VTP-TEST
Domain name already set to VTP-TSET
S2(config)#vtp password cisco
Setting device VLAN database password to cicso
4.实验调试
(1)在S1上创建VLAN,检查S2和S3上的VLAN信息
S1(config)#vlan 2
S1(config)#vlan 3
S2#show vlan
VLAN Name Status Ports
---- -------------------------------- --------- -------------------------------1 default active Fa0/1, Fa0/2, Fa0/3,Fa0/4, Fa0/5,Fa0/6,
Fa0/7, Fa0/8
2 VLAN2 active
3 VLAN3 active
1002 fddi-default act/unsup
//可以看到S2已经学习到了在S1上创建VLAN了
S3#show vlan
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
2 VLAN2 active
3 VLAN3 active
1002 fddi-default active
1003 token-ring-default active
1004 fddinet-default active
1005 trnet-default active
//可以看到S2上有了VLAN2和VLAN3,而S3上并没有,因为S3是透明模式
(2)查看VTP信息
S1#show vtp status
VTP Version ; 2 //该VTP支持版本2
Configuration Revision ; 2 //修订号为2,该数值非常重要Maximum VLANs supported locally ; 1005
Number of existing VLANs ; 7 //VLAN数量
VTP Operating Mode ; Server //VTP模式
VTP Domain Name ; VTP-TEST //VTP域名
VTP Pruning Mode ; Disabled //VTP修剪没有启用
VTP V2 Mode ; Disabled //VTP版本2没有启用,现在是版本1 VTP Traps Generation ; Disabled
MD5 digest ; 0xD4 0x30 0xE7 0xB7 0xDC 0xDF 0x1B 0xD8 Configuration last modified by 0.0.0.0 at 3-1-93 00;22;16
Local updater ID is 0.0.0.0(no valid interface found)
(3)观察VTP的revision数值
在S1上,修改、创建或删除VLAN,在S2和S3上使用”Show vtp status”命令观察revision 数值是否增加1 。

(4)配置修剪、版本2
S1(config)#vtp pruning
S1(config)#vtp version 2
S1#show vtp status
VTP Version ; 2
Configuration Revision ; 2
Maximum VLANs supported locally ; 1005
Number of existing VLANs ; 7
VTP Operating Mode ; Server
VTP Domain Name ; VTP-TEST
VTP Pruning Mode ; Enabled //VTP修剪启用了
VTP V2 Mode ; Enabled //VTP版本为2了
VTP Traps Generation ; Disabled
MD5 digest ; 0xA6 0x56 0x25 0xDE 0xE2 0x39 0x6A 0x10 Configuration last modified by 0.0.0.0 at 3-1-93 00;32;28
Local updater ID is 0.0.0.0(no valid interface found)
【提示】
VTP修剪和VTP版本只需要在一个VTP server上进行即可,其他server 或者client会自动跟着更改。

VTP修剪是为了防止不必要必要的流量从Trunk链路上通过,通常需要启用。

相关文档
最新文档