华为S5720系列交换机支持通过Web界面进行管理,这是一种图形化的操作方式,比命令行更直观易用。以下是配置S5720交换机开启Web登录的详细步骤。
华为S5720交换机有两种方式配置管理IP:
方式一:通过VLAN接口配置(推荐)
system-view
[HUAWEI] sysname SW1 # 可选,修改设备名称
[SW1] vlan 10 # 创建管理VLAN
[SW1-vlan10] quit
[SW1] interface vlanif 10 # 进入VLAN接口
[SW1-Vlanif10] ip address 192.168.1.1 24 # 配置IP地址和掩码
[SW1-Vlanif10] quit
方式二:通过MEth接口配置(使用独立管理口)
system-view
[HUAWEI] interface meth 0/0/1 # 进入管理接口
[HUAWEI-MEth0/0/1] ip address 192.168.1.1 255.255.255.0
[HUAWEI-MEth0/0/1] quit
注意:VLAN接口方式更灵活,允许通过任意接入端口访问管理界面;MEth方式更安全,只能通过专用管理口访问
[SW1] interface gigabitethernet 1/0/1 # 进入与PC连接的端口
[SW1-GigabitEthernet1/0/1] port link-type access # 设置为access模式
[SW1-GigabitEthernet1/0/1] port default vlan 10 # 加入管理VLAN
[SW1-GigabitEthernet1/0/1] quit
[SW1] http secure-server enable # 开启HTTPS服务
注意:HTTPS服务默认可能是开启的,如果被关闭才需要此命令
[SW1] aaa # 进入AAA视图
[SW1-aaa] local-user admin password irreversible-cipher Admin@123 # 创建用户和密码
[SW1-aaa] local-user admin privilege level 15 # 设置用户权限级别(15为最高)
[SW1-aaa] local-user admin service-type http # 允许通过HTTP/HTTPS访问
[SW1-aaa] quit
密码安全建议:使用包含大小写字母、数字和特殊字符的复杂密码
[SW1] user-interface console 0
[SW1-ui-console0] authentication-mode password
[SW1-ui-console0] set authentication password cipher Console@123
[SW1-ui-console0] quit
[SW1] quit
<SW1> save # 保存配置
系统会提示确认,输入"Y"保存配置
https://192.168.1.1
(使用配置的管理IP)无法访问Web界面:
display http server
)登录后无权限:
证书警告:
links:https://www.bilibili.com/video/BV1xj411U7cq
版权说明:如非注明,本站文章均为 扬州驻场服务-网络设备调试-监控维修-南京泽同信息科技有限公司 原创,转载请注明出处和附带本文链接。
请在这里放置你的在线分享代码