1. 课程设计应达到的目的
本课程设计的目的是使得学生在学习《计算机网络》这门课程的基础上,进一步理解计算机网络的基本理论,将理论知识和实践结合起来,提高学生的网络应用水平。
课程设计是教学中很重要的一项实践环节,它可以帮助学生理解课堂教学中的内容,对提高学生的实践认识和实际动手能力都有很重要的实际意义。学生应按照课程设计的要求,结合所学的理论知识,查找相关资料,完成好本次课程设计任务,同时提高网络应用能力,为后续课程打好基础。
2.课程设计题目及要求
题目:交换机与路由器互连综合设计
要求:
(1)按图1的要求连线:
路由器之间的V.35线已连接好。必须连接的双绞线有:两台PC机与网络设备的连线,交换机之间的连线,交换机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.2.130/26
s1/2
s1/2
f1/0 f 0/21
RA
200.16.2.131/26
RB
200.16.2.67/26 200.16.2.66/26
S3750
f 0/23 f 0/24
SwitchA
f 0/1
f1/0
200.16.2.194/26 f 0/24 SwitchB
200.16.2.1/26
f 0/1
PC2
200.16.2.200/26
PC1 200.16.2..11/26
图
1 课程设计拓扑图
将网段 200.16.2.0/24 分为四个子网为: 子网掩码:255.255.255.192
200.16.2.1200.16.2.62 网络号:200.16.2.0 200.16.2.65200.16.2.127 网络号:200.16.2.64 200.16.2.129200.16.2.191 网络号:200.16.2.128 200.16.2.193200.16.2.255 网络号:200.16.2.192
4、设备配置清单:
SwitchA:
SwitchA>enable 14 Password:
SwitchA#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. SwitchA(config)#interface FastEthernet0/24 SwitchA(config-if)# switchport mode trunk SwitchA(config-if)#exit
SwitchB:
SwitchB>enable 14 Password:
SwitchB#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. SwitchB(config)#interface FastEthernet0/24 SwitchB(config-if)# switchport mode trunk SwitchB(config-if)#exit
RA:
RA>enable 14 Password:
RA#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. RA(config)#interface Serial 1/2
RA(config-if)#ip address 200.16.2.130 255.255.255.192 RA(config-if)#no shutdown RA(config-if)#clock rate 64000 RA(config-if)#exit
RA(config)#interface FastEthernet 1/0
RA(config-if)#ip address 200.16.2.67 255.255.255.192 RA(config-if)#no shutdown RA(config-if)#exit RA(config)#router rip
RA(config-router)#network 200.16.2.0 RA(config-router)#version 2 RA(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
RA#show ip interface brief
Interface IP-Address OK? Method Status Protocol Serial 1/2 200.16.2.66 YES manual up up
serial 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 route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR P - periodic downloaded static route
Gateway of last resort is not set
C 200.16.2.0 is directly connected, FastEthernet 1/0 C 200.16.2.64 is directly connected, Serial 1/2
R 200.16.2.128 [120/1] via 200.16.2.67, 00:00:12, Serial 1/2 R 200.16.2.192 [120/2] via 200.16.2.67, 00:00:12, Serial 1/2
RB:
RB>enable 14 Password:
RB#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. RB(config)#interface Serial 1/2
RB(config-if)#ip address 200.16.2.131 255.255.255.192 RB(config-if)#no shutdown RB(config-if)#clock rate 64000 RB(config-if)#exit
RB(config)#interface FastEthernet 1/0
RB(config-if)#ip address 200.16.2.194 255.255.255.192 RB(config-if)#no shutdown RB(config-if)#exit RB(config)#router rip
RB(config-router)#network 200.16.2.0 RB(config-router)#version 2 RB(config-router)#end
%SYS-5-CONFIG_I: Configured from console by console
RB#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
FastEthernet 1/0 200.16.2.194/26 YES UP FastEthernet 1/1 no address YES DOWN
RB#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR P - periodic downloaded static route
Gateway of last resort is not set
C 200.16.2.128 is directly connected, Serial 1/2 C 200.16.2.192 is directly connected, FastEthernet 0/1 R 200.16.2.0 [120/2] via 200.16.2.130, 00:00:17, Serial 1/2 R 200.16.2.64 [120/1] via 200.16.2.130, 00:00:17, Serial 1/2
S3760:
S3760>enable 14 Password:
s3760#configure terminal
Enter configuration commands, one per line. End with CNTL/Z. s3760(config)#interface fastEthernet 0/21 s3760(config-if)#no switchport
s3760(config-if)#ip address 200.16.2.66 255.255.255.192 s3760(config-if)#no shutdown s3760(config-if)#exit
s3760(config)#interface fastEthernet 0/23 s3760(config-if)#no switchport
s3760(config-if)#ip address 200.16.2.1 255.255.255.192 s3760(config-if)#no shutdown s3760(config-if)#exit s3760(config)#router rip
s3760(config-router)#network 200.16.2.0
% There is a same network configuration s3760(config-router)#version 2 s3760(config-router)#end
Jun 21 10:40:54 %SYS-5-CONFIG_I: Configured from console by console s3760#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/23 200.16.2.1 YES manual up up FastEthernet1/21 200.16.2.66 YES manual up up
s3760#show ip route
Codes: C - connected, S - static, R - RIP B - BGP O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default
Gateway of last resort is no set
C 200.16.2.0/26 is directly connected, FastEthernet 0/23 C 200.16.2.1/32 is local host.
C 200.16.2.64/26 is directly connected, FastEthernet 0/21 C 200.16.2.66/32 is local host.
R 200.16.2.128/26 [120/1] via 200.16.2.67, 00:00:22, FastEther
Ping的结果:
C:\\Documents and Settings\\Administrator>ping 200.16.2.200 Pinging 200.16.2.200 with 32 bytes of data:
Reply from 200.16.2.200: bytes=32 time=21ms TTL=125 Reply from 200.16.2.200: bytes=32 time=21ms TTL=125 Reply from 200.16.2.200: bytes=32 time=20ms TTL=125 Reply from 200.16.2.200: bytes=32 time=20ms TTL=125
Ping 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
C:\\Documents and Settings\\Administrator>ping 200.16.2.1 Pinging 200.16.2.1 with 32 bytes of data:
Reply from 200.16.2.1: bytes=32 time=1ms TTL=64 Reply from 200.16.2.1: bytes=32 time<1ms TTL=64 Reply from 200.16.2.1: bytes=32 time<1ms TTL=64 Reply from 200.16.2.1: bytes=32 time<1ms TTL=64
Ping statistics for 200.16.2.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 1ms, Average = 0ms
C:\\Documents and Settings\\Administrator>ping 200.16.2.66
Pinging 200.16.2.66 with 32 bytes of data:
Reply from 200.16.2.66: bytes=32 time<1ms TTL=64 Reply from 200.16.2.66: bytes=32 time<1ms TTL=64 Reply from 200.16.2.66: bytes=32 time<1ms TTL=64 Reply from 200.16.2.66: bytes=32 time<1ms TTL=64
Ping statistics for 200.16.2.66:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\\Documents and Settings\\Administrator>ping 200.16.2.67
Pinging 200.16.2.67 with 32 bytes of data:
Reply from 200.16.2.67: bytes=32 time<1ms TTL=62 Reply from 200.16.2.67: bytes=32 time<1ms TTL=62 Reply from 200.16.2.67: bytes=32 time<1ms TTL=62 Reply from 200.16.2.67: bytes=32 time<1ms TTL=62
Ping statistics for 200.16.2.67:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\\Documents and Settings\\Administrator>ping 200.16.2.130
Pinging 200.16.2.130 with 32 bytes of data:
Reply from 200.16.2.130: bytes=32 time<1ms TTL=62 Reply from 200.16.2.130: bytes=32 time<1ms TTL=62 Reply from 200.16.2.130: bytes=32 time<1ms TTL=62 Reply from 200.16.2.130: bytes=32 time<1ms TTL=62
Ping statistics for 200.16.2.130:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms
C:\\Documents and Settings\\Administrator>ping 200.16.2.131
Pinging 200.16.2.131 with 32 bytes of data:
Reply from 200.16.2.131: bytes=32 time=20ms TTL=61 Reply from 200.16.2.131: bytes=32 time=20ms TTL=61 Reply from 200.16.2.131: bytes=32 time=20ms TTL=61 Reply from 200.16.2.131: bytes=32 time=20ms TTL=61
Ping 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 = 20ms
C:\\Documents and Settings\\Administrator>ping 200.16.2.194
Pinging 200.16.2.194 with 32 bytes of data:
Reply from 200.16.2.194: bytes=32 time=20ms TTL=61 Reply from 200.16.2.194: bytes=32 time=20ms TTL=61 Reply from 200.16.2.194: bytes=32 time=21ms TTL=61 Reply from 200.16.2.194: bytes=32 time=20ms TTL=61
Ping 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
教研室审查意见:
教研室主任签字:
年 月 日
院(系、部、中心)意见:
主管领导签字:
年 月 日
因篇幅问题不能全部显示,请点此查看更多更全内容