思科模拟器--PPP协议+chap认证

拓扑图

1、PPP认证

R2为认证方:

R1:



R1(config)#username R2 password cisco

R1(config)#int s0/2/0

R1(config-if)#encapsulation ppp

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2/0, changed state to down


R1(config-if)#exit

R1(config)#

R2:

R2>enable
R2#configure terminal

R2(config)#int s0/2/0

R2(config-if)#encapsulation ppp

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2/0, changed state to down

R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/2/0, changed state to up

验证:


2、双向CHAP认证

拓扑图:

R1:

Router(config)#hostname R1

R1(config)#username R2 password cisco

R1(config)#int s0/2/0

R1(config-if)#encapsulation ppp

R1(config-if)#ppp authentication chap

R1(config-if)#exit

R2:

Router(config)#hostname R2

R2(config)#username R1 password cisco

R2(config)#int s0/2/0

R2(config-if)#encapsulation ppp

R2(config-if)#ppp authentication chap

R2(config-if)#exit

结果:


3、PAP认证:

拓扑图:

R1:

R1(config)#int s0/2/0

R1(config-if)#encapsulation ppp

R1(config-if)#ppp pap sent-username R1 password cisco

R2:

R2(config)#username R1 password cisco



R2(config)#int s0/2/0

R2(config-if)#encapsulation ppp

R2(config-if)#ppp authentication pap

结果:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值