port mirroring on cisco 2970

Discussion in 'Cisco' started by ants, Oct 24, 2005.

  1. ants

    ants Guest


    Anyone knows the command to mirror a port on a cisco 2970 gig switch?
    ios ver Version 12.1(14r)EA1a.
    thanks in adv.
    ants, Oct 24, 2005
    1. Advertisements

  2. ants

    Shine, Gary Guest


    interface FastEthernet0/2
    description Monitoring Port - All traffic will hit this port from
    port monitor FastEthernet0/3
    port monitor FastEthernet0/4
    port monitor FastEthernet0/5
    port monitor FastEthernet0/13
    port monitor FastEthernet0/14
    port monitor FastEthernet0/15

    Shine, Gary, Oct 24, 2005
    1. Advertisements

  3. ants

    ants Guest

    Thanks for the reply.
    unfortunately the port mirror does not apply to these switches.

    found the following command.. haven't put it in yet - will do tonight.

    Switch(config)# monitor session 1 source interface gigethernet0/1
    Switch(config)# monitor session 1 destination interface gigethernet0/10
    encapsulation dot1q

    hope this will work..
    ants, Oct 24, 2005

  4. Only in older hardware. Something like a 2924xl, but not much newer.
    Doug McIntyre, Oct 25, 2005
  5. Taken from document:

    This example shows how to set up a SPAN session, session 1, for
    monitoring source port traffic to a destination port. First, any
    existing SPAN configuration for session 1 is cleared, and then
    bidirectional traffic is mirrored from source port 1 to destination
    port 10.
    Switch(config)# no monitor session 1
    Switch(config)# monitor session 1 source interface fastethernet0/1
    Switch(config)# monitor session 1 destination interface
    fastethernet0/10 encapsulation dot1q
    Switch(config)# end
    Jon L. Miller, Nov 5, 2005
  6. ants


    Dec 23, 2012
    Likes Received:
    There is good document on this and which clearly explain how to do. search for "How to do capture on Cisco".

    Plz note - once u start monitoring, port will go into monitoring mode and you wont be able to access laptop where u are capturing.
    mprasad079, Dec 23, 2012
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.