小型校园网的设计与组建实验报告.docx

上传人:b****4 文档编号:4635587 上传时间:2022-12-07 格式:DOCX 页数:11 大小:114.70KB
下载 相关 举报
小型校园网的设计与组建实验报告.docx_第1页
第1页 / 共11页
小型校园网的设计与组建实验报告.docx_第2页
第2页 / 共11页
小型校园网的设计与组建实验报告.docx_第3页
第3页 / 共11页
小型校园网的设计与组建实验报告.docx_第4页
第4页 / 共11页
小型校园网的设计与组建实验报告.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

小型校园网的设计与组建实验报告.docx

《小型校园网的设计与组建实验报告.docx》由会员分享,可在线阅读,更多相关《小型校园网的设计与组建实验报告.docx(11页珍藏版)》请在冰豆网上搜索。

小型校园网的设计与组建实验报告.docx

小型校园网的设计与组建实验报告

小型校园网的设计与组建实验报告

一.实验目的

计算机网络是一门实践性较强的技术,课堂教学应该和实践环节紧密结合。

计算机网络实验培养学生具有独立进行计算机网络架构和设计能力,提高学生的网络设备使用水平,以及将理论与实践相结合的能力。

二.实验环境及设备

2台路由器、2台交换机、3台PC机

三.实验的内容和要求

根据要求,设计并搭建一个校园网。

要求进行子网划分和结构设计,并将网络结构建立起来。

最后完成网络设备的调试。

四.实验说明某大学分为总校和分校,为该校设计校园网,总校有一个局域网共20台计算机,分校由VLAN划分为两个局域网,分别有10台计算机。

该校被分配了一个C类网段210.100.10.0,总校和分校各有一台路由器及一台交换机。

请进行网络设计,将总校和分校各个局域网连接起来。

根据要求,设计IP地址分配表,设计网络结构,画出网络拓扑图。

根据设计搭建网络结构。

配置网络设备,完成网络调试。

提示:

1)使用IP子网掩码的原理设计IP地址分配表。

2)用到的设备为两台路由器,以及两台交换机。

五.实验设计

一、设计思路

总校局域网20台计算机,分校2个局域网各有10台计算机,若要满足要求,则至少需要5位主机位,即大小为2八5=32台主机的局域网。

由于是C类网段,最后8计算机ID码5位用作主机号,还有3位可以用作子网号,即可以划分2A3-2=6个子网(000和111不可用作子网号),因此子网掩码为255.255.255.224

