小型校园网的设计与组建试验报告_第1页
小型校园网的设计与组建试验报告_第2页
小型校园网的设计与组建试验报告_第3页
小型校园网的设计与组建试验报告_第4页
小型校园网的设计与组建试验报告_第5页
已阅读5页,还剩11页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、A'小型校园网的设计与组建实验报告一实验目的计算机网络是一门实践性较强的技术,课堂教学应该和实践环节紧密结合。 计算机网络实验培养学生具有独立进行计算机网络架构和设计能力, 提高学生的 网络设备使用水平,以及将理论与实践相结合的能力。二实验环境及设备2台路由器、2台交换机、3台PC机三实验的内容和要求根据要求, 设计并搭建一个校园网。 要求进行子网划分和结构设计, 并将网 络结构建立起来。最后完成网络设备的调试。四实验说明 某大学分为总校和分校,为该校设计校园网,总校有一个局域网共 20 台计 算机,分校由VLAN划分为两个局域网,分别有10台计算机。该校被分配了一 个C类网段210.

2、100.10.0,总校和分校各有一台路由器及一台交换机。请进行网 络设计,将总校和分校各个局域网连接起来。根据要求,设计 IP 地址分配表,设计网络结构,画出网络拓扑图。根据设 计搭建网络结构。配置网络设备,完成网络调试。提示:1)使用IP子网掩码的原理设计IP地址分配表。2)用到的设备为两台路由器,以及两台交换机。五实验设计一、 设计思路总校局域网 20台计算机,分校 2个局域网各有 1 0台计算机,若要满足要求, 则至少需要5位主机位,即大小为2八5=32台主机的局域网。由于是C类网段, 最后 8 计算机 ID 码 5 位用作主机号,还有 3 位可以用作子网号,即可以划分 2A3-2=6个

3、子网(000和111不可用作子网号),因此子网掩码为255.255.255.224(1111 1111.1111 1111.1111 1111.1110 0000。而总校、分校各个局域网只需从6个子网中任选其一并且不重复即可。由此可以设计IP分配表如下IP分配表用途网段网络号子网掩码子网号起始IP地址结束IP地址总校网1210.100.10.32255.255.255.224001210.100.10.33210.100.10.62路由器间2210.100.10.64255.255.255.224010210.100.10.65210.100.10.94分校网13210.100.10.9625

4、5.255.255.224011210.100.10.97210.100.10.126分校网24210.100.10.128255.255.255.224100210.100.10.129210.100.10.158、拓扑结构网段2:210.100.10.64/27Ip:210.100.10.40255.255.255.224210.100.10.33lp:210.100.10.98255.255.255.224210.100.10.97lp:210.100.10.130255.255.255.224210.100.10.129六实验配置 本人做主校交换机和路由器配置 主校交换机配置switc

5、hA>en 14Password: switchA#configure terminalEnter configuration commands, one per line. End with CNTL/Z. switchA(config)#vlan 30 / 创建 vlan switchA(config-vlan)#exit switchA(config)#exitswitchA#configureEnter configuration commands, one per line. End with CNTL/Z. switchA(config)#interface range fa

6、stEthernet 0/1-20/ 将 1-20 端 口 划入vlan30 中switchA(config-if-range)#switchport access vlan 30 switchA(config-if-range)#exitSwitch (config)# interface fastethernet 0/24Switch (config-if)# switchport mode trunk !配置 trunk 端口Switch (config-if)# end switchA(config)#exitswitchA#show vlan/ 对 switchA 的配置进行验证VL

7、AN NameStatus Ports30defaultactiveFa0/21,Fa0/22,Fa0/23,Fa0/24,VLAN0030activeFa0/1 ,Fa0/2 ,Fa0/3 ,Fa0/4Fa0/5 ,Fa0/6 ,Fa0/7 ,Fa0/8Fa0/9 ,Fa0/10,Fa0/11,Fa0/12Fa0/13,Fa0/14,Fa0/15,Fa0/16Fa0/17,Fa0/18,Fa0/19,Fa0/20Fa0/24switchA#Press RETURN to get started!主校路由器配置R2632>en 14Password:R2632#configure ter

8、minalEnter configuration commands, one per line.End with CNTL/Z.R2632(config)#show ip interface brief/ 查看路由器的端口InterfaceIP-Address(Pri)OK?Statusserial 4/0no addressYESDOWNserial 4/1no addressYESDOWNFastEthernet3/0no addressYESDOWNFastEthernet3/1no addressYESDOWNNull 0no addressYESUPR2632(config)#int

9、erface fastEthernet 3/0.30R2632(config-subif)#encapsulation dot1Q 30R2632(config-subif)#ip address 210.100.10.33 255.255.255.224R2632(config-subif)#exitR2632(config)#show ip interface briefInterfaceIP-Address(Pri)OK?Statusserial 4/0no addressYESDOWNserial 4/1no addressYESDOWNFastEthernet 3/0.30210.1

10、00.10.33/27YESDOWNFastEthernet 3/0no addressYESDOWNFastEthernet 3/1no addressYESDOWNNull 0no addressYESUPR2632(config)#exitR2632#Configured from console by consoleR2632#conEnter configuration commands, one per line. End with CNTL/Z. R2632(config)#interface serial 4/0R2632(config-if)#ip adR2632(confi

11、g-if)#ip address 210.100.10.65 255.255.255.224 / 设置交换机 ip 地址和子网掩码R2632(config-if)#no shutdownR2632(config-if)#endR2632#Configured from console by consoleR2632#show ip interface briefInterfaceIP-Address(Pri)OK?Statusserial 4/0210.100.10.65/27YESUPserial 4/1no addressYESDOWNFastEthernet 3/0.30210.100.

