快速业务通道

详解广域网协议PPP→CHAP验证 中

作者 佚名技术 来源 网络技术 浏览 发布时间 2012-07-03
20110413/1613295.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:>

要想A。B可以实现通讯,必须两个设备CHAP验证成功,下面我们来配置B路由器上的验证信息  

  1. B(config)username A password 123 对方的hostname 为A,密码为123  
  2. B(config)#int s1/0 进入广域网端口  
  3. B(config-if)#ppp authentication chap 启用CHAP验证 

在完成上面的配置后,两台设备均为自动提示广域网端口协议为UP状态

498)this.width=498;'' onmousewheel = ''javascript:return big(this)'' style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" onclick=window.open( height=39 alt=clip_image026 src="http://images.51cto.com/files/uploadimg/20110413/1613296.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:> 498)this.width=498;'' onmousewheel = ''javascript:return big(this)'' style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" onclick=window.open( height=42 alt=clip_image028 src="http://images.51cto.com/files/uploadimg/20110413/1613297.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:>

查看路由表,此时两台路由器均会收到对方路由,证明CHAP验证成功,此时A、B路由器便可以相互通讯了

498)this.width=498;'' onmousewheel = ''javascript:return big(this)'' style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" onclick=window.open( height=216 alt=clip_image030 src="http://images.51cto.com/files/uploadimg/20110413/1613298.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:> 498)this.width=498;'' onmousewheel = ''javascript:return big(this)'' style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" onclick=window.open( height=213 alt=clip_image032 src="http://images.51cto.com/files/uploadimg/20110413/1613299.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:>

我们可以在B路由器上ping一下A路由器的内部网络

498)this.width=498;'' onmousewheel = ''javascript:return big(this)'' style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px" onclick=window.open( height=92 alt=clip_image034 src="http://images.51cto.com/files/uploadimg/20110413/16132910.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:>

假如想更好的理解CHAP,我们可以debug ppp authentication命令进行调试,我们可以通过此命令看到两台路由器的验证过程首先我们关闭B路由器上广域网S1/0,然后在A路由器上输入debug ppp authentication,然后在打开B路由器的S1/0端口,此时A路由器出现如下信息(CHAP验证过程)

498)this.width=498;'' onmousewheel = ''javascript:return big(this)'' height=292 alt=详解广域网协议PPP→CHAP验证 src="http://images.51cto.com/files/uploadimg/20110413/16132911.jpg" width=553 border=0> 

PPP→CHAP验证的更多内容:

详解广域网协议PPP→CHAP验证 上

详解广域网协议PPP→CHAP验证 下

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号