版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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实验步骤观察内容显示路由器的串口状态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
4、MTU 1500 bytes, BW 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
5、: 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 addr
6、ess is 192.0.0.1/24 MTU 1500 bytes, BW 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 fo
7、r 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-BRApas
8、sword 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
9、 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 Kbit, DLY 20000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encaps
10、ulation 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验证是双向验证,是密文验证。配置完成后在串口上要sh
11、utdown接口后再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
12、) 对端用户名和共享密码(和主验证方配置的密码要一样才能通信)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/2
13、4 MTU 1500 bytes, BW 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:!Su
14、ccess 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|n
15、onstandard|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.
16、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
17、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 rate
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 一般工业固废分类收集管理办法
- 糖尿病饮食营养干预方案
- 三级安全教育培训考核管理规范
- 废气污染治理设施运行管理规定
- 作业现场安全风险管控指引
- 理疗后客户随访关怀服务规范指引
- 民事法律题库及答案
- 消防器材使用方法实操培训方案
- 土壤线虫病改良治理方案
- 人像摄影题目及答案
- 2026中国铁路兰州局集团有限公司招聘普通高校毕业生113人(三)笔试备考题库及答案解析
- 精神科风险评估管理规范2026.1.10
- 2026年中国邮政集团面试与笔试全攻略
- 2026无锡市中考历史押题必刷卷含答案
- 第10课 学会表达 课件(内嵌视频)2025-2026学年道德与法治三年级下册统编版
- 2025-2030韩国造船设备行业市场深度调研及发展趋势与投资前景预测研究报告
- 发展对象应知应会题库
- 内蒙古自治区包头市2025-2026学年中考二模物理试题(含答案解析)
- 雨课堂学堂在线学堂云人工智能与医学数据计算(中国医科大学)单元测试考核答案
- 广东省江门市2026年高考模拟考试(一模)英语试题( 含答案)
- 瑞幸咖啡入职在线测评题库
评论
0/150
提交评论