网络系统工程课程设计报告.doc

上传人:文库蛋蛋多 文档编号:2401255 上传时间:2023-02-17 格式:DOC 页数:16 大小:133KB
返回 下载 相关 举报
网络系统工程课程设计报告.doc_第1页
第1页 / 共16页
网络系统工程课程设计报告.doc_第2页
第2页 / 共16页
网络系统工程课程设计报告.doc_第3页
第3页 / 共16页
网络系统工程课程设计报告.doc_第4页
第4页 / 共16页
网络系统工程课程设计报告.doc_第5页
第5页 / 共16页
点击查看更多>>
资源描述

《网络系统工程课程设计报告.doc》由会员分享,可在线阅读,更多相关《网络系统工程课程设计报告.doc(16页珍藏版)》请在三一办公上搜索。

1、课程设计报告( 20-20年度第 学期)名 称:网络系统工程课程设计 题 目: 网络综合实验 院 系: 计算机系 班 级: 学 号: 学生姓名: 指导教师: 设计周数: 1 成 绩: 日期:年 月 日计算机网络课程设计任 务 书一、 目的与要求1目的将网络系统工程基本原理及基本概念用于实际,将书本上抽象的概念与具体的实现技术结合起来,使学习深化,培养学生对基本原理的应用能力以及实际动手能力。2要求 独立完成课程设计题目以及课程设计报告。报告应包括设计思路、网络拓扑图、开发中遇到的问题以及解决方法。二、 主要内容1. 路由器和交换机认识性实验 熟悉路由器和交换机并掌握路由器和交换机的基本配置方法

2、和配置命令。掌握路由器的基本配置方法和命令。利用主机的超级终端,通过tcp连接或者与路由器或交换机的console控制口直接连接的方式对路由器和交换机进行配置。2. 路由器协议配置熟悉掌握主机的路由配置;熟悉掌握路由器的静态、动态路由协议的原理和配置。通过实验,进一步了解路由器的工作过程,了解静态路由的优缺点及适用范围;掌握配置静态路由实现网络互通的方法,并能够通过查看路由表了解数据包在路由器中的转发过程。给出比较简单的网络拓扑结构,能够选择并配置合适的动态路由协议,实现网络互联。掌握RIP协议的配置方法,初步了解OSPF路由协议的配置命令。3. 虚拟局域网划分用Cisco Catalyst

3、2948和2924交换机实现VLAN的划分。设计VLAN的拓扑结构。根据拓扑结构连接网络设备。用基于端口的方式定义VLAN,并对交换机进行相应的设置。VLAN将广播域限制在本VLAN之内,验证这一点。4. 路由器上广域网协议配置掌握路由器以及交换机的基本连接、工作原理和HDLC、X.25以及FrameRelay三种广域网协议的配置方法。分别设计出HDLC、X.25以及FrameRelay的网络连接结构,然后进行配置,最后通过测试连通性来判断配置是否正确。 5帧的捕获与分析通过设计捕获和分析以太网数据帧程序,初步掌握网络监听的实现技术,加深对链路层MAC子层协议的理解。可自行设计程序,亦可用现有

4、软件进行试验。 6交换机中继技术配置通过对交换机中继技术实验,对课本所学中继技术有更深的了解和掌握,掌握交换机中继技术。(注:1,2、3必做,4、5、6选作)三、 进度计划序号设计内容完成时间备注1互联网设备认知第一天2路由器协议配置实验第二天3虚拟局域网划分第三天4交换机中继技术配置第四天5验收写报告第五天四、 设计成果要求1 网络配置拓扑图及配置命令,配置测试成功;2 程序功能完善。2 课程设计报告。五、 考核方式考勤、验收和实验报告。.学生姓名:指导教师: 2011年6月13日一. 实验目的熟悉路由器和交换机并掌握路由器和交换机的基本配置方法和配置命令。熟悉掌握主机的路由配置; 熟悉掌握

5、路由器的静态、动态路由协议的原理和配置掌握交换LAN技术和共享LAN技术不同之处。理解什么是冲突域,什么是广播域。掌握什么是VLAN?其优点表现在哪些方面?(1) 常用的划分VLAN的方法有哪些?(2) VLAN之间的通信方式由那些?(3) 掌握路由器以及交换机的基本连接、工作原理和HDLC、X.25以及FrameRelay三种广域网协议的配置方法。实验一:交换机的认识Switchen /从用户模式进入到特权模式Switch#conf t/从用户模式进入到特权模式Enter configuration commands, one per line. End with CNTL/Z.Switch

