H3C基本命令

 

 

目录在最后面

进入各个视图的命令

 

 

1.设置时间--用户视图下

<H3C>clock datetime ?

  TIME  Specify the time (HH:MM:SS)

<H3C>clock datetime 19:29:00 ?

  DATE  Specify the date from 2000 to 2035 (MM/DD/YYYY or YYYY/MM/DD)

<H3C>clock datetime 19:29:00 2010/11/11

<H3C>display clock

19:29:08 UTC Thu 11/11/2010

<H3C>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.配置主机名--系统视图

[H3C]sysname H3Cwang

 

 

 

3.查看历史命令--用户以上

[H3Cwang]display history-command

  sys

  sysname H3C

  sysname H3Cwang

  display history-command

  quit

  display history-command

  Sys

4.配置历史命令缓冲大小--接口视图(console为准)

[wang]user-interface console 0

[wang-ui-console0]history-command max-size 30    //配置缓冲区大小

[wang-ui-console0]undo history-command max-size  //还原默认值

 

 

      
   
 
  
 
  

7.保存当前配置--用户图示(console)以上

 

<H3C>save         //此种保存只默认保存为Startup.cfg ,系统默认是加载此文件

The current configuration will be written to the device. Are you sure? [Y/N]:y

Please input the file name(*.cfg)[cf:/startup.cfg]      //默认保存为cf:/startup.cfg

(To leave the existing filename unchanged, press the enter key):    //回车即可

 

Validating file. Please wait...

Now saving current configuration to the device.

Saving configuration cf:/startup.cfg. Please wait...

.

Configuration is saved to cf successfully.........

<H3C>

<H3C>save 123.cfg                   //保存为123.cfg,系统启动不会加载此文件

The current configuration will be saved to cf:/123.cfg. Continue? [Y/N]:y

Now saving current configuration to the device.

Saving configuration cf:/123.cfg. Please wait...

.

Configuration is saved to cf successfully.

<H3C>save saved-configuration      //保存当前的设置

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8.查看、删除已经保存配置文件--用户图示(console)以上

    
 

<H3C>display saved-configuration    //显示已经保存的内容

<H3C>reset saved-configuration      //删除已经保存的内容1

<H3C>delete startup.cfg             //删除已经保存的内容2

Delete cf:/startup.cfg?[Y/N]:y

 

%Delete file cf:/startup.cfg...Done.

 

删除文件---------delete

删除目录---------rmdir

 
 
  

9.配置console口密码

方法一:

[H3C]user-interface console 0

[H3C-ui-console0]authentication-mode password

[H3C-ui-console0]set authentication password simple 123456

方法二:

[H3C]user-interface console 0

[H3C-ui-console0]authentication-mode scheme

[H3C]local-user wnt 

[H3C-luser-wnt]password cipher 123

[H3C-luser-wnt]service-type ?

  dvpn        DVPN service type

  ftp         FTP service type

  lan-access  LAN-ACCESS service type

  pad         X25-pad service type

  ppp         Specify user type to ppp

  ssh         Secure Shell service type

  telnet      TELNET service type

  terminal    TERMINAL service type

[H3C-luser-wnt]service-type terminal

[H3C-luser-wnt]level 1

[H3C]super password level 3 cipher 321

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10.破解console口密码

破解路由器console密码

 

 

 

破解交换机console密码

 

 

 

 

 

 

 

11.指定下次启动的配置文件---用户视图

<H3C>startup saved-configuration wang.cfg

 

 

12.查看启动配置文件---用户视图

<H3C>display startup

 

 

 

13.指定下次启动加载的应用程序文件

<H3C>boot-loader file wang.bin

 

14.显示下次启动加载的应用程序文件

<H3C>display boot-loader

 

 

 

 

15.命令调试debugging--用户视图

<H3C>terminal debugging     //使用debugging必须使用的命令--打开调试信                                                  息的屏幕输出开关

<H3C>display debugging      // 查看哪些调试信息开关是开着的

IP packet debugging is on

<H3C>terminal monitor      //开启控制台对系统信息的监视功能,默认已开启

 

 

16.使用ping命令--用户视图

完整的ping命令,用于下面参考

<H3C>ping 1.1.1.1

  PING 1.1.1.1: 56  data bytes, press CTRL_C to break

    Reply from 1.1.1.1: bytes=56 Sequence=1 ttl=255 time=10 ms

    Reply from 1.1.1.1: bytes=56 Sequence=2 ttl=255 time=16 ms

    Reply from 1.1.1.1: bytes=56 Sequence=3 ttl=255 time=20 ms

    Reply from 1.1.1.1: bytes=56 Sequence=4 ttl=255 time=15 ms

    Reply from 1.1.1.1: bytes=56 Sequence=5 ttl=255 time=1 ms

 

  --- 1.1.1.1 ping statistics ---

    5 packet(s) transmitted

    5 packet(s) received

    0.00% packet loss

round-trip min/avg/max = 1/12/20 ms

 

<H3C>ping ?

      -a      指定源地址    例:<H3C>ping -a 2.2.2.2 1.1.1.1

                                         源地址目的地址

      -c      指定发送报文的次数  例:<H3C>ping -c 2 1.1.1.1  //ping两次

      -h      指定报文的TTL值,1~255,默认为255

      -m     指定发送报文的时间间隔,1~65535,默认200毫秒                         

      -r   记录路由,默认是不记录路由的

      -s      指定所发送报文的长度,默认为56字节,20~8100

      -t     指定超时时间,默认200毫秒,1~65535

 

 

 

 

 

 

 

17.使用tracert命令--用户视图

<H3C>tracert ?                                                                  

  -a       指明源地址

  -f 指定一个初始TTL值,默认为1

  -m      指定一个最大TTL值,默认为30

  -p       指明目的设备的UDP端口号,默认为33434

  -q       指明发送探测报文的个数,默认为3                            

  -w      指定等等探测报文的超时时间,默认为5000毫秒

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

目录

 

1.设置时间--用户视图下

 

2.配置主机名--系统视图

 

3.查看历史命令--用户以上

 

4.配置历史命令缓冲大小--接口视图(console为准)

 

5.配置Header进入用户视图的提示信息--系统视图

 

6.配置热键--hotkey---系统视图

 

7.保存当前配置--用户图示(console)以上

 

8.查看、删除已经保存配置文件--用户图示(console)以上

 

9.配置console口密码

 

10.破解console口密码

 

11.指定下次启动的配置文件---用户视图

 

12.查看启动配置文件---用户视图

 

13.指定下次启动加载的应用程序文件---用户视图

 

14.显示下次启动加载的应用程序文件---用户视图

 

15.命令调试debugging--用户视图

 

16.使用ping命令--用户视图

 

17.使用tracert命令--用户视图

 

 

 

 

 

网络监测工具命令

1.Debugging

2.Display debugging

3.Display diagnostic-information

display diagnostic-information 命令用来显示系统当前各模块的运行信息。

在系统出现故障时,为了便于问题定位,需要收集很多的信息,但相应的display

命令很多,很难一次把信息收集全,这时,可以使用display diagnostic-information

命令,进行系统当前各个模块的运行信息收集。

 

 

转载于:https://www.cnblogs.com/niezhongle/p/11213233.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值