华为常用命令

关掉串口信息回显

<Hawei>undo terminal monitor

串口超时时间

设置system-view超时时间,为防止串口配置过程中频繁退出系统视图状态,设置超时时长为10分30秒

<HUAWEI> system-view

<HUAWEI> user-interface console 0

[HUAWEI-ui-console0]idle-timeout 10 30

查看配置

<HUAWEI> display current-configuration

保存配置

<HUAWEI> save

The current configuration will be written to the device.

Are you sure to continue?[Y/N]y

复位配置

方法1:

<HUAWEI> 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

<HUAWEI> reboot

Info: The system is now comparing the configuration, please wait.

Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file flash:/vrpcfg.zip. Continue? [Y/N]:n

Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.

System will reboot! Continue?[Y/N]:y

方法2:

<HUAWEI>factory-configuration reset

Info: Successfully set factory config reset flag!

<HUAWEI>reboot

Info: The system is comparing the configuration, please wait.

System will reboot! Continue ? [y/n]:y

设置Console接口密码

[Huawei]user-interface console 0 进入控制台接口
[Huawei-ui-console0]authentication-mode password 设置认证方式为密码认证
[Huawei-ui-console0]set authentication password cipher/simple 密码
配置密文/明文密码
[Huawei-ui-console0]user privilege level 级别 配置用户级别,级别可为0-15

设置Telnet接口密码

[Huawei]user-interface vty 0 4 进入VTY接口,最多允许5个用户同时登陆
[Huawei-ui-vty0-4]authentication-mode aaa 认证方式为aaa模式
[Huawei]aaa 进入aaa配置
[Huawei-aaa]local-user 用户名 password cipher/simple 密码
设置用户的密码
[Huawei-aaa]local-user 用户名 service-type telnet
设置用户的服务类型协议为telnet,也可以为其它协议,比如http即使用Web界面
[Huawei-aaa]local-user 用户名 privilege level 级别 配置用户级别

查看光纤口信息

display transceiver diagnosis interface  //查看所有光口的收发光功率信息

display transceiver interface G1/0/1 verbose  //查看某光口的收发光功率信息

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值