6、(config)#hosSwitch(config)#hostname S3 /配置交换机的名字S3(config)#int f0/1/进入接口模式S3(config-if)#desS3(config-if)#description this is the first port /端口描述S3(config-if)#exit/退出接口模式S3(config)#line conS3(config)#line console 0/进入console线路模式S3(config-line)#passS3(config-line)#password 123/给console口配置密码S3(config-

7、line)#login/使密码生效S3(config-line)#exit/退出线路模式S3(config)#enS3(config)#enaS3(config)#enable pasS3(config)#enable password cisco /从用户模式进入特权模式的密码S3(config)#line vty 0 15/进入远程登陆线路模式S3(config-line)#pasS3(config-line)#password cisco /配置远程登陆密码S3(config-line)#login/使密码生效,允许远程登陆(必须要的)S3(config-line)#exitS3(con

8、fig)#int vlan 1 /给vlan1起管理ip地址,并把接口打开 做远程配置用的S3(config-if)#ip add 192.168.1.254 255.255.255.0S3(config-if)#no sh%LINK-5-CHANGED: Interface Vlan1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to upS3(config)#end/退到特权模式%SYS-5-CONFIG_I: Configured from console

9、 by consoleS3#copy run sta/保存配置命令S3#copy run startup-config Destination filename startup-config? Building configuration.OKS3#配置交换机允许远程登录后,可以直接在计算机上远程登录到交换机S3,使用telnet命令,因为已经给S3的vlan1取了一个管理ip地址192.168.1.254,故可直接用telnet 192.168.1.254来登录S3.结果如下所示:实验二:配置静态路由和动态路由原始配置过程如下所示(选择Router0作为示例,R1和R2配置命令省略):Rou

10、terenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hosRouter(config)#hostname R0R0(config)#int f0/0R0(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed stat

11、e to upR0(config-if)#ip add 192.168.1.254 255.255.255.0R0(config-if)#int f0/1 /配置R0的各个端口IPR0(config-if)#ip add 192.168.2.1 255.255.255.0R0(config-if)#no sh%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to upR0(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, cha

12、nged state to upR0(config-if)#exit/使用OSPF动态路由协议,该协议属于有类协议, 宣告网段如下:R0(config)#route ospf 1/给ospf取一个进程号R0(config-router)#net 192.168.2.0 0.0.0.255 area 0 /明确ospf属于哪个区域R0(config-router)#net 192.168.1.0 0.0.0.255 area 0R0(config-router)#end%SYS-5-CONFIG_I: Configured from console by consoleR0#show ip ro

13、ute/显示路由信息,动态路由配置结果: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-

14、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 routeGateway of last resort is not setC 192.168.1.0/24 is directly connected, FastEthernet0/0/”C”表示与R0直接C 192.168.2.0/24 is directly connected, FastEthernet0

15、/1 /相连的网段O 192.168.3.0/24 110/2 via 192.168.2.2, 00:00:18, FastEthernet0/1 /已经学到了其他O 192.168.4.0/24 110/3 via 192.168.2.2, 00:00:18, FastEthernet0/1 /非直接相连的网段R0#conf tEnter configuration commands, one per line. End with CNTL/Z.R0(config)#ip route 192.168.4.0 255.255.255.0 192.168.2.2 /配置完动态路由的基础上配置一

16、条静态路由,到达192.168.4.0网段的路径是下一跳地址是192.168.2.2。因为ospf的管理距离是110,而静态路由的管理距离是1,当有动态路由和静态路由两路径同时存在时,会优先取决于管理距离小的那条路径。R0(config)#end%SYS-5-CONFIG_I: Configured from console by consoleR0#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - O

17、SPF, 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 downl

18、oaded static routeGateway of last resort is not set/由下面结果可知,当到达同一网段有动态和静态两条路径时,显示的是静态路由。C 192.168.1.0/24 is directly connected, FastEthernet0/0C 192.168.2.0/24 is directly connected, FastEthernet0/1O 192.168.3.0/24 110/2 via 192.168.2.2, 00:02:33, FastEthernet0/1S 192.168.4.0/24 1/0 via 192.168.2.2R

