# Configuring Custom Mappings for PPP Terminate Reasons

This example describes a sample configuration procedure that creates custom mappings for PPP terminate reasons.

1. Configure the router to include the Acct-Terminate-Cause attribute in RADIUS Acct-Off messages.

       host1(config)#radius include acct-terminate-cause acct-off enable

2. (Optional) Display the current PPP terminate-cause mappings.

       host1(config)# run show terminate-code ppp
                                                                          Radius
       Apps         Terminate Reason               Description            Code
        --------- --------------------------  -------------------------- ------
       ppp       authenticate-authenticator  authenticate authenticator  17
                 -timeout                     timeout
       ppp       authenticate-challenge-tim  authenticate challenge tim  10
                 eout                        eout
       ppp       authenticate-chap-no-resou  authenticate chap no resou  10
                 rces                        rces
       ppp       authenticate-chap-peer-aut  authenticate chap peer aut  17
                 henticator-timeout          henticator timeout
       ppp       authenticate-deny-by-peer   authenticate deny by peer   17
       ppp       authenticate-inactivity-ti  authenticate inactivity ti   4
                 meout                       meout
        --More--

3. (Optional) Display all PPP terminate reasons.

       host1(config)# terminate-code ppp ?
       authenticate-authenticator-timeout       Configure authenticate
                                                authenticator timeout
                                                translation
       authenticate-challenge-timeout           Configure authenticate
                                                challenge timeout translation
       authenticate-chap-no-resources           Configure authenticate chap no
                                                resources translation
       authenticate-chap-peer-
       authenticator-timeout                    Configure authenticate chap
                                                peer authenticator timeout
                                                translation
       authenticate-deny-by-peer                Configure authenticate deny by
                                                peer translation
        --More--

4. Configure your customized PPP terminate-cause to RADIUS Acct-Terminate-Cause code mappings.

       host1(config)#terminate-code ppp authenticate-authenticator-timeout radius 3
       host1(config)#terminate-code ppp authenticate-challenge-timeout radius 4

5. Verify the new terminate-cause mappings.

       host1(config)#run show terminate-code ppp
                                                                          Radius
       Apps         Terminate Reason               Description            Code
       ---------  --------------------------   -------------------------- ------
       ppp        authenticate-authenticator   authenticate authenticator    3
                  -timeout                      timeout
       ppp        authenticate-challenge-tim   authenticate challenge tim    4
                  eout                         eout
       ppp        authenticate-chap-no-resou   authenticate chap no resou    10
                  rces                         rces
       ppp        authenticate-chap-peer-aut   authenticate chap peer aut    17
                  henticator-timeout           henticator timeout
       ppp        authenticate-deny-by-peer    authenticate deny by peer     17
       ppp        authenticate-inactivity-ti   authenticate inactivity ti    4
                  meout                        meout
       ppp        authenticate-max-requests    authenticate max requests     10
        --More--