01-18-2024 11:51 PM
Hello Team,
Why dont i have an option to configure "login local" under line con 0, on cisco catalyst switch 3850?
Solved! Go to Solution.
01-19-2024 04:01 AM - edited 01-19-2024 04:02 AM
Hi fmugambi,
As other memebers mentioned, the login local command won't work...if switch is enable with aaa new-model command
If you want to logging into the switch only as local user ( in Lab or Test environment)...you can disable remote authentiction using no aaa new-model, I think it is not recommended in production environment... it's based on the scenario.
Here is the sample configuration for local authentication....
conf t
no aaa new-model
username user_name priv 15 secret password
line vty 0 4
login local
trans in all
exec-t 5 0
end
wr
If you can't go with disabling remote authentication use following aaa commands...
Switch(config)# username your_user_name privilege 15 password 7 secret567
Switch(config)# aaa authentication login default local
Switch(config)# line console 0
Switch(config-line)# login authentication default
Switch(config-line)#end
Best regards
******* If This Helps, Please Rate *******
01-19-2024 12:21 AM - edited 01-19-2024 04:09 AM
Hello @fmugambi
Do you configure AAA protocol ?
If yes, login local is no more available. You need login authentication <default> command instead.
01-19-2024 12:27 AM
two topic
1- VTY not work with config (you share) this I will answer today
2- this issue
login local is disappear as soon you config aaa new-model
but you can use
login
password
this allow to access console without add username,
NOTE:- we here try to config line permit or deny access to device
so dont WR any change, if we wrong we can reboot and you can return to previous point and access to SW
be careful any wrong maybe lead you to password recovery or factory reset
MHM
01-19-2024 01:56 AM
You may try below syntax :
username balajiadmin password youguesscorrect priv 15
aaa authentication login CONSOLE local
aaa authorization exec CONSOLE if-authenticated
!
line con 0
login authentication CONSOLE
Refer below guide :
01-19-2024 04:01 AM - edited 01-19-2024 04:02 AM
Hi fmugambi,
As other memebers mentioned, the login local command won't work...if switch is enable with aaa new-model command
If you want to logging into the switch only as local user ( in Lab or Test environment)...you can disable remote authentiction using no aaa new-model, I think it is not recommended in production environment... it's based on the scenario.
Here is the sample configuration for local authentication....
conf t
no aaa new-model
username user_name priv 15 secret password
line vty 0 4
login local
trans in all
exec-t 5 0
end
wr
If you can't go with disabling remote authentication use following aaa commands...
Switch(config)# username your_user_name privilege 15 password 7 secret567
Switch(config)# aaa authentication login default local
Switch(config)# line console 0
Switch(config-line)# login authentication default
Switch(config-line)#end
Best regards
******* If This Helps, Please Rate *******
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