VLAN Termination Causes and Code Values
When a VLAN event terminates a subscriber session, causing a RADIUS Acct-Stop message to be issued, the RADIUS Acct-Terminate-Cause attribute (49) reports the cause or reason for the termination. This attribute is included only in RADIUS Acct-Stop messages. The termination cause is conveyed as a code value in the attribute. RFC 2866, RADIUS Accounting, define the standard mapping between 18 code values and termination causes.
Junos OS defines a set of internal termination cause codes that are mapped to the RFC-defined code values. When a subscriber session is terminated, the router logs a message for the internal termination cause and logs another message for the RADIUS Acct-Terminate-Cause attribute. You can use the logged information to help monitor and troubleshoot terminated sessions.
Table 1 lists the default mapping between the internal identifier for VLAN termination causes and the code values that represent them in the RADIUS Acct-Terminate-Cause attribute (49).
You can remap the internal identifiers to a custom code
value in the range 1 through 4,294,967,295 by using the terminate-code
statement at the [edit access]
hierarchy level.
You can view the current mapping by issuing the show network-access
terminate-code vlan detail
command.
Internal VLANTermination Cause |
RADIUS Acct-Terminate-Cause Attribute |
|
---|---|---|
|
Code Value |
RADIUS Termination Cause |
vlan admin-logout |
6 |
VLAN session termination initiated by the subscriber being administratively logged out. |
vlan admin-reconnect |
16 |
VLAN session termination initiated by the subscriber being administratively reconnected. |
vlan other |
9 |
VLAN session termination initiated by an otherwise undefined cause. |
vlan out-of-band-access-interface-down |
2 |
VLAN out-of-band session termination initiated by the access-facing interface going down. |
vlan out-of-band-admin-access-interface-down |
6 |
VLAN out-of-band session termination initiated by the access-facing interface being brought down administratively. |
vlan out-of-band-admin-core-interface-down |
6 |
VLAN out-of-band session termination initiated by the core-facing interface being brought down administratively. |
vlan out-of-band-ancp-port-down |
1 |
VLAN out-of-band session termination initiated by the receipt of an ANCP Port Down message. |
vlan out-of-band-ancp-port-vlan-id-change |
1 |
VLAN out-of-band session termination initiated by a change in the port VLAN ID, which is treated as a logical Port Down message. |
vlan out-of-band-core-interface-down |
2 |
VLAN out-of-band session termination initiated by the core-facing interface going down. |
vlan out-of-band-l2-wholesale-no-free-vlans |
15 |
VLAN out-of-band session termination initiated by the lack of any remaining available VLAN IDs. |
vlan profile-request-error |
9 |
VLAN session termination initiated by an error when requesting the dynamic profile associated with the VLAN range. |
vlan sdb-error |
9 |
VLAN session termination initiated by an error in the session database. |
vlan subscriber-activate-error |
9 |
VLAN session termination initiated by an error while attempting to activate the subscriber services for the session. |