ā02-01-2012 09:10 AM - edited ā03-10-2019 06:47 PM
Hello,
We have configured AAA authentication on our routers with RADIUS server authentication. As a backup option a local user and enable secret password has been configured.
So far RADIUS server is working fine so there was case to test the locally configured username and enable password.
Is there any way to test the local username/ pasword and enable password. Even when the RADIUS server is reachable.
Without changing any of the existing AAA configuration as below.
aaa authentication login default group radius local -- first preference to RADUIS group and second is for local user.
Last option is to configure a new local user or overwrite the existing username password.
Please share the experience.
Thanks
Subodh
Solved! Go to Solution.
ā02-01-2012 12:55 PM
Subodh
As long as your router can communicate with the Radius server and can get a response to its request for login authentication then the router will never check the local username. If you want to test the local user name then you must do something that will prevent communication between the router and the Radius server.
Perhaps the easiest test is to change the aaa authentication login parameters. But if you do not want to do this there are several alternatives that you might consider:
- you might disconnect the network connection of the router to the Radius server and then attempt login through the console. That should test the local user.
- You might re-configure the key that is configured for the Radius server. That should prevent communication with the Radius server and allow testing of the local user name. (be sure to maintain an active session in enable mode during the test so that you can set the key back to its original value if there is some problem during the test).
- you might configure a static host route for the address of the Radius server which has null 0 as the next hop. This would prevent communication with the server (but not impact anything else) and allow you to test the local user name. (as before I suggest that you maintain an active session in enable mode during the test so that you can remove the static host router if there is any problem during the test).
- you might configure an alternative aaa authentication named method which uses only local, assign it to the console, and then login to the console. That should allow the router to test the local user name without impacting any sessions over vty etc.
HTH
Rick
ā02-01-2012 12:55 PM
Subodh
As long as your router can communicate with the Radius server and can get a response to its request for login authentication then the router will never check the local username. If you want to test the local user name then you must do something that will prevent communication between the router and the Radius server.
Perhaps the easiest test is to change the aaa authentication login parameters. But if you do not want to do this there are several alternatives that you might consider:
- you might disconnect the network connection of the router to the Radius server and then attempt login through the console. That should test the local user.
- You might re-configure the key that is configured for the Radius server. That should prevent communication with the Radius server and allow testing of the local user name. (be sure to maintain an active session in enable mode during the test so that you can set the key back to its original value if there is some problem during the test).
- you might configure a static host route for the address of the Radius server which has null 0 as the next hop. This would prevent communication with the server (but not impact anything else) and allow you to test the local user name. (as before I suggest that you maintain an active session in enable mode during the test so that you can remove the static host router if there is any problem during the test).
- you might configure an alternative aaa authentication named method which uses only local, assign it to the console, and then login to the console. That should allow the router to test the local user name without impacting any sessions over vty etc.
HTH
Rick
ā07-21-2022 07:05 PM
hi rick,
thanks for these suggestions! i'll be testing new password on local user.
i'll just 'shutdown' the MGMT port connected to the switch, console to the router and test the local user fallback login.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide