The configuration process for TACACS+ and RADIUS servers for authentication is similar. This section explains how to choose and configure these authentication methods on the CLI.
Prerequisites: You must have -
RADIUS and TACACS+ server(s) configured to authorize users
Users configured on the respective servers
Access to the shared secret key configured on the respective server(s)
Log in to the system as
npadminusing the system's IP address or FQDN. For example:$ ssh npadmin@10.1.0.1Or,
$ ssh npadmin@exampleFQDNEnter privileged mode:
npadmin@hostname > enableEnter the admin password.
[sudo] password for npadmin: <password>Enter configuration mode:
npadmin@hostname# configure systemOpen the authentication configuration:
npadmin@hostname(config)# authentication 1: Authentication Method = pam 2: Configure Current Authentication Method ---------------------------------------- Q: Save changes and exit C: Cancel changes and exit Select which option you would like to change using the index number:
Type
1to open the authentication mechanism menu. When the menu appears, Enter3for RADIUS or4for TACACS+.Authentication Mechanisms: 1: PAM 2: LDAP 3: RADIUS 4: TACACS+ 5: Active Directory 6: PKI 7: PKI w/ LDAP 8: PKI w/ Active Directory C: Cancel changes and exit Select the authentication method to use:
When you have selected PKI or PKI w/ LDAP or PKI w/ Active Directory as the authentication method, the following options appear in the CLI:
1: Authentication Method = radius/tacacs 2: Configure Current Authentication Method ---------------------------------------- Q: Save changes and exit C: Cancel changes and exit Select which option you would like to change using the index number:
Press
2to selectConfigure Current Authentication Method. When the configuration menu appears, make changes to the following fields, as required:RADIUS/TACACS+ Server(s): Enter1to enter a space-separated list of servers to authenticate against in <IP address><port> format.Note
Only IP addresses are permitted for TACACS+ or RADIUS servers. DNS hostnames are not supported.
Shared Secret: Enter2to provide the shared secret key configured on the server for communication.RADIUS/TACACS+ Timeout: Enter3to configure the server timeout in seconds.For TACACS+, allowed value range is 0 - 60
For RADIUS, allowed value range is 0 - 255
Enter
Qto save the settings and exit the menu, orCto cancel.
See adding a user to create remote user(s) for RADIUS/TACACS authentication.