Cisco Nexus Port Mirroring

How to monitor network traffic through Cisco Nexus switches

Configure Cisco Nexus Switch

  1. Open a session on the switch

  2. Enter configure mode.

    configure terminal

  3. Enter the configuration mode for the specified ethernet interface you want to mirror to.
    interface eth <port>

  4. Set the interface to monitor

    switchport monitor

  5. Exit back to configuration mode


  6. Configure the monitor

    monitor session <session number here>

  7. Configure the destination port

    destination interface ethernet <port>

  8. Configure the source port(s) or VLAN(s)

    source interface ethernet|vlan <port|vlan-id> both

  9. Exit back to configuration mode


Once you have verified that your configuration is correct, make sure to save it.