[Cisco] Port mirroring sample config

1. New IOS

source port 0/22
destinaiton port 0/21

Switch#config terminal
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#monitor session 1 source interface fastEthernet 0/22
Switch(config)#monitor session 1 destination interface fastEthernet 0/21
Switch#Show monitor session 1

2. Old IOS

source port 0/1, 0/2
destinaion port 0/24

 

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface fastEthernet 0/24
Switch(config-if)#port monitor fastEthernet 0/1
Switch(config-if)#port monitor fastEthernet 0/2
show port monitor

 

 

3. VLAN Mirroring

source vlan1
destinaion port 0/24

Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.

Switch(config)#interface fastEthernet 0/24
Switch(config-if)#port monitor vlan 1




 

Leave a Reply