版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、实验四:Trunk和VTP配置实验目的1、掌握Trunk和VTP工作原理2、学习配置Trunk的命令和步骤3、学习配置VTP命令和步骤第5页共8页实验要求1、拓扑与地址规划;2、Trunk基本配置和VTP配置3、验证Trunk和VTP配置并给出配置清单实验拓扑(可选)交换机4台,交叉线4条,直通线2条,Pc机2台。实验设计到的基本概念和理论VTP 即是 VLAN 中继协议,对于 VTP 在交换机之间传送 VLAN 信息,必须知道一面 3 种需求:1、 两台交换机的 VTP 管理域名必须设置一样。2、 其中一台交换机必须配置为 VTP 服务器。3、不需要路由器VTP 有三种操作模式:1、服务器,
2、在 VTP 服务器模式下, VLAN 配置保存在 NVRAM 中。2、客户机, VLAN 配置不保存在 NVRAM 中。3、透明,在透明模式下,交换机并不参与 VTP 域的工作,也不与其他交换机共享其 VLAN数据库,但他们仍然将通过任何已经配置好的中继链路转发 VTP 通告。在网络中配置至少两台 VTP 服务器交换机。因为只有服务器交换机可以创建、删除和修改 VLAN ,所以应该配置一台备用 VTP 服务器,以防主要 VTP 服务器被禁用。如果网络中的所有交换机都配置为 VTP 客户端模式,您将无法在网络中创建新的VLAN。在 VTP 服务器上启用 VTP 之后,再创建 VLAN 。在启用
3、VTP 之前创建的 VLAN会被删除。务必确保为域中互连的交换机配置了中继端口。 VTP 信息仅可通过中继端口交换。配置 VTP 客户端模式。请不要忘记,交换机默认不是 VTP 客户端模式。您必须配置该模式。配置接入端口。当交换机处于 VTP 客户端模式时,不能添加新的 VLAN 。仅可将接入端口指定到现有 VLAN 。1、2、实验过程和主要步骤主机的IP分配情况:主机IP地址子网掩码PC0192.168.1.1255.255.255.0PC1192.168.1.2255.255.255.0交换机的配置情况(配置 Trunk与VTP)Switchl上的配置:Switch>e nableS
4、witch#c onfig tEn ter con figurati on comma nds, one per line. End with CNTL/Z.Switch(c on fig)#vt p domai n testChanging VTP domai n n ame from NULL to testSwitch(co nfig)#vt p p assword 123456Setti ng device VLAN database password to 123456Switch(co nfig)#i nterface f2/1Switch(c on fig-if)#switch
5、port mode trunk %LINE PROTO-5-U PDOWN: Li ne p rotoco Ion In terface FastEthernet2/1,cha nged state to dow n%LINE PROTO-5-U PDOWN: Li ne p rotoco Ion In terface FastEthernet2/1,cha nged state to upSwitch(c on fig-if)#exitSwitch(co nfig)#i nterface fO/1Switch(c on fig-if)#switch port mode trunk %LINE
6、 PROTO-5-U PDOWN: Li ne p rotoco Ion In terface FastEthernetO/1,cha nged state to dow n%LINE PROTO-5-U PDOWN: Li ne p rotoco Ion In terface FastEthernet0/1,cha nged state to upSwitch(c on fig-if)#exitSwitch(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleSwitch#Switch#copy running-con
7、fig startup-configDestination startup-config?Building configuration.OKSwitch#Switch0 上的配置Switch>enableSwitch#config tEnter configuration commands, one per line.End with CNTL/Z.Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(conf
8、ig)#interface f0/1Switch(config-if)#switchport mode accessSwitch(config-if)#switchport access vlan 10Switch(config-if)#exitSwitch(config)#interface f1/1Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/1,changed state to down%LINEPROTO-5-UPDOWN: Li
9、ne protocol on Interface FastEthernet1/1,changed state to upSwitch(config-if)#exitSwitch(config)#interface f2/1Switch(config-if)#switchport mode trunk第 #页 共8页Switch(config-if)#end%SYS-5-CONFIG_I: Configured from console by consoleSwitch#Switch#copy running-config startup-configDestination startup-co
10、nfig?Building configuration.OKSwitch#Switch3 上的配置Switch>enableSwitch#config tEnter configuration commands, one per line.End with CNTL/Z.Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#interface f0/1Switch(config-if)#swit
11、chport mode accessSwitch(config-if)#switchport access vlan 10Switch(config-if)#exitSwitch(config)#interface f1/1Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#interface f2/1Switch(config-if)#switchport mode trunk %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthern
12、et2/1,changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet2/1,changed state to up第 7页 共8页3、显示部分交换机上VTP的配置情况如下:Switchl 上Switch#copy running-config startup-configDestination startup-config?Building configuration.OKSwitch#Switch2 上的配置Switch>enableSwitch#config tEnter con
13、figuration commands, one per line.End with CNTL/Z.Switch(config)#vtp mode clientSetting device to VTP CLIENT mode.Switch(config)#interface f0/1Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#interface f2/1Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch
14、(config)#endSwitch# %SYS-5-CONFIG_I: Configured from console by consoleSwitch#copy running-config startup-configDestination startup-config?Building configuration.OKSwitch#Swrtchl命令行1 OS命令行4sw丄 tEiAectd gSvrli:cht3h.av vtp atacuaVTP Version2Confxuxa ekon He vi skcnX0naxxisuK riAHiseaiiy :IfumbtE cf f
15、exiatin寸 VLAN*pX&VTP Optzatln? MadepSarvazVTP Deiuxn NamaTtao匸VTP fEuning HoaaDJ>aQ.H«4VTF V2 NodeDisabledVTF Tcaps GenerationzDlsabl&dMD与 ddn-tT nIS OirTF a"2n icJLD OxE-C7E Die J jT DicTt Ov"!左匸a tiffn Ha at jociiiif i =3l=y T0”D"O Qt Q-O-OO00;QQ J QCrLoizaJ, uptlate
16、z: ID i 3 0 - 0 - 0 - 0i nn 7a Ixd xnt er fa.ee±n-urLcl)SwitctitW辂贴 1k_SwitchO 上、厲 Switc'h43物連令令行VTP VftE3ian:2CanCigucaczsn Revxaian:1MaKioim VLAtl, support ad locAlly:2BSNuBtbftr sf cxlaclng VLAHs:VTD OpoEatin Ksdo:Cli an-tVTP Dasaxn N«inA;L«aVTP Pmnlng Mode:DisabledVTP V? Wode:
17、DisabledVT*C Ti-=.fha Ca-no-r-t xonT D i -a ab I dTMES5 :iiflust;Q Jt2 2 0jc7-Svritcli> enable Svfltchtshov vtD statusCanf xguizatacn last nm dialed Dy 0,0,0,0 at 3-X-93 QO ; 06 : 6 6 Swrtch*OjtZF OnSB Dh三理 Qm7口 Oj«lB3 QjtZBPCO命令提示符Paoket Tiracar PC CcunzLsrid Li_ne 1.0?Oping 192. 1SG _1Ping
18、iTig 160_1 -Z with 32 bytes of data:a色pL笛 from ISi.iea.l.2: bytes-32R&fhlV from 1S2.16S.1.2; bfce3=32Seply from 132. JL6S. i. 2 ; bytes=32Reply from ISZ.lfiS.l.Zz byte3=3rtimeTSma tune 三 GEiiu t ijnfi=3 3ma Tiijne=7Siii3TTL-12STTL=i2STTL=i2aTTL=iza第11页共8页Pin-g statist 1(=9 for 1 92 .13.1:S4nt = 4, Rftcaivfld = 4, ILoat =
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 建筑工地防溺水演练方案
- 2024仪器设备购销合同范本
- 2024劳动合同法修改
- 辽宁省大连市第二十九高级中学高二物理上学期摸底试题含解析
- 2022年山西省阳泉市盂县孙家庄乡中学高二物理月考试题含解析
- 四川省成都市蒲江县职业中学高二物理联考试卷含解析
- 云南省昆明市宜良县草甸中学高二物理期末试题含解析
- 中外货物买卖合同书(FBO条款)
- 合同样例售货合同
- 重庆八桥镇八桥中学2022-2023学年高二物理期末试题含解析
- 混凝土挡墙劳务合同 混凝土挡土墙合同(四篇)
- 三年级下册美术说课稿- 第4课 人物与环境 ▏人美版
- 新能源汽车火灾事故处置程序及方法
- 教育家精神六个方面专题PPT
- 新教科版六年级上册科学全册一课一练
- Unit 2 I think that mooncakes are delicious 完形填空练习(含解析)
- 2023年文言文二则《铁杵成针》案例分析
- 基于大观念的初中英语单元整体教学的课时设计-以人教版八下unit1为例
- 重庆市九龙坡区2022-2023学年六年级数学第二学期期末学业水平测试试题含解析
- 2023年广东广州市天河区人民法院招考聘用合同制辅助人员22人笔试题库含答案详解
- 沪教版五年级数学下册《可能情况的个数》教案及教学反思
评论
0/150
提交评论