技术栈

技术栈

华为交换机常用命令

8年前 (2016-10-27) 热度:1935 ℃

1、华为HUAWEI交换机查看cpu:dis cpu-usage 

2、华为HUAWEI交换机查看ip地址冲突display arp ip-conflict track

3、华为HUAWEI交换机抓取设备故障信息dis diagnostic-information

4、 华为HUAWEI开启ip冲突检测arp ip-conflict-detect enable  

5、华为HUAWEI交换机查询IP冲突检测日志display arp ip-conflict track

6、华为HUAWEI交换机查看自身mac地址dis bridge mac-address

7、华为HUAWEI交换机查看序列号 display elabel 

8、华为HUAWEI交换机查看端口状态带宽、利用率dis interface Ethernet brief

9、华为HUAWEI交换机通过用户mac查看端口display mac-address 001b-78e8-0f82 

10、华为HUAWEI交换机清空配置<Quidway>reset saved-configuration(回车后提示是否删除,选Y)     <Quidway>reboot(回车后提示是否保存,选N;接着又提示是否要重启,选Y)    这样就可以把所有配置都删除了

11、华为HUAWEI交换机初始密码提醒功能,初始密码修改提醒功能处于使能状态

system-view

aaa

local-aaa-user password policy administrator

undo password alert original

12、华为HUAWEI交换机端口镜像,先配置观察端口:observe-port 1 interface GigabitEthernet0/0/26

配置需要镜像的端口

port-mirroring to observe-port 1 both

13、华为HUAWEI交换机

注意 :清除统计信息后,以前的统计信息将无法恢复,务必仔细确认。

1、执行reset counters interface [ interface-type [ interface-number ] ]命令,清除指定接口的统计信息。

2、执行reset counters if-mib interface [ interface-type [ interface-number ] ]命令,清除网管的接口流量统计信息。

3、执行reset statistics-peak interface [ interface-type [interface-number] ]命令,清除接口的速率峰值记录。

4、执行reset virtual-cable-test { interface-type interface-number | all }命令,清除接口的电缆检测结果。


static-bind ip-address 172.27.75.11 mac-address b009-da00-00fe  绑定mac

查看 mac地址漂移 display mac-address flapping record      display trapbuffer | include MAC move detected


display arp | include 172.16.24.132



 


tracert -a 10.253.10.170 10.253.10.219


ping -a 172.20.1.254 10.10.10.1



ping 10.10.10.1 source 172.20.1.254











no errdisable detect cause all?禁用思科全局防护http://blog.sina.com.cn/s/blog_7c80356b0102whle.html



diagnose 

display   ifnet index-map



释放DHCP地址池dhcp relay release client-ip-address mac-address [ server-ip-address | vpn-instance vpn-instance name ]

dhcp relay release 172.27.3.160 0022-4622-0d99


reset ip pool name vlan601 172.27.1.162  172.27.3.162  释放160到170段的地址


dis ip pool name vlan603 all

dis ip pool name vlan603 used 查看一下已经分配了的地址

display ip pool name vlan603 expired 查看一下地址池中过期的,处于空闲状态IP地址信息。


查看DHCP地址池中的租约超期信息

display dhcp server expired { ip ip-address | pool [ pool-name ] | interface [ interface-type interface-number ] | all }

打赏
TAGS: 交换机

相关文章

 iTop二次开发教程-集成 AD 域登录

iTop二次开发教程-集成 AD 域登录

1. 修改配置文件登录iTop,找到管理工具中的配置文件编辑器,在大约213行,找到authent-ldap并作相应修改,或者去修改config-itop.php文件也可以。'authent-...

常用命令-查找端口对应的进程

常用命令-查找端口对应的进程

常用命令-查找端口对应的进程    netstat -nao    tasklist | findstr "8081"   &nb...

全网最全的网络端口号,收藏好!

全网最全的网络端口号,收藏好!

如果你经常接触网络工程, 那么常用协议和端口号请记住了,在工作中和面试中作用比较大,建议收藏! 计算机之间依照互联网传输层TCP/IP协议的协议通信,不同的协议都对应不同的端口。并且,利用数...

Secure crt软件批量生成、添加会话session

Secure crt软件批量生成、添加会话session

了解Securecrt软件的人,都知道这个软件什么都好。唯一令人苦恼的是,当需要维护的设备达到一定数量时,如几十甚至上百台时,在Securecrt上手动添加session的工作就会变得很繁重且重复低下...

Linux下禁止ping最简单的方法

Linux下禁止ping最简单的方法

       ping是一个通信协议,是ip协议的一部分,tcp/ip 协议的一部分。利用它可以检查网络是否能够连通,用好它可以很好地帮助我们分析判定网络故障。...

mysql常用命令

mysql常用命令

查询带有某个值的记录:`SELECT * FROM functionalci WHERE name like "%(%";`删除表字段:`alter table `ceshi1`...