
Monitoring and Analyzing Switch Operation
Traffic Mirroring
A15
VLAN 30
10.10.30.2
VLAN 40
10.10.40.1
Switch C
VLAN 10
10.10.10.119
Traffic
Analyzer 1
Switch A
VLAN 20
10.10.20.145
10.10.30.153
Switch B
Server
C12
Traffic
Analyzer 2
B10
10.20.40.7
A20
Network
Figure B-54. Sample Topology for Remote Mirroring from a Port Interface
To configure this remote mirroring session using a directional-based traffic
selection on a port interface, the operator must take the following steps:
1. On remote switch C, configure the remote mirroring endpoint using port
B10 as the exit port for a traffic analyzer (as described in “2. Configure a
Mirroring Destination on a Remote Switch” on page B-50):
Switch-C(config)# mirror endpoint ip 10.10.10.119 9400 10.10.40.1
port b10
IP address of source switch and
UDP port number used in session 2
IP Address of destination switch
Remote exit port
Figure B-55. Configuring a Remote Mirroring Endpoint
2. On source switch A, configure session 2 to use UDP port 9400 to reach
the remote mirroring endpoint on switch C (10.10.40.1):
mirror 2 remote ip 10.10.10.119 9400 10.10.40.1
3. On source switch A, configure the local port C12 to select all inbound
traffic to send to the preconfigured mirroring destination for session 2:
interface c12 monitor all in mirror 2
B-91