华为 eNSP 简单介绍
1. 华为交换机的命令行
用户视图 <huawei>
系统视图 [huawei]
<Huawei>system-view // 从用户视图进入系统视图
接口视图
- [Huawei]interface Ethernet 0/0/1
- [Huawei-Ethernet0/0/1]
协议视图
2. 视图间的转换
quit 返回上一视图
return/Ctrl+Z 返回用户视图
3. 配置交换机名称
- <Huawei>
- system-view [Huawei]sysname dqq [dqq]
4. 查看一些信息 (在用户视图下)
- <dqq>
- display version
- <dqq>
- display current-configuration
5. 为交换机设置简单密码
- <dqq>
- system-view [dqq]user-interface console 0 [dqq-ui-console0]authentication-mode
- password [dqq-ui-console0]set authentication password simple 123 [dqq-ui-console0]set
- authentication password cipher 456
6. 使用用户名和密码登录 (即: 3A 认证)
- <dqq>
- system-view [dqq]user-interface console 0 [dqq-ui-console0]authentication-mode
- aaa [dqq-ui-console0]aaa [dqq-aaa]local-user qiqi password cipher 123
7. 交换机的保存命令
<dqq>save
8. 重启交换机
<dqq>reboot
9. 恢复出厂设置
<dqq>reset saved-configuration
Warning: The action will delete the saved configuration in the device.
The configuration will be erased to reconfigure. Continue? [Y/N]:
来源: http://www.bubuko.com/infodetail-2980159.html