H3C 基本操作命令

Display ipinterface brief——查看设备所有接口的相关信息(包括IP、物理层、链路层协议状态等)

Display version——————查看设备IOS版本信息,设备启动时间、接口卡信息

 

dir———————————查看H3C设备硬盘空间大小,及存储的数据信息。

 

display current-configuration——查看当前配置信息(即时信息),设备断电或重启后丢失

display Saved-configration————查配置看start-config配置文件,该配置永久保存,断电重启后加载该项

 

用户模式下是无法对设备进行配置添加及修改。如果需要对配置进行修改,需要进入到系统模式。

 

用户模式切换到系统试图

System-view

系统模式下能够执行用户模式的所有查看命令

Debug调试命令只能在用户模式使用,dir查看硬盘flash信息只能在用户模式下

Debug:协议工作的详细过程信息。

 

[sw1]display ip interface brief————观察设备接口状态、接口IP、接口描述等信息

*down:administratively down

...........

.........

......

...........


进入系统模式

进入某个接口,给该接口配置IP地址

interface eth0/1/0

ip address 192.168.1.100 24或者192.168.1.100 255.255.255.0

undo shut-------------------------配置IP后将端口激活


quit 退一步系统模式,quit退一步用户模式

ctrl+Z



[SW1]display ip routing-table----------------------查看路由表信息



命令级别

    ·访问级(0级)

        ——网络诊断工具命令、从本设备出发访问外部设备命令

    ·监控级(1级)

        ——用于系统维护、业务故障诊断的命令

    ·系统级(2级)

        ——业务配置命令

    ·管理级(3级)

        ——关系到系统基本运行,系统支撑模块的命令


H3C 基本操作命令_第1张图片


常用设备管理命令

    ·配置设备名称

    [H3C]sysname ?

         TEXT Host name(1 to 30 characters)

    ·配置系统时间

    [H3C]clock datetime ?

        TIME Specify the time(HH:MM:SS)

    ·显示系统时间

    [H3C]display clock

    ·配置欢迎/提示信息

    [H3C]header ?

    incoming Specift the banner of the terminal user-interface

    legal Specify the legal banner

    login Specify the login authentication banner

    motd specify the banner of today

    shell    Specify the session banner

    ·查看版本信息

    display version

    ·查看当前配置

    display current-configuration

    ·显示接口信息

    display interface

    ·显示器接口IP状态与配置信息

    display ip interface brief

    ·显示系统运行统计信息

    display diagnostic-information