Configuring accounting methods for an ISP domain

Configuration prerequisites

Before configuring accounting methods, complete the following tasks:

  1. Determine the access type or service type to be configured. With AAA, you can configure an accounting method for each access type and service type.

  2. Determine whether to configure the default accounting method for all access types or service types. The default accounting method applies to all access users. However, the method has a lower priority than the accounting method that is specified for an access type or service type.

Configuration guidelines

When configuring accounting methods, follow these guidelines:

Configuration procedure

To configure accounting methods for an ISP domain:

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter ISP domain view.

domain isp-name

N/A

3. Specify default accounting methods for all types of users.

accounting default { hwtacacs-scheme hwtacacs-scheme-name [ radius-scheme radius-scheme-name ] [ local ] [ none ] | local [ none ] | none | radius-scheme radius-scheme-name [ hwtacacs-scheme hwtacacs-scheme-name ] [ local ] [ none ] }

By default, the accounting method is local.

The none keyword is not supported in FIPS mode.

4. Specify the command accounting method.

accounting command hwtacacs-scheme hwtacacs-scheme-name

By default, the default accounting method is used for command accounting.

5. Specify accounting methods for LAN users.

accounting lan-access { broadcast radius-scheme radius-scheme-name1 radius-scheme radius-scheme-name2 [ local ] [ none ] | local [ none ] | none | radius-scheme radius-scheme-name [ local ] [ none ] }

By default, the default accounting method is used for LAN users.

The none keyword is not supported in FIPS mode.

6. Specify accounting methods for login users.

accounting login { hwtacacs-scheme hwtacacs-scheme-name [ radius-scheme radius-scheme-name ] [ local ] [ none ] | local [ none ] | none | radius-scheme radius-scheme-name [ hwtacacs-scheme hwtacacs-scheme-name ] [ local ] [ none ] }

By default, the default accounting method is used for login users.

The none keyword is not supported in FIPS mode.

7. Specify accounting methods for portal users.

accounting portal { broadcast radius-scheme radius-scheme-name1 radius-scheme radius-scheme-name2 [ local ] [ none ] | local [ none ] | none | radius-scheme radius-scheme-name [ local ] [ none ] }

By default, the default accounting method is used for portal users.

The none keyword is not supported in FIPS mode.

8. Configure access control for users who encounter accounting-start failures.

accounting start-fail { offline | online }

By default, the device allows users who encounter accounting-start failures to stay online.

9. Configure access control for users who have failed all their accounting-update attempts.

accounting update-fail { [ max-times max-times ] offline | online }

By default, the device allows users who have failed all their accounting-update attempts to stay online.

10. Configure access control for users who have used up their data quotas.

accounting quota-out { offline | online }

By default, the device logs off users who have used up their data quotas.

11. Specify the accounting method for dual-stack users.

accounting dual-stack { merge | separate }

By default, the merge method is used.