19、0#同理,对R1和R2的ospf的配置跟R0的一样,当网路中所有的路由器都宣告自己的相邻网段后,通过互相学习和转发,经过一定时间每个路由器都能知道本网络中的链路结构,从而计算出最佳路径构成路由表,从而实现互相通信的效果。与rip不同的是,ospf维护的是邻居表,拓扑表和路由表这三张表,明确网络的链路状态,无路由环路,而rip只知道通过某路由器能到达某网段,不知道网络全局情况;rip采用跳数作为度量值(最大条数为16),ospf采用cost为度量值;rip是无类协议,ip地址有默认的掩码,而ospf可以设置ip的掩码个数,是有类协议。实验三:划分vlan交换机有效的解决了冲突域的问题,但是没有解

20、决广播域的问题,当数据表在交换机Mac表中找不到目标地址时就会向与交换机相连的主机广播发送。为了解决广播问题,引入了虚拟局域网vlan,广播域之局限在某个vlan中。即使两台主机连在同一台交换机,只要这两台主机不属于同一个vlan,它们之间也无法直接通信,只能通过三层路由器才能进行通信。(1)路由器的配置:本实验使用了单笔路由,将路由端口F0/0分出两个子接口f0/0.1,f0/0.2,分别赋予ip地址,两子接口分别与vlan1和vlan2绑定(本实验只使用了vlan1,2两虚拟局域网)。 具体配置过程如下所示:RouterenRouter#conf tEnter configuration

21、commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#no sh%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)#int f0/0.1%LINK-5-CHANGED: Interface FastEthernet

22、0/0.1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.1, changed state to upRouter(config-subif)#enRouter(config-subif)#encapsulation dRouter(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip add 192.168.1.254 255.255.255.0Router(config-subif)#exitRouter(

23、config)#int f0/0.2Router(config-subif)#%LINK-5-CHANGED: Interface FastEthernet0/0.2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0.2, changed state to upRouter(config-subif)#enRouter(config-subif)#encapsulation d 2 / 封装协议为dot1Q,该子接口属于vlan2Router(config-subif)#ip

24、add 192.168.2.254 /该ip地址 作为vlan2的网关% Incomplete command.Router(config-subif)#ip add 192.168.2.254 255.255.255.0Router(config-subif)#exitRouter(config)#int f0/0Router(config-if)#no ip addRouter(config-if)#endRouter#%SYS-5-CONFIG_I: Configured from console by consoleRouter#show ip int br /查看端口信息Interf

25、ace IP-Address OK? Method Status Protocol FastEthernet0/0 unassigned YES unset up up FastEthernet0/0.1 192.168.1.254 YES manual up up FastEthernet0/0.2 192.168.2.254 YES manual up up FastEthernet0/1 unassigned YES unset administratively down down Vlan1 unassigned YES unset administratively down down

26、(2)交换机的配置由于使用了vlan2,首先要创建vlan2,交换机和路由器之间的连线配置成trunk模式。SwitchenSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#no shSwitch(config-if)#swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode tSwitch(config-if)#switchport mode

27、trunk /不同vlan通过同一条链路,使用trunk协议,数据通过trunk时有不同封装内容,来决定是哪个vlan的数据。Switch(config-if)#exitSwitch(config)#vlan 2Switch(config-vlan)#eixt % Invalid input detected at marker.Switch(config-vlan)#exitSwitch(config)#int f0/1Switch(config-if)#sw m tSwitch(config-if)#exitSwitch(config)#int f0/2Switch(config-if)#

28、swSwitch(config-if)#switchport mSwitch(config-if)#switchport mode acSwitch(config-if)#switchport mode access /将端口设置成access模式Switch(config-if)#sw acSwitch(config-if)#sw access vlan 1 /按端口来区分vlan。将该端口分给vlan1。Switch(config-if)#int f0/3Switch(config-if)#sw m acSwitch(config-if)#sw ac vlan 2Switch(config

29、-if)#exitSwitch(config)#end /以下可以看出哪些端口属于vlan1,哪些属于其他的vlan%SYS-5-CONFIG_I: Configured from console by consoleSwitch#show vlanVLAN Name Status Ports- - - -1 default active Fa0/2, Fa0/4, Fa0/5, Fa0/6 Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15, Fa0/16, Fa0/17, Fa0/18 Fa0/19, Fa0/

30、20, Fa0/21, Fa0/22 Fa0/23, Fa0/24, Gig1/1, Gig1/22 VLAN0002 active Fa0/3/f0/3属于vlan21002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 ene

31、t 100001 1500 - - - - - 0 02 enet 100002 1500 - - - - - 0 01002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs-Switch#虽然两台计算机不属于同一个vlan,但是它们能通过路由器来进行通信,如下结果:当我们把交换机的f0/1关闭以后,虽然两计算机连在同一交

