小型校园网的设计与组建实验报告文档格式.docx
《小型校园网的设计与组建实验报告文档格式.docx》由会员分享,可在线阅读,更多相关《小型校园网的设计与组建实验报告文档格式.docx(11页珍藏版)》请在冰豆网上搜索。
用途
网段
网络号
子网掩码
子网号
起始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
010
210.100.10.65
210.100.10.94
分校网1
3
210.100.10.96
011
210.100.10.97
210.100.10.126
分校网2
4
210.100.10.128
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
Fa0/17,Fa0/18,Fa0/19,Fa0/20
Fa0/24
switchA#
PressRETURNtogetstarted!
主校路由器配置
R2632>
en14
R2632#configureterminal
Enterconfigurationcommands,oneperline.
R2632(config)#showipinterfacebrief
Interface
Status
serial4/0
DOWN
serial4/1
FastEthernet3/0
FastEthernet3/1
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
IP-Address(Pri)
OK?
FastEthernet3/0.30
210.100.10.33/27
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#showipinterfacebrief
210.100.10.65/27
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
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
Switcha#configureterminal!
进入全局配置模式
SwitchA(config)#
SwitchA(config)#vlan10
SwitchA(config-vlan)#exit
SwitchA(config)#vlan20
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
default
active
Fa0/23,Fa0/24
10
network2
Fa0/1,Fa0/2,Fa0/3,Fa0/4
Fa0/9,Fa0/10,Fa0/24
20
network3
Fa0/11,Fa0/12,Fa0/13,Fa0/14
Fa0/15,Fa0/16,Fa0/17,Fa0/18
Fa0/19,Fa0/20,Fa0/24
SwitchA#
分校路由器配置
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)#exit
R2632(config)#interfacefastEthernet3/0
R2632(config-if)#noipaddress
R2632(config)#interfacefastEthernet3/0.10
R2632(config-subif)#noipaddress
R2632(config-subif)#encapsulationdot1Q10
R2632(config-subif)#ipaddress210.100.10.97255.255.255.224
R2632(config)#interfacefastEthernet3/0.20
R2632(config-subif)#encapsulationdot1Q20
R2632(config-subif)#ipaddress210.100.10.129255.255.255.224
R2632(config-subif)#end
R2632#showipinterfacebrief//对分校路由器配置验证
210.100.10.66/27
FastEthernet3/0.20
210.100.10.129/27
FastEthernet3/0.10
210.100.10.97/27
R2632(config)#iproute210.100.10.32255.255.255.224210.100.10.65R2632(config)#end
R2632#showiproute
S210.100.10.32/27[1/0]via210.100.10.65
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.
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:
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个以上快速以太网口的交换机。