一、华为交换机设置console口密码:
<Amet-NJ-SW-01>system-view//进系统视图
[Amet-NJ-SW-01]user-interface console 0//进入console 0口(就一个console口,默认为0口)
[Amet-NJ-SW-01-ui-console0]authentication-mode password//启用密码认证
[Amet-NJ-SW-01-ui-console0]set authentication password cipher Aa123456//设置终端登录密码
[Amet-NJ-SW-01-ui-console0]quit
Dec 24 2021 15:20:17 Amet-NJ-SW-01 DS/4/DATASYNC_CFGCHANGE:OID 1.3.6.1.4.1.2011.5.25.191.3.1 configurations have been changed.The current change number is 2,the change loop count is 0,and the maximum number of records is 4095.
[Amet-NJ-SW-01-ui-console0]quit
[Amet-NJ-SW-01]quit
<Amet-NJ-SW-01>
二、华为交换机恢复出厂配置
<Amet-NJ-SW-01>reset factory-configuration
Warning:The command will delete all the configurations and files
except the startup,patch,module,and license files
from the device.Continue?[Y/N]:y
Warning:The system will reboot after configurations and files are deleted.Continue?[Y/N]:y
Info:Start restoring factory configurations.Please wait....
Info:This operation will take several seconds.Please wait.....
三、华为交换机默认登录用户名和密码
Username:admin
Password:admin huawei.com
或者是Admin huawei.com
四、华为路由器破解密码
Enter auto startup
try to start bootloader menu:start_kernel_from_flash
startup from master kernel
Allocating memory for ELF segment:addr:0xffffffff80800000
adjusted to:0x800000
,size 0xcbb4f0
##Loading big-endian Linux kernel with entry point:0xffffffff80fd06f0...
Bootloader:Done loading app on coremask:
0x3f
Starting cores:
0x3f
INIT:version 2.88 booting
Starting udev
-n Starting Bootlog daemon:
bootlogd.
sh:201711260815:out of range
Enter bootloader v7.1
CPLD userspace init ok
Initializing i2c bus
Initializing clock success 0
Setting console
Press Ctrl+B to break auto startup...2
config IP address:ifconfig eth2 192.168.1.8
Enter Password:******
Enter Password:************
Default Password,Please Set New Password.
BootLoader Menu
1.Default Startup
2.Serial Menu
3.Network Menu
4.Startup Select
5.File Manager
6.Reboot
7.Password Manager
Enter your choice
1-7
:7
PassWord Menu
1.Modify the menu password
2.Clear the console login password
0.Return
Enter your choice
0-2
:2
Clear the console login password Succeed!
PassWord Menu
1.Modify the menu password
2.Clear the console login password
0.Return
Enter your choice
0-2
:1
Modify password.the password length must>=6.Press Ctrl+c to break.
Enter Old Password:************
Input new password:********
Input new password again:********
Are you sure to change password?[y/n]:y也可以修改破解密码的默认密码。这里也可以不更改。
Save new password Success.
PassWord Menu
1.Modify the menu password
2.Clear the console login password
0.Return
Enter your choice
0-2
:0
BootLoader Menu
1.Default Startup
2.Serial Menu
3.Network Menu
4.Startup Select
5.File Manager
6.Reboot
7.Password Manager
-n Stopping syslogd/klogd::6
no syslogd found;none killed
Unmounting remote filesystems...
Unmounting local filesystems...
-n Rebooting...
Restarting system.
Warning:chips select 0 property cavium,t-wait,clocks 301,clock time 300,period 1000,mult:1 exceeds maximum value 63,truncating.
五、华为Poe交换机关闭POE功能,进入接口,关闭接口POE功能
[poe-swtich]interface range GigabitEthernet 0/0/9 to GigabitEthernet 0/0/49
[poe-swtich-port-group]und
[poe-swtich-port-group]undo poe en
[poe-swtich-port-group]undo poe enable
[poe-swtich-GigabitEthernet0/0/9]undo poe enable
[poe-swtich-GigabitEthernet0/0/10]undo poe enable
[poe-swtich-GigabitEthernet0/0/11]undo poe enable
[poe-swtich-GigabitEthernet0/0/12]undo poe enable
[poe-swtich-GigabitEthernet0/0/13]undo poe enable
[poe-swtich-GigabitEthernet0/0/14]undo poe enable
[poe-swtich-GigabitEthernet0/0/15]undo poe enable
[poe-swtich-GigabitEthernet0/0/16]undo poe enable
[poe-swtich-GigabitEthernet0/0/17]undo poe enable
……