1、网络实验报告许昌学院计算机科学与技术学院计算机网络课程实验教学手册课程实验教学手册姓 名:学 号:专 业: 计算机科学与技术班 级: 级 班任课教师:时 间: 2010 学年度 2011 学期综合成绩:计算机科学与技术学院计算机网络课程组计算机科学与技术学院计算机网络课程实验教学手册实验一实验名称:网线制作实验时间: 2010 年 10 月 10 日实验地点:网络工程 实验室实同组同学:实验目的:验(1)了解标准 T568A 与 T568B 网线的线序;基本(2)掌握网线的制作和测试方法;信(3)了解不同网线的作用及应用场合。息实验要求:(1) 写出 T568A 与 T568B 网线的线序;(
2、2) 写出网线的制作过程。实(1)了解在制作双绞线过程中所需要的工具和材料,以及压线钳的使用方法。验压线钳、水晶头、网线前(2)要了解交叉线和直通线的线序排列情况。的预习情况(1) 写出 T568A 与 T568B 网线的线序;T568A 的线序是: 白绿 绿 白橙 白蓝 白棕 橙 蓝 棕T568B 的线序是: 白橙 橙 白绿 蓝 白蓝 绿 白棕 棕实(2) 写出网线的制作过程。验1.准备好 RJ45 水晶头、网线钳、网线,利用压线钳的剪线刀口裁出需要用到过程的双绞线的长度。描2.将网线两头灰色保护层外皮削去约 1.5cm,利用压线钳的剪线刀将线剪齐。述3.将一头的芯线按 T568B 顺序排列
3、整齐保持在一个平面上,将水晶头露出铜片的面向上,插入芯线至底.4.水晶头头部放入压线钳,用力压、压得过程中是水晶头凸出在外面的针脚全部压入水晶头内听到“啪”的一声即可。5.另一头,直通线顺序同上,交叉线顺序为白绿 绿 白橙 白蓝 白棕 橙 蓝 棕第2 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册交叉线一般用于双机互联,直通线一般用于猫或交换器与计算机互联。1.直通线和交叉线的应用场合是什么?直通线用在不同设备之间的链接,交叉线用在相同设备之间的链接。2.用网线将两台计算机连接后,怎样测试它们的连通性?在PC 机的 DOS 里用 Ping 命令测试连通性。回答问题实验成绩教师签
4、名:第3 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册实验二实验名称:交换机路由器的基本配置。实验时间: 2010 年 10 月 20 日实验地点:网络工程实验室实同组同学:验实验目的:基(1)了解锐捷系列交换机和路由器的几种配置模式;本(2)了解交换机与路由器的作用;信(3)掌握交换机与路由器的基本配置方法与命令。息实验要求:(1)写出给交换机或路由器命名的过程;(2)写出交换机和路由器的其它常用配置过程。实了解锐捷系列交换机和路由器的几种配置模式,掌握交换机与路由器的基本配置方法与命令。验用户模式前特权模式的全局配置模式预接口配置模式习VLAN 配置模式情况交换机的基本配
5、置:Red_GiantenablePassword:xcu2008Red_Giant#configure terminalRed-Giant (config) # hostname SwitchASwitchA(config)# interface fa 0/1SwitchA(config)#exit实SwitchA(config)#exit验过SwitchA(config)#vlan 10SwitchA(config)#exit程SwitchA(config)# interface range fa 0/1-3描SwitchA(config)#switchport mode access述S
6、witchA(config)#int f0/24SwitchA(config)#switchport mode trunkSwitchA#show interface第4 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册显示交换机 switch A 的全部配置实验过程描述1.交换机和路由器经常被用于何种场合?交换机经常用在局域网中,路由器经常用在不同网络之间的通信进行数据回转发。答2.为路由器的广域网接口 1 配置 ip 地址 211.67.188.3,请填空:问题RouterA(config)#int s1/3!进入相应接口RouterA(config-if)#ip addre
7、ss 211.67.188.3!配置 ip 地址实验成绩教师签名:第5 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册实验三实验名称:PPP 认证。实验时间: 2010 年 11 月 8 日实验地点:网络工程实验室实同组同学:实验目的:验基(1)掌握 PPP PAP 认证的过程及配置;本(2)掌握 PPP CHAP 认证的过程及配置。信息实验要求:(1)写出在路由器上配置 PPP PAP 认证的过程;(2)写出在路由器上配置 PPP CHAP 认证的过程。一、PPP 介绍PPP(Point-to-Point Protocol 点到点协议)是为在同等单元之间传输数据包的链路层协议
8、。这种链路提供全双工操作,并按照顺序传递数据包。设计目的主要是用来通过拨号或专线方式建立点对点连接发送数据,使其成为各种主机、网桥和路由器之间简单连接的一种共通的解决方案。二、PPP 链路建立过程:PPP协议中提供了一整套方案来解决链路建立、维护、拆除、上层协实验 议协商、认证等问题。PPP 协议包含这样几个部分:链路控制协议 LCP(Link前Control Protocol);网络控制协议 NCP(Network Control Protocol);认证协的议,最常用的包括口令验证协议 PAP(Password Authentication Protocol)预习和挑战握手验证协议 CHA
9、P(Challenge-Handshake Authentication Protocol)。情三、 认证方式况口令验证协议(PAP)挑战-握手验证协议(CHAP)第6 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册路由器 Ra 的配置:RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname RaRa(config)#int s0/0Ra(config-if)#ip add 172.16.2.1 255.255.255.0Ra
10、(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/0, changed state to downRa(config-if)#clock rate 64000Ra(config)#username Ra password 0 star实Ra(config)#int s0/0验Ra(config-if)#encapsulation ppp过Ra(config-if)#ppp authentication pap程描述 Ra 当前配置命令:Ra#show runBuilding configuration.Current confi
11、guration : 460 bytes!version 12.2no service password-encryption!hostname Ra!username Ra password 0 star!ip ssh version 1!第7 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface FastEthernet0/1no ip addressduplex autospeed autoshutdown!interface
12、 Serial0/0ip address 172.16.2.1 255.255.255.0encapsulation ppppppauthentication pap clock rate 64000!ip classless!line con 0line vty 0 4login!End路由器 Rb 的配置:RouterenRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname RbRb(config)#int s0/0Rb(config-if)#ip a
13、dd 172.16.2.2 255.255.255.0Rb(config-if)#no shu%LINK-5-CHANGED: Interface Serial0/0, changed state to up Rb(config-if)#encapsulation ppp Rb(config-if)#ppp pap sent-username Ra password 0 star第8 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册Rb(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, ch
14、anged state toup%SYS-5-CONFIG_I: Configured from console by console Rb#Rb 当前配置命令:Rb#show runBuilding configuration.Current configuration : 430 bytes!version 12.2no service password-encryption!hostname Rb!ip ssh version 1!interface FastEthernet0/0no ip addressduplex autospeed autoshutdown!interface F
15、astEthernet0/1no ip addressduplex autospeed autoshutdown!interface Serial0/0ip address 172.16.2.2 255.255.255.0encapsulation pppppp pap sent-username Ra password 0 star!ip classless!第9 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册!line con 0line vty 0 4login!end根据自己的理解,写出 PPP 认证的作用:PPP的认证包括 PAP 跟 CHAP 的作用都是来验证用户的
16、帐号及密码。PAP回会把明文送出来做验证,所以不安全。CHAP 则是双方都把随机乱数+密码、透答 过杂凑函数来运算,所以网路上只会监看到杂凑函数的种类及随机乱数,不会问题 看到密码,安全性很高。实验成绩教师签名:第10 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册实验四实验名称:Vlan 的基本配置。实验时间: 2010 年 11 月 17 日实验地点:网络工程实验室实同组同学:验实验目的:(1)认识交换机的几种工作模式和进入方式;基本(2)了解 vlan 的用途、工作原理和几种实现技术;信(3)掌握 vlan 的配置方法。息实验要求:(1)交换机上连接两台主机,测试主机联通
17、性;(2)在交换机上分别创建两个 vlan,并为它们分配相应的端口;(3)测试 vlan 内连通性和 vlan 间连通性。VLAN(Virtual Local Area Network)的中文名为虚拟局域网。VLAN 是一种将局域网设备从逻辑上划分成一个个网段,从而实现虚拟工作组的新兴数据交换技术。这一新兴技术主要应用于交换机和路由器中,但主流应用还是在交换机之中。但又不是所有交换机都具有此功能,只有 VLAN 协议的第三层以上交换机才具有此功能,这一点可以查看相应交换机的说明书即可得知。实验前的预习情况第11 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册交换机 A 的当前配
18、置命令:SwitchA#show runBuilding configuration.Current configuration : 1087 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname SwitchA!interface FastEthernet0/1switchport access vlan 10!interface FastEthernet0/2实!验int
19、erface FastEthernet0/3过 !程 interface FastEthernet0/4描 !述 interface FastEthernet0/5 switchport access vlan 20!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interf
20、ace FastEthernet0/13!interface FastEthernet0/14第12 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!i
21、nterface FastEthernet0/23!interface FastEthernet0/24switchport mode trunk!interface GigabitEthernet1/1!interface GigabitEthernet1/2!interface Vlan1no ip addressshutdown!line con 0!line vty 0 4loginline vty 5 15login!end交换机 B 的当前配置命令:SwitchB#show runBuilding configuration.第13 页 共 42 页计算机科学与技术学院计算机网络课
22、程实验教学手册Current configuration : 1060 bytes!version 12.2no service timestamps log datetime msecno service timestamps debug datetime msecno service password-encryption!hostname SwitchB!interface FastEthernet0/1switchport access vlan 10!interface FastEthernet0/2!interface FastEthernet0/3!interface FastE
23、thernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/
24、15!interface FastEthernet0/16!interface FastEthernet0/17第14 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface FastEthernet0/23!interface FastEthernet0/24switchport mode trun
25、k!interface GigabitEthernet1/1!interface GigabitEthernet1/2!interface Vlan1no ip addressshutdown!line con 0!line vty 0 4loginline vty 5 15login!end1.交换机 A 上 1 端口的 PC 机 Ping 交换机 B 上 1 端口的 PC 机:第15 页 共 42 页计算机科学与技术学院计算机网络课程实验教学手册2.交换机 B 上 1 端口的 PC 机 Ping 交换机 A 上 1 端口的 PC 机:3.交换机 A 上 1 端口的 PC 机 Ping 交换机 A 上 5 端口的 PC 机:根据实验情况,将下表填写完整。ping 命令能否 ping 通同一 VLAN 中PCA pi
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1