110
NOTE:
The maximum number of stop-accounting attempts, together with some other parameters, controls how
the NAS deals with stop-accounting request packets.
Suppose that the RADIUS server response timeout period is three seconds (set with the
timer
response-timeout
command), the maximum number of transmission attempts is five (set with the
retry
command), and the maximum number of stop-accounting attempts is 20 (set with the
retry
stop-accounting
command). For each stop-accounting request, if the device receives no response within
three seconds, it retransmits the request. If it receives no responses after retransmitting the request five
times, it considers the stop-accounting attempt a failure, buffers the request, and makes another
stop-accounting attempt. If 20 consecutive attempts fail, the device discards the request.
Related commands:
retry
,
retry stop-accounting
,
timer response-timeout
, and
display
stop-accounting-buffer
.
Examples
# Set the maximum number of stop-accounting attempts to 1000 for RADIUS scheme
radius1
.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] retry stop-accounting 1000
secondary accounting (RADIUS scheme view)
Syntax
secondary accounting
ipv4-address
[
port-number
]
undo secondary accounting
View
RADIUS scheme view
Default level
2: System level
Parameters
ipv4-address
: IPv4 address of the secondary accounting server.
port-number
: Service port number of the secondary accounting server, a UDP port number in the range
1 to 65535. The default is 1813.
Description
Use the
secondary accounting
command to specify secondary RADIUS accounting servers for a RADIUS
scheme.
Use the
undo secondary accounting
command to remove a secondary RADIUS accounting server.
By default, no secondary RADIUS accounting server is specified.
You can configure up to 16 secondary RADIUS accounting servers for a RADIUS scheme by executing
this command repeatedly. After the configuration, if the primary server fails, the device looks for a
secondary server in active state (a secondary RADIUS accounting server configured earlier has a higher
priority) and tries to communicate with it.
The IP addresses of the accounting servers and those of the authentication/authorization servers must be
of the same IP version.