< Home

hwtacacs-server source-ip

Function

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.

Format

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

Parameters

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.

Views

HWTACACS server template view

Default Level

3: Management level

Usage Guidelines

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.

Example

# Specify the source IPv4 address 10.1.1.1 for communication between the device and HWTACACS server.

<HUAWEI> system-view
[HUAWEI] hwtacacs-server template test1
[HUAWEI-hwtacacs-test1] hwtacacs-server source-ip 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >