Configuring AAA accounting methods for an ISP domain

In AAA, accounting is a separate process at the same level as authentication and authorization. This process sends accounting start/update/end requests to the specified accounting server. Accounting is optional.

AAA supports the following accounting methods:

By default, an ISP domain uses the local accounting method.

Before configuring accounting methods, complete the following tasks:

  • For RADIUS or HWTACACS accounting, configure the RADIUS or HWTACACS scheme to be referenced first. The local and none accounting methods do not require a scheme.

  • 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, limiting the accounting protocols that can be used for access.

  • Determine whether to configure an accounting method for all access types or service types.

  • Follow these guidelines when you configure AAA accounting methods for an ISP domain:

    To configure AAA 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. Enable the accounting optional feature.

    accounting optional

    Optional.

    Disabled by default.

    With the accounting optional feature, a switch allows users to use network resources when no accounting server is available or communication with all accounting servers fails.

    4. Specify the default accounting method for all types of users.

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

    Optional.

    The default accounting method is local for all types of users.

    5. Specify the command accounting method.

    accounting command hwtacacs-scheme hwtacacs-scheme-name

    Optional.

    The default accounting method is used by default.

    6. Specify the accounting method for LAN users.

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

    Optional.

    The default accounting method is used by default.

    7. Specify the accounting method for login users.

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

    Optional.

    The default accounting method is used by default.

    8. Specify the accounting method for portal users.

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

    Optional.

    The default accounting method is used by default.