Prerequisite
l The source port and destination port for mirroring must be Ethernet ports.
l The destination port cannot be an aggregated port.
l The destination port can be a METH port.
l The devices must be connected according to Figure 8-6.
Procedure
Step 1 Verify that the current Ethernet ports can be used for port mirroring.
1. Run the display board 0/0 command to verify that the source port and destination port are
Ethernet ports.
If the source port and destination port are not Ethernet ports, it cannot be used for port
mirroring.
2. Run the display link-aggregation all command to verify that the destination port is not an
aggregated port.
l If the destination port is an aggregated port, determine whether to cancel port
aggregation based on site requirements.
– If port aggregation can be canceled, run the undo link-aggregation command to
cancel port aggregation. After packet capture operation is complete, run the link-
aggregation command to restore port aggregation.
NOTE
Port aggregation implements port protection and load sharing among the ports in an aggregation
group. After port aggregation is canceled, load sharing cannot be implemented. As a result, packets
may be lost when the traffic is heavy. Therefore, exercise caution when canceling port aggregation.
– Port mirroring cannot be performed if port aggregation is configured.
Step 2 In ETH mode, run the mirror port command to configure port mirroring.
Step 3 Run the display mirror command to verify that port mirroring is configured successfully.
Step 4 Start the packet capture tool to capture packets until the required packets are captured.
Step 5 Run the undo mirror port command to disable the port mirroring.
Step 6 Run the display mirror command to verify that port mirroring is disabled successfully.
----End
Result
After the packets are captured, you can analyze the packets.
SmartAX MA5612 Multi-service Access Module
Maintenance Guide 8 Common Operation
Issue 01 (2012-07-25) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
263