




已阅读5页,还剩2页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
实验 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 文件,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)在路由器的串口上配置帧中继协议,查看路由器的配置文件,并测试PCA和PCB之间的连通性。实验内容1 配置HDLC协议,测试PCA和PCB之间的连通性,填写表1。在端口状态下命令:link-protocol hdlc (Quidway命令) encapsulation hdlc (Cisco命令)表1实验步骤观察内容显示路由器的串口状态Command: show interface s0/0或:display interface s0/0Serial0/0 is up, line protocol is down Hardware is PowerQUICC Serial Internet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation HDLC, loopback not set测试PC1/PC2连通状态Command: pingPinging 202.0.1.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping 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实验步骤观察内容显示路由器的串口状态Command: show interface s0/0或:display interface s0/0 Serial0/0 is up, line protocol is up Hardware is PowerQUICC Serial Internet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, loopback not set测试PC1/PC2连通状态Command: pingPinging 202.0.1.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping 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 authentication-mode papb) 配置用户列表RAlocal-user user-BRApassword simple sharepassRAservice-type ppp被验证方配置c) 配置PAP用户名ppp pap local-user username password simple|cipher password在Cisco路由器中用到的命令格式如下:Router(config)#hostname name要验证方的用户名和口令Router(config)#username name password passwordEnables PAP / CHAP 认证Router(config-if)#ppp authentication chap | chap pap | pap chap | pap 测试PCA和PCB之间的连通性,填写表3。表3实验步骤观察内容显示路由器的串口状态Command: show interface s0/0或:display interface s0/0Serial0/0 is up, line protocol is up Hardware is PowerQUICC Serial Internet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, loopback not set测试PC1/PC2连通状态Command: pingPinging 202.0.1.2 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 202.0.1.2:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),4 配置采用CHAP验证的PPP协议,CHAP验证是双向验证,是密文验证。配置完成后在串口上要shutdown接口后再no shutdown(Cisco命令)/ undo shutdown(Quidway命令)使之生效后才能检测是否配置正确。主验证方配置:a) 配置本地验证对端(方式为CHAP)ppp authentication-mode chapb) 配置本地名称ppp chap user RAc) 将对端用户名和共享密码加入本地用户列表RAlocal-user RBRA-luser-RBpassword simple sharepassRA-luser-RBservice-type ppp被验证方配置:a) 本地名称/密码:RB-Serial0/0 ppp chap user RBb) 对端用户名和共享密码(和主验证方配置的密码要一样才能通信)RBlocal-user RARB-luser-RApassword simple sharepassRB-luser-RAservice-type ppp测试PCA和PCB之间的连通性,填写表3。表4实验步骤观察内容显示路由器的串口状态Command: show interface s0/0或:display interface s0/0Serial0/0 is up, line protocol is up Hardware is PowerQUICC Serial Internet address is 192.0.0.1/24 MTU 1500 bytes, BW 2000000 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation PPP, loopback not set Keepalive set (10 sec) LCP Open Open: IPCP, CDPCP测试PC1/PC2连通状态Command: pingype escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.0.0.2, timeout is 2 seconds:!Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms5在路由器的串口上配置帧中继协议,查看路由器的配置文件,并测试PCA和PCB之间的连通性。1) 封装接口 interface serial 0/0ip address 202.38.163.251 255.255.255.0Quidway命令:link-protocol fr Cisco命令:encap fr2)配置帧中继接口的终端类型fr interface-type dce (一端配DCE,另一端配DTE)3)选择LMI类型fr lmi type ansi|nonstandard|q933a默认LMI协议类型为q933a。4)在DCE上分配DLCIfr dlci 1005)启动inverse-arp逆向地址解析协议fr inarp(也可以用静态映射协议 fr map ip 202.38.163.252 dlci 100)表5实验步骤观察内容显示路由器的串口状态Command: show interface s0/0或:display interface s0/0Serial0/0 is up, line protocol is up Hardware is PowerQUICC Serial Internet address is 192.0.0.2/24 MTU 1500 bytes, BW 1544 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation FRAME-RELAY, loopback not set Keepalive set (10 sec) LMI enq sent 44, LMI stat recvd 0, LMI upd recvd 0 LMI enq recvd 88, LMI stat sent 20, LMI upd sent 0, DCE LMI up LMI DLCI 0 LMI type is CCITT frame relay DCE Broadcast queue 0/64, broadcasts sent/dropped 1/0, interface broadcasts 0 Last input 00:00:07, output 00:00:07, output hang never Last clearing of show interface counters 00:11:58 Input queue: 0/75/0/0 (size/max/drops/flushes); Total output drops: 0 Queueing strategy: weighted fair Output queue: 0/1000/64/0 (size/max total/threshold/drops) Conversations 0/5/256 (active/max active/max total) Reserved Conversations 0/0 (allocated/max allocated) Available Bandwidth 1158 kilobits/sec 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rat
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 合同延期退费协议模板
- 合法有效的购房协议合同
- 平安惠普变卖合同协议
- 合同解约协议英文
- 合同协议led安装合同范本
- 医药费合同协议
- 医患协议算不算合同
- 2025年会计职称考试《初级会计实务》会计职业素养与规范习题及答案
- 保管合同和运输协议
- 合同协议出错说明
- 《InSAR干涉测量》课件
- 2025年人工智能-智能算法考试题库及答案(新版)
- 2025年脑机接口蓝皮书:未来将至打造人机交互新范式-前瞻研究院
- 工程地质学知到智慧树章节测试课后答案2024年秋广东工业大学
- 2025-2030年中国牛黄市场发展状况与前景投资策略建议报告
- DBJ33T 1307-2023 微型钢管桩加固技术规程
- 逻辑哲学论中文版分享
- 国家电投集团招聘笔试冲刺题2025
- 广东省深圳市南山区2023-2024学年六年级上学期英语期末试卷
- 2025年八省联考高考数学试卷评析及复习备考指导课件
- 2025医德医风培训
评论
0/150
提交评论