ppp的pap认证完全配置

网络环境:

=================================================================
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> 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配置:
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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值