已阅读5页,还剩4页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
姓名: 班级: 学号: 年级: 12级指导教师:成绩:信息学院 网络系统集成课程实践 实验报告实验名称 PPP的PAP和CHAP认证实验日期:2015年04月15日1、 实验目的:掌握PPP PAP认证和PPP CHAP认证的过程及配置。2、 实验内容(1)在路由器上配置PPP PAP认证;(2)在路由器上配置PPP CHAP认证。3、 实验要求(1)写出在路由器上配置PPP PAP认证的过程;(2)写出在路由器上配置PPP CHAP认证的过程4、 实验设备(1) 路由器Router-2811两台; (2) DCE串口线5、 实验步骤(一)PPP PAP认证(本实验要求配置路由器R1和路由器R2双向PAP验证)实验网络拓补结构设计1、配置路由器R1R1enableR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#username R2 password cisco /以对方的主机名作为用户名,密码和对方路由器一致,在验证方配置被验证方用户名密码R1(config)#int loop0R1(config-if)#ip address 1.1.1.1 255.255.255.0R1(config-if)#int s 0/3/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#encapsulation ppp /接口下封装数据链路层PPP协议R1(config-if)#ppp authentication pap /PPP启用PAP认证方式R1(config-if)#ppp pap sent-username R1 password cisco/PAP认证的用户名、密码R1(config-if)#no shutdownR1(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to upR1(config-if)#exitR1(config)#exitR1#%SYS-5-CONFIG_I: Configured from console by console2、配置路由器R2RouterenableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2R2(config)#username R1 password cisco /以对方的主机名作为用户名,密码和对方路由器一致,在验证方配置被验证方用户名密码R2(config)#int loop0R2(config-if)#%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upR2(config-if)#ip address 2.2.2.2 255.255.255.0R2(config-if)#int s 0/3/0R2(config-if)#ip address 192.168.1.1 255.255.255.0R2(config-if)#encapsulation ppp /接口下封装数据链路层PPP协议R2(config-if)#ppp authentication pap /PPP启用PAP认证方式R2(config-if)#ppp pap sent-username R2 password cisco/PAP认证的用户名、密码R2(config-if)#no shutdownR2(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to upR2(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to upR2(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to down%LINK-5-CHANGED: Interface Serial0/3/0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to up3、配置完成Router1和Router2后,在Router1上进行测试R1#debug ppp authentication/打开PPP认证调试PPP authentication debugging is onR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s 0/3/0R1(config-if)#shutdownR1(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to administratively down%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to downR1(config-if)#no shutdown/端口关闭之后再打开,就可以看到PAP认证的重新建立过程R1(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to upSerial0/3/0 Using hostname from interface PAPSerial0/3/0 Using password from interface PAPSerial0/3/0 PAP: O AUTH-REQ id 17 len 15Serial0/3/0 PAP: Phase is FORWARDING, Attempting ForwardSerial0/3/0 PAP: I AUTH-REQ id 17 len 15Serial0/3/0 PAP: Authenticating peerSerial0/3/0 PAP: Phase is FORWARDING, Attempting ForwardSerial0/3/0 Using hostname from interface PAPSerial0/3/0 Using password from interface PAPSerial0/3/0 PAP: O AUTH-REQ id 17 len 15Serial0/3/0 PAP: Phase is FORWARDING, Attempting Forward%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to up4、查看网络拓补图从图上可以看出,路由器之间已经联通5、当R1和R2密码不一致时,再次进行测试R1(config)#int s 0/3/0R1(config-if)#no ppp pap sent-username R1 password cisco/修改路由器R1上的密码,是路由器R1和R2的密码不一致,可以看到,认证将失败R1#debug ppp authenticationPPP authentication debugging is onR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s 0/3/0R1(config-if)#shutdownR1(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to administratively down%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to downR1(config-if)#no shutdown当发出no shutdown命令时,出现了死循环,用Ctrl+c强制退出并用end结束。6、检查网络拓补图由此可以看出,当两个路由器密码不一样时,两路由器无法联通。(2) PPP CHAP认证网络实验拓补结构1、 配置路由器R1RouterenableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R1R1(config)#username R2 password ciscoR1(config)#int loop0R1(config-if)#%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upR1(config-if)#ip address 1.1.1.1 255.255.255.0R1(config-if)#int s 0/3/0R1(config-if)#ip address 192.168.1.1 255.255.255.0R1(config-if)#encapsulation pppR1(config-if)#ppp authentication chapR1(config-if)#ppp pap sent-username R1 password ciscoR1(config-if)#no shutdown%LINK-5-CHANGED: Interface Serial0/3/0, changed state to downRouter(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to up2、 配置路由器R2RouterenableRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#hostname R2R2(config)#username R1 password ciscoR2(config)#int loop0R2(config-if)#%LINK-5-CHANGED: Interface Loopback0, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to upR2(config-if)#ip address 2.2.2.2 255.255.255.0R2(config-if)#int s 0/3/3%Invalid interface type and numberR2(config)#int s 0/3/0R2(config-if)#int s 0/3/0R2(config-if)#ip address 192.168.1.1 255.255.255.0R2(config-if)#encapsulation pppR2(config-if)#ppp authentication chapR2(config-if)#ppp pap sent-username R2 password ciscoR2(config-if)#no shutdownR2(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to up3、 在R1上进行测试R1#debug ppp authenticationPPP authentication debugging is onR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s 0/3/0R1(config-if)#shutdownR1(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to administratively down%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to downR1(config-if)#no shutdownR1(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, changed state to upSerial0/3/0 IPCP: O CONFREQ Closed id 1 len 10Serial0/3/0 IPCP: I CONFACK Closed id 1 len 10Serial0/3/0 IPCP: O CONFREQ Closed id 1 len 10Serial0/3/0 IPCP: I CONFACK REQsent id 1 len 10Serial0/3/0 IPCP: I CONFREQ Closed id 1 len 10Serial0/3/0 IPCP: O CONFACK Closed id 1 len 10Serial0/3/0 IPCP: I CONFREQ REQsent id 1 len 10Serial0/3/0 IPCP: O CONFACK REQsent id 1 len 10Serial0/3/0 IPCP: O CONFREQ Closed id 1 len 10Serial0/3/0 IPCP: I CONFACK Closed id 1 len 10Serial0/3/0 IPCP: O CONFREQ Closed id 1 len 10Serial0/3/0 IPCP: I CONFACK REQsent id 1 len 10%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/3/0, changed state to up4、 显示网络拓补图,发现路由器配置并连接成功。5、 修改R1上的密码,再次进行测试R1(config-if)#exitR1(config)#int s 0/3/0R1(config-if)#no ppp pap sent-username R1 password ciscoR1(config-if)#R1(config-if)#exitR1(config)#exitR1#%SYS-5-CONFIG_I: Configured from console by consoleR1#debug ppp authenticationPPP authentication debugging is onR1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s 0/3/0R1(config-if)#shutdownR1(config-if)#%LINK-5-CHANGED: Interface Serial0/3/0, change
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026四川成都市龙泉驿区东山国际小学教师招聘12人备考题库附参考答案详解(a卷)
- 2026年及未来5年市场数据中国观光农园行业市场发展数据监测及投资潜力预测报告
- 2026陕西西安市西北工业大学材料学院高温功能材料团队招聘1人备考题库附完整答案详解(夺冠系列)
- 2026年湖南软件职业技术大学单招职业技能考试题库附答案详细解析
- 2026青海天蓝新能源材料有限公司招聘2人备考题库附完整答案详解(必刷)
- 2026江苏南京师范大学专业技术人员招聘10人备考题库及一套完整答案详解
- 2026江苏南通市第一人民医院第一批招聘备案制工作人员102人备考题库及完整答案详解(名师系列)
- 2026广东省广晟控股集团有限公司总部管理人员岗位选聘4人备考题库附参考答案详解【综合卷】
- 2026浙江宁波市鄞州区公立学校招聘编外员工1人备考题库附完整答案详解(考点梳理)
- 2026陕西西安市中医医院中药调剂员招聘10人备考题库附答案详解(预热题)
- 水利三防培训课件
- 锅炉满水培训课件
- 2026春教科版(新教材)小学科学一年级下册(全册)教学设计(附教材目录)
- 小儿股静脉抽血课件
- 2026年湖南有色金属职业技术学院单招职业技能考试题库附答案
- 建筑毕业论文2000字
- 多器官功能衰竭长期卧床患者支持方案
- 2025年江西机电职业技术学院单招职业技能测试题库附答案
- 财务共享服务在房地产行业中的应用可行性研究报告
- 植物向日葵养护知识培训课件
- 幼儿园课件:《体能大循环的有效开展策略》
评论
0/150
提交评论