H3C常用命令详解

news/2024/7/7 15:25:28

                           H3C常用命令详解

                                            作者:尹正杰

版权声明:原创作品,谢绝转载!否则将追究法律责任。

 

1.关闭后台日志输出

<yinzhengjie>sys

[yinzhengjie]undo info-center enable 

2.查看设备IOS版本信息,设备启动时间,接口卡信息

<yinzhengjie>display version 

3.查看全局配置信息

<yinzhengjie>display current-configuration  #当前配合信息(即时信息),当设备断电或重启后丢失

<yinzhengjie>display saved-configuration    #查看配置看start-config配置文件,该配置永久保存,断电重启后加载该文件,注意,华为设备会默认保存到vrpcfg.zip这个文件中。

4.查看设备所有接口的相关信息(包括IP,物理层,链路层协议状态等)

[yinzhengjie]display ip interface brief 

<yinzhengjie>display interface Ethernet 0/0/0   #查看单个接口信息

5.查看H3C设备硬盘空间大小,及存储数据信息

<yinzhengjie>dir

6.给一个接口配置IP地址

<yinzhengjie>system-view 
Enter system view, return user view with Ctrl+Z.
[yinzhengjie]interface Eth0/0/0
[yinzhengjie-Ethernet0/0/0]ip address 172.30.100.1 24    #这个也可以这样配置:[yinzhengjie-Ethernet0/0/0]ip address 172.30.100.1  255.255.255.0
[yinzhengjie-Ethernet0/0/0]undo shutdown 
Info: Interface Ethernet0/0/0 is not shutdown.
[yinzhengjie-Ethernet0/0/0]

 

7.查看路由表信息

<yinzhengjie>display ip routing-table

8.查看历史命令记录

<yinzhengjie>display history-command 

9.用户模式下配置系统时间 

<yinzhengjie>clock datetime 0:26:30 2017-4-10
<yinzhengjie>display clock 
2017-04-10 00:26:42-08:00
Monday
Time Zone(China-Standard-Time) : UTC-08:00
<yinzhengjie>

10.命令行编辑功能

11.显示系统运行统计信息

<yinzhengjie>display diagnostic-information

12.查看IP路由表摘要信息

[yinzhengjie]display ip routing-table

 1 [yinzhengjie]display ip routing-table 
 2 Route Flags: R - relay, D - download to fib
 3 ------------------------------------------------------------------------------
 4 Routing Tables: Public
 5          Destinations : 2        Routes : 2        
 6 
 7 Destination/Mask(目的地址)    Proto(路由协议)   Pre(优先级)  Cost(代价值)      Flags     NextHop (下一跳地址)        Interface
 8 
 9       127.0.0.0/8                Direct(直连)          0            0                   D       127.0.0.1                       InLoopBack0
10       127.0.0.1/32            Direct                  0               0                   D       127.0.0.1                       InLoopBack0
11 
12 [yinzhengjie]
13 
14 关于协议扩充:
15     1>.Direct(直连)
16     2>.Static(静态路由)
17     3>.Rip(动态路由)
18     4>.O_ASE(OSPF)
display ip routing-table 输出详解

13.查看符合指定目的地址的路由信息

[yinzhengjie]display ip routing-table  127.0.0.1 

14.查看路由表的统计信息

[yinzhengjie]display ip routing-table statistics 

15.查看OSPF配置信息

<yinzhengjie>display ospf brief 

16.查看OSPF允许了哪些接口

<yinzhengjie>display ospf interface 

17.

 

18.

19.

20.

21.

 

转载于:https://www.cnblogs.com/yinzhengjie/p/6512633.html


http://www.niftyadmin.cn/n/3781834.html

相关文章

Centos7中mysql安装

一、安装YUM Repo 1、由于CentOS 的yum源中没有mysql&#xff0c;需要到mysql的官网下载yum repo配置文件。 下载命令&#xff1a; wget https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm 2、然后进行repo的安装&#xff1a; rpm -ivh mysql57-communi…

收集的网站

响应式设计&#xff1a; http://wf.uisdc.com/cn/ UI相关: http://www.uisdc.com/  优设 http://www.xueui.cn/ http://www.xueui.cn/design-theory/learn-ui-1.html  感觉UI也很有意思&#xff0c;慢慢学习 http://www.sketchcn.com/ http://www.cutterman.cn/zh   一款…

输入页 离开页面前弹出框

离开页面确认主要是利用了onbeforeunload事件&#xff0c;存 在着兼容问题 当该事件声明为 &#xff1a; Java代码 <body onbeforeunload "return pageBeforeunload(event);" > <script type "text/javascript" > function pageBeforeunl…

SpringBoot拦截器注入配置文件的配置参数为null的解决方案

在注册拦截器&#xff0c;即继承WebMvcConfigurerAdapter的类中&#xff0c;普通拦截器的注册方法为&#xff1a; Overridepublic void addInterceptors(InterceptorRegistry registry) {registry.addInterceptor(new LogInterceptor()).addPathPatterns("/**");supe…

csdn积分获取攻略

下载积分攻略&#xff1a;1. 个人设置里进行手机绑定CSDN账户 奖励50分 &#xff08;右上角设置-账户安全-手机绑定&#xff09;2. 完成任务送若干分积分 http://task.csdn.net/3. 上传有效资源获取积分&#xff08;上传非法&#xff0c;广告资源用户&#xff0c;将被扣除…

[ERROR] Slave I/O: error connecting to master

刚配置的MySQL主从&#xff0c;在从机上看到 点击(此处)折叠或打开 mysql> SHOW slave STATUS \\G *************************** 1. row *************************** Slave_IO_State: Connecting to master Master_Host: 172.17.210.199 Master_User: my Master_Port: 3306…

MybatisPlus 多表关联查询带分页

demo&#xff1a;https://download.csdn.net/download/caidingnu/12064636 1、目录结构 2、Controller package com.example.mybatisplustest.controller;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.metada…

keystone nova v2 python

keystone nova v2 python posted on 2017-03-08 14:30 秦瑞It行程实录 阅读(...) 评论(...) 编辑 收藏 转载于:https://www.cnblogs.com/ruiy/p/6519329.html