思科交换机中设置的密码类型不同,命令也有所不同,具体方法如下
| enable |
| SW1(config)#line console 0 |
| SW1(config-line)#password cisco |
| SW1(config-line)#login #启用密码认证,默认没有,需要加上去# |
| SW1(config-line)#login local #本地开启用户认证# |
| SW1(config)username xxx password yyy #创建本地用户# |
| SW1(config)username xxx privilege 15 password yyy #以该用户登入设备后直接进入特权模式# #对用户的权限定义0-15级,最高为15,任何命令都可操作# |
| SW1(config)service password-encryption #明文密码加密# |
| SW1>enable |
| SW1(config)#configure terminal |
| SW1(config)#line vty 0 4 |
| SW1(config-line)#password telnetcisco |
| SW1(config-line)#login #默认# |
| SW1(config-line)#login local #开启本地用户认证,使用本地用户数据库# |
| SW1(config-line)no login #不需要密码就可登陆# |
| SW1>enable |
| SW1(config)#configure terminal |
| SW1(config)#enable password encisco |
| SW1(config)#enable secret jmcisco |
| SW1(config)#login |
| exit |
| SW1>enable |
| SW1(config)#configure terminal |
| SW1(config)#enable password cisco |
| SW1(config)#username aaa secret cisco |
| SW1(config)#line vty 0 4 |
| SW1(config-line)#login local |
| exit |
| SW1>enable |
| SW1(config)#configure terminal |
| SW1(config)# username aaa privilege 15 secret cisco |
| SW1(config)#line vty 0 4 |
| SW1(config-line)#login local |
| exit |
版权声明:本文版权归 科先森 所有,转载请注明出处!
本文链接:
https://keesir.com/227/
友情提示:如果博客出现404或链接失效,请留言或者联系博主修复!