当前位置:文档之家› 全存-Dynamips 三层交换实验

全存-Dynamips 三层交换实验


实验的dynagen拓朴文件内容:
autostart = false [localhost] port = 7200 udp = 10000 workingdir = d:\lab\3640\ [[3640]] image = d:\lab\c3640-telco-124-13.bin idlepc = 0x6100bf2c ram = 128 confreg = 0x2102 exec_area = 64 mmap = false
Port Vlans in spanning tree forwarding state and not pruned Fa1/1 1,1/3 1,11-13 Fa1/4 1,11-13 SW1# SW1#sh vtp stat VTP Version : 2 Configuration Revision : 0 Maximum VLANs supported locally : 256 Number of existing VLANs : 5 VTP Operating Mode : Server VTP Domain Name : cisco VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x89 0x5D 0x37 0xD0 0x91 0x71 0xF7 0x96 VTP同步成功(Trunk生效)后,各交换机 的此数值相同.反之则不成功 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00 Local updater ID is 0.0.0.0 (no valid interface found) SW2: SW2#vlan da SW2(vlan)# SW2(vlan)#vtp client Setting device to VTP CLIENT mode. SW2(vlan)#vtp domain cisco Changing VTP domain name from NULL to cisco SW2(vlan)#exit In CLIENT state, no apply attempted. Exiting.... SW2#sh vtp stat VTP Version : 2
dynamips/dynagen实验 CISCO交换基础:VLAN ,VTP,VLAN间 路由
说明:Dynamips是一个非常不错的Cisco路由器模拟器,但不能模拟 真实的三层交换机,交换实验可通过在路由器中加装交换模块实现, VLAN间的路由可以通过单臂路由器实现。
学习交换有些概念一直理得不是很清晰,所以做了一个一些交换基 础概念的一个图示,希望我的理解没有问题. 实验中VLAN的划分情况:
配置VTP模式及trunk端口:
SW1: SW1#vlan database SW1(vlan)#vtp server Device mode already VTP SERVER. SW1(vlan)#vtp domain cisco Changing VTP domain name from NULL to cisco SW1(vlan)#exit APPLY completed. Exiting.... SW1#confi t Enter configuration commands, one per line. CNTL/Z. SW1(config)#int f1/1
Configuration Revision : 0 Maximum VLANs supported locally : 256 Number of existing VLANs : 5 VTP Operating Mode : Client VTP Domain Name : cisco VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0x89 0x5D 0x37 0xD0 0x91 0x71 0xF7 0x96 Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00 SW2# SW2(config-line)#int f1/1 W2(config-if)#sw mo tr SW2(config-if)# *Mar 1 00:09:18.215: %DTP-5-TRUNKPORTON: Port Fa1/1 has become dot1q trunk SW2(config-if)#do sh int tr Port Mode Encapsulation Status Native vlan Fa1/1 on 802.1q trunking 1 Port Vlans allowed on trunk Fa1/1 1-1005 Port Vlans allowed and active in management domain Fa1/1 1 Port Vlans in spanning tree forwarding state and not pruned Fa1/1 none SW2(config-if)#end SW2#sh vtp stat
f0/0 = SW3 [[router model=2620 f0/0 = SW3 [[router model=2620 f0/0 = SW4 [[router model=2620 f0/0 = SW4 [[router model=2620 f0/0 = SW4
f1/3 PC6]] f1/4 PC7]] f1/2 PC8]] f1/3 PC9]] f1/4
: 2
Configuration Revision : 1 每次修改便revision值 加一 Maximum VLANs supported locally : 256 Number of existing VLANs : 8 VTP Operating Mode : Server VTP Domain Name : cisco VTP Pruning Mode : Disabled VTP V2 Mode : Disabled VTP Traps Generation : Disabled MD5 digest : 0xD6 0x3B 0xED 0x81 0x07 0x28 0xEE 0x0D 修改VLAN后MD5值会变化 Configuration last modified by 0.0.0.0 at 3-1-02 00:43:22 Local updater ID is 0.0.0.0 (no valid interface found) SW1#show vlan #交换模块查看vlan的命令与交换机不同 % Ambiguous command: "show vlan" SW1#show vlan-switch #使用这个命令查看VLAN VLAN Name Status Ports ---- -------------------------------- --------- -----------------------------1 default active Fa1/0, Fa1/1, Fa1/5, Fa1/6 Fa1/7, Fa1/8, Fa1/9, Fa1/10 Fa1/11, Fa1/12, Fa1/13, Fa1/14 Fa1/15 11 VLAN0011 active 12 VLAN0012 active 13 VLAN0013 active 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 ---- ----- ---------- ----- ------ ------ -------- ---- ------- ------ ------
# slot1 = NM-16ESW [[2620]] image = d:\lab\c2600-i.120-7.bin #模拟PC选用占 用内存较少的IOS ram = 20 confreg = 0x2102 idlepc = 0x802d0b80 exec_area = 64 mmap = false # [[router TermServ]] # model=3640 # e0/0 = NIO_gen_eth:\Device\NPF_{1D0AB987-66894B46-8AF5-27395AD05B0B} [[router R1]] image = d:\lab\c7200-adventerprisek9.1246.T3.bin #需要带有ip plus特性的IOS,才支持VLAN间 路由 idlepc = 0x613503b8 ram = 256 npe = npe-400 confreg = 0x2102 exec_area = 64 mmap = false f0/0 = SW1 f1/1 [[router SW1]] model=3640 slot1 = NM-16ESW f1/2 = SW2 f1/1 f1/3 = SW3 f1/1 f1/4 = SW4 f1/1
End with
SW1(config-if)#sw mo tr #与路由器连接的接 口也要将其端口模式设置为TRUNK SW1(config)#int f1/2 SW1(config-if)#sw mo tr SW1(config)#int f1/3 SW1(config-if)#sw mo tr SW1(config-if)#int f1/4 SW1(config-if)#sw mo tr SW1#sh int tr Port Mode Encapsulation Status Native vlan Fa1/1 on 802.1q trunking 1 Fa1/2 on 802.1q trunking 1 Fa1/3 on 802.1q trunking 1 Fa1/4 on 802.1q trunking 1 Port Fa1/1 Fa1/2 Fa1/3 Fa1/4 Port domain Fa1/1 Fa1/2 Fa1/3 Fa1/4 Vlans allowed on trunk 1-1005 1-1005 1-1005 1-1005 Vlans allowed and active in management 1,11-13 1,11-13 1,11-13 1,11-13
相关主题