华为设备基本操作命令 联系客服

发布时间 : 星期一 文章华为设备基本操作命令更新完毕开始阅读3f1c282104a1b0717ed5ddd5

华为设备基本操作命令

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内文件

TEL: 010-59610060 1

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

TEL: 010-59610060 2

查看已保存配置 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)

TEL: 010-59610060 3

[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 查看系统启动配置参数

TEL: 010-59610060 4