34
Configuring the RADIUS accounting-on feature
About RADIUS accounting-on
When the accounting-on feature is enabled, the device automatically sends an accounting-on packet
to the RADIUS server after the entire device reboots. Upon receiving the accounting-on packet, the
RADIUS server logs out all online users so they can log in again through the device. Without this
feature, users cannot log in again after the reboot, because the RADIUS server considers them to
come online.
You can configure the interval for which the device waits to resend the accounting-on packet and the
maximum number of retries.
The extended accounting-on feature enhances the accounting-on feature in a distributed
architecture. For the extended accounting-on feature to take effect, the RADIUS server must run on
IMC and the accounting-on feature must be enabled.
The extended accounting-on feature is applicable to IPoE, LAN, and PPP (L2TP LAC-side) users.
The user data is saved to the cards through which the users access the device. When the extended
accounting-on feature is enabled, the device automatically sends an accounting-on packet to the
RADIUS server after a card reboot. The packet contains the card identifier. Upon receiving the
accounting-on packet, the RADIUS server logs out all online users that access the device through
the card.
Procedure
To configure the accounting-on feature for a RADIUS scheme:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter RADIUS scheme view.
radius scheme
radius-scheme-name
N/A
3.
Enable accounting-on.
accounting-on enable
[
interval
interval
|
send
send-times
] *
By default, the accounting-on
feature is disabled.
4.
(Optional.) Enable extended
accounting-on.
accounting-on extended
By default, extended
accounting-on is disabled.
Interpreting the RADIUS class attribute as CAR parameters
A RADIUS server may deliver CAR parameters for user-based traffic monitoring and control by using
the RADIUS class attribute (attribute 25) in RADIUS packets. You can configure the device to
interpret the class attribute to CAR parameters.
To configure the device to interpret the RADIUS class attribute as CAR parameters:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter RADIUS scheme view.
radius scheme
radius-scheme-name
N/A
3.
Interpret the RADIUS class
attribute as CAR parameters.
attribute 25 car
By default, the RADIUS class
attribute is not interpreted as
CAR parameters.