Usage Scenario
In an EVC scenario, to mirror and analyze traffic on an EVC interface or a bridge domain, create a mirrored port. You can create a mirrored port in common mode or in mirroring instance mode.
- To create a mirrored port in common mode, run the port-mirroring { inbound | outbound } command.
- Before creating a mirrored port in mirroring instance mode, run the mirror instance location command to create a mirroring instance and run the port-mirroring instance { inbound | outbound } command to apply the mirroring instance to an interface.
The differences between the two modes are as follows:
- The common mode supports interface-based mirroring, and the mirroring instance mode supports only Board-based mirroring.
- CAR can be implemented for mirrored traffic in both modes. In common mode, CAR is implemented on each interface. In mirroring instance mode, a shared CAR can be configured in a mirroring instance and applies to different interfaces bound to the mirroring instance, which simplifies configuration and optimizes CAR resource usage.
- A shared instance can be configured for multiple interfaces. To be specific, multiple interfaces can share a mirroring instance. This feature allows more interfaces to support port mirroring when the mirroring specification is insufficient.
Precautions
After a mirroring instance is deleted, all configurations in the mirroring instance will be deleted.