logo资料库

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

第1页 / 共10页
第2页 / 共10页
第3页 / 共10页
第4页 / 共10页
第5页 / 共10页
第6页 / 共10页
第7页 / 共10页
第8页 / 共10页
资料共10页,剩余部分请下载后查看
实 验 报 告 课程名称: 计算机网络 实验项目: 小型校园网的设计与组建 实 验 室: 计算机网络实验室 姓 名: Burgess 学 号: 17******27 专业班级: 计算 17-*班 实验时间: 2020/**/** 实验成绩 评阅教师
实验目的,基本原理,实验步骤,仪器设备,实验材料,实验现象,实验结论 一、实验目的 计算机网络是一门实践性较强的技术,课堂教学应该和实践环节紧密结合。计算机网络实 验培养学生具有独立进行计算机网络架构和设计能力,提高学生的网络设备使用水平,以及将 理论与实践相结合的能力。 二、实验仪器设备 思科模拟器、2 台路由器、2 台交换机、3 台 PC 机 三、实验设计思路与基本原理 网络号 子网掩码 子网号 总校局域网 20 台计算机,分校 2 个局域网各有 10 台计算机,若要满足要求,则至少需要 5 位主机位,即大小为 25=32 台主机的局域网。由于是 C 类网段,最后 8 计算机 ID5 位用作主 机号,还有 3 位可以用作子网号,即可以划分 23-2=6 个子网(000 和 111 不可做为子网号), 因此子网掩码为 255.255.255.224(1111 1111.1111 1111.1111 1111.1110 0000)而总校、分校 各个局域网只需从 6 个子网中任选其一并且不重复即可。设计 IP 分配表如下: 起 始 IP 地 用途 址 210.100.10 .33 210.100.10 .65 210.100.10 .97 210.100.10 .129 结 束 IP 地 址 210.100.10 .62 210.100.10 .94 210.100.10 .126 210.100.10 .158 210.100.10 .32 210.100.10 .64 210.100.10 .96 210.100.10 .128 255.255.25 5.224 255.255.25 5.224 255.255.25 5.224 255.255.25 5.224 路由器间 2 011 100 001 010 1 3 4 网段 总校网 分校 1 分校二 四、实验内容和要求 根据要求,设计并搭建一个校园网。要求进行子网划分和结构设计,并将网络结构建立起 来。最后完成网络设备的调试。
五、实验拓扑结构 六、实验步骤以及部分实验步骤截图 第一步:主校区交换机配置 Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 300 //创建 VLAN Switch(config-vlan)#name sales Switch(config-vlan)#exit Switch(config)#interface range fastethernet 0/1 -20 //将 1-20 端口划入 VLAN 300 Switch(config-if-range)#switchport access vlan 300 Switch(config-if-range)#exit Switch(config)#interface fastethernet 0/24 Switch(config-if)#switchport mode trunk //配置 trunk 端口 Switch(config-if)#end Switch#show vlan //对 switch 的配置进行验证
Switch#wr //保存 Building configuration... [OK] 第二步:主校区路由器配置 Switch>enable Switch#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#interface fastethernet 0/1 //对路由器 1 口进行配置 IP Switch(config-if)#ip address 210.100.10.65 255.255.255.224 //为以太网 1 口配置地址 Switch(config-if)#no shutdown //打开以太网 0 口 Switch(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Switch(config-if)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#show ip interface brief Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#ip route 210.100.10.96 255.255.255.224 210.100.10.66 //添加静态路由,告诉 具体下一跳在哪 Switch(config)#ip route 210.100.10.128 255.255.255.224 210.100.10.66 Switch(config)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#show ip route //显示路由表 第三步:主校区交换机配置 Switch>enable Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 100 //创建 VLAN 100 Switch(config-vlan)#exit Switch(config)#vlan 200 //创建 VLAN 200 Switch(config-vlan)#exit Switch(config)#interface range fastEthernet 0/1 -10 Switch(config-if-range)#switchport access vlan 10 % Access VLAN does not exist. Creating vlan 10 Switch(config-if-range)#switchport access vlan 100 Switch(config-if-range)#exit Switch(config)#interface range fastEthernet 0/11 - 20 Switch(config-if-range)#switchport access vlan 200 Switch(config-if-range)#exit Switch(config)#interface fastethernet 0/24 //为 24 口配置 trunk 模式 Switch(config-if)#switchport mode trunk
Switch(config-if)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#show vlan 第四步:分校区路由器配置 Router>enable Router#config Configuring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname Switch Switch(config)#interface fastethernet 0/1 //为以太网 1 口配置地址(即路由器间 IP) Switch(config-if)#ip address 210.100.10.66 255.255.255.224 //为以太网 1 口配置地址 Switch(config-if)#no shutdown //打开 Switch(config-if)# %LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up Switch(config-if)#interface fastethernet 0/0 Switch(config-if)#no ip address //取消地址 Switch(config-if)#no shutdown Switch(config-if)# Switch(config-if)#exit Switch(config)#interface fastethernet 0/0.10 //进入子接口 F0.10 配置模式 Switch(config-subif)#encapsulation dot1q 10 //封装 802.1Q 并指定 Vlan 号 10 Switch(config-subif)#ip address 210.100.10.97 255.255.255.224 //配置子接口 F0.10IP 地 址
Switch(config-subif)#exit Switch(config)#interface fastethernet 0/0.20 //进入子接口 F0.20 配置模式 Switch(config-subif)#encapsulation dot1q 20 //封装 802.1Q 并指定 Vlan 号 20 Switch(config-subif)#ip address 210.100.10.129 255.255.255.224 //配置子接口 F0.20IP 地址 Switch(config-subif)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#show ip interface brief Switch#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#ip route 210.100.10.32 255.255.255.224 210.100.10.65 //告诉路由器 2 下一跳 Switch(config)#end Switch# %SYS-5-CONFIG_I: Configured from console by console Switch#show ip route //验证测试:验证接口配置和 VLAN 配置
七、实验现象及实验结果 分校之间的通信: PC3 ping PC5: PC5 ping PC3:
分享到:
收藏