网络设备的管理方式
- console本地管理(拥有最大权限)
- 专有的以太网管理接口MGT,带外管理
- 远程管理协议telnet(明文的23端口的管理协议)/ssh(密文的22端口的管理协议)(业务接口)
- 跳转方式(业务接口)
- 通过AUX口远程访问(应用较少,如果设备上只有AUX没有console,就是console)
console的密码认证(路由器)
<HW-R1> //用户视图
<HW-R1>system-view //进入了系统视图
[HW-R1]user-interface console 0 //进入console接口
[HW-R1-ui-console0]authentication-mode password //认证模式是密码认证
Please configure the login password (maximum length 16):123456 //自己定义的密码
验证:
<HW-R1>display users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag
+ 0 CON 0 00:00:00 pass Username : Unspecified
测试:
<HW-R1>quit
Configuration console exit, please press any key to log on
Login authentication
Password:
<HW-R1>
<Huawei>display users
User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag
+ 0 CON 0 00:00:00 pass
Username : Unspecified
Would you like to enter the initial configuration dialog? [yes/no]: no
Router> //用户界面
Router>enable //进入特权模式(过渡模式)
Router#
Router#configure t
Router#configure terminal //进入配置模式
Router(config)#line console 0 //进入console接口模式
Router(config-line)#password qytang //设置密码
Router(config-line)#login //密码登录的开关
Router#exit
测试:
Press RETURN to get started.
User Access Verification
Password: //键入密码
验证:
Router#show users
Line User Host(s) Idle Location
* 0 con 0 idle 00:00:00
使用console口进行连接
使用console进行设备管理