Port Mirroring Configuration
Configuration Syntax and Commands
The following sections describe the port mirroring configuration syntax and commands.
Syntax:
set forwarding-options mirror <name> [source | destination] <attribute> <value>
Attribute | Value |
---|---|
<name> |
Name for mirror configuration |
acl true |
Configure source as ACL. Note: Use |
direction [egress | ingress] |
Configure traffic direction ingress/egress. |
interface <interface> |
Specifies the physical interface name. |
logical-interface <logical-interface> |
Configure source logical interface name. |
Example 1: Mirroring one physical interface traffic to another physical interface
{ "rtbrick-config:mirror": [ { "name": "MIRROR1", "destination": { "interface": "ifp-0/0/4" }, "source": { "direction": "ingress", "interface": "ifp-0/0/2" } } ] }
Example 2: Mirroring Traffic to CPU
{ "rtbrick-config:mirror": [ { "name": "mirror1", "destination": { "interface": "cpu-0/0/200" }, "source": { "direction": "ingress", "interface": "ifp-0/0/52" } } ] }