1、二、实验设备与环境Windows 2000 Server/Advance Server主机局域网、CISCO Catalyst 2950交换机和2600系列路由器,Cisco Packet Tracer 7.0软件。三、实验内容3.1 课内实验任务(2)实验过程0)创建拓扑图1)采用配置PC1和PC2的IP地址和子网掩码。2)连接到路由器Router3,配置路由器的RIP,命令如下:RouterenableRouter#conf terminalRouter(config)#hostname R3R3(config)#interface FastEthernet 0/0R3(config-if
2、)#ip address 11.0.0.1 255.255.255.0R3(config-if)#no shutdownR3(config-if)#interface FastEthernet 0/1R3(config-if)#ip address 12.0.0.1 255.255.255.0R3(config-if)#interface serial 0R3(config-if)#ip address 10.0.0.1 255.255.255.0R3(config-if)#bandwidth 128 /设置链路带宽为128kbit/sR3(config-if)#clock rate 6400
3、0 /设置DCE设备的时钟速率R3(config-if)#exit-设置路由器R3的RIP -R3(config)#router rip /设置RIPR3(config-router)#network 10.0.0.0 /设置接口S0连接的网络地址R3(config-router)#network 11.0.0.0 /设置接口E0连接的网络地址R3(config-router)#network 12.0.0.0 /设置接口E1连接的网络地址R3(config-router)#endR3(config)#router rip/设置RIPR3(config-router)#network 10.0
4、.0.0/设置接口S0连接的网络地址R3(config-router)#network 11.0.0.0/设置接口E0连接的网络地址R3(config-router)#network 12.0.0.0/设置接口E1连接的网络地址R3#%SYS-5-CONFIG_I: Configured from console by console4)按照步骤(3)分别完成对路由器R1、R2、R4的接口配置。/配置过程不再列出5)按照步骤(3)分别完成对路由器R1、R2、R4的RIP配置。R1(config)#router rip /设置路由器R1的RIPR1(config-router)#network
5、11.0.0.0R1(config-router)#endR1(config)#router rip /设置路由器R1的RIPR1#-设置路由器R2的RIP -R2(config)#router rip /设置路由器R2的RIPR2(config-router)#network 12.0.0.0R2(config-router)#endR2(config)#router rip /设置R2的RIPR2#-设置路由器R4的RIP-R4(config)#router rip /设置路由器R4的RIP R4(config-router)#network 10.0.0.0R4(config-route
6、r)#network 192.168.1.0R4(config-router)#endR4(config)#rout rip /设置R4的rip6)连接到路由器R1中,通过命令“show ip route”显示R1的动态路由表,观察路由表项,当目标网络是192.168.1.0/24时,需要多少跳数(hops)?通过命令“show ip protocols” 查看每台路由器的协议。R1show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP
7、external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - peri
8、odic downloaded static routeGateway of last resort is not setR 10.0.0.0/8 120/1 via 11.0.0.1, 00:00:20, FastEthernet0/011.0.0.0/24 is subnetted, 1 subnetsC 11.0.0.0 is directly connected, FastEthernet0/0R 12.0.0.0/8 120/1 via 11.0.0.1, 00:R 192.168.1.0/24 120/2 via 11.0.0.1, 00:答;有路由表可知,到达192.168.1.
9、0需要两跳。显示协议如下show ip protocolRouting Protocol is rip/协议是RIP协议Sending updates every 30 seconds, next due in 13 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistribut
10、ing: ripDefault version control: send version 1, receive any versionInterface Send Recv Triggered RIP Key-chainFastEthernet0/0 1 2 1 Automatic network summarization is in effectMaximum path: 4Routing for Networks:11.0.0.0Passive Interface(s):Routing Information Sources:Gateway Distance Last Update11
11、.0.0.1 120 00:19Distance: (default is 120)7)连接到R2、R3和R4,通过 “show ip route”和“show ip protocols” 命令查看每台路由器的路由表和协议。R2: R2的路由表:R2R 10.0.0.0/8 120/1 via 12.0.0.1, 00:19, FastEthernet0/0R 11.0.0.0/8 120/1 via 12.0.0.1, 00:12.0.0.0/24 is subnetted, 1 subnetsC 12.0.0.0 is directly connected, FastEthernet0/0
12、R 192.168.1.0/24 120/2 via 12.0.0.1, 00:/需要两跳R2所用协议:show ip protocolsSending updates every 30 seconds, next due in 11 seconds12.0.0.012.0.0.1 120 00:25R3:R3路由表:R310.0.0.0/24 is subnetted, 1 subnetsC 10.0.0.0 is directly connected, Serial0/0C 12.0.0.0 is directly connected, FastEthernet0/1R 192.168.1
13、.0/24 120/1 via 10.0.0.2, 00:09, Serial0/0/需要一跳R3协议:Sending updates every 30 seconds, next due in 12 secondsSerial0/0 1 2 1 FastEthernet0/1 1 2 1 10.0.0.010.0.0.2 120 00:14R4:R4路由表:R4show ip route R 11.0.0.0/8 120/1 via 10.0.0.1, 00:03, Serial0/0R 12.0.0.0/8 120/1 via 10.0.0.1, 00:C 192.168.1.0/24 i
14、s directly connected, FastEthernet0/0R4协议:Sending updates every 30 seconds, next due in 1 seconds192.168.1.010.0.0.1 120 00:248)使用ping命令测试到路由器各接口的连通状态,以检测路由器的配置。用PC1测试与各个路由器接口的连接性:C:ping 11.0.0.1Pinging 11.0.0.1 with 32 bytes of data:Reply from 11.0.0.1: bytes=32 time=31ms TTL=254 bytes=32 time=15ms
15、 TTL=254Ping statistics for 11.0.0.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 15ms, Maximum = 31ms, Average = 27ms/接通ping 12.0.0.2Pinging 12.0.0.2 with 32 bytes of data:Reply from 12.0.0.2: bytes=32 time=16ms TTL=253 bytes=32 time=31ms TTL=253 bytes=32 time=47ms TTL=253Ping statistics for 12.0.0.2:Minimum = 16ms, Maximum = 47ms, Average = 31msping 192.168.1.1Pinging 192.168.1.1 with 32 bytes of data:Reply from 192.168.1.1: bytes=32 time1ms TTL=255Ping statistics for 192.168.1.1:Approxima
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1