GigaCore Gen1: Mirroring a port for traffic capture

GigaCore Gen1: Mirroring a port for traffic capture

In order to analyse the traffic coming from and going to a specific device, you might have to mirror the port it is plugged into.

The below instructions explain how to configure port mirroring on a Generation 1 GigaCore.

To do so, connect to the switches CLI using Putty or any SSH client software.
Enter username and password ( default :  username=admin , no password )

then :
  1. # configure terminal
  2. (config)# monitor source interface GigabitEthernet 1/<source port number> both
  3. (config)# monitor destination interface GigabitEthernet 1/<destination port number>

Once you are done with monitoring, to deactivate the port mirroring :

  1. (config)# no monitor destination
  2. (config)# no monitor source interface GigabitEthernet 1/<source port number>
  3. (config)# exit

You can reboot the switch to discard the mirroring configuration as well.