1、网络课程设计小型网络设计小型网络设计1 课程设计的目的通过对网络的具体规划和组建,掌握网络互连设备的使用及工作原理;掌握IP地址的配置及数据传输过程和路由的选择。具体求达到:a 增加对计算机网络软、硬件组成的感性认识初步学会典型局域网络的操作、使用技能。b加深理解网络分层结构概念尤其是对会话层、表示层、应用层等高层协议软件的通信功能、实现方法,掌握网络互连设备的使用及工作原理,掌握IP地址的配置。c 初步掌握局域网的设计技术和技巧培养开发网络应用的独立工作能力。2 设计方案2.1 设计内容使用模拟仿真软件,构建一个小型网络。网络规模如下:(1)终端用户包括:1号楼有48个校园网普通用户;2号楼
2、有1个包含24个多媒体用户的电子阅览室;3号楼有1个包含48个用户的多媒体教室(性能要求高于电子阅览室)。4号楼是网络中心。支持远程教学,可以接入互联网,具有广域网访问的安全机制和网络管理功能。(2)各楼之间的距离为500米。2.2 设计思路设计的是一个小型校园网络,为便于集中控制和管理,选择了星状拓扑结构,用到了路由器、交换机、集线器,等网络设备。校园网建设应在教师备课教学、学生学习、教务管理、行政管理、图书资料管理、资源信息、对外交流等方面发挥辅助、支持功能。设计4号楼作为网络中心,连接1、2、3号楼的路由器,并通过与广域网的互联,实现校际间的信息共享及与Internet的连接。2.3 具
3、体设计2.3.1 拓扑结构设计1号楼、2号楼、3号楼、4号楼个配置一个路由器。1号楼配置2个交换机,每个交换机与2台PC相连;2号楼配置1个交换机,与2台PC相连;3号楼配置2个交换机,分别与2台PC相连;4号楼与云相连,并且配置1个交换机,交换机与1台服务器。4号楼是网络中心,1号楼、3号楼的路由器与4号楼的相连,2号楼与3号楼相连。拓扑结构图如图1所示: 图1 拓扑结构2.3.2 路由器配置路由器的配置代码为:4号楼配置RouterenableRouter#configure terminalEnter configuration commands, one per line. End w
4、ith CNTL/Z.Router(config)#interface Serial2/0Router(config-if)#ip address 192.168.10.1 255.255.255.0Router(config-if)#%LINK-5-CHANGED: Interface Serial2/0, changed state to upno shutdownRouter(config-if)#clock rate 9600Router(config-if)#Router(config-if)#exitRouter(config)#interface Serial3/0Router(
5、config-if)#ip address 192.168.20.1 255.255.255.0Router(config-if)#no shutdownRouter(config-if)#clock rate 9600Router(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#ip address 192.168.30.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface
6、 FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet4/0Router(config-if)#ip address 192.168.40.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED
7、: Interface FastEthernet4/0, changed state to downRouter(config-if)#%LINK-5-CHANGED: Interface Serial3/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial3/0, changed state to up%LINK-5-CHANGED: Interface FastEthernet4/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol
8、 on Interface FastEthernet4/0, changed state to upRouter(config-if)#exitRouter(config)#router ripRouter(config-router)#Router(config-router)#exitRouter(config)#interface Serial2/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.10.0Router(config-
9、router)#Router(config-router)#exitRouter(config)#interface Serial3/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.20.0Router(config-router)#Router(config-router)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#Router(config-if)#e
10、xitRouter(config)#router ripRouter(config-router)#network 192.168.30.0Router(config-router)#Router(config-router)#exitRouter(config)#interface FastEthernet4/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.40.0Router(config-router)#1号楼配置Routeren
11、ableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface Serial2/0Router(config-if)#ip address 192.168.20.2 255.255.255.0Router(config-if)#%LINK-5-CHANGED: Interface Serial2/0, changed state to upno shutdownRouter(config-if)#clock rate 9600Rou
12、ter(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upRouter(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#ip address 192.168.50.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to
13、up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet1/0Router(config-if)#ip address 192.168.51.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet1/0, change
14、d state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to upRouter(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.50.0Router(config-ro
15、uter)#Router(config-router)#exitRouter(config)#interface FastEthernet1/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.51.0Router(config-router)#Router(config-router)#exitRouter(config)#interface Serial2/0Router(config-if)#Router(config-if)#exi
16、tRouter(config)#router ripRouter(config-router)#network 192.168.20.0Router(config-router)#2号楼配置RouterenableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface Serial2/0Router(config-if)#ip address 192.168.60.2 255.255.255.0Router(config-if)#%
17、LINK-5-CHANGED: Interface Serial2/0, changed state to upno shutdownRouter(config-if)#clock rate 9600Router(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upRouter(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#ip address 192.168.70.1
18、255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#Router(config-if)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#Router(config
19、-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.70.0Router(config-router)#Router(config-router)#exitRouter(config)#interface Serial2/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.60.0Router(config-router)#3号楼配置Routeren
20、ableRouter#configure terminalEnter configuration commands, one per line. End with CNTL/Z.Router(config)#interface FastEthernet4/0Router(config-if)#ip address 192.168.40.2 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet4/0, changed state to up%LINEPROTO-5-UPDOWN: Lin
21、e protocol on Interface FastEthernet4/0, changed state to upRouter(config-if)#Router(config-if)#exitRouter(config)#interface Serial2/0Router(config-if)#ip address 192.168.60.1 255.255.255.0Router(config-if)#clock rate 9600Router(config-if)#no shutdownRouter(config-if)#Router(config-if)#exitRouter(co
22、nfig)#interface FastEthernet0/0Router(config-if)#ip address 192.168.61.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to upRouter(config-if)#Router(config-if)#ex
23、itRouter(config)#interface FastEthernet1/0Router(config-if)#ip address 192.168.62.1 255.255.255.0Router(config-if)#no shutdown%LINK-5-CHANGED: Interface FastEthernet1/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet1/0, changed state to upRouter(config-if)#%LINK-5-C
24、HANGED: Interface Serial2/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial2/0, changed state to upRouter(config-if)#exitRouter(config)#interface FastEthernet4/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.40.0Route
25、r(config-router)#Router(config-router)#exitRouter(config)#interface Serial2/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.60.0Router(config-router)#Router(config-router)#exitRouter(config)#interface FastEthernet0/0Router(config-if)#Router(con
26、fig-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.61.0Router(config-router)#Router(config-router)#exitRouter(config)#interface FastEthernet1/0Router(config-if)#Router(config-if)#exitRouter(config)#router ripRouter(config-router)#network 192.168.62.0Router(config-router)#3 设计
27、结果各设备配置完成后,PC机之间可以实现互相通信,所要求的PC间各通信功能均可正确演示,如图2所示。调试过程中,如果出现数据包发送失败的状况,应及时检查网络的各个连接设备是否都配置正确的IP地址,开关是否都打开,设备之间是否都连接通畅,时钟是否配置,线与线之间的接口是否都是呈绿色的点状,如有红色点显示,那么就证明还有遗漏的连接之间没有通,应重点检查,全方面的再检查一次。 图2 PC间各通信功能正确演示图4 心得体会通过校园网将计算机应用于教学的各个环节,从而师生可以通过校园网络进行备课、教学、查阅资料、多媒体教学软件开发与演示、师生之间互相通信、浏览因特网等,所以它对于提高教学质量,推动教育现
28、代化起着不可估量的作用。本次课程设计方案中确定了校园网的拓扑方案,完成了对设备的选型,基本确定了各类硬件和软件的配置。在课程设计过程中不免遇到各种各样的困难,通过与同学间的探讨,查阅资料解决困难,增强了自己的自学能力。这次课程设计使我锻炼自己的动手能力,充分利用自己所学的知识来完成这次的课程设计。巩固了在课堂上学到的理论知识,在实践中充分利用。知道了什么叫做付出才有回报.这次课程设计给了我一个锻炼自己,强化专业知识的机会,通过这次课程设计,我相信,只要认真学习,多借鉴别人的经验,多思考,多实践,最后就能成功了。 参考文献1 胡道元.网络设计师教程M.北京:清华大学出版社,2001.5:36-712 Douglas E. Comer. Computer Networks and Internets (Third Edition).北京:清华大学出版社,2002:98-118.3 周欣.数据通信与网络技术M.北京:清华大学出版社,2004:161-184.4 谢希仁.计算机网络教程M.北京:人民邮电出版社,2002:112-151.5 张浩军.计算机网络实训教程M.北京:高等教育出版社,2001:202-215.