S5560 series 基于现有配置怎么开启Web和把Vlan-interface100的10段也设置为自动分配?
[BEGIN] 2024/1/15 19:33:16
<SW5560>dis current-configuration
#
version 7.1.070, Release 6318P01
#
sysname SW5560
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
dhcp enable
dhcp server forbidden-ip 192.168.200.100 192.168.200.110
#
dhcp snooping enable
#
lldp global enable
#
password-recovery enable
#
vlan 1
#
vlan 10
#
vlan 50
#
vlan 60
#
vlan 70
#
vlan 100
name Internet To Third floor
#
vlan 200
description wifi dhcp
#
stp global enable
#
dhcp server ip-pool 200
gateway-list 192.168.200.254
network 192.168.200.0 mask 255.255.255.0
dns-list 114.114.114.114 180.76.76.76
#
interface NULL0
#
interface Vlan-interface1
ip address dhcp-alloc
dhcp client identifier ascii 58c7ac15f648-VLAN0001
#
interface Vlan-interface10
ip address 192.168.1.254 255.255.255.0
#
interface Vlan-interface50
ip address 192.168.5.1 255.255.255.0
#
interface Vlan-interface60
ip address 192.168.6.1 255.255.255.0
#
interface Vlan-interface70
ip address 192.168.7.1 255.255.255.0
#
interface Vlan-interface100
ip address 192.168.10.1 255.255.255.0
#
interface Vlan-interface200
ip address 192.168.200.254 255.255.255.0
#
interface GigabitEthernet1/0/1
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet1/0/2
port link-mode bridge
port access vlan 10
#
interface GigabitEthernet1/0/3
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/4
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/5
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/6
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/7
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/8
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/9
port link-mode bridge
port access vlan 200
dhcp snooping trust
dhcp snooping binding record
#
interface GigabitEthernet1/0/10
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/11
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/12
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/13
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/14
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/15
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/16
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/17
port link-mode bridge
description da-办公室-WiFi
port access vlan 200
#
interface GigabitEthernet1/0/18
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/19
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/20
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/21
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/22
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/23
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/24
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/25
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/26
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/27
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/28
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/29
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/30
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/31
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/32
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/33
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/34
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/35
port link-mode bridge
description xiao-会议室-WiFi
port access vlan 200
#
interface GigabitEthernet1/0/36
port link-mode bridge
port access vlan 50
#
interface GigabitEthernet1/0/37
port link-mode bridge
port access vlan 70
#
interface GigabitEthernet1/0/38
port link-mode bridge
port access vlan 70
#
interface GigabitEthernet1/0/39
port link-mode bridge
port access vlan 70
#
interface GigabitEthernet1/0/40
port link-mode bridge
port access vlan 70
#
interface GigabitEthernet1/0/41
port link-mode bridge
port access vlan 60
#
interface GigabitEthernet1/0/42
port link-mode bridge
port access vlan 60
#
interface GigabitEthernet1/0/43
port link-mode bridge
description da-会议室-WiFi
port access vlan 200
#
interface GigabitEthernet1/0/44
port link-mode bridge
description HR-WiFi
port access vlan 200
#
interface GigabitEthernet1/0/45
port link-mode bridge
port access vlan 100
#
interface GigabitEthernet1/0/46
port link-mode bridge
port access vlan 200
#
interface GigabitEthernet1/0/47
port link-mode bridge
description CEO-WiFi
port access vlan 200
#
interface GigabitEthernet1/0/48
port link-mode bridge
description ruanjian-WiFi
port access vlan 200
#
interface GigabitEthernet1/0/49
port link-mode bridge
#
interface GigabitEthernet1/0/50
port link-mode bridge
#
interface GigabitEthernet1/0/51
port link-mode bridge
#
interface GigabitEthernet1/0/52
port link-mode bridge
#
scheduler logfile size 16
#
line class aux
user-role network-admin
#
line class vty
user-role network-operator
#
line aux 0
user-role network-admin
#
line vty 0 63
authentication-mode scheme
user-role network-operator
#
ip route-static 0.0.0.0 0 192.168.1.1
ip route-static 192.168.1.0 24 192.168.1.1
#
ssh server enable
#
radius scheme system
user-name-format without-domain
#
domain system
#
domain default enable system
#
role name level-0
description Predefined level-0 role
#
role name level-1
description Predefined level-1 role
#
role name level-2
description Predefined level-2 role
#
role name level-3
description Predefined level-3 role
#
role name level-4
description Predefined level-4 role
#
role name level-5
description Predefined level-5 role
#
role name level-6
description Predefined level-6 role
#
role name level-7
description Predefined level-7 role
#
role name level-8
description Predefined level-8 role
#
role name level-9
description Predefined level-9 role
#
role name level-10
description Predefined level-10 role
#
role name level-11
description Predefined level-11 role
#
role name level-12
description Predefined level-12 role
#
role name level-13
description Predefined level-13 role
#
role name level-14
description Predefined level-14 role
#
user-group system
#
local-user admin class manage
password hash $h$6$W6e8Xt5z145as+sO$omO9wGUp31abhGAkDLUiVtMcw7KU95iKB6VCuekpMKswkRxW/smWHVdxI9uR/YZruINaZR+KUevy0hOQeqPK0A==
service-type telnet ssh
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
cloud-management server domain oasis.h3c.com
#
return
<SW5560>
(0)
最佳答案
您好,以下是开启WEB的参考命令:
2、开启HTTP HTTPS功能
[H3C]ip http enable
[H3C]ip https enable
3、创建用户名、密码,并赋予HTTP HTTPS的权限
[H3C]local-user admin
New local user added.
[H3C-luser-manage-admin]password simple admin
[H3C-luser-manage-admin]service-type http https
[H3C-luser-manage-admin]authorization-attribute user-role network-admin
[H3C-luser-manage-admin]quit
(0)
user-group system # local-user admin class manage password hash $h$6$W6e8Xt5z145as+sO$omO9wGUp31abhGAkDLUiVtMcw7KU95iKB6VCuekpMKswkRxW/smWHVdxI9uR/YZruINaZR+KUevy0hOQeqPK0A== service-type telnet ssh authorization-attribute user-role network-admin authorization-attribute user-role network-operator # cloud-management server domain oasis.h3c.com 这里面的password是不是表示已经设置了密码,那配置Web的时候还能再设置一个密码?
现在我不知道这个密码怎么处理?
#进入系统视图
<H3C>system-view
#创建本地用户admin,并设置登录密码为admin,服务类型为http跟https,用户级别为network-admin管理员级别
[H3C] local-user admin
[H3C-luser-manage-admin] password simple admin
[H3C-luser-manage-admin] service-type http https
[H3C-luser-manage-admin] authorization-attribute user-role network-admin
[H3C-luser-manage-admin] quit
#配置交换机的管理地址:
[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
(0)
现在我不知道这个密码怎么处理?
现在的interface Vlan-interface1 ip address dhcp-alloc dhcp client identifier ascii 58c7ac15f648-VLAN0001 这个配置是起什么作用?
user-group system # local-user admin class manage password hash $h$6$W6e8Xt5z145as+sO$omO9wGUp31abhGAkDLUiVtMcw7KU95iKB6VCuekpMKswkRxW/smWHVdxI9uR/YZruINaZR+KUevy0hOQeqPK0A== service-type telnet ssh authorization-attribute user-role network-admin authorization-attribute user-role network-operator # cloud-management server domain oasis.h3c.com 这里面的password是不是表示已经设置了密码,那配置Web的时候还能再设置一个密码?
现在我不知道这个密码怎么处理?
#开启web
sys
ip http enable
ip https enable
#你的本地用户admin 没有添加 http https 服务类型;需要添加上;
local-user admin class manage
service-type telnet ssh http https
#
#vlan 10 添加dhcp pool 分配地址:
dhcp server ip-pool vlan10
gateway-list 192.168.1.254
network 192.168.1.0 mask 255.255.255.0
dns-list 114.114.114.114 180.76.76.76
(0)
开启web
ip http enable
ip https enable
配置dhcp,参考这个,修改地址段就行了
dhcp server ip-pool 200
gateway-list 192.168.200.254
network 192.168.200.0 mask 255.255.255.0
dns-list 114.114.114.114 180.76.76.76
(0)
那管理地址是哪个?
那管理地址是哪个?
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
现在我不知道这个密码怎么处理?