The JUNOSe software uses a default configuration that maps terminate reasons to RADIUS Acct-Terminate-Cause attributes. You can optionally create customized mappings between a terminate reason and a RADIUS Acct-Terminate-Cause attribute—these mappings enable you to provide different information about the cause of a termination.
When a subscriber’s L2TP or PPP session is terminated, the router logs a message for the internal terminate reason and logs another message for the RADIUS Acct-Terminate-Cause attribute (RADIUS attribute 49). RADIUS attribute 49 is also included in RADIUS Acct-Off and Acct-Stop messages. You can use the logged information to help monitor and troubleshoot terminated sessions.
Use the show terminate-code command to display information about the mappings between application terminate reasons and RADIUS Acct-Terminate-Cause attributes.
Table 9 lists the IETF RADIUS Acct-Terminate-Cause codes that you can use to map application terminate reasons. In addition, you can also configure and use proprietary codes for values beyond 22.
Table 9: Supported RADIUS Acct-Terminate-Cause Codes
This example describes a sample configuration procedure that creates custom mappings for PPP terminate reasons.
host1(config)#radius include acct-terminate-cause acct-off enable
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--
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--
host1(config)#terminate-code ppp authenticate-authenticator-timeout radius 3 host1(config)#terminate-code ppp authenticate-challenge-timeout radius 4
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--
radius include
- host1(config)#radius include acct-terminate-cause
acct-off disable
terminate-code
- host1(config)#terminate-code l2tp ?
- host1(config)#terminate-code ppp authenticate-challenge-timeout
radius 4
- host1(config)#no terminate-code aaa deny-address-allocation-failure
radius