.. _example_traffic_policy_duplicate: ######### Duplicate ######### .. sidebar:: Contents .. contents:: :depth: 2 :local: The following scenarios demonstrate how to configure port mirroring using the ``traffic policy duplicate`` feature. Port mirroring duplicates network packets and forwards copies to monitoring destinations while preserving the original traffic flow. ``traffic selectors`` can be used to filter which packets should be duplicated based on protocol, addresses, or other criteria. .. image:: topologyduplicate.svg :width: 400 ******************************************** Test duplicate local traffic to an interface ******************************************** Description =========== This scenario configures link-level port mirroring on DUT0's ('eth0' interface). Both ingress (link-in) and egress (link-out) traffic policies are applied to duplicate all traffic to another physical interface. Scenario ======== .. include:: duplicate/testduplicatelocaltraffictoaninterface .. raw:: html
******************************************* Test duplicate local traffic to a remote IP ******************************************* Description =========== This scenario configures remote port mirroring on DUT0 ('eth0' interface). Local-in and local-out traffic policies duplicate traffic to a remote IP address. A traffic selector is configured to filter and duplicate only UDP traffic. Scenario ======== .. include:: duplicate/testduplicatelocaltraffictoaremoteip .. raw:: html
**************************************************** Test duplicate local traffic to a remote IP with VRF **************************************************** Description =========== This scenario configures remote port mirroring on DUT0 ('eth0' interface). Local-in and local-out traffic policies duplicate traffic to a remote IP address. The interface is configured within a VRF, which must be specified as the output VRF. A traffic selector is configured to filter and duplicate only UDP traffic. Scenario ======== .. include:: duplicate/testduplicatelocaltraffictoaremoteipwithvrf .. raw:: html