通信工程实践报告_第1页
通信工程实践报告_第2页
通信工程实践报告_第3页
通信工程实践报告_第4页
通信工程实践报告_第5页
已阅读5页,还剩6页未读 继续免费阅读

下载本文档

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

文档简介

1、电气与信息工程学院实验室 实验报告黑龙江科技学院综合性实践报告实验项目名称 通信网络组建 所属课程名称 通信工程 实 验 日 期 2013.4.12013.4.9 班 级 测控11-1班 学 号 25号 姓 名 郭松 成 绩 电气与信息工程学院实验室实验概述:【实验目的及要求】 【实验目的】1了解网络通信的产生过程、发展现状及未来趋势;2掌握网络通信的组成、工作原理及操作和维护方法;3掌握组网的硬件连接及相应设置的基本方法; 4培养和提高学生应用现代网络通信系统设计和分析的能力;5通过该课程的学习扩大学生知识面,为今后的系统设计和技术工作打下坚实的基础。 【设计要求】1综合运用网络通信的理论知

2、识独立完成一个功能强大的局域网的组建工作; 2所建网络应能实现资源共享等基本通信功能; 3架设Web点站,并能通过DNS域名解析实现对域名和IP地址的转换,完成对站点的访问; 4掌握网线制作的基本方法; 5综合运用交换机的理论知识独立完成一个小型电话网的组建工作; 6 所建网络应能实现计费、分机设置、语音提示等基本通信功能;7 培养学生利用交换机组建星型或混合型等多种电话网络;8 能够应用软件模拟器进行网络实际情况的模拟;9培养学生独立创新的学习精神和扎实的实践技能。【实验原理】1.端口地址表端口地址表记录了端口下包含主机的MAC地址。端口地址表是交换机上电后自动建立的,保存在RAM中,并且自

3、动维护。交换机隔离广播域的原理是根据其端口地址表和转发决策决定的。2.转发决交换机的转发决策有三种操作:丢弃、转发和扩散。丢弃:当本端口下的主机访问已知本端口下的主机时丢弃。转发:当某端口下的主机访问已知某端口下的主机时转发。扩散:当某端口下的主机访问未知端口下的主机时要扩散。每个操作都要记录下发包端的MAC地址,以备其它主机的访问。3.成存期:生成期是端口地址列表中表项的寿命。每个表项在建立后开始进行倒记时,每次发送数据都要刷新记时。对于长期不发送数据主机,其MAC地址的表项在生成其结束时删除。所以端口地地表记录的总是最活动的主机的MAC地址。二 路由器的原理1.路由类型路由的类型有:直连路

4、由、静态路由、默认路由和动态路由。直连路由是与路由器直接相联网络的路由,路由器有对直连网络有转发能力。静态路由是管理员人为设置的路由,网络开支小,可以有效的改善网络状况。默认路由是静态路由的一个特例,将路由表不能匹配的数据包送默认路由。一般在最后。动态路由是路由协议自动建立和管理的路由。2.路由算法路由算法常见的有三种类型:距离矢量D-V(Distance-Vector) 算法,如:RIP、IGRP、BGP;链路状态L-S(Link State)算法,如:OSPF、IS-IS;合算法,如:Cisco的EIGRP。3.路由交换范围路由器通过交换信息建立路由表,当网络结构变化时,路由表能自动维护。

5、路由表跟随网络结构变化过程称为收俭。为了减少收俭过程引起的网络动荡,要考滤路由交换范围。RIP协议通过network命令指定。4.路由表路由表(Routing Table)是路由器中路由项的集合,是路由器进行路径选择的依据,每条路由项包括:目的网络和下一跳,还有优先级,花费等。路由优先匹配原则:(1)直接路由:直连的网络优先级最高。(2)静态路由:优先级可设,一般高于动态路由。(3)动态路由:相同花费时,长掩码的子网优先。(4)默认路由:最后有一条默认路由,否则数据包丢弃。两个交换机之间以及交换机与路由器之间必须有trunk,才可以使两者端口下的pc机互通。【实验环境】(使用的软件)地点:听涛

