配置PPP的CHAP验证
配置验证需要两步完成 ①、配置验证所需的用户名和密码(config)#username 用户名 password 密码注:用户名为对方设备使用hostname设置的设备名。密码两端设备应配置相同 ②、启用CHAP验证,在广域网端口上启用CHAP (config-if)#ppp authentication chap
下面我们开始在A路由器上配置CHAP - Aconfig)#username B password 123 对方设备的hostname为B,密码我们设置为123
- A(config)#int s1/0 进入广域网端口
- A(config-if)#ppp authentication chap 启用CHAP验证
当在A路由器上设置完CHAP验证时A、B路由器同时提示S1/0端口协议为down状态,这是因为A路由器配置了CHAP验证,而路由器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=45 alt=clip_image014 src="http://images.51cto.com/files/uploadimg/20110413/1613290.gif" 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=39 alt=clip_image016 src="http://images.51cto.com/files/uploadimg/20110413/1613291.gif" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:>
我们还可以查看一下端口状态,下面显示A、B路由器广域网端口协议均为down状态
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=33 alt=clip_image018 src="http://images.51cto.com/files/uploadimg/20110413/1613292.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=35 alt=clip_image020 src="http://images.51cto.com/files/uploadimg/20110413/1613293.jpg" border=0 viewpic.php?refimg=" + this.src)" blog.51cto.com http:>
现在我们在查看一下路由表,此时A、B路由器路由表中已经没有了对方的路由,因为A和B没有经过身份验证
现在我们在查看一下路由表,此时A、B路由器路由表中已经没有了对方的路由,因为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=171 alt=clip_image022 src="http://images.51cto.com/files/uploadimg/20110413/1613294.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=146 alt=clip_image024 src="http://images.51cto.com/files/uploadimg/ |