Specifying the source IP address for outgoing HWTACACS packets

About source IP address for outgoing HWTACACS packets

The source IP address of HWTACACS packets that a NAS sends must match the IP address of the NAS configured on the HWTACACS server. An HWTACACS server identifies a NAS by IP address. When the HWTACACS server receives a packet, it checks whether the source IP address of the packet is the IP address of a managed NAS.

Before sending an HWTACACS packet, the NAS selects a source IP address in the following order:

  1. The source IP address specified for the HWTACACS scheme.

  2. The source IP address specified in system view for the VPN or public network, depending on where the HWTACACS server resides.

  3. The IP address of the outbound interface specified by the route.

Restrictions and guidelines for source IP address configuration

You can specify the source IP address for outgoing HWTACACS packets in HWTACACS scheme view or in system view.

The source IP address of HWTACACS packets that a NAS sends must match the IP address of the NAS that is configured on the HWTACACS server.

As a best practice, specify a loopback interface address as the source IP address for outgoing HWTACACS packets to avoid HWTACACS packet loss caused by physical port errors.

To communicate with the HWTACACS server, the source address of outgoing HWTACACS packets is typically the IP address of an egress interface on the NAS. However, in some situations, you must change the source IP address. For example, when VRRP is configured for stateful failover, configure the virtual IP of the uplink VRRP group as the source address.

Specifying a source IP address for all HWTACACS schemes

  1. Enter system view.

    system-view

  2. Specify a source IP address for outgoing HWTACACS packets.

    hwtacacs nas-ip { ipv4-address | ipv6 ipv6-address } [ vpn-instance vpn-instance-name ]

    By default, the primary IP address of the HWTACACS packet outbound interface is used as the source IP address.

Specifying a source IP address for an HWTACACS scheme

  1. Enter system view.

    system-view

  2. Enter HWTACACS scheme view.

    hwtacacs scheme hwtacacs-scheme-name

  3. Specify the source IP address of outgoing HWTACACS packets.

    nas-ip { ipv4-address | ipv6 ipv6-address }

    By default, the source IP address specified by using the hwtacacs nas-ip command in system view is used. If the source IP address is not specified, the primary IP address of the outbound interface is used.