102
Parameters
ipv4-address
: IPv4 address of the primary accounting server.
port-number
: Service port number of the primary accounting server, a UDP port number in the range 1
to 65535. The default is 1813.
Description
Use the
primary accounting
command to specify the primary RADIUS accounting server.
Use the
undo primary accounting
command to remove the configuration.
By default, no primary RADIUS accounting server is specified.
The IP addresses of the accounting servers and those of the authentication/authorization servers must be
of the same IP version.
The IP addresses of the primary and secondary accounting servers must be different from each other;
otherwise, the configuration fails.
If you change the primary accounting server when the device has already sent a start-accounting request
to the server, the communication with the primary server will time out, and the device will look for a server
in active state from the new primary server on.
If you remove an accounting server being used by users, the device cannot send real-time accounting
requests and stop-accounting requests anymore for the users, and does not buffer the stop-accounting
requests.
NOTE:
The shared key configured by this command takes precedence over that configured by using the
key
accounting
key command..
Related commands:
key
.
Examples
# For RADIUS scheme
radius1
, set the IP address of the primary accounting server to 10.110.1.2, the UDP
port to 1813t.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] primary accounting 10.110.1.2 1813
primary authentication (RADIUS scheme view)
Syntax
primary authentication
ipv4-address
[
port-number
]
undo primary authentication
View
RADIUS scheme view
Default level
2: System level
Parameters
ipv4-address
: IPv4 address of the primary authentication/authorization server.