1、计算机网络课程设计1. 课程设计应达到的目的本课程设计的目的是使得学生在学习计算机网络这门课程的基础上,进一步理解计算机网络的基本理论,将理论知识和实践结合起来,提高学生的网络应用水平。课程设计是教学中很重要的一项实践环节,它可以帮助学生理解课堂教学中的内容,对提高学生的实践认识和实际动手能力都有很重要的实际意义。学生应按照课程设计的要求,结合所学的理论知识,查找相关资料,完成好本次课程设计任务,同时提高网络应用能力,为后续课程打好基础。2课程设计题目及要求题目:交换机与路由器互连综合设计要求:(1)按图 1 的要求连线:路由器之间的 V.35 线已连接好。必须连接的双绞线有:两台 PC 机与
2、网络设备的连线,交换机之间的连线,交换机 S3760 与路由器 RA 之间的连线。(2)配置交换机和路由器: S3750 中的端口使用 no switchport 命令升级为三层接口。 设计并配置交换机 S3760 和路由器 RA、RB 各接口的地址。 局域网中三层交换机 S3760、路由器 RA、路由器 RB 之间利用 RIP 动态路由协议实现网络互通。(3)配置 PC1 主机和 PC2 主机的 IP 地址和默认网关地址。(4)Ping 结果:在 pc1 中可以 ping 通全网中其他所有地址。(5)全网只使用网段 200.16.2.0/24 的地址。3、网络拓扑结构200.16.211/2
3、6s1/2RASwitchAs1/2f 0/1S3750f 0/24f 0/23SwitchB200.16.2.130/26200.16.2.131/26200.16.2.67/26 200.16.2.194/26200.16.2.200/26200.16.2.66/26200.16.2.1/26f 0/21f1/0PC1PC2f 0/24f 0/1图 1 课程设计拓扑图 将网段 200.16.2.0/24 分为四个子网为: 子网掩码:255.255.255.192200.16.2.1200.16.2.62 网络号:200.16.2.0200.16.2.65200.16.2.127 网络号:2
4、00.16.2.64200.16.2.129200.16.2.191 网络号:200.16.2.128200.16.2.193200.16.2.255 网络号:200.16.2.1924、设备配置清单:SwitchA:SwitchAenable 14Password:f1/0RBSwitchA#configure terminalEnter configuration commands, one per line. End with CNTL/Z.SwitchA(config)#interface FastEthernet0/24SwitchA(config-if)# switchport m
5、ode trunkSwitchA(config-if)#exitSwitchB:SwitchBenable 14Password:SwitchB#configure terminalEnter configuration commands, one per line. End with CNTL/Z.SwitchB(config)#interface FastEthernet0/24SwitchB(config-if)# switchport mode trunkSwitchB(config-if)#exitRA:RAenable 14Password:RA#configure termina
6、lEnter configuration commands, one per line. End with CNTL/Z.RA(config)#interface Serial 1/2RA(config-if)#ip address 200.16.2.130 255.255.255.192RA(config-if)#no shutdownRA(config-if)#clock rate 64000RA(config-if)#exitRA(config)#interface FastEthernet 1/0RA(config-if)#ip address 200.16.2.67 255.255.
7、255.192RA(config-if)#no shutdownRA(config-if)#exitRA(config)#router ripRA(config-router)#network 200.16.2.0RA(config-router)#version 2RA(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleRA#show ip interface brief Interface IP-Address OK? Method Status Protocol Serial 1/2 200.16.2
8、.66 YES manual up upserial 1/3 no address YES DOWN FastEthernet 1/0 200.16.2.1 YES manual up up FastEthernet 1/1 no address YES DOWN RA#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA ex
9、ternal 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 - periodic downloaded static routeGateway of last resort is not
10、 setC 200.16.2.0 is directly connected, FastEthernet 1/0C 200.16.2.64 is directly connected, Serial 1/2R 200.16.2.128 120/1 via 200.16.2.67, 00:00:12, Serial 1/2R 200.16.2.192 120/2 via 200.16.2.67, 00:00:12, Serial 1/2RB:RBenable 14Password:RB#configure terminalEnter configuration commands, one per
11、 line. End with CNTL/Z.RB(config)#interface Serial 1/2RB(config-if)#ip address 200.16.2.131 255.255.255.192RB(config-if)#no shutdownRB(config-if)#clock rate 64000RB(config-if)#exitRB(config)#interface FastEthernet 1/0RB(config-if)#ip address 200.16.2.194 255.255.255.192RB(config-if)#no shutdownRB(co
12、nfig-if)#exitRB(config)#router ripRB(config-router)#network 200.16.2.0RB(config-router)#version 2RB(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleRB#show ip interface brief Interface IP-Address(Pri) OK? Status serial 1/2 200.16.2.131/26 YES UP serial 1/3 no address YES DOWN Fa
13、stEthernet 1/0 200.16.2.194/26 YES UP FastEthernet 1/1 no address YES DOWN RB#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF ext
14、ernal 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 - periodic downloaded static routeGateway of last resort is not set C 200.16.2.128 is directly connected, Serial 1/2C 200
15、.16.2.192 is directly connected, FastEthernet 0/1R 200.16.2.0 120/2 via 200.16.2.130, 00:00:17, Serial 1/2R 200.16.2.64 120/1 via 200.16.2.130, 00:00:17, Serial 1/2S3760:S3760enable 14Password:s3760#configure terminalEnter configuration commands, one per line. End with CNTL/Z.s3760(config)#interface
16、 fastEthernet 0/21s3760(config-if)#no switchport s3760(config-if)#ip address 200.16.2.66 255.255.255.192s3760(config-if)#no shutdown s3760(config-if)#exits3760(config)#interface fastEthernet 0/23s3760(config-if)#no switchport s3760(config-if)#ip address 200.16.2.1 255.255.255.192 s3760(config-if)#no
17、 shutdowns3760(config-if)#exits3760(config)#router rips3760(config-router)#network 200.16.2.0% There is a same network configurations3760(config-router)#version 2s3760(config-router)#endJun 21 10:40:54 %SYS-5-CONFIG_I: Configured from console by consoles3760#show ip interface brief Interface IP-Addr
18、ess OK? Method Status ProtocolFastEthernet0/23 200.16.2.1 YES manual up up FastEthernet1/21 200.16.2.66 YES manual up ups3760#show ip routeCodes: C - connected, S - static, R - RIP B - BGPO - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external t
19、ype 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate defaultGateway of last resort is no setC 200.16.2.0/26 is directly connected, FastEthernet 0/23C 200.16.2.1/32 is local host. C 200.16.2.64/26 is directly connect
20、ed, FastEthernet 0/21C 200.16.2.66/32 is local host. R 200.16.2.128/26 120/1 via 200.16.2.67, 00:00:22, FastEtherPing 的结果:C:Documents and SettingsAdministratorping 200.16.2.200Pinging 200.16.2.200 with 32 bytes of data:Reply from 200.16.2.200: bytes=32 time=21ms TTL=125Reply from 200.16.2.200: bytes
21、=32 time=21ms TTL=125Reply from 200.16.2.200: bytes=32 time=20ms TTL=125Reply from 200.16.2.200: bytes=32 time=20ms TTL=125Ping statistics for 200.16.2.200:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 20ms, Maximum = 21ms, Average = 20ms
22、C:Documents and SettingsAdministratorping 200.16.2.1Pinging 200.16.2.1 with 32 bytes of data:Reply from 200.16.2.1: bytes=32 time=1ms TTL=64Reply from 200.16.2.1: bytes=32 timeping 200.16.2.66Pinging 200.16.2.66 with 32 bytes of data:Reply from 200.16.2.66: bytes=32 timeping 200.16.2.67Pinging 200.1
23、6.2.67 with 32 bytes of data:Reply from 200.16.2.67: bytes=32 timeping 200.16.2.130Pinging 200.16.2.130 with 32 bytes of data:Reply from 200.16.2.130: bytes=32 timeping 200.16.2.131Pinging 200.16.2.131 with 32 bytes of data:Reply from 200.16.2.131: bytes=32 time=20ms TTL=61Reply from 200.16.2.131: b
24、ytes=32 time=20ms TTL=61Reply from 200.16.2.131: bytes=32 time=20ms TTL=61Reply from 200.16.2.131: bytes=32 time=20ms TTL=61Ping statistics for 200.16.2.131:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 20ms, Maximum = 20ms, Average = 20m
25、sC:Documents and SettingsAdministratorping 200.16.2.194Pinging 200.16.2.194 with 32 bytes of data:Reply from 200.16.2.194: bytes=32 time=20ms TTL=61Reply from 200.16.2.194: bytes=32 time=20ms TTL=61Reply from 200.16.2.194: bytes=32 time=21ms TTL=61Reply from 200.16.2.194: bytes=32 time=20ms TTL=61Ping statistics for 200.16.2.194:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 20ms, Maximum = 21ms, Average = 20ms教研室审查意见:教研室主任签字: 年 月 日 院(系、部、中心)意见:主管领导签字: 年 月 日