This section describes how to configure Challenge Handshake Authentication Protocol (CHAP) authentication. CHAP is a three-way handshake authentication protocol.
A FW functioning as an authenticator supports local and remote authentication. If local authentication is used, you must configure a user account and an authentication mode. If remote authentication is used, you must also configure an authentication server.
If the FW is a supplicant, you must configure a user name and an authentication mode. And an authentication server also needs to be configured if remote authentication is used.
Devices enabled with CHAP authentication only transmit user names over a network. CHAP supports higher security than the Password Authentication Protocol (PAP) because passwords are not transmitted.
By default, Point-to-Point Protocol (PPP) packets are not authenticated using CHAP.
Display the system view.
system-view
Display the interface view.
interface interface-type interface-number
Configure a local end to use CHAP to authenticate the peer end.
ppp authentication-mode chap [ pap ]
The ppp authentication-mode chap pap command enables CHAP negotiation to take precedence over PAP negotiation during Link Control Protocol (LCP) negotiation. If the authenticator does not support CHAP or PAP, LCP negotiation between the two devices fails.
Specify a local user name.
ppp chap user user-name
Display the system view.
system-view
Display the interface view.
interface interface-type interface-number
Specify a local user name.
ppp chap user user-name
During authentication, the authenticator searches locally configured AAA user names. If the user name and password configured on the peer interface match those on the local end, authentication succeeds.
Display the system view.
system-view
Display the interface view.
interface interface-type interface-number
Configure a local end to use CHAP to authenticate the peer end.
ppp authentication-mode chap [ pap ]
The ppp authentication-mode chap pap command enables CHAP negotiation to take precedence over PAP negotiation during LCP negotiation. If the authenticator does not support CHAP or PAP, LCP negotiation between the two devices fails.
Display the system view.
system-view
Display the interface view.
interface interface-type interface-number
Specify a local user name.
ppp chap user user-name
Set a password for the peer end to use CHAP to authenticate the local end.
ppp chap password cipher password