1、路由器配置
1.1 配置Password认证
[AR1]user-interface console 0
[AR1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):abc123,
[AR1-ui-console0]return
<AR1>quit
Configuration console exit, please press any key to log on
Login authentication
Password:
<AR1>
1.2 配置AAA认证
[AR1]user-interface console 0
[AR1-ui-console0]authentication-mode aaa
[AR1-ui-console0]quit
[AR1]aaa
[AR1-aaa]local-user con-user password cipher abc123,
[AR1-aaa]local-user con-user privilege level 15
[AR1-aaa]local-user con-user service-type terminal
[AR1-aaa]return
<AR1>quit
Configuration console exit, please press any key to log on
Login authentication
Username:con-user
Password:
<AR1>
2、交换机配置
2.1 配置Password认证
[LSW1]user-interface console 0
[LSW1-ui-console0]authentication-mode password
[LSW1-ui-console0]set authentication password cipher abc123,
[LSW1-ui-console0]return
<LSW1>quit
Please Press ENTER.
Login authentication
Password:
<LSW1>
2.2 配置AAA认证
[LSW1]user-interface console 0
[LSW1-ui-console0]authentication-mode aaa
[LSW1-ui-console0]quit
[LSW1]aaa
[LSW1-aaa]local-user con-user password cipher abc123,
[LSW1-aaa]local-user con-user privilege level 15
[LSW1-aaa]local-user con-user service-type terminal
[LSW1-aaa]return
<LSW1>quit
Please Press ENTER.
Login authentication
Username:con-user
Password:
<LSW1>