S5130 开启http与https服务后在web端登陆不上
电脑与交换机直连;
交换机配置如下:
#
sysname H3C
#
telnet server enable
#
irf mac-address persistent timer
irf auto-update enable
undo irf link-delay
irf member 1 priority 1
#
port-security enable
#
igmp-snooping
#
lldp global enable
#
password-recovery enable
#
vlan 1
#
stp bpdu-protection
stp global enable
#
interface NULL0
#
interface Vlan-interface1
ip address 192.168.10.2 255.255.255.0
#
interface GigabitEthernet1/0/1
stp loop-protection
#
interface GigabitEthernet1/0/2
stp loop-protection
#
interface GigabitEthernet1/0/3
stp loop-protection
#
interface GigabitEthernet1/0/4
stp loop-protection
#
interface GigabitEthernet1/0/5
stp loop-protection
#
interface GigabitEthernet1/0/6
stp loop-protection
#
interface GigabitEthernet1/0/7
stp loop-protection
#
interface GigabitEthernet1/0/8
stp loop-protection
#
interface GigabitEthernet1/0/9
stp loop-protection
#
interface GigabitEthernet1/0/10
stp loop-protection
#
interface GigabitEthernet1/0/11
stp loop-protection
#
interface GigabitEthernet1/0/12
stp loop-protection
#
interface GigabitEthernet1/0/13
stp loop-protection
#
interface GigabitEthernet1/0/14
stp loop-protection
#
interface GigabitEthernet1/0/15
stp loop-protection
#
interface GigabitEthernet1/0/16
stp loop-protection
#
interface GigabitEthernet1/0/17
stp loop-protection
#
interface GigabitEthernet1/0/18
stp loop-protection
#
interface GigabitEthernet1/0/19
stp loop-protection
#
interface GigabitEthernet1/0/20
stp loop-protection
#
interface GigabitEthernet1/0/21
stp loop-protection
#
interface GigabitEthernet1/0/22
stp loop-protection
#
interface GigabitEthernet1/0/23
stp loop-protection
#
interface GigabitEthernet1/0/24
stp loop-protection
#
interface Ten-GigabitEthernet1/0/25
stp loop-protection
#
interface Ten-GigabitEthernet1/0/26
stp loop-protection
#
interface Ten-GigabitEthernet1/0/27
stp loop-protection
#
interface Ten-GigabitEthernet1/0/28
stp loop-protection
#
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
user-role network-operator
#
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$6N5IgN4s/uHUc8+Z$TiBEtqqASGcF40Or7zWFJbJLuZimiwgweQdyeHVmjMcj0tALkwQuByrojPvSz/2Zw/m6QVQK60WE26KuRODFcg==
service-type http https
authorization-attribute user-role network-admin
authorization-attribute user-role network-operator
#
ip http enable
ip https enable
#
(0)
最佳答案
看了下配置应该没问题,看下电脑能否ping通设备的10.2地址,如果能通在用web访问,使用IE浏览器,不要用edge浏览器
PC与设备通过IP网络相连且路由可达,PC和设备的IP地址分别为192.168.101.99/24和192.168.100.99/24。
图4-1 配置HTTP方式登录组网图
# 配置VLAN 1接口的IP地址为192.168.100.99,子网掩码为255.255.255.0。
[Sysname] interface vlan-interface 1
[Sysname-Vlan-interface1] ip address 192.168.100.99 255.255.255.0
[Sysname-Vlan-interface1] quit
# 配置Web用户名为admin,认证密码为admin,服务类型为http,用户角色为network-admin。
[Sysname-luser-manage-admin] service-type http
[Sysname-luser-manage-admin] authorization-attribute user-role network-admin
[Sysname-luser-manage-admin] password simple admin
[Sysname-luser-manage-admin] quit
# 配置开启HTTP服务和HTTPS服务。
[Sysname] ip https enable
# 在PC的浏览器地址栏内输入设备的IP地址并回车,浏览器将显示Web登录页面。
# 在“Web用户登录”对话框中输入用户名、密码及验证码,点击<登录>按钮后即可登录,显示Web初始页面。成功登录后,用户可以在配置区对设备进行相关配置。
(0)
PING 不同10.2
那是不是你网线有问题,灯亮了吗?进命令行看看接口是不是up的,
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作
举报
×
侵犯我的权益
×
侵犯了我企业的权益
×
抄袭了我的内容
×
原文链接或出处
诽谤我
×
对根叔社区有害的内容
×
不规范转载
×
举报说明
那是不是你网线有问题,灯亮了吗?进命令行看看接口是不是up的,