• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
Ningque_Song
博客园    首页    新随笔    联系   管理    订阅  订阅

个人工作学习记录(三):H3C S5120V2开启WEB端、VLAN 视图批量加端口

system-view

创建本地用户 admin,并设置登录密码为 admin@12,服务类型为 https,用户角色为

network-admin 管理员角色.
[Device] local-user admin
[Device-luser-manage-admin] password simple admin@12
[Device-luser-manage-admin] service-type https
[Device-luser-manage-admin] authorization-attribute user-role network-admin
[Device-luser-manage-admin] quit

配置设备的 IP 地址为 192.168.2.1。

[Device] interface vlan-interface 1
[Device-VLAN-interface1] ip address 192.168.2.1 255.255.255.0
[Device-VLAN-interface1] quit

开启 https 服务

[Device] ip https enable

保存配置

[Device] save

VLAN 视图批量加端口

适合连续端口:G1/0/1 ~ G1/0/6

plaintext
[Device] vlan 220
[Device-vlan220] port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/6
[Device-vlan220] quit

适合零散端口:1 口、3 口、5 口

plaintext
[Device] vlan 220
[Device-vlan220] port g1/0/1 g1/0/3 g1/0/5

posted on 2026-10-26 16:31  Ningque_Song  阅读(9)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3