HCNA
基本命令
常见错误信息提示表
文件操作
显示文件内容 more 拷贝文件 copy
移动文件 move 重命名文件 rename
删除文件 delete
彻底删除文件 reset recycle-bin 恢复删除文件 undelete
VicT
目录操作
屏幕上显示当前所处的目录pwd
改变当前目录cd
显示目录中的文件列表dir
创建目录mkdir
删除目录rmdir
返回根目录cd ..
读取文件more
VicT
存储设备操作
格式化存储设备format
修复文件系统异常的存储设备fixdisk
查看设备序列号
<YD-XYDxjl1c-HW-S2700-JR-01>dis elabel
[Board Properties]
BoardType=S2710-52P-SI-AC
BarCode=2102354128DMF7000158
Item=02354128
cipher命令Description=S2710-52P-SI-AC,S2710-52P-SI-AC,S2710-52P-SI-AC(48 Ethernet 10/100 ports,4 Gig SFP,AC 110/220V)
Manufactured=2015-07-20
VendorName=Huawei
IssueNumber=00
CLEICode=
<XYD-collect-5720>dis device manufacture-info
Slot Sub Serial-number Manu-date
- - - - - - - - - - - - - - - - - - - - - -
0 - 210235950310F80002252015-08-22
1 - 210235950410F80002282015-08-21
清除配置文件
reset saved-configuration
reboot
重启后生效
恢复出厂设置
重新启动交换机,在提示的时候按ctrl+b进入bootroom,选择delete file from flash,进去之后选择文件vrpcfg 并删除掉,就可恢复出厂配置。
解决过程:
VicT Press Ctrl-B to enter Boot Menu (4)
Password :
BOOT MENU
1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from Flash
5. Modify bootrom password
0. Reboot
Enter your choice(0-5): 4
No. File Name File Size(bytes)
===========================================================================
1 * S2000-VRP310-R0020P02.app 2826219
2 wnm2.2.2-0005.zip 447827
3 vrpcfg.zip
2846
Free Space : 101376 bytes VicT The current application file is S2000-VRP310-R0020P02.app
Please input the file number to delete: 3
Do you want to now? Yes or No(Y/N)y
.done!
BOOT MENU
1. Download application file to flash
2. Select application file to boot
3. Display all files in flash
4. Delete file from Flash
5. Modify bootrom password
6. Reboot
Enter your choice(0-5): 6
设置登陆密码
[R1]user-interface console 0
[R1-ui-console0]authentication-mode password
Please configure the login password (maximum length 16):huawei
[R1-ui-console0]display this
[V200R003C00]
#
user-interface con 0
authentication-mode password
set authentication password cipher %$%$8$U#~n_%j,Bcgk%h@KOR,5Q[l3*8EUKrBXwf3!Fp=
]tV5Q^,%$%$ VicT user-interface vty 0 4
authentication-mode password
user privilege level 3
set authentication password cipher %$%$8$U#~n_%j,Bcgk%h@KOR,5Q[*c=(V[YuY.mjC-1@M
O7'5Q^,%$%$
user-interface vty 16 20
#
return
<R1>quit
Configuration console exit, please press any key to log on
Login authentication
Password:
<R1>
设置console退出时间
[R1]user-interface con 0
[R1-ui-console0]id
[R1-ui-console0]idle-timeout 0 0 永不退出
[R1-ui-console0]idle-timeout 2 30 设置2分30秒后自动退出,默认10分钟
关闭终端显示
<Huawei>undo terminal monitor
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论