网络环境:
=================================================================
PAP认证方式:
PAP单项认证:R1为服务器端,R2为客户端
R1配置:
=================================================================
PAP认证方式:
1、验证由客户端发起,它向服务端发送用户名和密码;
2、服务端查询自己的数据库,如果有匹配的用户名和密码,则验证通过,发送接受消息,否则拒绝连接。
由于PAP验证采用明文在网络中传输用户名和密码,安全性比CHAP验证差。
=============================================================================================PAP单项认证:R1为服务器端,R2为客户端
R1配置:
R1>
enable
R1#
configure terminal
R1(config)#
username jsxjs password adminjsxjs
R1(config)#
interface s0/0
R1(config-if)#
encapsulation ppp
R1(config-if)#
ppp authentication pap
R2配置:
R2配置:
R2>
enable
R2#
configure terminal
R2(config)#
interface s0/0
R2(config-if)#
encapsulation ppp
R2(config-if)#
ppp pap sent-username jsxjs password adminjsxjs
============================================================================================
PAP双向认证:(这里双方配置的用户名和密码不一样,当然也可以设置双方的用户名和密码一样)
R1配置:
=======================================================================
============================================================================================
PAP双向认证:(这里双方配置的用户名和密码不一样,当然也可以设置双方的用户名和密码一样)
R1配置:
R1>
enable
R1#
configure terminal
R1(config)#
username jsxjs password adminjsxjs
R1(config)#
interface s0/0
R1(config-if)#
encapsulation ppp
R1(config-if)#
ppp pap sent-username jlzz password adminjlzz
R1(config-if)#
ppp authentication pap
R2配置:
R2>
enable
R2#
configure terminal
R2(config)#
username jlzz password adminjlzz
R2(config)#
interface s0/0
R2(config-if)#
encapsulation ppp
R2(config-if)#
ppp pap sent-username jsxjs password adminjsxjs
R2(config-if)#
ppp authentication pap
本文转自:
http://blog.chinaunix.net/uid-20799583-id-3124667.html