Huawei local port mirroring

One of the last steps in troubleshooting is recording and analyzing using an analyzer (e.g. Wireshark). This article describes the port mirroring feature which is called observing port by Huawei. This solution needs physiscal access to the switch to connect the analyzer.

For a quick analysis without physical access to the switch, the CLI packet capture feature can also be used. The following solution is very suitable for larger or long-term recordings. In this example, the analyzer is connected to port GigabitEthernet0/0/2 and all traffic (inbound/outbound) from port GigabitEthernet0/0/1 is mirrored to it.

Huawei Local Port Mirroring

1.

Configure an observing port where the packet analyzer is connected (e.g. Wireshark)

[HUAWEI] observe-port 1 interface GigabitEthernet 0/0/2

2.

Configure port to be mirrored (inbound and outbound)

[HUAWEI] interface GigabitEthernet 0/0/1

[HUAWEI-GigabitEthernet0/0/1] port-mirroring to observe-port 1 both

3.

Check the configuration of observe port

[HUAWEI] display observe-port
———————————————————————
Index : 1
Untag-packet : No
Interface : GigabitEthernet0/0/2

4.

Check the configuration of mirrored port

[HUAWEI] display port-mirroring
———————————————————————
Observe-port 1 : GigabitEthernet0/0/2
———————————————————————
Port-mirror:
———————————————————————
Mirror-port Direction Observe-port
———————————————————————
1 GigabitEthernet0/0/1 both Observe-port 1
———————————————————————

Loading comment... The comment will be refreshed after 00:00.
Write comments...
You are a guest ( Sign Up ? )
or post as a guest

Newsletter