华为交换机(S5735S-L24P4S-A1)交换机开启web管理模式

1.开启web配置模式
华为交换机(S5735S-L24P4S-A1)该型号交换机默认不开启web管理模式。需要通过Console口配置模式开启web管理模式,方便使用图形化界面升级操作系统

1.进入配置命令模式
Please Press ENTER.
An initial password is required for the first login via the console.
Set a password and keep it safe. Otherwise you will not be able to login via the console.
Please configure the login password (8-16)
Enter Password:admin@huawei.com(交换机默认密码)
Confirm Password:admin@huawei.com(交换机默认密码)

2.开启HTTPS服务
<HUAWEI>sys
Enter system view, return user view with Ctrl+Z.(交换机回显信息)
[HUAWEI]http secure-server enable 
Info: The HTTP secure server has been already started.(交换机回显信息)
Warning: After configuring the source interface or source address, the listening socket will be created.(交换机回显信息)
[HUAWEI]http server enable 
Info: The HTTP server has been already started.(交换机回显信息)
Warning: After configuring the source interface or source address, the listening socket will be created.(交换机回显信息)

3.配置Web用户
[Huawei]aaa 
[Huawei-aaa]local-user admin password cipher bjmut.com (local-user后的admin为用户名,cipher后的bjmut.com为密码,登陆时用此账号密码登陆) 
info: A new user added (交换机回显信息)
[Huawei-aaa] local-user admin service-type http telnet (以下两行local-user后的admin需输入在上一行配置的用户名)
Info: The cipher password has been changed to an irreversible-cipher password.
Warning: The user access modes include Telnet, FTP, or HTTP, so security risks exist.
Info: After changing the rights (including the password, access type, FTP directory, HTTP directory, and level) of a local user, the rights of users already online do not change. The change takes effect to users who go online after the change. (交换机回显信息)
(local-user xxx service-type 命令需要注意:如果需要用这个账号作为多种登陆方式的用户名,则需要在service-type后加上多种登陆服务,如同时将该账号用于telnet、http和console登陆: local-user huawei service-type http telnet terminal) 
[Huawei-aaa]local-user admin privilege level 15 (配置登陆账号的权限级别,15为最高级)
Warning: This operation may affect online users, are you sure to change the user privilege level ?[Y/N] (交换机回显信息)
Error: Please choose 'YES' or 'NO' first before pressing 'Enter'. [Y/N]:y
3.配置管理IP
Web配置完成后,还需要为交换机配置一个管理IP,下面以为vlanif1配置IP为例: 
[Huawei]interface vlanif 1 
[HUAWEI-Vlanif1]ip address  X.X.X.X  X.X.X.X
说明:X.X.X.X  X.X.X.X vlanif1 为交换机管理地址,根据现场情况设置。
本操作手册暂定地址为192.168.1.253 255.255.255.0
`
4.配置指定HTTP/HTTPS服务器端的源接口
[HUAWEI]http server-source -i Vlanif 1
Warning: The operation will reboot the HTTP server. Continue? [Y/N]:y
Info: Succeeded in setting the source interface of the HTTP server to Vlanif1.(交换机回显信息)
Info: Succeeded in starting the HTTP secure server.(交换机回显信息)
Warning: HTTP is not a secure protocol, and it is recommended to use HTTPS.