配置步骤
# 进入系统视图,并开启web和https服务。
<H3C> system-view
[H3C] ip http enable
[H3C] ip https enable
# 给交换机配置管理vlan1配置ip地址
[H3C] interface vlan-interface 1
[H3C-VLAN-interface1] ip address 192.168.0.58 255.255.255.0
[H3C-VLAN-interface1] quit
# 创建本地账号abc,密码为123456,权限级别为Level3。
[H3C] local-user abc
[H3C-luser-abc] password simple 123456
[H3C-luser-abc] service-type web
[H3C-luser-abc] service-type https
[H3C-luser-abc] authorization-attribute user-role network-admin
[H3C-luser-abc] quit
# 保存配置。
[H3C] save force
#配置交换机的管理地址:
[H3C] interface vlan-interface 1
[H3C-VLAN-interface1] ip address 192.168.1.58 255.255.255.0
[H3C-VLAN-interface1] quit
#开启http跟https服务
[H3C]ip http enable
[H3C]ip https enable
#保存配置
[H3C]save force
评论列表: