{"id":1307,"date":"2021-03-21T18:00:33","date_gmt":"2021-03-21T18:00:33","guid":{"rendered":"https:\/\/dft.wiki\/?p=1307"},"modified":"2026-06-08T23:16:00","modified_gmt":"2026-06-09T03:16:00","slug":"aaa-radius-aaa-tacacs-on-cisco-devices","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=1307","title":{"rendered":"AAA RADIUS AAA TACACS+ on Cisco Devices"},"content":{"rendered":"<p>Connect your Cisco routers and switches to the AAA RADIUS server.<\/p>\n<ul>\n<li><strong>AAA<\/strong> stands for Authentication, Authorization, and Accounting.<\/li>\n<li><strong>RADIUS<\/strong> is a distributed client\/server authentication system.<\/li>\n<li><strong>TACACS+<\/strong> is a protocol developed by Cisco for Terminal Access Control.<\/li>\n<\/ul>\n<p>AAA uses RADIUS or TACACS+ to verify credentials on a server when a user tries to log in.<\/p>\n<p>On all network devices (routers, switches, access points, etc.) issue the following commands:<\/p>\n<pre>enable\r\nconfigure terminal\r\n\r\nenable secret <span style=\"color: #008000;\"><strong>LOCAL_PASSWORD<\/strong><\/span>\r\nusername <span style=\"color: #008000;\"><strong>admin<\/strong><\/span> privilege 15 secret <span style=\"color: #008000;\"><strong>ADMIN_PASSWORD<\/strong><\/span><\/pre>\n<p>Note: These local credentials serve as a fallback in case the RADIUS or TACACS+ server is unreachable.<\/p>\n<p><strong>For RADIUS<\/strong><\/p>\n<pre>aaa new-model\r\naaa authentication enable default group <span style=\"color: #ff0000;\"><strong>radius<span style=\"color: #008000;\"> local<\/span><\/strong><\/span>\r\naaa authentication login default group <span style=\"color: #ff0000;\"><strong>radius<span style=\"color: #008000;\"> local<\/span><\/strong><\/span>\r\naaa authorization exec default group <span style=\"color: #ff0000;\"><strong>radius<span style=\"color: #008000;\"> local<\/span><\/strong><\/span>\r\n<span style=\"color: #ff0000;\"><strong>radius<\/strong><\/span><strong>-server<\/strong> host <span style=\"color: #ff6600;\"><strong>192.168.1.100<\/strong><\/span> key <span style=\"color: #ff6600;\"><strong>PASSWORD<\/strong><\/span><\/pre>\n<p><strong>For TACACS+<\/strong><\/p>\n<pre>aaa new-model\r\naaa authentication enable default group <span style=\"color: #ff0000;\"><strong>tacacs+<span style=\"color: #008000;\"> local<\/span><\/strong><\/span>\r\naaa authentication login default group <span style=\"color: #ff0000;\"><strong>tacacs+<span style=\"color: #008000;\"> local<\/span><\/strong><\/span>\r\naaa authorization exec default group <strong><span style=\"color: #ff0000;\">tacacs+<span style=\"color: #008000;\"> local<\/span><\/span><\/strong>\r\n<strong><span style=\"color: #ff0000;\">tacacs<\/span>-server<\/strong> host <span style=\"color: #ff6600;\"><strong>192.168.1.100<\/strong><\/span> key <span style=\"color: #ff6600;\"><strong>PASSWORD<\/strong><\/span><\/pre>\n<p>Replace <span style=\"color: #ff6600;\"><strong>192.168.1.100<\/strong><\/span> and <span style=\"color: #ff6600;\"><strong>PASSWORD<\/strong><\/span> with the IP address and key of your RADIUS or TACACS+ server.<\/p>\n<p>To test whether AAA is authenticating successfully through the server, run:<\/p>\n<pre>do test aaa group radius <span style=\"color: #3366ff;\">REMOTE_USER<\/span> <span style=\"color: #3366ff;\">REMOTE_PASSWORD<\/span> new-code\r\n\r\nOR\r\n\r\ndo test aaa group tacacs+ <span style=\"color: #3366ff;\">REMOTE_USER<\/span> <span style=\"color: #3366ff;\">REMOTE_PASSWORD<\/span> legacy<\/pre>\n<p>Note: <span style=\"color: #3366ff;\">REMOTE_USER<\/span> and <span style=\"color: #3366ff;\">REMOTE_PASSWORD<\/span> must already exist on the server.<\/p>\n<p>Other useful commands:<\/p>\n<pre>show users\r\ndo debug aaa authentication\r\ndo debug radius\r\ndo debug tacacs<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Connect your Cisco routers and switches to the AAA RADIUS server. AAA stands for Authentication, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1307","post","type-post","status-publish","format-standard","hentry","category-ccna"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1307","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1307"}],"version-history":[{"count":7,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1307\/revisions"}],"predecessor-version":[{"id":5756,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/1307\/revisions\/5756"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1307"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1307"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1307"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}