Audience: Network engineers operating Junos devices integrating with TACACS+/ISE. This KB explains how Junos selects source IPs for TACACS and how to reliably force a specific interface/IP while keeping set system default-address-selection enabled.
TACACS+ servers often bind client devices (NADs) by source IP. In Junos, set system default-address-selection prefers loopback for management-plane traffic. When you need TACACS to source from a specific SVI/IRB or routed interface (e.g., a management VLAN) while retaining loopback preference for other services, use per-service source-address under TACACS configuration and ensure routing aligns.
Management-plane traffic (including TACACS) may source from loopback due to default-address-selection, which can cause TACACS authentication/accounting to be rejected by ISE expecting a different NAD IP.
TACACS authentication and accounting explicitly source from the desired interface IP (e.g., IRB.X), while other management traffic (NTP, DNS, syslog, SNMP) continues to prefer loopback.
default-address-selection: Prefers loopback (lo0) for locally-originated traffic when multiple local addresses are eligible.
Per-service source-address: An explicit override under a service (e.g., TACACS) that selects a specific local IP for that service’s packets.
Routing path dependency: The chosen source must be valid on the egress routing path. If the route to the TACACS server exits via a different interface, policy/routing must still allow the selected source.
Accounting vs Authentication: TACACS accounting often uses a separate configuration stanza. Both must be pinned to the same source if the server expects a single NAD IP.
set system tacplus-server 192.0.2.10 secret "<shared-key>" set system tacplus-server 192.0.2.10 source-address 198.51.100.5 set system tacplus-server 192.0.2.20 secret "<shared-key>" set system tacplus-server 192.0.2.20 source-address 198.51.100.5
Replace 198.51.100.5 with the desired interface IP (e.g., IRB.X).
set system accounting events login set system accounting destination tacplus server 192.0.2.10 secret "<shared-key>" set system accounting destination tacplus server 192.0.2.10 source-address 198.51.100.5 set system accounting destination tacplus server 192.0.2.20 secret "<shared-key>" set system accounting destination tacplus server 192.0.2.20 source-address 198.51.100.5
set system default-address-selection
This preserves loopback preference for other services; TACACS is explicitly pinned by the service-level override.
The root cause is the interaction between set system default-address-selection and the explicit source-address under your tacplus-server configuration.
source-address
tacplus-server
Good Practises
Use a dedicated, routed management SVI for AAA, and register that IP on TACACS/ISE.
Retain default-address-selection for operational resilience; the loopback remains the stable source for other services.
Keep authentication and accounting server lists symmetrical (same servers, same source, same keys).
In multi-VRF designs, configure TACACS per routing-instance or use routing-instance-aware AAA if available; ensure routes and policies align with the selected source.
Document the intended source IP in your standard templates to avoid drift during changes.
21st May-2026
TACACS UI Configurationhttps://mistsys.atlassian.net/wiki/spaces/CSQA/pages/2366834229/TACACS+UI+Configuration
Multiple Routing InstanceRouting instance configuration relevant to TACACS VRF-aware setupshttps://mistsys.atlassian.net/wiki/spaces/CSQA/pages/1894219781/Multiple+Routing+Instance