![图片[1],华为AR2200忘记WEB管理员密码恢复出厂设置,老王弱电](https://www.52ruodian.com/wp-content/uploads/2023/01/c26be60cfd160710-1024x247.png)
通过命令行配置恢复出厂配置
1,在用户视图下,执行命令factory-configuration reset。
<Huawei> factory-configuration reset
Warning: It will clean the configuration which you have saved. If you have set the factory-configuration by hand, it will start from the modified factory-configuration, else it will start from the original one, when you restart the device. Continue? [y/n]:y //输入y后,将清除设备上的已保存的配置。
Info: Successfully set factory config!
2,在用户视图下,执行命令reboot,重新启动设备。
<Huawei> reboot
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration.
Continue? [y/n]:y //输入y后,将清空设备下次启动使用的配置文件。
It will take several minutes to save configuration file, please wait..........
......................
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
System will reboot! Continue? [y/n]:y //输入y后,将重启设备。
Info: system is rebooting, please wait...
通过清空配置文件来恢复出厂配置
1,在用户视图下,执行命令reset saved-configuration,清空设备下次启动使用的配置文件。
<Huawei> reset saved-configuration
Warning: This will delete the configuration in the flash memory.
The device configurations will be erased to reconfigure.
Are you sure? (y/n):y //输入y后,将清空设备下次启动使用的配置文件。
Info: Clear the configuration in the device successfully.
2,在用户视图下,执行命令reboot,重新启动设备。
<Huawei> reboot
Info: The system is comparing the configuration, please wait.
Warning: All the configuration will be saved to the next startup configuration.
Continue? [y/n]:y //输入y后所有配置都会被保存在下次启动的配置中。
It will take several minutes to save configuration file, please wait..........
......................
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
System will reboot! Continue? [y/n]:y //输入y后,将重启设备。
Info: system is rebooting, please wait...
恢复出厂配置后的必要配置
通过CTRL+B恢复路由器密码的命令
华为AR2200调试命令
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]dis cu
[V200R006C10SPC300]
#
drop illegal-mac alarm
#
ipv6
#
dns resolve
dns proxy enable
#
dhcp enable
#
pki realm default
enrollment self-signed
#
ssl policy default_policy type server
pki-realm default
#
acl name GigabitEthernet0/0/1 2999
rule 5 permit
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password irreversible-cipher %^%#TmMC*4OP^S"=p9>\L9{PBxC}NG=^X1nb+#Rk|!bYhalWNI5VLCgtuzRcnrm>%^%#
local-user admin privilege level 15
local-user admin service-type terminal http
local-user admin123 password irreversible-cipher %^%#0eY00+*.KA$[,/K31^7+`{3-"9kn7<)"gS&$@0\4u)Yi5<*YYBDDP+={.3e'%^%#
local-user admin123 privilege level 15
local-user admin123 service-type telnet http
#
firewall zone Local
priority 64
#
interface Dialer1
link-protocol ppp
ppp chap user 079106573281
ppp chap password cipher %@%@a[A*RL!A]*\n+NA|7{FB,.!{%@%@
ppp pap local-user 079106573281 password cipher %@%@E7WR;yZFZV'Hc'~;td}9,.!u%@%@
ppp ipcp dns admit-any
ppp ipcp dns request
tcp adjust-mss 1460
ip address ppp-negotiate
dialer user arweb
dialer bundle 1
dialer-group 1
nat outbound 2999
#
interface GigabitEthernet0/0/0
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet0/0/1
pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/0/2
ip address 192.168.1.254 255.255.255.0
dhcp select interface
dhcp server dns-list 202.101.224.69 202.101.224.68
#
interface GigabitEthernet0/0/3
description VirtualPort
#
interface Cellular0/0/0
#
interface Cellular0/0/1
#
interface NULL0
#
dialer-rule
dialer-rule 1 ip permit
#
http secure-server ssl-policy default_policy
http server enable
http secure-server enable
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
user-interface con 0
user-interface vty 0
authentication-mode aaa
user privilege level 15
user-interface vty 1 4
#
wlan ac
#
voice
#
diagnose
#
return
[Huawei]aaa
[Huawei-aaa]
[Huawei-aaa]
[Huawei-aaa]dis this
[V200R006C10SPC300]
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password irreversible-cipher %^%#TmMC*4OP^S"=p9>\L9{PBxC}NG=^X1nb+#Rk|!bYhalWNI5VLCgtuzRcnrm>%^%#
local-user admin privilege level 15
local-user admin service-type terminal http
local-user admin123 password irreversible-cipher %^%#0eY00+*.KA$[,/K31^7+`{3-"9kn7<)"gS&$@0\4u)Yi5<*YYBDDP+={.3e'%^%#
local-user admin123 privilege level 15
local-user admin123 service-type telnet http
#
return
[Huawei-aaa] local-user admin password irreversible-cipher ?
STRING<8-128>/<68> The UNENCRYPTED/ENCRYPTED password string
[Huawei-aaa]local-user admin password irreversible-cipher Aa123456..
Info: After you change the rights (including the password, access type, FTP directory, and level) of a local user, the rights of users already online do not change. The change takes effect to users who go online after the change.
[Huawei-aaa]
[Huawei-aaa]
[Huawei-aaa]
[Huawei-aaa]
[Huawei-aaa]lo
[Huawei-aaa]local-aaa-user
[Huawei-aaa]local-user admin se
[Huawei-aaa]local-user admin service-type t
[Huawei-aaa]local-user admin service-type telnet
[Huawei-aaa]local-user admin service-type terminal h
[Huawei-aaa]local-user admin service-type terminal http ?
8021x 802.1x user
bind Bind authentication user
ftp FTP user
ppp PPP user
ssh SSH user
sslvpn Sslvpn user
telnet Telnet user
web Web authentication user
x25-pad X25-pad user
<cr> Please press ENTER to execute command
[Huawei-aaa]local-user admin service-type terminal http ssh tel
[Huawei-aaa]local-user admin service-type terminal http ssh telnet
Warning: The user access modes include Telnet, FTP or HTTP, and so security risks exist.
Info: After you change the rights (including the password, access type, FTP directory, and level) of a local user, the rights of users already online do not change. The change takes effect to users who go online after the change.
[Huawei-aaa]
[Huawei-aaa]
[Huawei-aaa]qu
[Huawei]dis cu
[V200R006C10SPC300]
#
drop illegal-mac alarm
#
ipv6
#
dns resolve
dns proxy enable
#
dhcp enable
#
pki realm default
enrollment self-signed
#
ssl policy default_policy type server
pki-realm default
#
acl name GigabitEthernet0/0/1 2999
rule 5 permit
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password irreversible-cipher %^%#Z,{&,bI@N6RAS^KE2l/I>WYp9V'uhPT]qwE^DAr:<Y(O@]ft5Mi8gu$^5iC*%^%#
local-user admin privilege level 15
local-user admin service-type telnet terminal ssh http
local-user admin123 password irreversible-cipher %^%#0eY00+*.KA$[,/K31^7+`{3-"9kn7<)"gS&$@0\4u)Yi5<*YYBDDP+={.3e'%^%#
local-user admin123 privilege level 15
local-user admin123 service-type telnet http
#
firewall zone Local
priority 64
#
interface Dialer1
link-protocol ppp
ppp chap user 079106573281
ppp chap password cipher %@%@a[A*RL!A]*\n+NA|7{FB,.!{%@%@
ppp pap local-user 079106573281 password cipher %@%@E7WR;yZFZV'Hc'~;td}9,.!u%@%@
ppp ipcp dns admit-any
ppp ipcp dns request
tcp adjust-mss 1460
ip address ppp-negotiate
dialer user arweb
dialer bundle 1
dialer-group 1
nat outbound 2999
#
interface GigabitEthernet0/0/0
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet0/0/1
pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/0/2
ip address 192.168.1.254 255.255.255.0
dhcp select interface
dhcp server dns-list 202.101.224.69 202.101.224.68
#
interface GigabitEthernet0/0/3
description VirtualPort
#
interface Cellular0/0/0
#
interface Cellular0/0/1
#
interface NULL0
#
dialer-rule
dialer-rule 1 ip permit
#
http secure-server ssl-policy default_policy
http server enable
http secure-server enable
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
user-interface con 0
user-interface vty 0
authentication-mode aaa
user privilege level 15
user-interface vty 1 4
#
wlan ac
#
voice
#
diagnose
#
return
[Huawei] user-interface con 0
[Huawei-ui-console0]
[Huawei-ui-console0]au
[Huawei-ui-console0]authentication-mode ?
aaa AAA authentication, and this authentication mode is recommended
password Authentication through the password of a user terminal interface
[Huawei-ui-console0]authentication-mode aaa
[Huawei-ui-console0]qu
[Huawei]
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]dis cu
[V200R006C10SPC300]
#
drop illegal-mac alarm
#
ipv6
#
dns resolve
dns proxy enable
#
dhcp enable
#
pki realm default
enrollment self-signed
#
ssl policy default_policy type server
pki-realm default
#
acl name GigabitEthernet0/0/1 2999
rule 5 permit
#
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password irreversible-cipher %^%#Z,{&,bI@N6RAS^KE2l/I>WYp9V'uhPT]qwE^DAr:<Y(O@]ft5Mi8gu$^5iC*%^%#
local-user admin privilege level 15
local-user admin service-type telnet terminal ssh http
local-user admin123 password irreversible-cipher %^%#0eY00+*.KA$[,/K31^7+`{3-"9kn7<)"gS&$@0\4u)Yi5<*YYBDDP+={.3e'%^%#
local-user admin123 privilege level 15
local-user admin123 service-type telnet http
#
firewall zone Local
priority 64
#
interface Dialer1
link-protocol ppp
ppp chap user 079106573281
ppp chap password cipher %@%@a[A*RL!A]*\n+NA|7{FB,.!{%@%@
ppp pap local-user 079106573281 password cipher %@%@E7WR;yZFZV'Hc'~;td}9,.!u%@%@
ppp ipcp dns admit-any
ppp ipcp dns request
tcp adjust-mss 1460
ip address ppp-negotiate
dialer user arweb
dialer bundle 1
dialer-group 1
nat outbound 2999
#
interface GigabitEthernet0/0/0
ip address 192.168.0.1 255.255.255.0
#
interface GigabitEthernet0/0/1
pppoe-client dial-bundle-number 1
#
interface GigabitEthernet0/0/2
ip address 192.168.1.254 255.255.255.0
dhcp select interface
dhcp server dns-list 202.101.224.69 202.101.224.68
#
interface GigabitEthernet0/0/3
description VirtualPort
#
interface Cellular0/0/0
#
interface Cellular0/0/1
#
interface NULL0
#
dialer-rule
dialer-rule 1 ip permit
#
snmp-agent local-engineid 800007DB03745AAACE5944
#
http secure-server ssl-policy default_policy
http server enable
http secure-server enable
#
ip route-static 0.0.0.0 0.0.0.0 Dialer1
#
user-interface con 0
authentication-mode aaa
user-interface vty 0
authentication-mode aaa
user privilege level 15
user-interface vty 1 4
#
wlan ac
#
voice
#
diagnose
#
return
[Huawei]interface GigabitEthernet0/0/0
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]dis this
[V200R006C10SPC300]
#
interface GigabitEthernet0/0/0
ip address 192.168.0.1 255.255.255.0
#
return
[Huawei-GigabitEthernet0/0/0]ip ad
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.254 24
Error: The specified address conflicts with another address.
[Huawei-GigabitEthernet0/0/0]di sthios
^
Error: Wrong parameter found at '^' position.
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]qu
[Huawei]undo http secure-server ssl-policy
Warning: The HTTPS server is running with SSL. Continue deleting policy? [Y/N]:y
Info: Remove SSL policy successfully.
[Huawei]dis ht
[Huawei]dis http ser
[Huawei]dis http server
HTTP server status : Enabled (default: disable)
HTTP server port : 80 (default: 80)
HTTP timeout interval : 10 (default: 10 minutes)
Current online users : 0
Maximum users allowed : 5
HTTPS server status : Enabled (default: disable)
HTTPS server port : 443 (default: 443)
HTTPS SSL Policy :
[Huawei]
<Huawei>dir
Directory of flash:/
Idx Attr Size(Byte) Date Time(LMT) FileName
0 -rw- 114,552,448 Jan 19 2012 15:32:52 AR2220E-V200R006C10SPC300.cc
1 -rw- 106,054 Jan 30 2023 20:11:31 mon_file.txt
2 -rw- 304,700 Dec 26 2015 14:48:18 sacrule.dat
3 -rw- 783 Dec 26 2015 14:48:44 default_local.cer
4 -rw- 0 Nov 29 2015 18:37:08 brdxpon_snmp_cfg.efs
5 -rw- 1,084 Jan 30 2016 12:15:00 vrpcfg.zip
6 drw- - Nov 29 2015 18:37:40 update
7 drw- - Jan 30 2023 20:12:59 localuser
8 drw- - Nov 29 2015 18:37:58 dhcp
9 -rw- 312 Jan 30 2016 12:15:00 private-data.txt
10 -rw- 2,048 Jan 30 2023 20:09:20 Boot_LogFile
510,980 KB total (398,656 KB free)
<Huawei>
<Huawei>sa f
^
Error: Wrong parameter found at '^' position.
<Huawei>save
Warning: The current configuration will be written to the device.
Are you sure to continue?[Y/N]:y
It will take several minutes to save configuration file, please wait............
Configuration file had been saved successfully
Note: The configuration file will take effect after being activated
<Huawei>dis int br
<Huawei>dis int brief
PHY: Physical
*down: administratively down
(l): loopback
(s): spoofing
(b): BFD down
^down: standby
(e): ETHOAM down
InUti/OutUti: input utility/output utility
Interface PHY Protocol InUti OutUti inErrors outErrors
Cellular0/0/0 down down 0% 0% 0 0
Cellular0/0/1 down down 0% 0% 0 0
Dialer1 up up(s) 0% 0% 0 0
GigabitEthernet0/0/0 down down 0% 0% 0 0
GigabitEthernet0/0/1 down down 0% 0% 0 0
GigabitEthernet0/0/2 down down 0% 0% 0 0
GigabitEthernet0/0/3 down down 0% 0% 0 0
NULL0 up up(s) 0% 0% 0 0
© 版权声明
THE END
暂无评论内容