Cisco IOS / Port Mirroring

show interfaces status | include connected

no monitor session 1
monitor session 1 source interface gi0/X
!monitor session 1 destination interface fa0/X
monitor session 1 destination interface fa0/X encapsulation dot1q

show monitor session 1

one can also mirror several ports at once

monitor session 1 source interface fa0/1 - 24 rx
monitor session 1 destination interface gi0/1

Resources


Nethence | Pub | Lab | Pbraun | SNE Russia | xhtml