实验: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