1.交换机conlose口设置密码

<Huawei>system-view //进入系统试图

[Huawei]user-interface console 0 //进入console 口视图

[Huawei-ui-console0]authentication-mode password //使用密码认证方式

Please configure the login password (maximum length 16):mf88855514 //设置密码为:mf88855514

[Huawei-ui-console0]user privilege level 15 //conlose 口默认为level 15 此步可以省略

2.交换机conlose口使用AAA本地认证方式

<Huawei>system-view //进入系统试图

[Huawei]user-interface console 0 //进入console 口视图

[Huawei-ui-console0]authentication-mode password //使用AAA(用户名和密码)认证方式

[Huawei]aaa //进入AAA视图

[Huawei-aaa]local-user mingfeng password cipher mf88855514 //设置用户mingfeng的密码为mf88855514

Info: Add a new user.

[Huawei-aaa]local-user mingfeng service-type telnet //设置用户的服务类型为Telnet

[Huawei-aaa]local-user mingfeng privilege level 15 //conlose 口默认为level 15 此步可以省略

3.查看用户界面的用户登录信息

<Huawei>dis users all

User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag

+ 0 CON 0 00:00:00 pass

Username : Unspecified

129 VTY 0

Username : Unspecified

130 VTY 1

Username : Unspecified

131 VTY 2

Username : Unspecified

4.查看用户界面信息

<Huawei>dis user-interface console 0

Idx Type Tx/Rx Modem Privi ActualPrivi Auth Int

+ 0 CON 0 9600 - 15 15 P -

+ : Current UI is active.

F : Current UI is active and work in async mode.

Idx : Absolute index of UIs.

Type : Type and relative index of UIs.

Privi: The privilege of UIs.

ActualPrivi: The actual privilege of user-interface.

Auth : The authentication mode of UIs.

A: Authenticate use AAA.

N: Current UI need not authentication.

P: Authenticate use current UI's password.

Int : The physical location of UIs.

5.查看本地用户的属性信息

<Huawei>dis local-user

----------------------------------------------------------------------------

User-name State AuthMask AdminLevel

----------------------------------------------------------------------------

admin A H -

mingfeng A T 15

----------------------------------------------------------------------------

Total 2 user(s)

6.查看在线连接的用户信息

<Huawei>dis access-user

Info: No online user.

©著作权归作者所有:来自51CTO博客作者sky3327881的原创作品,如需转载,请注明出处,否则将追究法律责任

更多相关文章

  1. 2019最烂密码榜单出炉,教你设置神级密码!
  2. Linux如何重置root密码-CentOS6,CentOS7,CentOS8
  3. 图解LeetCode第 199 号问题:二叉树的右视图
  4. PHP开发者如何做好密码保护以及Laravel底层密码存储和验证实现
  5. 分享一个匹配8-16位数字和字母密码的正则表达式
  6. php怎么给密码进行md5加密
  7. 【哈希密码】PHP比md5更安全的加密方式
  8. AWS-EC2遗失秘钥或密码如何重置密码或秘钥?

随机推荐

  1. golang无法导包怎么办?
  2. golang无法解析json怎么办?
  3. go语言值传递介绍
  4. golang如何实现协程?
  5. Golang 能做前端吗?
  6. Golang 可以把包名去掉吗?
  7. golang如何学习?
  8. golang需要什么基础?
  9. 分享十个优秀的 Go 类库
  10. go语言中自定义包的方法