1、路由器的带外管理
Username: admin
Password:
Router>ena
Router#conf
Router_config#username dcn password 123456
Router_config#enable password 0 789
Router_config#aaa authentication enable default enable
Router_config# aaa authentication login default local
Router_config#line console 0
Router_config_line#login authentication default //登陆进要输入用户名和密码
Router_config_line#exit
Router_config#exit
Router#wr
验证:
Router_config#aaa authentication login default line //登陆时只要输入密码
Router_config#line console 0
Router_config_line#password 0 123456
Router_config_line#exit
Router_config#exit
Router#wr
验证:
2、路由器的带内管理:
Router>ena
password:
Router#conf
Router_config#enable password 0 789
Router_config#aaa authentication enable default enable
Router_config# aaa authentication login default local
Router_config#ip http server
Router_config#ip sshd enable
Router_config#username dcn type telnet password 0 123456
Router_config#username dcn type ssh password 0 123456
注意:TELNET和SSH登陆只能设置一个。
Router_config#int g0/0
Router_config_g0/0#ip add 192.168.1.1 255.255.255.0
Router_config_g0/0#no sh
Router_config_g0/0#exit
Router_config#exit
Router#wr
验证:
(1)TELNET登陆:
(2)SSH登陆:
(3)WEB登陆: