6.1.8. tacacs host

Syntax

tacacs host HOSTNAME [port <0-65535>] [key TACPLUSKEY] [priority <0-65535>]

[timeout <1-30>]

no tacacs [host HOSTNAME]

Parameter


HostHOSTNAME Specify tacacs+ server host name, both IP address and domain name are available.

port <0-65535 Specify tacacs+ server udp port

key TACPLUSKEY Specify tacacs+ server key string

priority Specify tacacs+ server priority <0-65535>

timeout <1-30> Specify tacacs+ server timeout value


Default

Default tacacs+ key is “”.

Default tacacs+ timeout is 5 seconds.

Usage

Use tacacs host command to add or edit tacacs+ server for authentication, authorization or accounting.

Use no form to delete one or all tacacs+ servers from database.

Example

This example shows how to create a new tacacs+ server

Switch(config)# tacacs host 192.168.1.111 port 12345 key tacacs+ priority 100 timeout 10

This example shows how to show existing tacacs+ server.

Switch# show tacacs
Prio | Timeout | IP Address | Port | Key
------+---------+------------------+--------+----------
100 | 10 | 192.168.1.111 | 12345 |tacacs+