The hwtacacs-server source-ip command specifies the source IPv4 address used by a device to communicate with an HWTACACS server.
The undo hwtacacs-server source-ip command cancels the configuration.
By default, the device uses the IPv4 address of the actual outbound interface as the source IPv4 address encapsulated in HWTACACS packets.
hwtacacs-server source-ip ip-address
hwtacacs-server source-ip source-loopback interface-number
hwtacacs-server source-ip source-vlanif interface-number
undo hwtacacs-server source-ip
Parameter | Description | Value |
---|---|---|
ip-address |
Specifies the source IPv4 address for communication between the device and HWTACACS server. |
The value is a valid unicast address in dotted decimal notation. |
source-loopback interface-number |
Specifies the IPv4 address of the loopback interface as the source IPv4 address for communication between the device and HWTACACS server. |
The loopback interface must already exist. |
source-vlanif interface-number |
Specifies the IPv4 address of the VLANIF interface as the source IPv4 address for communication between the device and HWTACACS server. |
The VLANIF interface must already exist. |
You can configure all HWTACACS packets sent by the device to use the same source IPv4 address. In this way, an HWTACACS server uses only one IPv4 address to communicate with the device.
If an interface connecting the device to a server has multiple IP addresses configured and can communicate with the server only through some of these IP addresses, one IP address among these reachable IP addresses needs to be specified as the source IP address based on the routing table to ensure that the device can communicate with the server.
If you run this command multiple times, only the latest configuration takes effect.