Internal session termination codes can be very helpful for troubleshooting subscriber-related issues on MX routers that are serving as a broadband gateway, and for monitoring its health state. In order to use this data effectively, it is important to understand which internal termination code corresponds to which real life scenario.
This article provides an overview of some most common scenarios for PPPoE subscriber sessions.
For an explanation of the termination codes for PPPoE subscriber sessions, see Understanding Session Termination Causes and RADIUS Termination Cause Codes . It also states to use the show network-access aaa terminate-code command to display the mapping between AAA termination causes and cause code values.
Example
There are almost 600 internal termination codes on MX routers that have enhanced subscriber management enabled:
root@mx> show network-access aaa terminate-code Terminate-code: Custom Mapping-Count Usage-Count Type no 1 0 null no 12 0 aaa no 5 0 dhcp no 364 0 l2tp no 210 0 ppp no 16 0 vlan
One of the most useful commands is show network-access aaa terminate-code brief , which will show you all entries with non-zero statistics:
show network-access aaa terminate-code brief
root@mx> show network-access aaa terminate-code brief Terminate-code: RADIUS Custom Usage-Count Type Code 6 no 1 l2tp session-receive-cdn 2 no 1 ppp lower-interface-down
The most common scenarios for PPPoE subscriber sessions along with the corresponding internal termination code are provided below:
Scenario
Internal termination code
2022-02-02: Added a new scenario in the Solution section