TACACS Server
Configures TACACS+ (Terminal Access Controller Access-Control System Plus) server settings for centralized authentication, authorization, and accounting (AAA). Supports global and per-host settings including timeout, holddown time, DSCP marking, encryption keys, and single connection mode.
Diagram
Section titled “Diagram”Classes
Section titled “Classes”configuration (iosxr.devices)
Section titled “configuration (iosxr.devices)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| tacacs_server | Class | [tacacs_server] | No |
tacacs_server (iosxr.devices.configuration)
Section titled “tacacs_server (iosxr.devices.configuration)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| holddown_time | Integer | min: 0, max: 1200 | No | |
| hosts | List | [hosts] | No | |
| ipv4_dscp | String | No | ||
| ipv6_dscp | String | No | ||
| key_type_6 | String | No | ||
| key_type_7 | String | No | ||
| timeout | Integer | min: 1, max: 1000 | No |
hosts (iosxr.devices.configuration.tacacs_server)
Section titled “hosts (iosxr.devices.configuration.tacacs_server)”| Name | Type | Constraint | Mandatory | Default Value |
|---|---|---|---|---|
| address | String | Yes | ||
| holddown_time | Integer | min: 0, max: 1200 | No | |
| key_type_6 | String | No | ||
| key_type_7 | String | No | ||
| port | Integer | min: 1, max: 65535 | No | |
| single_connection | Boolean | true, false | No | |
| single_connection_idle_timeout | Integer | min: 500, max: 7200 | No | |
| timeout | Integer | min: 1, max: 1000 | No |
Sample Configuration:
Section titled “Sample Configuration:”tacacs-server host 9.0.1.68 port 49 key 7 0235347225301B204F4F0A0A timeout 10 holddown-time 300 single-connection idle-timeout 1000!tacacs-server key 7 0235347225301B204F4F0A0Atacacs-server timeout 5tacacs-server holddown-time 600tacacs-server ipv4 dscp cs6tacacs-server ipv6 dscp cs7Example YAML Code:
Section titled “Example YAML Code:”Example-1: Configure basic TACACS server with global settings.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: tacacs_server: key_type_7: "0235347225301B204F4F0A0A" timeout: 5 holddown_time: 600 ipv4_dscp: "cs6"Example-2: Configure TACACS server with multiple hosts.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: tacacs_server: key_type_7: "0235347225301B204F4F0A0A" timeout: 5 hosts: - address: "9.0.1.68" port: 49 timeout: 10 - address: "9.0.1.69" port: 49 timeout: 15Example-3: Configure TACACS server with single connection mode.
iosxr: devices: - name: router-1 host: 10.10.10.1:57400 configuration: tacacs_server: timeout: 5 hosts: - address: "9.0.1.68" port: 49 key_type_7: "0235347225301B204F4F0A0A" single_connection: true single_connection_idle_timeout: 1000