12、10.33/27YESUPFastEthernet 3/0no addressYESDOWNFastEthernet 3/1no addressYESDOWNNull 0no addressYESUPR2632#conEnter configuration commands, one per line. End with CNTL/Z.R2632(config)#ip route 210.100.10.96 255.255.255.224 210.100.10.66 / 写入静态路由表R2632(config)#ip route 210.100.10.128 255.255.255.224 2

13、10.100.10.66 R2632(config)#endR2632#Configured from console by consoleR2632#show ip route / 对主校路由器配置验证Codes: C - connected, S - static, R - RIPO - 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* - candidate

14、 defaultGateway of last resort is no setC210.100.10.32/27 is directly connected, FastEthernet 3/0.30C210.100.10.33/32 is local host.C210.100.10.64/27 is directly connected, serial 4/0C210.100.10.65/32 is local host.S 210.100.10.96/27 1/0 via 210.100.10.66S 210.100.10.128/27 1/0 via 210.100.10.66 R26

15、32# 分校的交换机和路由器配置由小组另一成员完成 分校交换机配置SwitchA>enable 14Password:Switcha#configure terminal ! 进入全局配置模式 SwitchA(config)#SwitchA(config)#vlan 10 SwitchA(config-vlan)#exitSwitchA(config)#vlan 20SwitchA(config-vlan)#exit switchA(config)#interface range fastEthernet 0/1-10 switchA(config-if-range)#switchpor

16、t access vlan 10 SwitchA(config-if)#exitSwitchA(config)#interface range fastethernet 0/11-20 SwitchA(config-if-range)#switchaport access vlan 20 SwitchA(config-if)#exitSwitchA(config)#interface fastethernet 0/24 SwitchA(config-if)#switchaport mode trunk SwitchA(config-if)#endSwitchA#show vlan/ 对 swi

17、tchA 的配置进行验证VLAN NameStatus Ports1defaultactive10network2active20 network3 activeFa0/23,Fa0/24Fa0/1 ,Fa0/2 ,Fa0/3 ,Fa0/4Fa0/5 ,Fa0/6 ,Fa0/7 ,Fa0/8Fa0/9 ,Fa0/10,Fa0/24Fa0/11,Fa0/12,Fa0/13,Fa0/14Fa0/15,Fa0/16,Fa0/17,Fa0/18Fa0/19,Fa0/20,Fa0/24SwitchA#Press RETURN to get started!分校路由器配置R2632>en 14Pas

18、sword:R2632#conEnter configuration commands, one per line. End with CNTL/Z.End with CNTL/Z.R2632#conEnter configuration commands, one per line.R2632(config)#interface serial 4/0R2632(config-if)#ip address 210.100.10.66 255.255.255.224R2632(config-if)#clock rate 64000R2632(config-if)#no shutdownR2632

19、(config-if)#exitR2632(config)#interface fastEthernet 3/0R2632(config-if)#no ip addressR2632(config-if)#no shutdownR2632(config-if)#exitR2632(config)#interface fastEthernet 3/0.10R2632(config-subif)#no ip addressR2632(config-subif)#exitR2632(config)#interface fastEthernet 3/0.10R2632(config-subif)#en

