55
[Sysname] domain test
[Sysname-isp-test] accounting command hwtacacs-scheme hwtac
accounting default
Syntax
accounting default
{
hwtacacs-scheme
hwtacacs-scheme-name
[
local
] |
local
|
none
|
radius-scheme
radius-scheme-name
[
local
] }
undo accounting default
View
ISP domain view
Default level
2: System level
Parameters
hwtacacs-scheme
hwtacacs-scheme-name
: Specifies an HWTACACS scheme by its name, which is a
case-insensitive string of 1 to 32 characters.
local
: Performs local accounting.
none
: Does not perform any accounting.
radius-scheme
radius-scheme-name
: Specifies a RADIUS scheme by its name, which is a case-insensitive
string of 1 to 32 characters.
Description
Use the
accounting default
command to configure the default accounting method for an ISP domain.
Use the
undo accounting default
command to restore the default.
By default, the default accounting method of an ISP domain is
local
.
The specified RADIUS or HWTACACS scheme must have been configured.
The default accounting method will be used for all users that support the specified accounting method
and have no specific accounting method configured.
Local accounting is only for monitoring and controlling the number of local user connections; it does not
provide the statistics function that the accounting feature generally provides.
Related commands:
local-user
,
hwtacacs scheme
, and
radius scheme
.
Examples
# Configure the default accounting method for ISP domain
test
to use RADIUS accounting scheme
rd
and
use local accounting as the backup.
<Sysname> system-view
[Sysname] domain test
[Sysname-isp-test] accounting default radius-scheme rd local
accounting lan-access
Syntax
accounting
lan-access
{
local
|
none
|
radius-scheme
radius-scheme-name
[
local
|
none
] }