Command Manual – AAA&RADIUS&HWTACACS
H3C S3610&S5510 Series Ethernet Switches
Chapter 1 AAA & RADIUS & HWTACACS
Configuration Commands
1-41
Example
# Set the source IP address used by the switch to send the RADIUS packets to
10.1.1.1.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] radius scheme radius1
New Radius scheme
[Sysname-radius-radius1] nas-ip 10.1.1.1
1.2.10 primary accounting
Syntax
primary accounting ip-address
[
port-number
]
undo primary accounting
View
RADIUS scheme view
Parameter
ip-address
: IP address, in dotted decimal notation.
port-number
: UDP port number, ranging from 1 to 65535. By default, the UDP port for
accounting service is 1813.
Description
Use the
primary accounting
command to set the IP address and port number of the
primary RADIUS accounting server.
Use the
undo primary accounting
command to restore the default IP address and
port number of the primary RADIUS accounting server.
Note that:
z
You are not allowed to assign the same IP address to both primary and secondary
accounting servers; otherwise, unsuccessful operation is prompted.
z
By default, the system defines the RADIUS scheme system, with the IP address of
the primary accounting server as 127.0.0.1 and port number as 1646.
Related command:
key
,
radius scheme
and
state
.
Example
# Set the IP address and UDP port number of the primary accounting server of the
RADIUS scheme radius1 to 10.110.1.2 and 1813.
<Sysname> system-view
System View: return to User View with Ctrl+Z.