tacacs-server host
To specify a TACACS+ host, use the tacacs-server host Global Configuration mode command. To delete the specified TACACS+ host, use the no form of this command.
Syntax
tacacs-server host {ip-address | hostname} [single-connection] [port port-number] [timeout timeout] [key key-string] [priority priority]
encrypted tacacs-server host {ip-address | hostname} [single-connection] [port port-number] [timeout timeout] [key encrypted-key-string] [priority priority]
no tacacs-server host {ip-address | hostname}
Parameters
-
host ip-address—Specifies the TACACS+ server host IP address. The IP address can be an IPv4, IPv6 or IPv6z address.
-
host hostname—Specifies the TACACS+ server host name. (Length: 1-158 characters. Maximum label length of each part of the host name: 63 characters)
-
single-connection—(Optional) Specifies that a single open connection is maintained between the device and the daemon, instead of the device opening and closing a TCP connection to the daemon each time it communicates.
-
port port-number—(Optional) Specifies the TACACS server TCP port number. If the port number is 0, the host is not used for authentication. (Range : 0-65535)
-
timeout timeout—(Optional) Specifies the timeout value in seconds. (Range: 1-30)
-
key key-string—(Optional) Specifies the authentication and encryption key for all TACACS+ communications between the device and the TACACS+ server. This key must match the encryption used on the TACACS+ daemon. To specify an empty string, enter "". (Length: 0-128 characters). If this parameter is omitted, the globally-defined key will be used.
-
key encrypted-key-string—(Optional) Same as key-string, but the key is in encrypted format.
-
priority priority—(Optional) Specifies the order in which the TACACS+ servers are used, where 0 is the highest priority. (Range: 0-65535)
Default Configuration
No TACACS+ host is specified.
The default port-number is 1812.
If timeout is not specified, the global value (set in the tacacs-server timeout command) is used.
If key-string is not specified, the global value (set in the tacacs-server key command) is used.
Command Mode
Global Configuration mode
User Guidelines
Multiple tacacs-server host commands can be used to specify multiple hosts.
Example
The following example specifies a TACACS+ host.
switchxxxxxx(config)# tacacs-server host 172.16.1.1