Command Reference Guide
3Com Router 5000 Family and Router 6000 Family accounting ● 11
Command Reference
accounting
Purpose Use the accounting command to set the IP address, port number and shared key
for the primary and secondary RADIUS accounting servers.
Use the undo accounting command to restore them to default value.
Syntax accounting { primary | secondary } ip ip-address [ port port-number ] [
key { simple | cipher } key-string ]
undo accounting { primary | secondary }
Parameters ip-address
Server IP address, in dotted decimal format. It must be
a legal unicast IP address.
port-number
UDP port number. Valid values are 1 to 65535.
simple
Indicates the key is displayed in plain text.
cipher
Indicates the key is displayed in cipher text.
key-string
Shared key. In the simple mode, the key-string must
be in plain text. In the cipher mode, the key-string
can be in either plain or cipher text. The plain key is a
character string containing 1 to 96 characters, such as
huawei918. By default, the key is 3Com in plain text.
Default By default, for the RADIUS scheme system created by the system, the IP address and
UDP port number of primary accounting server are 127.0.0.1 and 1646, and the IP
address and UDP port number of secondary accounting server are 0.0.0.0 and 1813.
For the newly created RADIUS scheme, the IP addresses and UDP port numbers of
both primary and secondary accounting servers are 0.0.0.0 and 1813. The default
shared key of all primary and secondary accounting servers of the RADIUS scheme is
3Com.
Example Configure the IP address to 10.110.1.2, UDP port number to 1813, and shared key to
sharekey for the primary and secondary accounting servers of the RADIUS scheme.
[3Com-radius-3Com] accounting primary ip 10.110.1.2 port 1813 key
sharekey
View This command can be used in the following views:
■ RADIUS Scheme view