思科网络设备console,Telnet等设置

console

单密码认证方式
ACCESS>enable //进入特权模式
ACCESS#configure terminal //进入全局配置模式
Enter configuration commands, one per line.  End with CNTL/Z.
ACCESS(config)#line console 0 //进入console 0 端口
ACCESS(config-line)#password huawei@123//设置密码是huawei@123
ACCESS(config-line)#login //登录


用户名和密码同时认证方式
Switch>enable 
Switch#config
Switch#configure  terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#username admin password huawei@123 //增加用户admin并设置密码
Switch(config)#username admin privilege 15//改用户权限等级设置为15
Switch(config)#line console 0 //进入console端口
Switch(config-line)#login  local //设置登录方式是本地认证
Switch(config-line)#exit 
Switch(config)#exit 
Switch#
测试
Press RETURN to get started.
User Access Verification
Username: admin //输入刚才设置的用户名
Password:******* //输入正确的密码
Switch#
删除console密码
Switch(config)#line console 0 //进入console端口
Switch(config-line)#no login  //取消console认证

telnet

单密码登录
Switch>enable 
Switch#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#interface vlan 1 //进入VLAN1
Switch(config-if)#ip address 192.168.1.1 255.255.255.0//配置IP地址
Switch(config-if)#exit//退出
Switch(config)#line vty 0 4//进入虚拟接口0-4
Switch(config-line)#password gaomin@123//设置密码
Switch(config-line)#login //登录

用户名+密码的方式登录

Switch>enable 
Switch#configure terminal 
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#username admin password huawei@123 //设置用户名是admin,以及密码
Switch(config)#username admin privilege 15//设置该用户的权限等级
Switch(config)#line vty 0 4 //进入vty虚拟端口,0-4
Switch(config-line)#login local //登录方式是本地认证
Switch(config-line)#no login //取消认证,任何一台PC都可以Telnet
发布了75 篇原创文章 · 获赞 30 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/NeverGUM/article/details/102544730