vtp实验
- 格式:doc
- 大小:1.26 MB
- 文档页数:11
STP、VTY、VTP、Vlan一、实验括扑图:二、实验思路:1、先分别给2Sw1、2Sw2交换机上的F0/3、F0/4口作为中继模式(Trunk)3Sw1、3Sw2交换机上的F0/2、F0/3、F0/4口作为中继模式(Trunk)2、在2Sw1交换机上创建Vlan2(Vlan1默认是有的,所以不用创建),并把VLan加入到2Sw1、2Sw2F0/1、F0/2口中, 利用VTP把VLAN同步到每个交换机上.3、在3Sw1上设置Vlan1为根网桥,Vlan2为备份网桥在3Sw2上设置Vlan1为备份网桥,Vlan2为根网桥4、在3Sw1、3Sw2配置默认网关5、给PC配置上IP地址和网关6、最后在3Sw1、3Sw2分别创建vty(远程登录)密码和enable(进入全局模式)密码.三、实验操作命令:1、配置Trunk(在全局模式下可以用:do show running-config查看配置)2Sw1命令:2Sw1#configure terminal2Sw1(config)#interface range f0/3 -42Sw1(config-if-range)#switchport mode trunk2Sw1(config-if-range)#exit2Sw2命令:2Sw2#configure terminal2Sw2(config)#interface range f0/3 -42Sw2(config-if-range)#switchport mode trunk2Sw2(config-if-range)#exit3Sw1命令:3Sw1#configure terminal3Sw1(config)#interface range f0/2 -43Sw1(config-if-range)#switchport mode trunk3Sw1(config-if-range)#exit3Sw2命令:3Sw2#enable3Sw2#configure terminal3Sw2(config)#interface range f0/2 -43Sw2(config-if-range)#switchport mode trunk3Sw2(config-if-range)#exit2、创建Vlan2加入到端口,并创建VTP给每台设备发布2Sw1上创建Vlan和创建VTP命令:2Sw1#vlan database2Sw1(vlan)#vlan 2 name 22Sw1(vlan)#vtp domain benet2Sw1(vlan)#vtp server2Sw1(vlan)#exit2Sw1(config)#interface fastEthernet 0/22Sw1(config-if)#switchport mode access2Sw1(config-if)#switchport access vlan 22Sw2创建VTP命令:2Sw2#vlan database2Sw2(vlan)#vtp domain benet2Sw2(vlan)#vtp server2Sw2(vlan)#exit2Sw2(config)#interface fastEthernet 0/22Sw2(config-if)#switchport mode access2Sw2(config-if)#switchport access vlan 23Sw1创建VTP命令:3Sw1#vlan database3Sw1(vlan)#vtp domian benet3Sw1(vlan)#vtp server3Sw2创建VTP命令:3Sw2#vlan database3Sw2(vlan)#vtp domian benet3Sw2(vlan)#vtp server(在全局模式下可以用:do show running-config查看配置)3、在3Sw1上设置Vlan1为根网桥,Vlan2为备份网桥命令:3Sw1(config)#spanning-tree vlan 1 root primary3Sw1(config)#spanning-tree vlan 2 root secondary在3Sw2上设置Vlan1为备份网桥,Vlan2为根网桥命令:3Sw2(config)#spanning-tree vlan 2 root primary3Sw2(config)#spanning-tree vlan 1 root secondary(在全局模式下可以用:do show spanning-tree brief查看STP)(root表示跟、Bridge表示本地)4、在3Sw1、3Sw2上配置默认网关3Sw1命令:3Sw1(config)#interface vlan 13Sw1(config-if)#ip address 1.1.1.1 255.0.0.03Sw1(config-if)#no shutdown3Sw2命令:3Sw2(config)#interface vlan 23Sw2(config-if)#ip address 2.2.2.2 255.0.0.03Sw2(config-if)#no shutdown5、在PC配置IP地址和默认网关VPCS 1 >:ip 1.1.1.2 1.1.1.1 86、最后在3Sw1、3Sw2分别创建vty(远程登录)密码和enable(进入全局模式)密码.3Sw1命令:3Sw1(config)#line vty 0 43Sw1(config-line)#password 1233Sw1(config-line)#login3Sw1(config)#enable password 3213Sw1(config)#enable secret password 2343Sw2命令:3Sw2(config)#line vty 0 43Sw2(config-line)#password 1233Sw2(config-line)#login3Sw2(config)#enable password 321用PC1远程管理3Sw1、PC2远程管理3Sw2由于本人不会用VPCS进行远程管理,只好用文字来概括.比如说:PC1相当于XP.在XP上配置IP地址和默认网关, 打开XP的开始按钮--所有程序--超级终端--名字可以随便输入,完后选择TCP/IP--最后要管理设备的IP地址..管理3Sw1,那么就输入1.1.1.1 登录进入后,首先输入进入VTY的密码,然后在输入enable密码,刚才3Sw1我配置了两个密码,一个是明文enable密码,另外一个是密文enable密码..当enable既有明文又有密文密码时,密文生效... 所以登录到VTY enable密码输入密文密码.。
任务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结果如下图:。
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(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客户机模式。
实验报告—实验一:对等网组建:实验目的:(1)掌握对等网组网技术,学会组建对等网;(2)掌握对等网环境下数据共享方法;拓扑图:实验环境:三台交换机,四台PC机,三台交换机用交叉线连接,用直通线连接交换机和客户机;实验步骤:一:配置每台PC的IP地址与子网掩码:1:192.168.2.11 255.255.255.02:192.168.2.12 255.255.255.03:192.168.2.1:3 255.255.255.04:192.168.2.14 255.255.255.0二:测试各PC间的连通性:在PC1上“ping”:Ping 192.168.2.12Ping 192.168.2.13Ping 192.168.2.14三:查看结果。
四:为本次实验做总结。
实验二:交换机的基本配置T elnet:实验地点:专业机房:(1)掌握对交换机的基本配置及Telnet的登录设置;(2)熟练掌握远程登录交换机的配置,及学会配置。
拓扑图:实验环境:一台交换机、一台pc机、一根控制线。
一根直通线;分别连接它们。
实验步骤:1:配置pc机的ip地址及子网掩码:192.168.1.2255.255.255.02:配置交换机:en (进入交换机特权模式)conf t (进入交换机的全局配置模式)enable password 123 (配置交换机登录密码)enable secret 1234 (配置交换机特权模式密码)line vty 0 4loginpassword 12345 (配置交换机远程登录密码)end (结束)实验结果:测试“Telnet”远程登录:实验总结实验三:单交换机vlan通信:实验目的:(1)掌握单交换机的vlan划分与添加,实现vlan间的通信;(2)学会自己熟练配置交换机vlan的划分与添加,实现单交换机间的vlan通信。
拓扑图:实验环境:一台交换机,四台pc机,四根直通线;将pc机和交换机相连。
Boson NetSim实验:VLAN、VTP、TRUNK一、实验拓扑图二、用Boson Network Designer设计拓扑交换机使用Cisco 2950三、交换机的基本配置SW1的配置Switch>enableSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z. Switch(config)#host SW1SW1(config)#enable secret c1SW1(config)#line vty 0 15SW1(config-line)#password c2SW1(config-line)#int fe 0/1SW1(config-if)#switchport mode accessSW1(config-if)#int fe 0/2SW1(config-if)#switchport mode accessSW1(config-if)#int vlan 1SW1(config-if)#ip add 192.168.0.1 255.255.255.0SW1(config-if)#no shut%LINK-3-UPDOWN: Interface Vlan 1, changed state to upSW1(config-if)#endSW1#copy run startDestination filename [startup-config]?Building configuration...[OK]SW2的配置Switch>enableSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z. Switch(config)#host SW2SW2(config)#enable secret c1SW2(config)#line vty 0 15SW2(config-line)#pass c2SW2(config-line)#int fe 0/1SW2(config-if)#switchport mode accessSW2(config-if)#int fe 0/2SW2(config-if)#switchport mode accessSW2(config-if)#int vlan 1SW2(config-if)#ip add 192.168.0.2 255.255.255.0SW2(config-if)#no shut%LINK-3-UPDOWN: Interface Vlan 1, changed state to upSW2(config-if)#endSW2#copy run startDestination filename [startup-config]?Building configuration...[OK]四、PC机的配置与测试PC1ipconfig /ip 192.168.0.11 255.255.255.0PC2ipconfig /ip 192.168.0.22 255.255.255.0Ipconfig /ip 192.168.0.33 255.255.255.0 PC4ipconfig /ip 192.168.0.44 255.255.255.0 PC1的测试(其他类同)五、配置测试 VTP、VLAN、TRUNKSW1 TRUNK配置SW1#conf tEnter configuration commands, one per line. End with CNTL/Z.SW1(config)#int fe 0/12SW1(config-if)#switchport mode trunkSW1(config-if)#endSW1#copy run startDestination filename [startup-config]?Building configuration...[OK]SW2 TRUNK配置SW2#conf tEnter configuration commands, one per line. End with CNTL/Z.SW2(config)#int f2 0/12SW2(config-if)#switchport mode trunkSW2(config-if)#endSW2#copy run startDestination filename [startup-config]?Building configuration...[OK]SW1 VTP配置(因为BOSON 版本的问题,我这里在VLAN DATABASE下配置)SW1#vlan databaseSW1(vlan)#vtp serverSW1(vlan)#vtp domain myvtpChanging VTP domain from NULL to myvtpSW1(vlan)#endSW1#copy run startDestination filename [startup-config]?Building configuration...[OK]SW2 VTP配置SW2#vlan databaseSW2(vlan)#vtp clientSW2(vlan)#vtp domain myvtpChanging VTP domain from NULL to myvtpSW2(vlan)#endSW2#copy run startDestination filename [startup-config]?Building configuration...[OK]SW1 VTP测试SW1#show vtp statusVTP Version : 2Configuration Revision : 2Maximum VLANs supported locally : 64Number of existing VLANs : 5VTP Operating Mode : ServerVTP Domain Name : myvtpVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDF Configuration last modified by 0.0.0.0 at 3-1-93 04:55:57Local updater ID is 0.0.0.0 (no valid interface found)SW2 VTP测试SW2#show vtp statusVTP Version : 2Configuration Revision : 2Maximum VLANs supported locally : 64Number of existing VLANs : 5VTP Operating Mode : ClientVTP Domain Name : myvtpVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0xEE 0xB3 0xDC 0x9F 0xE2 0xE0 0x25 0xDF Configuration last modified by 0.0.0.0 at 3-1-93 04:55:57Local updater ID is 0.0.0.0 (no valid interface found)SW1 VLAN 配置SW1#vlan databaseSW1(vlan)#vlan 10 name test10VLAN 10 added:Name:test10SW1(vlan)#vlan 20 name test20VLAN 20 added:Name:test20SW1(vlan)#int fe 0/1SW1(config-if)#switchport access vlan 10SW1(config-if)#int fe 0/2SW1(config-if)#switchport access vlan 20SW1(config-if)#endSW1#copy run startDestination filename [startup-config]?Building configuration...[OK]SW1 VLAN测试SW1#show vlanVLAN Name Status Ports---- -------------------------------- --------- ------------------------------- 1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6Fa0/7, Fa0/8, Fa0/9, Fa0/10Fa0/11, Fa0/1210 test10 active Fa0/120 test20 active Fa0/21002 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 - - - - - 0 010 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 01002 fddi 101002 1500 - - - - - 0 01003 tr 101003 1500 - - - - - 0 01004 fdnet 101004 1500 - - - ieee - 0 01005 trnet 101005 1500 - - - ibm - 0 0SW2 VLAN测试SW2#show vlanVLAN 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/12 10 test10 active20 test20 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 - - - - - 0 010 enet 100010 1500 - - - - - 0 020 enet 100020 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0PC机上的VTP、VLAN测试PC1ipconfig /ip 192.168.1.1 255.255.255.0PC2ipconfig /ip 192.168.1.2 255.255.255.0PC3ipconfig /ip 192.168.1.3 255.255.255.0PC4ipconfig /ip 192.168.1.4 255.255.255.0测试。
基本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 配置。
实验五STPRSTPVLANVTP实验五STP/RSTP & VLAN & VTP【实验⽬的】1.了解STP/RSTP协议及其原理,掌握STP/RSTP的配置2.了解和掌握VLAN的基本概念,进⼀步区分⼴播域和冲突域3.掌握VLAN的创建以及实现静态VLAN的划分4.掌握trunk封装原理5.掌握VLAN间相互通信的原理6.了解VTP协议及其原理【实验设备】Cisco19xx、 Cisco29xx交换机和Cisco2600路由器,带虚拟终端的电脑,终端控制数据线、⽹线若⼲【实验内容】⼀、STP/RSTP配置实验1.STP/RSTP/PVST/PVST+/Rapid-PVST协议原理1) ⽣成树协议(STP)的主要功能是允许在⽹络中存在冗余的交换/桥接路径⽽不产⽣环路。
⽣成树允许在交换机之间存在多条链路,但是只有⼀条链路是激活的(处于转发状态),⽽其它的冗余链路都处于备⽤(阻塞)状态,以防⽌主链路出现故障导致⽹络瘫痪。
STP根据⽣成树算法在存在冗余链路的⽹络拓扑中⽣成⼀棵树,树的每个节点对应⼀台交换机。
这个过程⼤致如下:⾸先,STP协议根据BID值选出根交换机(RootBridge);然后,确定每⼀台⾮根交换机到根交换机之间的最佳路径,选举指定交换机(Designated Switch),并决定根端⼝(Root Port);接着,在每段链路上选举指定端⼝(Designated Port);最后,将所有根端⼝和指定端⼝置成转发(Forward)状态,将⾮指定端⼝置为阻塞(Block)状态。
2)运⾏RSTP的交换机的端⼝只有三种状态:Discarding,Learning,Forwarding; 其中Discarding 取代了STP的Disabled,Blocking和Listening三种状态。
RSTP协议在STP协议基础上做了三点重要改进,使得收敛速度快得多:a)为根端⼝和指定端⼝分别设置了快速切换⽤的替换端⼝(Alternate Port)和备份端⼝(Backup Port)两种⾓⾊,当根端⼝/指定端⼝失效的情况下,替换端⼝/备份端⼝就会⽆时延地进⼊转发状态。
实验三 VTP实验一、实验目的1、熟悉VTP 配置2、熟悉vlan、trunk 配置二、实验拓扑图3-1 VLAN、VTP和VLAN间路由实验三、实验步骤1、VTP 配置步骤如下。
(1)把三台交换机的配置清除干净,重启交换机S1#delete flash:vlan.datS1#erase startup-configS1#reload(2)检查S1 和S3 之间、S3 和S2 之间链路trunk 是否自动形成,如果没有请参照实验2步骤配置trunk(3)配置S1 为VTP serverS1(config)#vtp mode serverDevice mode already VTP SERVER.//以上配置S1 为VTP server,实际上这是默认值S1(config)#vtp domain VTP-TESTChanging VTP domain name from NULL to VTP-TEST//以上配置VTP 域名S1(config)#vtp password ciscoSetting device VLAN database password to cisco//以上配置VTP 的密码,目的是为了安全,防止不明身份的交换机加入到域中(4)配置S3 为VTP transparentS3#vlan databaseS3(vlan)#vtp transparentSetting device to VTP TRANSPARENT mode.S3(vlan)#vtp domain VTP-TESTDomain name already set to VTP-TEST .S3(vlan)#vtp password ciscoSetting device VLAN database password to cisco.【提示】有的IOS 版本只支持在vlan database 下配置vlan。
软件学院CCNA实验报告实验名称:帧中继网络配置学号:201007062255班级:网络102姓名:黄忠指导老师:潘磊2011 年11 月 6 日目录第1章实验概括 (1)1. 实验目的 (1)2. 实验拓扑 (1)3. 实验设备 (2)第2 章实验步骤 (2)1. 设备的配置 (2)1.1 帧中继云的配置 (2)2. 帧中继基本配置和映射 (3)2.1 帧中继基本接口配置 (3)2.2 测试连通性 (3)2.3 手动配置帧中继映射 (4)2.4 试验调试 (4)3. 配置帧中继上的RIP (5)3.1 配置RIP (5)3.2 检查路由表并测试 (6)3.3 水平分割问题 (6)4 配置帧中继多点到多电子接口 (7)4.1 对各路由器进行配置 (7)4.2 试验调试 (8)第3 章心得体会 (9)第1章实验概括1. 实验目的通过本实验,我们可以掌握如下技能:①理解帧中继交换机的工作原理;②理解PVC的概念;③用帧中继云当做帧中继交换机的配置;④帧中继的静态映射和动态映射;⑤帧中继上路由协议运行的特殊性;2. 实验拓扑实验拓扑图如图1-1所示:图1-1 实验拓扑图3. 实验设备路由器3台,帧中继云一个,线缆若干。
第 2 章实验步骤1. 设备的配置1.1 帧中继云的配置帧中继云的配置如下图2-1、2-2、2-3所示:图2-1 在接口Serial0上配置的标签图2-2 在接口Serial1上配置的标签图2-3 配置帧中继交换表2. 帧中继基本配置和映射2.1 帧中继基本接口配置2.1.1路由器R1的配置R1(config)#int s0/0/0R1config-if)# ip add 192.168.123.1 255.255.255.0R1(config-if)# no shutdownR1(config-if)#encapsulation frame-relay2.1.2 路由器R3的配置R3(config)#int s0/0/0R3(config-if)# ip add 192.168.123.3 255.255.255.0R3(config-if)# no shutdownR3(config-if)#encapsulation frame-relay2.1.3 路由器R4的配置R4(config)#int s0/0/0R4(config-if)# ip add 192.168.123.4 255.255.255.0R4(config-if)# no shutdownR4(config-if)#encapsulation frame-relay2.2 测试连通性2.2.1 从个路由器ping其他路由器:(1)在R1上ping 192.168.123.3结果如图2-4所示:图2-4 ping192.168.123.3(2)在R1上平ping 192.168.123.4的结果如图2-5所示:图2-5 ping 192.168.123.42.2.2 查看映射2.3 手动配置帧中继映射(1) R1 的配置R1(config)# int s0/0/0R1(config-if)#no frame-relay interse-arpR1(config-if)# frame-relay map ip 192.168.123.3 103 broadcast R1(config-if)# frame-relay) map ip 192.168.123.4 104 broadcast (2) R3 的配置R3(config)# int s0/0/0R3(config-if)#no frame-relay interse-arpR3(config-if)# frame-relay map ip 192.168.123.1 301 broadcast (3) R4 的配置R4(config)# int s0/0/0R4(config-if)#no frame-relay interse-arpR4(config-if)# frame-relay map ip 192.168.123.1 401 broadcast 2.4 试验调试在R1上用show frame-relay pvc查看结果如图2-6所示:图2-6 查看PVC3. 配置帧中继上的RIP3.1 配置RIP3.1.1 R1的配置R1(config)#int loopback 0R1(config-if)# ip address 1.1.1.1 255.255.255.0R1(config-if)#exitR1(config)#router ripR1(config-router)#network 1.0.0.0R1(config-router)#network 192.168.123.03.1.2 R2的配置R2(config)#int loopback 0R2(config-if)# ip address 3.3.3.3 255.255.255.0R2(config-if)#exitR2(config)#router ripR2(config-router)#network 3.0.0.0R2(config-router)#network 192.168.123.03.1.3 R4的配置R4(config)#int loopback 0R4(config-if)# ip address 4.4.4.4 255.255.255.0R4(config-if)#exitR4(config)#router ripR4(config-router)#network 4.0.0.0R4(config-router)#network 192.168.123.03.2 检查路由表并测试3.2.1 检查路由表结果如图3-1所示:图3-1 查看路由表结果3 .2.2测试ping 3.3.3.33.3 水平分割问题3.3.1 水平分割关闭时查看路由表的结果如图3-2所示:图3-2 关闭水平分割结果3.3.2 水平分割开启时查看路由表的结果如图3-3所示:图3-3 开启水平分割的结果4 配置帧中继多点到多电子接口4.1 对各路由器进行配置4.11 R1的配置R1(config)#int s0/0/0R1(config-if)#no ip addressR1(config-if)#encap frame-relayR1(config-if)#no shutdownR1(config)#int s0/0/0.1 multipointR1(config)#ip add 192.168.123.1 255.255.255.0R1(config)#frame-relay map ip 192.168.123.3 103 broadcastR1(config)#frame-relay map ip 192.168.123.4 104 broadcastR1(config)#router ripR1(config-router)#network 1.0.0.0R1(config-router)#network 192.168.123.04.1.2 R3的配置R3(config)# int s0/0/0R3(config-if)#ip add 192.168.123.3 255.255.255.0R3(config-if)#encap frame-relayR3(config-if)#no frame-relay interse-arpR3(config-if)# frame-relay map ip 192.168.123.1 301 broadcast R3(config)-if #no shutdownR3(config)#router ripR3(config-router)#network 3.0.0.0R3(config-router)#network 192.168.123.04.1.3 R4的配置R4(config)# int s0/0/0R4(config-if)#ip add 192.168.123.34 255.255.255.0R4(config-if)#encap frame-relayR4(config-if)#no frame-relay interse-arpR4(config-if)# frame-relay map ip 192.168.123.1 401 broadcast R4(config)-if #no shutdownR4(config)#router ripR4(config-router)#network 4.0.0.0R4(config-router)#network 192.168.123.04.2 试验调试4.2.1 查看路由表结果如图4-1所示:图4-1 查看路由表的结果201007062255 网络102 黄忠第 3 章心得体会通过这次配置的帧中继网络的实验让我掌握了许多知识。
首先,让我知道了帧中继中交换机的工作原理,熟练的掌握了帧中继中的命令配置;其次,也让我理解学会了帧中继基本配置和帧中继中LMI 的类型以及帧中继映射,熟练的掌握配置动态路由和静态路由;最后,还使我了解学会了在帧中继上运行的RIP协议,在帧中继上的RIP 协议中了解到了水平分割问题,有水平分割出现什么情况,没开水平分割出现什么现象;同时还更多的了解了帧中继的命令和配置,以及帧中继中多点到多点子接口,点到点子接口的配置;熟练的运用帧中继中的名令,如show frame-relay pvc、show frame-relay lmi、encapsulation frame-relay、ip split-horizon等等一些命令,对帧中继网络的配置有了更深的了解,使自己的知识水平有了更高的提升。
在这次配置的帧中继网络的实验当中也遇到了许多问题,如有一些命令在模拟器中不适用,也有一些命令的不理解,以及配置中出现的一些问题等等。
问了解决这些问题在这当中我询问过老师和同学,他们都给了我很大的帮助,使我明白了许多知识解决了自己的问题。
因此,在此我感谢老师和同学对我的帮助。
同时,我应该使自己多看书多了解一些命令,在不懂的时候就应该多询问。
只有这样才能更好的增加自己的知识,提高自己的水平,才能使自己在以后的将来有更好发展。
9。