1980
C
129: HWTACACS C
HAPTER
Related command:
Example
primary accounting (HWTACACS scheme view)
Syntax
View
Parameter
Description
C
ONFIGURATION
OMMANDS
By default, the source IP address of a packet sent to the server is the IP address of
the outbound port.
Note that:
Specifying a source address for the HWTACACS packets to be sent to the
■
server can avoid the situation where the packets sent back by the HWTACACS
server cannot reach the device as the result of a physical interface failure.
If you configure the command for more than one time, the last configuration
■
takes effect.
The nas-ip command in HWTACACS scheme view is only for the current
■
HWTACACS scheme, while the hwtacacs nas-ip command in system view is
for all HWTACACS schemes. However, the nas-ip command in HWTACACS
scheme view overwrites the configuration of the hwtacacs nas-ip command.
hwtacacs nas-ip.
# Set the IP address for the device to use as the source address of the HWTACACS
packets to 10.1.1.1.
<Sysname> system-view
[Sysname] hwtacacs scheme hwt1
[Sysname-hwtacacs-hwt1] nas-ip 10.1.1.1
primary accounting ip-address [ port-number ]
undo primary accounting
HWTACACS scheme view
ip-address: IP address of the server, a valid unicast address in dotted decimal
notation. The default is 0.0.0.0.
port-number: Port number of the server. It ranges from 1 to 65535 and defaults to
49.
Use the
primary accounting
accounting server.
Use the
undo primary accounting
Note that:
The IP addresses of the primary and secondary accounting servers cannot be
■
the same. Otherwise, the configuration fails.
The HWTACACS service port configured on the device and that of the
■
HWTACACS server must be consistent.
command to specify the primary HWTACACS
command to remove the configuration.