以太网链路封装(PPP)

以太网链路封装(PPP)

CHAP 双向认证

拓扑图:
在这里插入图片描述

ip地址表:

在这里插入图片描述

1.RT1 串行链路、RT2 串行链路,RT1 的 S1/0 与 RT2 的 S1/1 之间采用 chap 双向认证,用户名为对端设 备名称,密码为 Key-1122

RT-1上配置:

RT-1username RT-2 password 0 Key-1122      //添加用户和密码

aaa authentication ppp default local       //设置ppp认证为本地认证

aaa authentication enable default none     //关闭enable认证



interface Serial1/0
 ip address 10.4.255.37 255.255.255.252


 encapsulation ppp           //开启链路封装
 ppp authentication chap        //ppp封装模式为chap
 physical-layer speed 2048000      //设置串口速率
 ppp chap hostname RT-1          //配置chap认证用户(发送到对方设备)
 ppp chap password 0 Key-1122      //配置chap认证秘钥
  
interface Serial1/1
 ip address 10.4.255.41 255.255.255.252

 encapsulation ppp       //开启链路封装


RT-2上配置:

RT-2:

username RT-1 password 0 Key-1122

aaa authentication ppp default local
aaa authentication enable default none

interface Serial1/0
 ip address 10.4.255.42 255.255.255.252    

 encapsulation ppp                
 physical-layer speed 2048000       //RT-2串口要配置值速率


interface Serial1/1
 ip address 10.4.255.38 255.255.255.252

 encapsulation ppp
 ppp authentication chap 
 ppp chap hostname RT-2
 ppp chap password 0 Key-1122


配置最终效果:

在这里插入图片描述

测试:

在这里插入图片描述

同上PAP的认证配置过程一样这里就不重复了

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值