TACACS+ Commands
Use these commands to configure TACACS+ access control.
TACACS+ provides access control for networked devices via one or more centralized servers. Similar to RADIUS, this protocol simplifies authentication by making use of a single database that can be shared by many clients on a large network. TACACS+ is based on the TACACS protocol (described in RFC1492) but additionally provides for separate authentication, authorization, and accounting services. The original protocol was UDP based with messages passed in clear text over the network; TACACS+ uses TCP to ensure reliable delivery and a shared key configured on the client and server to encrypt all messages.
The first time that you log in as an admin user, no password is required (that is, the password is blank). After you log in for the first time, you are required to specify a new password that you must use each subsequent time that you log in. After you specify the new password, you are logged out and then must log in again, using your new password.
If you are using a RADIUS or TACACS+ server for authentication, after changing the default password to the new password, make sure that you also change the password in the RADIUS or TACACS+ server so that you can continue to log in to the switch.
tacacs-server host
M4250
M4350
Use the tacacs-server host command in Global Configuration mode to configure a TACACS+ server. This command enters into the TACACS+ configuration mode. The ip-address or hostname argument is the IP address or host name of the TACACS+ server. To specify multiple hosts, multiple tacacs-server host commands can be used.
| Format | tacacs-server host {ip-address | ipv6address | hostname} |
| Mode | Global Config |
no tacacs-server host
Use the no tacacs-server host command to delete the specified hostname or IP address. The ip-address, ipv6address, or hostname argument is the IP4 or IP6 address or host name of the TACACS+ server.
| Format | no tacacs-server host {ip-address | ipv6address | hostname} |
| Mode | Global Config |
tacacs-server key
M4250
M4350
Use the tacacs-server key command to set the authentication and encryption key for all TACACS+ communications between the switch and the TACACS+ daemon. The key-string parameter has a range of 0–128 characters and specifies the authentication and encryption key for all TACACS communications between the switch and the TACACS+ server. This key must match the key used on the TACACS+ daemon.
Text-based configuration supports TACACS server’s secrets in encrypted and non-encrypted format. When you save the configuration, these secret keys are stored in encrypted format only. If you want to enter the key in encrypted format, enter the key along with the encrypted keyword. In the output of the show running-config command (for information about the command, see show running-config), these secret keys are displayed in encrypted format. You cannot show these keys in plain text format.
| Format | tacacs-server key [key-string | encrypted key-string] |
| Mode | Global Config |
no tacacs-server key
Use the no tacacs-server key command to disable the authentication and encryption key for all TACACS+ communications between the switch and the TACACS+ daemon. The key-string parameter has a range of 0–128 characters. This key must match the key used on the TACACS+ daemon.
| Format | no tacacs-server key key-string |
| Mode | Global Config |
tacacs-server keystring
M4250
M4350
Use the tacacs-server keystring command to set the global authentication encryption key used for all TACACS+ communications between the TACACS+ server and the client.
| Format | tacacs-server keystring |
| Mode | Global Config |
Command example:
(NETGEAR Switch)(Config)#tacacs-server keystring
Enter tacacs key:********Re-enter tacacs key:********
tacacs-server source-interface
M4250
M4350
Use this command in Global Configuration mode to configure the source interface (Source IP address) for TACACS+ server configuration. The selected source-interface IP address is used for filling the IP header of management protocol packets. This allows security devices (firewalls) to identify the source packets coming from the specific switch.
If a source-interface is not specified, the primary IP address of the originating (outbound) interface is used as the source address.
| Format | tacacs-server source-interface {unit/slot/port | loopback loopback-id | serviceport | vlan vlan-id} |
| Mode | Global Config |
| Parameter | Description |
|---|---|
| unit/slot/port | The unit identifier assigned to the switch, in unit/slot/port format. |
| loopback-id | The loopback interface. The range of the loopback ID is 0 to 7. |
| serviceport | The service port IP address is used. |
| vlan-id | Configures the VLAN interface to use as the source IP address. The range of the VLAN ID is 1 to 4093. |
Command example:
(Config)#tacacs-server source-interface loopback 0
(Config)#tacacs-server source-interface 1/0/1
(Config)#no tacacs-server source-interface
no tacacs-server source-interface
Use this command in Global Configuration mode to remove the global source interface (Source IP selection) for all TACACS+ communications between the TACACS+ client and the server.
| Format | no tacacs-server source-interface |
| Mode | Global Config |
tacacs-server timeout
M4250
M4350
Use the tacacs-server timeout command to set the time-out value in seconds for communication with the TACACS+ servers. The seconds argument is a number in the range of 1–30 seconds. If you do not specify a time-out value, the command sets the global time-out to the default value. TACACS+ servers that do not use the global time-out will retain their configured time-out values.
| Default | 5 |
| Format | tacacs-server timeout [seconds] |
| Mode | Global Config |
no tacacs-server timeout
Use the no tacacs-server timeout command to restore the default timeout value for all TACACS servers.
| Format | no tacacs-server timeout |
| Mode | Global Config |
key (TACACS Config)
Use the key command in TACACS Configuration mode to specify the authentication and encryption key for all TACACS communications between the device and the TACACS server. This key must match the key used on the TACACS daemon. The key-string argument specifies the key name. For an empty string use “ ”. (Range: 0 - 128 characters).
Text-based configuration supports TACACS server’s secrets in encrypted and non-encrypted format. When you save the configuration, these secret keys are stored in encrypted format only. If you want to enter the key in encrypted format, enter the key along with the encrypted keyword. In the output of the show running-config command (for information about the command, see show running-config), these secret keys are displayed in encrypted format. You cannot show these keys in plain text format.
| Format | key [key-string | encrypted key-string] |
| Mode | TACACS Config |
keystring (TACACS Config)
M4250
M4350
Use the keystring command in TACACS Server Configuration mode to set the TACACS+ server-specific authentication encryption key used for all TACACS+ communications between the TACACS+ server and the client.
| Format | keystring |
| Mode | TACACS Server Config |
Command example:
(NETGEAR Switch)(Config)#tacacs-server host 1.1.1.1
(NETGEAR Switch)(Tacacs)#keystring
Enter tacacs key:********
Re-enter tacacs key:********
port (TACACS Config)
M4250
M4350
Use the port command in TACACS Configuration mode to specify a server port number. The server port-number argument is a number in the range 0–65535.
Use the command without the port-number argument to return the port number to the default.
| Default | 49 |
| Format | port port-number |
| Mode | TACACS Config |
priority (TACACS Config)
M4250
M4350
Use the priority command in TACACS Configuration mode to specify the order in which servers are used, where 0 (zero) is the highest priority. The priority argument specifies the priority for servers. The highest priority is 0 (zero), and the range is 0–65535.
Use the command without the priority argument to return the priority to the default.
| Default | 0 |
| Format | priority priority |
| Mode | TACACS Config |
timeout (TACACS Config)
M4250
M4350
Use the timeout command in TACACS Configuration mode to specify the time-out value in seconds. The seconds argument is a number in the range 1–30 seconds as specifies the time-out.
Use the command without the seconds argument to return the time-out value to the default.
| Default | 5 |
| Format | timeout seconds |
| Mode | TACACS Config |
show tacacs
M4250
M4350
Use the show tacacs command to display the configuration and statistics of the TACACS+ client.
| Format | show tacacs [ip-address | ipv6-address | hostname | client | server] |
| Mode | Privileged EXEC |
| Term | Definition |
|---|---|
| Host address | The IP4 or IPv6 address or host name of the configured TACACS+ server. |
| Port | The configured TACACS+ server port number. |
| TimeOut | The timeout in seconds for establishing a TCP connection. |
| Priority | The preference order in which TACACS+ servers are contacted. If a server connection fails, the next highest priority server is contacted. |
| Link Local Interface | If configured, the link local IPv6 address. |
show tacacs source-interface
M4250
M4350
Use the show tacacs source-interface command to display the configured global source interface details used for a TACACS+ client. The IP address of the selected interface is used as source IP for all communications with the server.
| Format | show tacacs source-interface |
| Mode | Privileged EXEC |
Command example:
(Config)# show tacacs source-interface
TACACS Client Source Interface : loopback 0
TACACS Client Source IPv4 Address : 1.1.1.1 [UP]