79
Examples
# Specify the IP address and port number of the primary accounting server for HWTACACS scheme
test1
as 10.163.155.12 and 49.
<Sysname> system-view
[Sysname] hwtacacs scheme test1
[Sysname-hwtacacs-test1] primary accounting 10.163.155.12 49
primary authentication (HWTACACS scheme view)
Syntax
primary authentication
ip-address
[
port-number
|
key
[
cipher
|
simple
]
key
] *
undo primary authentication
View
HWTACACS scheme view
Default level
2: System level
Parameters
ip-address
: IP address of the primary HWTACACS authentication server, a valid unicast address in
dotted decimal notation. The default is 0.0.0.0.
port-number
: Port number of the primary HWTACACS authentication server. It ranges from 1 to 65535
and defaults to 49.
key
[
cipher
|
simple
]
key
: Sets the shared key for secure communication with the primary HWTACACS
authentication server. Make sure the shared key configured on the device is the same as the one
configured on the server.
•
cipher
key
: Sets a ciphertext shared key. The
key
argument is case sensitive. If you specify neither this keyword
nor the
simple
keyword, the shared key is set in plain text.
{
In non-FIPS mode, the key is a string of 1 to 373 characters.
{
In FIPS mode, the key is a string of 8 to 373 characters.
•
simple
key
: Sets a plaintext shared key. The
key
argument is case sensitive. If you specify neither this
keyword nor the
cipher
keyword, the shared key is set in plain text.
{
In non-FIPS mode, the key is a string of 1 to 255 characters.
{
In FIPS mode, the key is a string of 8 to 255 characters and must contain digits, uppercase
letters, lowercase letters, and special characters.
Description
Use the
primary authentication
command to specify the primary HWTACACS authentication server.
Use the
undo primary authentication
command to remove the configuration.
By default, no primary HWTACACS authentication server is specified.
The IP addresses of the primary and secondary authentication servers cannot be the same. Otherwise,
the configuration fails.
The shared key configured by using the
primary authentication
command takes precedence over the one
configured by using the
key authentication
[
cipher
|
simple
]
key
command.