华为AR1220设备重置后web无法登录,需要通过console端口配置http server enable
华为AR1220设备重置后web无法登录,需要通过console端口华为AR1220设备重置后web无法登录,需要通过console端口
http server enable
This operation will take several minutes, please wait...................................
May 15 2022 21:08:50+00:00 Huawei ENTITYTRAP/2/CPUUSAGERISING:OID 1.3.6.1.4.1.2011.5.25.219.2.14.1 CPU utilization exceeded the pre-alarm threshold.(Index=9, HwEntityPhysicalIndex=9, PhysicalName="SRU Board 0", EntityThresholdType=0, EntityThresholdWarning=80, EntityThresholdCurrent=100, EntityTrapFaultID=144896)
May 15 2022 21:08:50+00:00 Huawei %%01CPUP/4/CPU_USAGE_HIGH(l):The CPU is overloaded, and the tasks with top three CPU occupancy are Co0(43.2%), loop0(14.6%), TICK(4.2%) . (CpuUsage=100%, Threshold=80%)
..............
Info: Succeeded in starting the HTTP server
May 15 2022 21:09:00+00:00 Huawei ENTITYTRAP/4/CPUUSAGERESUME:OID 1.3.6.1.4.1.2011.5.25.219.2.14.2 CPU utilization resumed from exceeding the pre-alarm threshold.(Index=9, HwEntityPhysicalIndex=9, PhysicalName="SRU Board 0", EntityThresholdType=1, EntityThresholdWarning=80, EntityThresholdCurrent=65, EntityTrapFaultID=144896)
Please check whether system data has been changed, and save data in time
Configuration console time out, please retry to log on
Login authentication
然后就可以登录界面了。
Console口设置密码
交换机Console口设置密码
user-interface console 0
authentication-mode password
set authentication password ?
cipherSet the password with cipher text #密码用密码文本设置密码
simpleSet the password in plain text #简单地设置明文密码
set authentication password simple 123
路由器Console口设置密码
user-interface console 0
authentication-mode password
Please configure the login password (maximum length 16):123
q
q
<R1>q
Configuration console exit, please press any key to log on
Login authentication
Password:输入123
<R1>sys
Enter system view, return user view with Ctrl+Z.
配置用户通过Telnet登录设备(真机演示)
int g0/0/0
ip add 192.168.100.252 24 #先给需要接口设置IP
telnet server enable #全局开启telnet
Info: Telnet is insecure, recommended to use stelnet with encryption features.
aaa
local-user pok password irreversible-cipher 123456#创建本地用户,用户名:pok、密码:123456
Info: Add a new user.
local-user pok service-type telnet #配置本地用户pok的接入类型为telnet
local-user pok privilege level 3 #设置用户等级,远程用户缺省的级别都是0级,可修改Telnet用户登录后的用户级别为管理员3
Warning: This operation may affect online users, are you sure to change the user privilege level ?y 确定
q
user-interface vty 0 4 #进入VTY0~VTY4用户界面视图
authentication-mode aaa #配置VTY类型用户界面的验证方式为AAA
配置用户通过web登录设备(真机演示)
web登陆其实和上面基本是一样的。只是将上面代码中的:
local-user pokes service-type telnet
替换成
local-user pokes service-type http ssh web
int g0/0/0
ip add 192.168.100.252 24 #先给需要接口设置IP
http server enable #全局开启telnet
Info: Telnet is insecure, recommended to use stelnet with encryption features.
aaa
local-user pok password irreversible-cipher 123456#创建本地用户,用户名:pok、密码:123456
Info: Add a new user.
local-user pok service-type http #配置本地用户pok的接入类型为telnet
local-user pok privilege level 3 #设置用户等级,远程用户缺省的级别都是0级,可修改Telnet用户登录后的用户级别为管理员3
Warning: This operation may affect online users, are you sure to change the user privilege level ?y 确定
q
user-interface vty 0 4 #进入VTY0~VTY4用户界面视图
authentication-mode aaa #配置VTY类型用户界面的验证方式为AAA
说明:有个问题需要注意一下,替换完成之后就只能web登陆,不能同时登陆web和telnet。如果还需要web登陆,就需要再新建另一个用户。
重点华为设备出厂的时候,对web访问的接口做了限制,我们必须查出来哪个接口可以web访问
display current-configuration filter http serve #查询哪个接口允许web访问
#
post-system
http server enable
http server permit interface GigabitEthernet0/0/1 #这个接口可以访问
#
return
解决办法有两种:
undo http server permit interface #删除限制
http server permit interface e0/0/0#允许你的接口访问web
在这里我想说的是,华为的web界面真的是很差,我用的真机AR1220,不知道新版的怎么样。建议还是用命令把。
页:
[1]