Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Modifying the CHAP Challenge Length

You can modify the default minimum length and maximum length of the Challenge Handshake Authentication Protocol (CHAP) challenge message that the router sends to a PPP client. The CHAP challenge message, which contains information that is unique to a particular PPP subscriber session, is used as part of the authentication mechanism between the router and the client to verify the identity of the client for access to the router.

By default, the minimum length of the CHAP challenge is 16 bytes, and the maximum length is 32 bytes. You can override this default to configure the CHAP challenge minimum length and maximum length in the range 8 bytes through 63 bytes.

Best Practice: We recommend that you configure both the minimum length and the maximum length of the CHAP challenge to at least 16 bytes.

Before you begin:

To configure the minimum and maximum length of the CHAP challenge message:

  1. Specify that you want to configure PPP options.
    • For dynamic PPP subscriber interfaces:
      [edit dynamic-profiles profile-name interfaces pp0 unit “$junos-interface-unit”]user@host# edit ppp-options
    • For static interfaces with PPP encapsulation:
      [edit interfaces pp0 unit logical-unit-number]user@host# edit ppp-options
  2. Specify that you want to configure CHAP options.
    • For dynamic PPP subscriber interfaces:
      [edit dynamic-profiles profile-name interfaces pp0 unit “$junos-interface-unit” ppp-options]user@host# edit chap
    • For static interfaces with PPP encapsulation:
      [edit interfaces pp0 unit logical-unit-number ppp-options]user@host# edit chap
  3. Specify the minimum length and maximum length of the CHAP challenge.
    • For dynamic PPP subscriber interfaces:
      [edit dynamic-profiles profile-name interfaces pp0 unit “$junos-interface-unit” ppp-options chap]user@host# set challenge-length minimum minimum-length maximum maximum-length
    • For static interfaces with PPP encapsulation:
      [edit interfaces pp0 unit logical-unit-number ppp-options chap]user@host# set challenge-length minimum minimum-length maximum maximum-length

    For example, the following challenge-length statement in a dynamic profile named pppoe-client-profile sets the minimum length of the CHAP challenge to 20 bytes, and the maximum length to 40 bytes.

    [edit dynamic-profiles pppoe-client-profile interfaces pp0 unit “$junos-interface-unit” ppp-options chap]user@host# set challenge-length minimum 20 maximum 40

Published: 2013-02-12