20、capsulation dot1Q 10R2632(config-subif)#ip address 210.100.10.97 255.255.255.224R2632(config-subif)#exitR2632(config)#interface fastEthernet 3/0.20R2632(config-subif)#encapsulation dot1Q 20R2632(config-subif)#ip address 210.100.10.129 255.255.255.224R2632(config-subif)#endR2632#Configured from conso

21、le by console/ 对分校路由器配置验证R2632#show ip interface briefInterfaceIP-Address(Pri)OK?Statusserial 4/0210.100.10.66/27YESUPserial 4/1no addressYESDOWNFastEthernet 3/0.20210.100.10.129/27YESUPFastEthernet 3/0.10210.100.10.97/27YESUPFastEthernet 3/0no addressYESDOWNFastEthernet 3/1no addressYESDOWNNull 0no

22、 addressYESUPR2632#conEnter configuration commands, one per line. End with CNTL/Z. R2632(config)#ip route 210.100.10.32 255.255.255.224 210.100.10.65 R2632(config)#endR2632#Configured from console by consoleR2632#show ip routeCodes: C - connected, S - static, R - RIPO - OSPF, IA - OSPF inter areaN1

23、- OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2* - candidate defaultGateway of last resort is no setS210.100.10.32/27 1/0 via 210.100.10.65C 210.100.10.64/27 is directly conn ected, serial 4/0C210.100.10.66/32 is local host.C 210.100.10

24、.96/27 is directly conn ected, FastEthernet 3/0.10C210.100.10.97/32 is local host.C210.100.10.128/27 is directly conn ected, FastEthernet 3/0.20C210.100.10.129/32 is local host.R2632#R2632 CON0 is now availablePress RETURN to get started七.实验测试分校之间的通信:pc2与pc3之间通信 pc3C: Docu.ments: and Settinasftdniin

25、l£ti*ator>ping 210_100_10.98Finer in 210-100.13.9S with 32 bytes £ data:Ke ply f 219.100.10_99 : Reply f rori 218- 19U. £0 _99 = Reply Fr-on 210100丄0?8 = Reply from 100,10.93;bytes=32 by七es=92 btes=32 bytcs=32timeClmst tin)e<lR5TIL-127TTL=127TJL=127TTL=127Ping statlsztics: fop 2

26、10_100_10_98:Packets: Sent = 4, Receluied = 4, Lost = 0 1ose> A pppox inate pound ti*ip tines in milliseconds :Nininum - 0msHaximun - 8ns, Auepage - 0msPc2C: 'bociLnents and. 8 et i; iragisAdnilnlszti'citDT'pn.ncf 21_9_£60_10- 130Pintfinsr 21氛1 盹10U0 with M2 byt” of dftt =Ruply f

27、Foni 210109丄3L30; bytes =32 Re ply f rom 21&10:L 130: byt&s=32Repli/ fron 210 103.13.130: biites=32 Repl from 210»18Bbirtes=32t ifne =18ms tine=16ms t inc=lSms tine=2&msrrL-126 riL=126 riL=iz& rrL=i2&Ping stat 1st Les £ oi* 210.100.10.130 - Packets: Sent = 4, Received =

28、 4, Lost = 0 C0z loss>,Apppoxinate po mnd ti'ip tines in mi Hiseconds:Nlin inun = 18ns, Kaxinun = 2&ns=, Au&raa = 20ns主校与分校的通信:pci与pc3之间通信pci£: J)ocunen ts and E e 11 in gfs dm in is t PAtai*>pin£| 210.109 _ 10.130ringing 210.100.Id. 130 i?ith 32 bytes of data:Reply fron&

29、#187; Repl fpom Replv fi*om Repli/ fpam210.180.10.138=210.109-19.130:210.100.10.130:210.109.10-130:bytes=32 tine<lns TTL=127 bytes«32 tineCluit TTL-127 btes =3 2 tineClns TTL=127 bytes =3 2 tira&<lm5 TTL=127Ping statist ics f op 210.100,10,10!PAcketf: Sent £ Rec&ived. 4, Lost 0 0# Approximate round tt'-ip tintes in nllLLseconds:Min irmn = 0ms r Ha.ximu.n = 0ns

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论