<Huawei> #用户视图
<Huawei>system-view #进系统视图
Enter system view, return user view with Ctrl+Z. #进入系统视图,返回用户视图用Ctrl+Z。
[Huawei]interface Ethernet 0/0/1 #接口视图 Ethernet:接口类型 0/0/1:第一个0代表槽位,第二个0代表子卡号,1代表接口号
[Huawei-Ethernet0/0/1]quit #quit 返回上一试图
[Huawei]ospf #ospt协议视图
[Huawei-ospf-1]
[Huawei-ospf-1]return #return 回到用户视图
<Huawei>
<Huawei>system-view
[Huawei]sysname Switch #系统名 交换机
[Switch]display version #显示 版本信息
[Switch]display current-configuration #显示 当前配置
<Switch>system-view
[Switch]user-interface console 0 #用户 接口 控制台 0
[Switch-ui-console0]authentication-mode password #认证模式 密码
[Switch-ui-console0]set authentication password simple|cipher 123 #设置 认证 密码 简单|暗文 123 简单|暗文二选一!
<Switch>system-view
[Switch]user-interface console 0
[Switch-ui-console0]authentication-mode aaa
[Switch-ui-console0]aaa
[Switch-aaa]local-user huawei password cipher huawei123 #本地用户 huawei 密码 暗文 huawei123
Info: Add a new user. #信息:添加 新 用户
<Switch>save #save保存
The current configuration will be written to the device. #当前配置将被写入设备。
Are you sure to continue?[Y/N] #您确定继续吗?[y/n]
Save the configuration successfully. #保存配置成功。
<Switch>reboot #重新启动
System will reboot! Continue?[Y/N]:y #系统将重启!继续[Y/ N]:Y?
<Switch>reset saved-configuration #重置 保存 配置
Warning: The action will delete the saved configuration in the device. #警告:该操作将删除设备中保存的配置。
The configuration will be erased to reconfigure. Continue? [Y/N]:y #配置将被擦除以重新配置。 继续?[Y/ N]:Y
Info: Succeeded in clearing the configuration in the device. #信息:成功清除设备中的配置。
未完