(11111111.11111111.11111111.11100000。

而总校、分校各个局域网只需从

6个子网中任选其一并且不重复即可。

由此可以设计IP分配表如下

二、IP分配表

用途

网段

网络号

子网掩码

子网号

起始IP地址

结束IP地址

总校网

1

210.100.10.32

255.255.255.224

001

210.100.10.33

210.100.10.62

路由器间

2

210.100.10.64

255.255.255.224

010

210.100.10.65

210.100.10.94

分校网1

3

210.100.10.96

255.255.255.224

011

210.100.10.97

210.100.10.126

分校网2

4

210.100.10.128

255.255.255.224

100

210.100.10.129

210.100.10.158

、拓扑结构

6.实验配置

本人做主校交换机和路由器配置

主校交换机配置

switchA>en14

Password:

switchA#configureterminal

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

switchA(config)#vlan30//创建vlan

switchA(config-vlan)#exit

switchA(config)#exitswitchA#configure

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.switchA(config)#interfacerangefastEthernet0/1-20//将1-20端口划入

vlan30中

switchA(config-if-range)#switchportaccessvlan30switchA(config-if-range)#exit

Switch(config)#interfacefastethernet0/24

Switch(config-if)#switchportmodetrunk!

配置trunk端口

Switch(config-if)#endswitchA(config)#exit

 

switchA#showvlan

//对switchA的配置进行验证

VLANName

StatusPorts

1default

activeFa0/21,Fa0/22,Fa0/23,Fa0/24,

30VLAN0030

activeFa0/1,Fa0/2,Fa0/3,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

 

EndwithCNTL/Z.

//查看路由器的端口

IP-Address(Pri)OK?

noaddressYES

noaddressYES

noaddressYES

noaddressYES

Fa0/17,Fa0/18,Fa0/19,Fa0/20

Fa0/24

switchA#

PressRETURNtogetstarted!

主校路由器配置

R2632>en14

Password:

R2632#configureterminal

Enterconfigurationcommands,oneperline.

R2632(config)#showipinterfacebrief

Interface

Status

serial4/0

DOWN

serial4/1

DOWN

FastEthernet3/0

DOWN

FastEthernet3/1

DOWN

Null0

noaddress

YES

UP

R2632(config)#interfacefastEthernet3/0.30

R2632(config-subif)#encapsulationdot1Q30

R2632(config-subif)#ipaddress210.100.10.33255.255.255.224

R2632(config-subif)#exit

R2632(config)#showipinterfacebrief

Interface

IP-Address(Pri)

OK?

Status

serial4/0

noaddress

YES

DOWN

serial4/1

noaddress

YES

DOWN

FastEthernet3/0.30

210.100.10.33/27

YES

DOWN

FastEthernet3/0

noaddress

YES

DOWN

FastEthernet3/1

noaddress

YES

DOWN

Null0

noaddress

YES

UP

R2632(config)#exit

R2632#

Configuredfromconsolebyconsole

R2632#con

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

R2632(config)#interfaceserial4/0

R2632(config-if)#ipad

R2632(config-if)#ipaddress210.100.10.65255.255.255.224//设置交换机

ip地址和子网掩码

R2632(config-if)#noshutdown

R2632(config-if)#end

R2632#

Configuredfromconsolebyconsole

R2632#showipinterfacebrief

Interface

IP-Address(Pri)

OK?

Status

serial4/0

210.100.10.65/27

YES

UP

serial4/1

noaddress

YES

DOWN

FastEthernet3/0.30

210.100.10.33/27

YES

UP

FastEthernet3/0

noaddress

YES

DOWN

FastEthernet3/1

noaddress

YES

DOWN

Null0

noaddress

YES

UP

R2632#con

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

R2632(config)#iproute210.100.10.96255.255.255.224210.100.10.66//写入静态路由表

R2632(config)#iproute210.100.10.128255.255.255.224210.100.10.66R2632(config)#end

R2632#

Configuredfromconsolebyconsole

Codes:

C-connected,S-static,R-RIP

O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

*-candidatedefault

Gatewayoflastresortisnoset

C210.100.10.32/27isdirectlyconnected,FastEthernet3/0.30

C210.100.10.33/32islocalhost.

C210.100.10.64/27isdirectlyconnected,serial4/0

C210.100.10.65/32islocalhost.

S210.100.10.96/27[1/0]via210.100.10.66

S210.100.10.128/27[1/0]via210.100.10.66

R2632#分校的交换机和路由器配置由小组另一成员完成分校交换机配置

SwitchA>enable14

Password:

Switcha#configureterminal!

进入全局配置模式

SwitchA(config)#

SwitchA(config)#vlan10

SwitchA(config-vlan)#exit

SwitchA(config)#vlan20

SwitchA(config-vlan)#exit

switchA(config)#interfacerangefastEthernet0/1-10switchA(config-if-range)#switchportaccessvlan10SwitchA(config-if)#exit

SwitchA(config)#interfacerangefastethernet0/11-20

SwitchA(config-if-range)#switchaportaccessvlan20

SwitchA(config-if)#exit

SwitchA(config)#interfacefastethernet0/24

SwitchA(config-if)#switchaportmodetrunk

SwitchA(config-if)#end

SwitchA#showvlan//对switchA的配置进行验证

VLANNameStatusPorts

1

default

active

Fa0/23,Fa0/24

10

network2

active

Fa0/1,Fa0/2,Fa0/3,Fa0/4

Fa0/5,Fa0/6,Fa0/7,Fa0/8

Fa0/9,Fa0/10,Fa0/24

20

network3

active

Fa0/11,Fa0/12,Fa0/13,Fa0/14

Fa0/15,Fa0/16,Fa0/17,Fa0/18

Fa0/19,Fa0/20,Fa0/24

SwitchA#

PressRETURNtogetstarted!

分校路由器配置

R2632>en14

Password:

R2632#con

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.R2632#con

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.R2632(config)#interfaceserial4/0

R2632(config-if)#ipaddress210.100.10.66255.255.255.224R2632(config-if)#clockrate64000

R2632(config-if)#noshutdown

R2632(config-if)#exit

R2632(config)#interfacefastEthernet3/0

R2632(config-if)#noipaddress

R2632(config-if)#noshutdown

R2632(config-if)#exit

R2632(config)#interfacefastEthernet3/0.10

R2632(config-subif)#noipaddress

R2632(config-subif)#exit

R2632(config)#interfacefastEthernet3/0.10

R2632(config-subif)#encapsulationdot1Q10

R2632(config-subif)#ipaddress210.100.10.97255.255.255.224

R2632(config-subif)#exit

R2632(config)#interfacefastEthernet3/0.20

R2632(config-subif)#encapsulationdot1Q20

R2632(config-subif)#ipaddress210.100.10.129255.255.255.224

R2632(config-subif)#end

R2632#

Configuredfromconsolebyconsole

R2632#showipinterfacebrief//对分校路由器配置验证

Interface

IP-Address(Pri)

OK?

Status

serial4/0

210.100.10.66/27

YES

UP

serial4/1

noaddress

YES

DOWN

FastEthernet3/0.20

210.100.10.129/27

YES

UP

FastEthernet3/0.10

210.100.10.97/27

YES

UP

FastEthernet3/0

noaddress

YES

DOWN

FastEthernet3/1

noaddress

YES

DOWN

Null0

noaddress

YES

UP

R2632#con

Enterconfigurationcommands,oneperline.EndwithCNTL/Z.

R2632(config)#iproute210.100.10.32255.255.255.224210.100.10.65R2632(config)#end

R2632#

Configuredfromconsolebyconsole

R2632#showiproute

Codes:

C-connected,S-static,R-RIP

O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2

*-candidatedefault

Gatewayoflastresortisnoset

S210.100.10.32/27[1/0]via210.100.10.65

C210.100.10.64/27isdirectlyconnected,serial4/0

C210.100.10.66/32islocalhost.

C210.100.10.96/27isdirectlyconnected,FastEthernet3/0.10

C210.100.10.97/32islocalhost.

C210.100.10.128/27isdirectlyconnected,FastEthernet3/0.20

C210.100.10.129/32islocalhost.

R2632#

R2632CON0isnowavailable

PressRETURNtogetstarted

7.实验测试

分校之间的通信:

pc2与pc3之间通信

pc3

\Docu.mentsandSettingf£Xftdniifil£ti*atoi*>ping210_100_10.98

Finffinff210*100-10-98with32bytesofdata:

Repl^F219.199.10_99=bytes-32

Replyfrora218-103.1U_9SzJbytes=32

R^plyFr-on210.100■丄bvt?

s=32

R&plyfr-on218.180.10«?

9=bytes=32

PingstfttIsticsfop210-100-10-58:

Packets:

Sent=4,Received=4„Lost=0<0zloes^□.rpppaxinateI'Qiindtpiptin^sinmilli—seconds:

Ilininum-0nsHaximun-ifluevage-0ms

Pc2

C:

\Dqcu.mentsandSettlrif|s:

^dnlrils:

t]?

