PAP和chap认证笔记和实验

在这里插入图片描述
在这里插入图片描述
实验:R2为ISP认证方,对R1进行PAP认证,对R3进行chap认证。

第一步:进入ISP,配置两个端口IP,进行认证服务和下发IP配置。

[Huawei]sys ISP
[ISP]int Serial 4/0/0
[ISP-Serial4/0/0]ip address 1.1.1.1 24
[ISP-Serial4/0/0]int serial 4/0/1
[ISP-Serial4/0/1]ip address 2.2.2.1 24
[ISP-Serial4/0/1]int serial 4/0/0
[ISP-Serial4/0/0]remote address 1.1.1.2
[ISP-Serial4/0/0]int serial 4/0/1
[ISP-Serial4/0/1]remote address 2.2.2.2
[ISP-Serial4/0/1]qu
[ISP]aaa
[ISP-aaa]local-user AAA password cipher 123456
Info: Add a new user.
[ISP-aaa]q
[ISP]int Serial 4/0/0	
[ISP-Serial4/0/0]ppp authentication-mode pap
[ISP-Serial4/0/0]int serail 4/0/1
[ISP-Serial4/0/1]ppp authentication-mode chap

第二步:进入R1,R3,通过ppp协议获取IP地址,进行被认证方pap认证和chap认证。

[Huawei]sys R1
[R1]int Serial 4/0/0
[R1-Serial4/0/0]ip address ppp-negotiate 
[R1-Serial4/0/0]
Oct 31 2023 19:02:39-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R1-Serial4/0/0]ppp pap local-user AAA password cipher 123456
[Huawei]sys R2
[R2]int Serial 4/0/0
[R2-Serial4/0/0]ip address ppp-negotiate 
[R2-Serial4/0/0]
Oct 31 2023 19:03:10-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol PPP
 IPCP on the interface Serial4/0/0 has entered the UP state. 
[R2-Serial4/0/0]ppp chap user AAA
[R2-Serial4/0/0]ppp chap password cipher 123456
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值