The Adtran community holiday season is starting next week! The holiday period will span from December 21, 2024 to January 6, 2025. During this time, responses to feedback form submissions may be delayed. If you are encountering product issues, you can reach out to Adtran support at any time.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Anonymous
Not applicable

How to configure port mirroring

Port mirroring is useful when troubleshooting an issue where packets entering or leaving an interface need to be captured because you can capture data about the packets being transferred.

For example, when troubleshooting a voice problem, a packet capture allows the engineer to see the actual messages being exchanged between client (phone) and server (softswitch).

To obtain this data, you must enable and configure port mirroring, capture the packets, and save the resulting file for analysis. One popular software application for performing packet captures is called Wireshark.

Note: Port mirroring does not interfere with normal protocol operation, and or has no additional layers of complexity or devices designed to sniff network traffic.

Watch the video on YouTube.

Purpose & Scope

The purpose of this tutorial is to instruct Support and Engineering personnel how to configure mirroring incoming or outgoing WAN network traffic to a specified LAN port and to capture data useful for troubleshooting purposes.

Preparation

The following are required:

  • Make sure the appropriate WAN service is built. This tutorial example uses atm0 as the WAN interface. Note: Port mirroring will work with any DSL interface but does not work with an Ethernet WAN interface.
  • Determine which LAN interface you wish to send the traffic to, and connect that port to a capture device such as a laptop with packet capture software application installed. This tutorial example uses LAN 4.
  • Download the Wireshark application for free, or make sure that a similar packet-capturing application is installed.

Step by Step

  1. Open a browser and go to: http://192.168.1.1/admin/engdebug.html.
    PortMirroringSetup.png
  2. Click Enable on the WAN interface that is to be mirrored, e.g., atm0.
  3. Select the destination LAN port where the mirrored traffic will be sent, e.g., LAN 4.
  4. Click Apply/Save to commit your changes. Next, you will capture the packets.
  5. Launch the packet capturing application.
  6. Start the capture. If you are using Wireshark, click Capture > Start. (You may need to select the proper interface on the capture device.)
  7. Recreate the behavior that you are troubleshooting.
  8. When you have finished the recreation, click Stop and save the capture for analysis. The example below illustrates the Wireshark application capturing network traffic and filtering results to show only ICMP traffic.
    Wireshark_results_analysis.png
0 Kudos