6、阁电脑、交换机、路由器、网卡、网线、系统安装光盘等;程控交换机(模拟)、电脑、电话、稳压电源、程控交换机软件,软件模拟器等。网线制作工具:压线钳、侧线仪、双绞线、水晶头等。实验内容:【实验方案设计】 要求所有计算机和交换机以及路由器的端口可以联通。由于交换机下的计算机在两个网络段,所以要求划分vlan,现要求switchA和switchB的f0/5和f0/6在vlan 2. 1. 设置计算机的IP地址和网关:root#PCA root# ifconfig eth0 10.65.1.1 netmask 255.255.0.0root#PCB root# ifconfig eth0 10.66.1

7、.1 netmask 255.255.0.0root#PCC root# ifconfig eth0 10.69.1.1 netmask 255.255.0.0root#PCD root# ifconfig eth0 10.70.1.1 netmask 255.255.0.0root#PCE root# ifconfig eth0 10.60.1.1 netmask 255.255.0.0root#PCF root# ifconfig eth0 10.66.1.3 netmask 255.255.0.0root#PCG root# ifconfig eth0 10.60.1.3 netmask

8、 255.255.0.0root#PCA root# route add default gw 10.65.1.2root#PCB root# route add default gw 10.66.1.2root#PCC root# route add default gw 10.69.1.2root#PCD root# route add default gw 10.70.1.2root#PCE root# route add default gw 10.60.1.2root#PCF root# route add default gw 10.66.1.2root#PCG root# rou

9、te add default gw 10.60.1.22. 设置交换机的IP地址、网关和干线switch>enswitch#conf tEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname switchAswitchA(config)#exitswitchA#vlan databaseswitchA(vlan)#vlan 2switchA(vlan)#vlan 3switchA(vlan)#exitswitchA#conf tEnter configuration comma

10、nds, one per line. End with CNTL/Z.switchA(config)#int f0/5switchA(config-if)#switchport access vlan 2switchA(config-if)#int f0/6switchA(config-if)#switchport access vlan 2switchA(config-if)#int f0/8switchA(config-if)#switchport access vlan 2switchA(config-if)#int f0/1switchA(config-if)#switchport m

11、ode trunkswitchA(config-if)#switchport trunk allowed vlan allswitchA(config-if)#switchport trunk encap dot1qswitchA(config-if)#exitswitchA(config)#int vlan 1switchA(config-if)#ip address 10.66.1.8 255.255.0.0switchA(config-if)#exitswitchA(config)#ip default-gateway 10.66.1.2switchA(config)#endswitch

12、A#switch>enswitch#conf tEnter configuration commands, one per line. End with CNTL/Z.switch(config)#hostname switchBswitchB(config)#exitswitchB#vlan databaseswitchB(vlan)#vlan 2switchB(vlan)#exitswitchB#conf tEnter configuration commands, one per line. End with CNTL/Z.switchB(config)#int f0/5switc

13、hB(config-if)#switchport access vlan 2switchB(config-if)#int f0/6switchB(config-if)#switchport access vlan 2switchB(config-if)#int f0/8switchB(config-if)#switchport mode trunkswitchB(config-if)#switchport trunk allowed vlan allswitchB(config-if)#switchport trunk encap dot1qswitchB(config-if)#int f0/

14、2switchB(config-if)#switchport trunk mode trunkswitchB(config-if)#switchport trunk allowed vlan allswitchB(config-if)#switchport trunk encap dot1qswitchB(config-if)#endswitchB#conf tEnter configuration commands, one per line. End with CNTL/Z.switchB(config)#int vlan 1switchB(config-if)#ip address 10

15、.66.1.9 255.255.0.0switchB(config-if)#exitswitchB(config)#ip default-gateway 10.66.1.2switchB(config)#endswitchB# 3.设置路由器的IP和动态路由RouterA(config)int f0/0RouterA(config-if)#ip address 10.65.1.2 255.255.0.0RouterA(config-if)#no shutdownRouterA(config-if)#int f0/1RouterA(config-if)#no shutdownRouterA(co

