查看端口状态
<SW1>display interface brief | include up ------------------------------------- # 查看接口是否出于 Up 状态;
Interface PHY Protocol InUti OutUti inErrors outErrors
GigabitEthernet0/0/3 up up 0% 0% 0 0
GigabitEthernet0/0/4 up up 0% 0% 0 0
GigabitEthernet0/0/10 up up 0% 0% 0 0
GigabitEthernet0/0/11 up up 0% 0% 0 0
<SW1>display interface GigabitEthernet 0/0/10
Description:
Switch Port, PVID : 12, TPID : 8100(Hex), The Maximum Frame Length is 9216
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 4c1f-cc69-6d7b
Hardware address is 4c1f-cc69-6d7b
Last 300 seconds input rate 0 bytes/sec, 0 packets/sec
Last 300 seconds output rate 0 bytes/sec, 0 packets/sec
Input: 430 bytes, 6 packets ----------------------------------------------- # 查看接口是否能够收到报文;
Output: 197137 bytes, 1659 packets
物理地址漂移
[SW3]display mac-address flapping
Mac-address Flapping Configurations :
-------------------------------------------------
Flapping detection : Enable
Aging time(sec) : 300
Quit-vlan Recover time(min) : 10
Exclude vlan-list : -
-------------------------------------------------
<SW3>display mac-address flapping record
Info: The mac-address flapping record does not exist.
交换机抓包
通过镜像端口(抓取报文)
博客园/华为交换机抓包
# 定义观察端口
[Huawei] mirror to observe-port inbound
# 将端口镜像到观察端口
[Interface] mirror to observe-port inbound
通过 ACL 匹配(简单观察)
[Huawei] acl 2000
[ACL] rule permit source x.x.x.x
[Interface] traffic-filter inbound acl 2000
# 观察 ACL 匹配
[Huawei] display acl 2003
...
链路追踪
traceroute to 192.168.56.6, 8
1 192.168.12.3 63 ms 46 ms 47 ms
2 10.0.13.1 78 ms 63 ms 62 ms
3 10.0.12.2 94 ms 63 ms 78 ms
4 10.0.23.3 94 ms 62 ms 63 ms
5 * * *