Mirroring
Remote mirroring is used to obtain packet headers. The device copies packet headers from the mirrored port to an observing port.
The device cannot analyze packet headers except that a computer with the packet analysis software installed or a tester is connected to the observing port. The commonly used packet analysis software is WireShark, and most testers have the packet analysis function.
The packets captured for troubleshooting may contain secure communication information. Therefore, Huawei does not capture packets for you. You must capture packets legally and with permission. Ensure that your customers' privacy is protected when collecting communication information.
Mirroring Packet Headers to an Observing Port (AC)
Packet headers are copied from the mirrored port to an observing port. As shown in Figure 20-4, the incoming packets on GE0/0/1 are captured to GE0/0/2, and the observing device directly connected to GE0/0/2 analyzes the packet headers.
The procedure is as follows:
- Set GE0/0/2 on the AC as an observing port.
<AC> system-view [AC] observe-port interface gigabitethernet 0/0/2
- Set GE0/0/1 on the AC as a mirrored port and set the mirroring direction to inbound.
[AC] interface gigabitethernet 0/0/1 [AC-GigabitEthernet0/0/1] mirror to observe-port inbound [AC-GigabitEthernet0/0/1] quit [AC] quit
Mirroring Packet Headers to an Observing Port (Fat AP V200R003&V200R005)
Packet headers are copied from the mirrored port to an observing port. As shown in Figure 20-5, the incoming packets on BSS1 are captured to GE0/0/0, and the observing device directly connected to GE0/0/0 analyzes the packet headers.
The procedure is as follows:
- Set GE0/0/0 on the AP as an observing port.
<Huawei> system-view [Huawei] sysname AP [AP] observe-port interface gigabitethernet 0/0/0
- Set BSS1 on the AP as a mirrored port and set the mirroring direction to inbound.
[AP] interface wlan-bss 1 [AP-Wlan-Bss1] mirror to observe-port inbound [AP-Wlan-Bss1] quit [AP] quit
Mirroring Packet Headers to an Observing Port (Fat AP V200R006 and Later Versions)
Packet headers are copied from the VAP air port to an observing port. As shown in Figure 20-6, the incoming packets on VAP air port are captured to GE0/0/0, and the observing device directly connected to GE0/0/0 analyzes the packet headers.
The procedure is as follows:
- Set GE0/0/0 on the AP as an observing port.
<Huawei> system-view [Huawei] sysname AP [AP] observe-port interface gigabitethernet 0/0/0
- Configure the VAP-based mirroring function on the AP and set the mirroring direction to inbound.
[AP] mirror vap to observe-port inbound radio-id 0 ssid office01 [AP] quit