华为设备基本操作命令

华为设备基本操作命令

system-view 进入系统视图模式[Huawei]sysname r1 配置设备名为r1

[r1]display version 查看系统版本信息

[r1]display cpu-usage 查看设备CPU使用信息[r1]display memory-usage 查看设备内存使用信息[r1]display fan 查看风扇信息

[r1]display temperature all 查看设备温度[r1]display power 查看电源信息

[r1]display health 查看设备健康情况

[r1]display elabel 查看设备模块信息

[r1]display ip interface brief

查看IP接口信息[r1]display interface brief 查看接口信息

dir flash: 查看FLASH内文件delete flash:/文件名删除FLASH内文件

undelete vrpcfg.zip

恢复之前删除掉的文件delete /unreserved vrpcfg.zip

彻底删除文件(不能恢复) [r1]quit 返回上一级模式

[r1]return 快速返回到<>模式

[r1]display this 查看当前模式下的配置

[r1]interface g0/0/0 进入接口

[r1-GigabitEthernet0/0/0]ip add 1.1.1.1 24

接口配置IP地址

[r1-GigabitEthernet0/0/0]undo shut 激活接口Undo +命令删除该命令

save 保存配置

[r1]display current-configuration

查看当前运行的配置[r1]display saved-configuration

查看已保存配置

reset saved-configuration 清空已保存配置[Huawei]user-interface console 0

[Huawei-ui-console0]idle-timeout 0(分钟) 0(秒)

配置console口永远不超时

配置TELNET(远程登录该设备)

[r1]user-interface vty 0 4 进入VTY接口

[r1-ui-vty0-4]authentication-mode pass

开启认证

Please configure the login password (maximum length 16):123 配置远程登录密码为123 [r1-ui-vty0-4]user privilege level 0-15

远程登录用户权限为最低0级(默认为0)

[r1]super password lev 3 cipher 234567

用户权限提升为3级授权密码为234567 实验效果:在与R1相连的R2路由器上输入

telnet 1.1.1.1 r2远程登录r1设备

Password:123 VTY密码

super 提升访问设备权限

Password:234567 super密码

system-view

[r1] 成功远程进入r1设备的系统视图模式

clock datetime 11:11:11 2000-01-01

clock timezone bj add 8:00:00

dis clock

[Huawei]dis default-parameter X 查看默认参数

[Huawei]dis history-command

[Huawei]user-interface console 0

[Huawei-ui-console0]history-command max-size ?

INTEGER<0-256> The size of a history buffer, the default value is 10

dis startup 查看系统启动配置参数

[Huawei]undo info-center enable 关闭告警信息

pwd 显示当前所处的目录

format flash: 格式化存储设备

fixdisk flash: 修复文件系统异常的存储设备compare configuration 比较配置文件[Huawei]command-privilege level 3 view user save

设置save命令的级别为3

关于FTP内容,请大家参看入门实验指导书上FTP的实验

没有查找到命令

输入命令不明确

输入命令不完整

输入参数太多

相关文档
最新文档