How to make username not display when logging in at the console/vty login prompt ?

Steven_zhangCreated at:Dec 11, 2019 11:17:31Updated at:Dec 11, 2019 11:17:35

Description:

When the user changes the default login method to use no username, the user will only need to enter the password.

 

1. Topology:

mceclip0.png

 

2. Switch configuration:

    a. Reset switch to default.

Console#conf
Console(config)#boot system config:Factory_Default_Config.cfg
Console(config)#exit
Console#reload
System will be restarted. Continue <y/n>? y

mceclip1.png

 

    b. Set line console/vty password

Console#config
Console(config)#line console
Console(config-line-console)#password 0 support
Console(config-line-console)#login
Console(config-line-console)#exit
Console(config)#line vty
Console(config-line-vty)#password 0 support
Console(config-line-vty)#login
Console(config-line-vty)#

mceclip2.png

 

3. Verification

Now the user login via console or vty only needs to enter the password.

mceclip3.png

 

When the user logs in with the password set for console/vty, the user's privilege level is 0. The user needs to use the command "enable" to get privilege level - 15.

Default enable password is "super".

mceclip4.png