20110413/1613295.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:>
要想A。B可以实现通讯,必须两个设备CHAP验证成功,下面我们来配置B路由器上的验证信息 - B(config)username A password 123 对方的hostname 为A,密码为123
- B(config)#int s1/0 进入广域网端口
- 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验证 下
|