Configuration manual

Port Monitoring | 845
Sample Configuration: Remote Port Mirroring
Remote port mirroring requires a source session (monitored ports on different source switches), a reserved
tagged VLAN for transporting mirrored traffic (configured on source, intermediate, and destination
switches), and a destination session (destination ports connected to analyzers on destination switches).
Figure 39-10 shows a sample configuration of remote port mirroring on a source switch. Note that in the
show monitor session output of a source session, the source is a source port/port-channel (for example, Gi
2/2) and the destination is the reserved VLAN (for example, remote-vlan 22).
Figure 39-10. Configuring Remote Port Mirroring: Source Switch
Figure 39-11 shows a sample configuration of remote port mirroring on an intermediate (transport) switch.
Figure 39-11. Configuring Remote Port Mirroring: Intermediate Switch
Force10(conf)#interface gigabitethernet 2/22
Force10(conf-if-gi-2/22)#switchport
Force10(conf-if-gi-2/22)#no shutdown
Force10(conf-if-gi-2/22)#interface vlan 22
Force10(conf-if-vl-22)#mode remote-port-mirroring
Force10(conf-if-vl-22)#tagged gigabitethernet 2/22
Force10(conf-if-vl-22)#exit
Force10(conf)#monitor session 100
Force10(conf-mon-sess-100)#source gi 2/2 destination remote-vlan 22 direction both
Force10(conf-mon-sess-100)#no disable
Force10(conf-mon-sess-100)#show config
monitor session 100
source GigabitEthernet 2/2 destination remote-vlan 22 direction both
no disable
Force10(conf-mon-sess-100)#end
Force10#show monitor session 100
SessionID Source Destination Direction Mode Type
--------- ------ ----------- --------- ---- ----
100 Gi 2/2 remote-vlan 22 both Remote-Port-Mirroring Port-based
Force10(conf)#interface gigabitethernet 4/74
Force10(conf-if-gi-4/74)#switchport
Force10(conf-if-gi-4/74)#no shutdown
Force10(conf-if-gi-4/74)#exit
Force10(conf)#interface gigabitethernet 4/18
Force10(conf-if-gi-4/18)#switchport
Force10(conf-if-gi-4/18)#no shutdown
Force10(conf-if-gi-4/18)#exit
Force10(conf)#interface vlan 22
Force10(conf-if-vl-22)#mode remote-port-mirroring
Force10(conf-if-vl-22)#tagged gi 4/74
Force10(conf-if-vl-22)#tagged gi 4/18
Force10(conf-if-vl-22)#no shut
Force10(conf-if-vl-22)#end