16、nfig-if)#int f0/1.1RouterA(config-subif.1)#encapsulation dot1q 1RouterA(config-subif)#ip address 10.66.1.2 255.255.0.0RouterA(config-subif)#int f0/1.2RouterA(config-subif.2)#encapsulation dot1q 2RouterA(config-subif)#ip address 10.60.1.2 255.255.0.0RouterA(config-subif)#int s0/1RouterA(config-if)#ip

17、 address 10.68.1.2 255.255.0.0RouterA(config-if)#no shutdownRouterA(config-if)#exitRouterA(config)#ip routingRouterA(config)#router ripRouterA(config-router)#network 10.0.0.0RouterA(config-router)#endRouterA#RouterC和RouterB的IP如下,设置过程略。RouterC s0/0 :10.68.1.1 s0/1:10.78.1.2RouterB s0/0 :10.78.1.1 f0/

18、0 :10.69.1.2 f0/1:10.70.1.24.测试各点的联通性【实验过程】(实验步骤、记录、数据、分析)1、 实验步骤 实现两台交换机,三台路由器,八台电脑,五个网段下的互通。1. 设置计算机的IP地址和网关:2. 设置交换机的IP地址、网关和干线3. 设置路由器的IP和动态路由4. 测试各点的联通性2、 故障分析 1. 在输入计算机的网关时,不让输入,并显示: netid error! 表示你输入的网关地址与主机地址不在同一网络。 计算机的网关和主机IP地址应该属于同一个网络。 2. 输入中路由器的接口中IP时,不让输入,提示: <ip address> overla

19、ps with <interface> 表示你输入的IP地址在显示的接口已经设置过了。 路由器接口的IP地址要求是不同的网络。 3. 静态路由目标应该是网络地址,而不是IP地址。 当多个路由器用静态路由实现联通时,要在多个 路由器都要设置。路由表是路由依据。 显示路由表 命令:router#sh ip ro 4. 设置S口时,提示clock ? 表示S口的一端要求设置时钟。如果连接两个路由器 的S口,两端都没有设置时钟,或两端都设置时钟是 不可以的。 5. 不能ping指定网络时,请检查: (1)路由器是否执行了ip routing (2)路由器的接口是否执行了 no shutdo

20、wn【结论】(结果)rootPCA root# ping 10.65.1.164 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.176 ms64 bytes from 10.65.1.1: icmp_seq=1 ttl=128 time=0.186 ms4packets transmitted, 4 received,

21、0% loss, time 2000msrootPCA root# ping 10.69.1.164 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.176 ms64 bytes from 10.69.1.1: icmp_seq=1 ttl=128 time=0.186 ms4packets transmitted, 4

22、received, 0% loss, time 2000msrootPCA root# ping 10.70.1.164 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.176 ms64 bytes from 10.70.1.1: icmp_seq=1 ttl=128 time=0.186 ms4packets trans

23、mitted, 4 received, 0% loss, time 2000msrootPCA root# ping 10.66.1.164 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.176 ms64 bytes from 10.66.1.1: icmp_seq=1 ttl=128 time=0.186 ms4pac

24、kets transmitted, 4 received, 0% loss, time 2000ms rootPCA root#ping 10.60.1.164 bytes from 10.60.1.1: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.60.1.1: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.60.1.1: icmp_seq=1 ttl=128 time=0.176 ms64 bytes from 10.60.1.1: icmp_seq=1 ttl=128 time=0.

25、186 ms4packets transmitted, 4 received, 0% loss, time 2000msrootPCA root# ping 10.66.1.364 bytes from 10.66.1.3: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.66.1.3: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.66.1.3: icmp_seq=1 ttl=128 time=0.176 ms64 bytes from 10.66.1.3: icmp_seq=1 ttl=128 time=0.186 ms4packets transmitted, 4 received, 0% loss, time 2000msrootPCA root# ping 10.60.1.364 bytes from 10.60.1.3: icmp_seq=1 ttl=128 time=0.207 ms64 bytes from 10.60.1.3: icmp_seq=1 ttl=128 time=0.180 ms64 bytes from 10.60

温馨提示

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

评论

0/150

提交评论