关掉串口信息回显
<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 //查看某光口的收发光功率信息