Enabling Outbound PAP Authentication To enable outbound PAP authentication, use the following command in interface configuration mode: Device(config-if)# ppp pap sent-username username1 password password1 The access server uses the username and password specified by the ppp pap sent-username command to authenticate itself whenever it initiates a call to a remote device or when it has to respond to a remote device’s request for outbound authentication. Refusing PAP Authentication Requests To refuse PAP authentication from peers requesting it, meaning that PAP authentication is disabled for all calls, use the following command in interface configuration mode:
Device(config-if)# ppp pap refuse If the refuse keyword is not used, the device will not refuse any PAP authentication challenges received from the peer. Creating a Common CHAP Password For remote CHAP authentication, you can configure your device to create a common CHAP secret password to use in response to challenges from an unknown peer. For example, if your device calls a rotary of devices (either from another vendor, or running an older version of the Cisco IOS XE software) to which a new (that is, unknown) device has been added.
The ppp chap password command allows you to replace several username and password configuration commands with a single copy of this command on any dialer interface or asynchronous group interface. To enable a device calling a collection of devices to configure a common CHAP secret password, use the following command in interface configuration mode: Device(config-if)# ppp chap password secret Refusing CHAP Authentication Requests To refuse CHAP authentication from peers requesting it, meaning that CHAP authentication is disabled for all calls, use the following command in interface configuration mode:
Device(config-if)# ppp chap refuse calling If the calling keyword is used, the device will refuse to answer CHAP authentication challenges received from the peer, but will still require the peer to answer any CHAP challenges the device sends. If outbound PAP has been enabled (using the ppp pap sent-username command), PAP is used as the authentication method in the refusal packet. Delaying CHAP Authentication Until Peer Authenticates To specify that the device will not authenticate to a peer requesting CHAP authentication until after the peer has authenticated itself to the device, use the following command in interface configuration mode:
Device(config-if)# ppp chap wait secret This command (which is the default) specifies that the device will not authenticate to a peer requesting CHAP authentication until the peer has authenticated itself to the device. The no ppp chap wait command specifies that the device will respond immediately to an authentication challenge. Configuring Authentication Enabling Outbound PAP Authentication Configuring Authentication 15