<huawei>用户视图
<huawei>system-view
[HUAWEI]系统视图
[huawei]interface gigabitethernet 0/0/1
[Huawei-gigabitethernet 0/0/1]接口视图
<huawei>display version 查看VRP系统版本信息
[huawei]sysname switch 修改主机名为switch
<switch>display current-configuration
查看当前配置
设置终端密码:
[switch]user-interface console 0
[switch-ui-console0]set authentication password simple 123
[switch-ui-console0]set authentication password cipher 456
Simple明文
Cipher密文
[switch-ui-console0]authentication-mode password
更改自动退出时间
[switch-ui-console0]idle-timeout 15
关闭告警信息
<switch>undo terminal monitor
存储配置信息
<switch>save
恢复出厂默认
<switch>reset saved-configuration
<switch>reboot 重启
根据提示输入n,不保存在输入Y重启
[Huawei-gigabitethernet 0/0/1]shutdown关闭接口
[Huawei-gigabitethernet 0/0/1]undo shutdown开启接口
配置路由器接口IP
[ROUTER]interface gigabitethernet 0/0/0
[router-gigabitethernet0/0/0]ip address 192.168.1.254 255.255.255.0