How to configure Cisco switch with port mirroring for 4 different VLAN's?

Hi guys

I need to set up port mirroring for around 4 of our VLAN's. At the moment we have VLAN1 (default), VLAN 2, VLAN3 and VLAN10.

I have a stacked Cisco 3750x switch. There are two of them. I want to do port mirroring for each of these VLAN's  on the second switch.

So when I run 'show ip int br' i can see that it displays the second switch with the interface name 'GigabitEthernet2'. I want ports 13-7 to have port mirroring for each of those VLAN's above.

What commands would you run to make that happen?

Thanks for helping
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

atlas_shudderedSr. Network EngineerCommented:
Yashy -

Not sure I really understand what you are trying to accomplish.  Are you trying to mirror the VLAN traffic for VLANs 1,2,3 and 10 to port 2/0/2 on your 3750 stack?  Or are you trying to mirror the traffic from those VLANs to ports 2/0/7-13 on the switch?
Just create 4 separate monitor sessions for one VLAN to one mirror port. I think this is what you are asking..

mon sess 1 source vlan 1
mon sess 1 destination interface G2/0/7

mon sess 2 source vlan 2
mon sess 2 destination interface G2/0/8

mon sess 3 source vlan 3
mon sess 3 destination interface G2/0/9

mon sess 4 source vlan 10
mon sess 4 destination interface G2/0/10

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
YashyAuthor Commented:
hi guys

Apologies, been sick as a dog. So basically we wanted to plug in a network monitoring device to sit on the network and listen to all of the VLAN's. A little bit like what wireshark would do. This device just listens to the network and the technician who installed it in the end said he said up VLAN mirroring for each VLAN in the end which is what Lrmoore mentioned.

However, I can't seem to be able to do a 'best solution' along with an 'assisted' solution anymore?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.