R3204P16-HP Load Balancing Module Security Command Reference-6PW101
100
primary accounting (RADIUS scheme view)
Syntax
primary accounting ip-address [ port-number ] [ key string ]
undo primary accounting
View
RADIUS scheme view
Default level
2: System level
Parameters
ip-address: IPv4 address of the primary accounting server.
port-number: UDP port number of the primary accounting server, which ranges from 1 to 65535 and
defaults to 1813.
key string: Specifies the shared key for exchanging accounting packets with the primary RADIUS
accounting server. A shared key is a case-sensitive string of 1 to 64 characters.
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 primary and secondary accounting servers cannot be the same. Otherwise, the
configuration fails.
The RADIUS service port configured on the LB module and that of the RADIUS server must be consistent.
The shared key configured on the LB module for accounting packets and that configured on the RADIUS
server must be consistent.
The shared key configured in this command is used in preference. If the key string keyword and argument
combination is not configured here, the shared key configured in the key accounting string command will
be used.
The IP addresses of the primary and secondary accounting servers must be of the same IP version.
The IP addresses of the accounting servers and those of the authentication/authorization servers must be
of the same IP version.
You can use the commands to change the settings only when no user is using the RADIUS scheme.
Related commands: key, radius scheme, and state.
Examples
# Specify the IP address of the primary accounting server for RADIUS scheme radius1 as 10.110.1.2 and
the UDP port of the server as 1813.
<Sysname> system-view
[Sysname] radius scheme radius1
[Sysname-radius-radius1] primary accounting 10.110.1.2 1813