广域网链路层协议配置试验_第1页
广域网链路层协议配置试验_第2页
广域网链路层协议配置试验_第3页
广域网链路层协议配置试验_第4页
广域网链路层协议配置试验_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

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

文档简介

1、实验3广域网链路层协议配置实验实验目的掌握HDLC、PPP、FR的配置实验设备Cisco 2621, Quidway 28 系列路由器实验概述1. 实验环境路由器各个接口的IP地址设置如下:RaRbF0/0202.0.0.1/24202.0.1.1/24S0/0192.0.0.1/24192.0.0.2/24PC机的IP地址和缺省网关的IP地址如下:PCaPCbIP地址202.0.0.2/24202.0.1.2/24Gateway202.0.0.1/24202.0.1.1/24为了保证配置不受影响,请在实验前清除路由器的所有配置有重新启动(Cisco的路由器删除startup-config文件

2、,Quidway的路由器删除 saved-config文件)。2. 实验步骤1) 配置路由器的接口 IP地址和主机地址,修改路由器名称为RA和RB ;2)在路由器的串口上配置 HDLC协议,查看路由器的配置文件,并测试 PCA和 PCB之间的连通性;3) 在路由器的串口上配置无验证的PPP协议,查看路由器的配置文件, 并测试PCA 和PCB之间的连通性;4)在路由器的串口上配置 PAP认证的PPP协议,查看路由器的配置文件,并测试 PCA和PCB之间的连通性;5)在路由器的串口上配置 CHAP认证的PPP协议,查看路由器的配置文件,并测 试PCA和PCB之间的连通性;6)在路由器的串口上配置帧

3、中继协议,查看路由器的配置文件,并测试PCA和PCB之间的连通性。实验内容1. 配置HDLC协议,测试PCA和PCB之间的连通性,填写表 1。 在端口状态下命令:link-protocol hdlc( Quidway 命令)encapsulation hdlc (Cisco 命令)表1实验步骤观察内容显示路由器的串口状态Comma nd: show in terface s0/0 或: display in terface s0/0SerialO/O is up, li ne protocol is dow n Hardware is PowerQUICC Serial In ternet a

4、ddress is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DLY 20000 usec,reliability 255/255, txload 1/255, rxload 1/255En capsulati on HDLC, loopback not set测试PC1/PC2连通状态Comma nd: pingPinging 202.0.1.2 with 32 bytes of data: Request timed out.Request timed out.Request timed out.Request timed out.Pi n

5、g statistics for 202.0.1.2:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),2.配置无验证的PPP协议,测试PCA和PCB之间的连通性,填写表2。在端口状态下命令:link-protocol ppp (Quidway命令)encapsulation ppp ( Cisco 命令)表2实验步骤观察内容显示路由器的串口状态Comma nd: show in terface s0/0 或: display in terface s0/0SerialO/O is up, li ne protocol is upHar

6、dware is PowerQUICC SerialIn ternet address is 192.0.0.1/24MTU 1500 bytes, BW 2000000 Kbit,DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255En capsulati on PPP, loopback not set测试PC1/PC2连通状态Comma nd: pingPinging 202.0.1.2 with 32 bytes of data:Request timed out.Request timed out.Reques

7、t timed out.Request timed out.Pi ng statistics for 202.0.1.2:Packets: Sent = 4, Received = 0, Lost =4 (100% loss),3. 配置采用PAP验证的PPP协议,PAP验证是单向验证,RA作为主验证方,RB作为被验证方,是明文验证,配置中要注意双方的密码必须一致且区分大小写。配 置完成后在串 口上要shutdown 接口后再 no shutdown ( Cisco 命令)/ undo shutdown(Quidway命令)使之生效后才能检测是否配置正确。验证方配置a) 配置验证方式ppp a

8、uthe nticati on-m ode papb) 配置用户列表RAlocal-user user-B RApassword simple sharepass RAservice-type ppp被验证方配置c) 配置PAP用户名ppp pap local-user user name password simple|cipher password在Cisco路由器中用到的命令格式如下:Router(config)#hostname name要验证方的用户名和口令Router(c on fig)#user name n ame password passwordEnables PAP /

