Complete one of these tasks to configure the ADTRAN Operating System (AOS) Switch for port mirroring, either through the switch CLI or the switch web UI.
Configuration Through the CLI
To configure the device through the CLI
- Open a monitor session.
-
Specify the port to be mirrored (the source port).
(config)#monitor session 1 source interface ethernet 0/<source_port>
-
Specify the port that is going to mirror the traffic (the destination port).
(config)#monitor session 1 destination interface ethernet 0/<destination_port>
Note: There can be only one monitor session. Therefore, the only available monitor session is "1."
-
Verify the configuration of the mirrored ports.
Switch#show monitor session all
Configuration Through the Web UI
To configure the device in the web UI
- Go to Utilities > Port Mirroring.
- Choose Destination Port and select the proper port from this menu.
- (Optional.) Select the No-Tag option so as not to tag virtual local area network (VLAN) traffic.
- Select the Source Port to mirror from the menu.
-
Click Add.
Note: If you want to add additional source ports to monitor, select another port from the Source Port menu and click Add.
-
In the command-line interface (CLI), you can verify the configuration of the mirrored ports.
Switch#show monitor session all
To learn more about configuring port mirroring on AOS switches, refer to the Configuring Port Mirroring on AOS document on the vendor website.