32、换机,但它们就不能相互ping通了。由此可见vlan能解决了广播域的问题。实验四:帧中继帧中继属于广域网技术,是面向连接的二层传输协议,是比专线跟实惠更普遍的广域网通信技术。由于实验室的设备有限,此次帧中继实验的拓扑图如下:用Router1模拟成帧中继交换机来作为帧中继网云,我们在R2和R3之间建立一条虚电路使它们连接,我们在R2的S0/0端口上指定一个标识102,在R3的s0/0给一标识201,这对标识来确定了一条虚电路pvc配置过程如下:(1) 将R1配置成帧中继交换机RouterenRouter#conf t/此处以下十段命令的作用是优化路由器,Enter configuration c

33、ommands, one per line. End with CNTL/Z.Router(config)#line console 0 Router(config-line)#logg syn /打开日志同步,从而不在冲突配置命令Router(config-line)#no exec-timeout /关闭console口回话超时退出Router(config-line)#exitRouter(config)#no ip domain-lookup /关闭域名查询功能,在config模式下配置Router(config)#alias exec a show ip int brief /为端口

34、信息查询语句起别名Router(config)#alias exec b show ip route /起别名Router(config)#alias exec c show run/起别名Router(config)#hostname R1R1(config)#frR1(config)#frame-relay swR1(config)#frame-relay switching /把该路由器配置成帧中继交换机R1(config)#int s0/0R1(config-if)#no shR1(config-if)#cl*Mar 1 00:15:50.715: %LINK-3-UPDOWN: In

35、terface Serial0/0, changed state to up*Mar 1 00:15:51.715: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upR1(config-if)#cl R1(config-if)#cloR1(config-if)#clock raR1(config-if)#clock rate 128000 /端口提供时钟R1(config-if)#*Mar 1 00:16:17.271: %LINEPROTO-5-UPDOWN: Line protoco

36、l on Interface Serial0/0, changed state to downR1(config-if)#enR1(config-if)#encapsulation frR1(config-if)#encapsulation frame-relay /端口封装协议是帧中继R1(config-if)#*Mar 1 00:16:31.543: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upR1(config-if)#int s0/1R1(config-if)#enR1(co

37、nfig-if)#encapsulation frR1(config-if)#encapsulation frame-relay R1(config-if)#cloR1(config-if)#clock ra 128000R1(config-if)#no shR1(config-if)#*Mar 1 00:17:03.019: %LINK-3-UPDOWN: Interface Serial0/1, changed state to upR1(config-if)#*Mar 1 00:17:11.543: %LINEPROTO-5-UPDOWN: Line protocol on Interf

38、ace Serial0/0, changed state to downR1(config-if)#int s0/0*Mar 1 00:17:14.019: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to upR1(config-if)#int s0/0R1(config-if)#frame-relay lmi-typR1(config-if)#frame-relay lmi-type cisco /用来配置LMI的类型,默认时是ciscoR1(config-if)#frame-relay

39、intf-tR1(config-if)#frame-relay intf-type dce/配置接口是帧中继的DCE还是DTE,要注意的是:这里帧中继接口DCE和S0/0的接口是DCE还是DTE无关。R1(config-if)#int s0/1*Mar 1 00:19:08.007: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upR1(config-if)#frame-relay lmi-type *Mar 1 00:19:23.007: %LINEPROTO-5-UPDOWN: Li

40、ne protocol on Interface Serial0/0, changed state to downR1(config-if)#frame-relay lmi-type ciscoR1(config-if)#framR1(config-if)#frame-relay int f% Ambiguous command: frame-relay int fR1(config-if)#frame-relay intf R1(config-if)#frame-relay intf-type dceR1(config-if)#int s0/0R1(config-if)#*Mar 1 00:

41、20:00.515: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to upR1(config-if)#frR1(config-if)#framR1(config-if)#frame-relay route *Mar 1 00:20:15.515: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/1, changed state to downR1(config-if)#frame-relay route 102 int s0/1 201 /配置帧中继交换表,告诉路由器如果从该端口收到DLCL=102的帧,要从S0/1交换出去,并且DLCL改为201.。R1(config-if)#int s0/1R1(config-if)#framR1(config-if)#frame-relay route 201 int s0/0 102 /同上R1(config-if)#endR1#*Mar 1 00:24:21.591: %SYS-5-CONFIG_I: Configured from console by consoleR1#sho

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 建筑/施工/环境 > 项目建议


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号