cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1134
Views
0
Helpful
3
Replies

how to add Vlan ACL in port mirror

Noovi
Level 1
Level 1

Hi,

 

As i know we can do port mirroring in Cisco switches by following

monitor session 1 destination int g1/0/1

monitor session 1 source port g1/0/2 or source vlan 350

Can anyone tell me how i can use Vlan ACL in this scenario??

 

 

3 Replies 3

balaji.bandi
Hall of Fame
Hall of Fame

From my lab noted and tested one as below - change accordingly your stup.

 

 

When the source and destination are on the same switch that is refered as Local SPAN. 

 

SPAN With VACL filter. Below is configuration example:

 

you can use standard and extended ACLs.

 

vlan 9

SPAN-VLAN

 

monitor session 1 source vlan 9

monitor session 1 destination interface g0/2

 

ip access-list extended NotIntestingTraffic

  permit ip 192.168.0.0 0.0.255.255 192.168.0.0 0.0.255.255

  permit ip 192.169.0.0 0.0.255.255 192.168.0.0 0.0.255.255

 

ip access-list InterestingTraffic

  permit ip 192.190.0.0 0.0.255.255 192.190.0.0 0.0.255.255

  permit ip 192.191.0.0 0.0.255.255 192.191.0.0 0.0.255.255

 

vlan access-map VACLSPAN 10

  match ip address NotIntestingTraffic

  action drop

 

vlan access-map VACLSPAN 20

  match ip address IntestingTraffic

  action forward

 

vlan filter  VACLSPAN vlan-list 9

 

 

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hi ,

 

But i believe traffic will be dropped/discarded on switch but i dont want to.

 

i just want filtered traffic on SPAN.

 

I think we can do by below , as just found this.

 

Vlan Based:

monitor session 1 filter vlan 350 , 360 -365

 

IP Based:

monitor session 1 filter ip access-group 102

if you want to forward you can just do forward, not drop that should be ok. test and advise.

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Review Cisco Networking for a $25 gift card