实验要求如下:
构建拓扑如下:
(1)在R1与R2之间设置单向pap认证:
R1:
[R1]aaa
[R1-aaa]local-user hcip password cipher hcip //创建主认证方
[R1-aaa]local-user hcip service-type ppp //服务类型为ppp
[R1]interface s4/0/0
[R1-Serial4/0/0]ppp authentication-mode pap//接口调用
R2:
[R2-Serial4/0/0]ppp pap local-user hcip password cipher hcip
[R2-Serial4/0/0]dis this
[V200R003C00]
#
interface Serial4/0/0
link-protocol ppp
ppp pap local-user hcip password cipher %$%$3wxhOwyynW=Adl1hjvJ>,"-\%$%$
ip address 10.0.0.2 255.255.255.0
#
(2) 在R2与R3之间启用chap双向认证
[R2]aaa
[R2-aaa]local-user hcip1 pass
[R2-aaa]local-user hcip1 password cipher hcip1
[R2-aaa]local-user hcip1 service-type ppp
[R2-aaa]interface s4/0/1
[R2-Serial4/0/1]ppp authentication-mode chap
[R2-Serial4/0/1]dis this
[V200R003C00]
#
interface Serial4/0/1
link-protocol ppp
ppp authentication-mode chap
ip address 11.0.0.1 255.255.255.0
#
return
[R3-Serial4/0/0]ppp chap user hcip1
[R3-Serial4/0/0]ppp chap password cipher hcip1
Jul 11 2023 15:02:45-08:00 R3 %%01IFNET/4/LINK_STATE(l)[28]:The line protocol PP
P on the interface Serial4/0/0 has entered the UP state.