55.7 Mirror Examples
Example:
The requirement of the configurations is shown as below: to monitor at interface 1 the data frames sent out by
interface 9 and received from interfac e 7, sent and received by CPU, and the data frames received by
interface 15 and matched by rule 120(The sourc e IP address is 1.2.3.4 and the destination IP address is
5.6.7.8).
Configuration guidelines:
1. Configure interfac e 1 to be a mirror destination interface.
2. Configure the interface 7 ingress and interface 9 egress to be mirrored source.
3. Configure the CP U as one of the source.
4. Configure access list 120.
5. Configure access 120 to binding interface 15 ingress.
Configuration procedure is a s follows:
XGS 3-42000R(config)#monitor session 4 destination interface et hernet 1/1
XGS 3-42000R(config)#monitor session 4 source interface ethernet 1/7 rx
XGS 3-42000R(config)#monitor session 4 source interface ethernet 1/9 tx
XGS 3-42000R(config)#monitor session 4 source cpu
XGS 3-42000R(config)#access-list 120 permit tcp 1.2.3.4 0.0.0.255 5.6.7.8 0.0.0.255
XGS 3-42000R(config)#monitor session 4 source interface ethernet 1/15 access-list 120 rx
55.8 Device Mirror Troubleshooting
If problems occur on configuring port mirroring, pleas e check the following first for causes:
Whether the mirror destination port is a member of a TRUNK group or not, if yes, modify the TRUNK
group.
If the throughput of mirror destination port is smaller than the total throughput of mirror source port(s),
the destination port will not be able to duplicate all source port traffic; please dec reas e the number of
source ports, duplicate traffic for one direction only or choose a port with greater throughput as the
destination port. Mirror destination port can not be pulled into Isolate vlan, or will affect mirror bet ween
VLAN.
55-6