永发信息网

如何实现PAP认证

答案:1  悬赏:10  手机版
解决时间 2021-03-20 14:02
  • 提问者网友:蔚蓝的太阳
  • 2021-03-20 02:00
如何实现PAP认证
最佳答案
  • 五星知识达人网友:走死在岁月里
  • 2021-03-20 02:33
PPP配置pap模式:
hostname r1
username r2 password 0 cisco 配置允许接入的用户和密码
ip subnet-zero
!
interface Serial0/1
ip address 1.1.1.1 255.255.255.252
encapsulation ppp 封装成PPP
serial restart-delay 0
ppp authentication pap PPP的认证方式是PAP
ppp pap sent-username r1 password 0 cisco 设置发起PAP验证的用户名和密码

对端的配置:
hostname r2
username r1 password 0 cisco
ip subnet-zero
!
interface Serial0/1
ip address 1.1.1.2 255.255.255.252
encapsulation ppp
serial restart-delay 0
ppp authentication pap
ppp pap sent-username r2 password 0 cisco
!

通过调试信息观察:
r1(config-if)#
01:09:25: %LINK-3-UPDOWN: Interface Serial0/1, changed state to up
01:09:25: Se0/1 PPP: Using default call direction
01:09:25: Se0/1 PPP: Treating connection as a dedicated line
01:09:25: Se0/1 PAP: O AUTH-REQ id 41 len 13 from "r1" 发出的认证的用户名
01:09:26: Se0/1 PAP: I AUTH-REQ id 41 len 13 from "r2" 接受到的认证的用户名
01:09:26: Se0/1 PAP: I AUTH-ACK id 41 len 5
01:09:26: Se0/1 PAP: Authenticating peer r2 表示认证成功
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