at:

Dr^p£ngr210.166.19.130

Pinginjf210«160・1片.139uith32bytesofdata;

Pingstattics£op210.100.10.130:

Packets•Sent=4rReceived=4,Lost=0loss>,.

Appi^oxinatepound,tviptiriesinn)illi-s:

econds:

Ilinintun-18ns>Naxiniun-ZBns,Au&rage-20ms

主校与分校的通信:

pci与pc3之间通信

pci

C:

\J)ucumentsandSe11indninisti'AtorL>pin^210.100_10.130

Pln^lnff216_lOti.10.138讣:

Lt;h32Kytesof<1比七刊:

Pingstatisticsfor210.103.10.130:

Packets:

Sent■4,Received■4,Last■0{脸loss>j.ApproximateroundtriptInesinnillL—seconds:

Minirnun=8n)s,Ha.xiRU.nk=BnsAverage=區叫苗

pc3:

[Pinging210-1B0.10_49with32b^ptesofdata:

PingstatiatiGSfor210*100«

Packeta:

Sent■4,Receiued■4”Lost■0C0xloss)rApproxlmAtepoundtt*lpTiniesinnilli—seconds:

Mininun=18ns,Haximutn=lfims,Aue^age=lSns

8.思考题

1)要使总校局域网能够与分校两个局域网通信,如何配置静态路由?

分别为分校的两个网段配置静态路由,并且全部经过的连接分校交换机的路由器。

针对本实验,具体配置为:

Routerl#configureterminal

Router1(config)#iproute210.100.10.96255.255.255.224210.100.10.66

Router1(config)#iproute210.100.10.128255.255.255.224210.100.10.66

Router1(config)#end

2)如果分校两个局域网分别有20台主机,交换机快速以太网口是否够用?

如不够用,则如何解决该问题?

不够用,因为,交换机共有24个快速以太网口,其中一个作为trunk口,剩余23个。

若接两个局域网,共20*2=40台主机,快速以太网口不够用。

需要再加一个交换机或者更换一个有41个以上快速以太网口的交换机。

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

当前位置:首页 > 职业教育 > 中职中专

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1