1
登陆华为交换机
2
然后输入如下命令
reset saved-configuration
3
系统会提示否初始化
输入Y回车
4
注意:初始化之后需要重启交换机才生效
输入reboot
5
重启成功之后需要重新设置密码
6
2次密码设置完成之后就可以了
7
我们以华为S5700为例子,进行初始化配置
8
通过串口线配置S5700 的管理IP地址和网关,串口线接在交换机的console口,ip设置完成后网线接在ETH口: system-view [Quidway] interface Meth 0/0/1 [Quidway-Meth0/0/1]ip address x.x.x.x 255.255.255.0[Quidway-Meth0/0/1]quit[Quidway]ip route-static 0.0.0.0 0.0.0.0 x.x.x.x(gateway)[Quidway]
9
设置telnet登录S5700(eg.设置用户名admin密码112233): system-view[Quidway] user-interface vty 0 4[Quidway-ui-vty0-4] authentication-mode aaa[Quidway-ui-vty0-4]protocal inbound all[Quidway-ui-vty0-4] user privilege level 15[Quidway-ui-vty0-4]quit[Quidway]telnet server enable[Quidway] aaa[Quidway-aaa] local-user admin password simple 112233[Quidway-aaa] local-user admin service-type telnet[Quidway-aaa] local-user admin privilege level 15[Quidway-aaa] quit
10
设置SSH登录5700(eg.设置用户名admin密码112233):[Quidway]rsa local-key-pair create The key name will be: Quidway_Host% RSA keys defined for Quidway_Host already exist.Confirm to replace them? [y/n]:yThe range of public key size is (512 ~ 2048). NOTES: If the key modulus is greater than 512, it will take a few minutes.Input the bits in the modulus[default = 512]:Generating keys..............++++++++++++......++++++++++++..........++++++++...............++++++++[Quidway] aaa[Quidway-aaa] local-user admin password simple 112233[Quidway-aaa] local-user admin service-type ssh[Quidway-aaa] local-user admin privilege level 15[Quidway-aaa] quit[Quidway] stelnet server enable Info: Succeeded in starting the Stelnet server.[Quidway] ssh authentication-type default password [Quidway]quit save all
11
至此,配置完毕
END