9、CHAP 认证Router(config_if)#ppp authentication chap | chap pap | pap chap | pap测试PCA和PCB之间的连通性,填写表 3。表3实验步骤观察内容显示路由器的串口状态Comma nd: show in terface s0/0 或: display in terface s0/0Serial0/0 is up, li ne protocol is upHardware is PowerQUICC SerialIn ternet address is 192.0.0.1/24MTU 1500 bytes, BW 2000000

10、 Kbit,DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255En capsulati on PPP, loopback not set测试PC1/PC2连通状态Comma nd: pingPinging 202.0.1.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Pi ng statistics for 202.0.1.2:Packets: Sent = 4, Recei

11、ved = 0, Lost = 4(100% loss),4. 配置采用CHAP验证的PPP协议,CHAP验证是双向验证,是密文验证。配置完成后在串口上要shutdown接口后再 no shutdown (Cisco命令)/ undo shutdown(Quidway命令)使之生效后才能检测是否配置正确。主验证方配置:a)配置本地验证对端(方式为CHAP)ppp authe nticati on-m ode chapb)配置本地名称ppp chap user RAc)将对端用户名和共享密码加入本地用户列表RAlocal-user RBRA-luser-RBpassword simple sha

12、repassRA-luser-RBservice-type ppp被验证方配置:a)本地名称/密码:RB-SerialO/O ppp chap user RBb)对端用户名和共享密码(和主验证方配置的密码要一样才能通信)RBlocal-user RARB-luser-RApassword simple sharepassRB-luser-RAservice-type ppp测试PCA和PCB之间的连通性,填写表 3。表4实验步骤观察内容显示路由器的串口状态Comma nd: show in terface s0/0 或: display in terface s0/0Serial0/0 is

13、up, li ne protocol is up Hardware is PowerQUICC Serial In ternet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DL Y 20000 usec,reliability 255/255, txload 1/255, rxload 1/255En capsulatio n PPP, loopback not set Keepalive set (10 sec)LCP Ope nOpe n: IPCP, CDPCP测试PC1/PC2连通状态Comma nd: pingy

14、pe escape seque nee to abort.Sending 5, 100-byte ICMP Echos to 192.0.0.2, timeout is 2 sec on ds:!Success rate is 100 perce nt (5/5), roun d-trip mi n/avg/max = 1/2/4 msPCA 和 PCB5 在路由器的串口上配置帧中继协议,查看路由器的配置文件,并测试 之间的连通性。1)封装接口in terface serial 0/0ip address 202.38.163.251 255.255.255.0Quidway 命令:link-

15、protocol frCisco 命令: encap fr2)配置帧中继接口的终端类型fr in terface-type dee (端配 DCE,另一端配 DTE)3)选择LMI类型fr lmi type an si| non sta ndard|q933a 默认LMI协议类型为q933a。4)在DCE上分配 DLCIfr dlci 1005)启动inverse-arp逆向地址解析协议fr inarp(也可以用静态映射协议fr map ip 202.38.163.252 dlci 100 )表5实验步骤观察内容显示路由器的串口状态Comma nd: show in terface s0/0

16、或:display in terface s0/0SerialO/O is up, li ne protocol is up Hardware is PowerQUICC Serial In ternet address is 192.0.0.2/24 MTU 1500 bytes, BW 1544 Kbit, DL Y 20000 usec,reliability 255/255, txload 1/255, rxload1/255Encapsulation FRAME-RELAY , loopback not setKeepalive set (10 sec)LMI enq sent 44

17、, LMI stat recvd 0, LMI upd recvd 0LMI enq recvd 88, LMI stat sent20, LMIupd sent 0, DCE LMI upLMI DLCI 0LMI type is CCITT framerelay DCEBroadcast queue 0/64, broadcasts sen t/dropped1/0, in terface broadcasts 0Last in put 00:00:07, output 00:00:07, output hang n everLast cleari ng of show in terfac

18、e coun ters 00:11:58In put queue: 0/75/0/0(size/max/drops/flushes); Total output drops: 0Queue ing strategy: weighted fairOutput queue: 0/1000/64/0 (size/max total/threshold/drops)Con versati ons 0/5/256 (active/max active/max total)Reserved Con versatio ns 0/0 (allocated/max allocated) Available Ban dwidth 1158 kilobits/sec 5 minute in put rate 0 bits/sec, 0 packets/sec 5 minute output rate 0

温馨提示

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

评论

0/150

提交评论