Mirroring
1. Introduction
Mirroring is a feature where ingress/egress frames on ports can be copied (mirrored) to one specific designated port.
A port can be configured to have the role 'Mirrored' or 'Monitor' in the Mirroring feature.
In a switch, there can only be one 'Monitor' port.
It is configurable if Ingress and/or Egress frames on the 'Mirrored' port are copied to the 'Monitor' port.
By default, the port has no Mirroring role.
2. Mirrored role.
First, let’s see that the port has no Mirroring role. It is determined as 'eth-mirror/config' is empty.
The interface (port) name is '1'
FETCH
request message:
- "/ietf-interfaces:interfaces/interface[name='1']/\
mchp-velocitysp-port:eth-mirror/config"
FETCH
response message:
- ? "/ietf-interfaces:interfaces/interface/mchp-velocitysp-port:eth-mirror/\
config"
:
The port can copy frames to the Monitor
port based on ingress or egress direction.
Configure a Mirrored
port with these attributes:
Ingress Mirroring is enabled.
Egress Mirroring is disabled.
The interface (port) name is '1'.
iPATCH
request message:
- ? "/ietf-interfaces:interfaces/interface[name='1']/\
mchp-velocitysp-port:eth-mirror/config/mirrored"
: ingress: true
egress: false
Let’s confirm the Mirroring configuration of the port:
FETCH
request message:
- "/ietf-interfaces:interfaces/interface[name='1']/\
mchp-velocitysp-port:eth-mirror/config"
FETCH
response message:
- ? "/ietf-interfaces:interfaces/interface/mchp-velocitysp-port:eth-mirror/\
config"
: mirrored:
ingress: true
egress: false
3. Monitor role.
The Monitor
port is transmitting mirrored frames. A trunk tag can be pushed to the frames,
and transmitting of 'Normal' forwarded frames can be enabled.
Configure a Monitor
port with these attributes:
Forwarding of normal traffic is disabled.
Push of trunk TAG is enabled with VID 100.
The interface (port) name is '2'.
iPATCH
request message:
- ? "/ietf-interfaces:interfaces/interface[name='2']/\
mchp-velocitysp-port:eth-mirror/config/monitor"
: forwarding: false
vid: 100
Let’s confirm the Mirroring configuration of the port:
FETCH
request message:
- "/ietf-interfaces:interfaces/interface[name='2']/\
mchp-velocitysp-port:eth-mirror/config"
FETCH
response message:
- ? "/ietf-interfaces:interfaces/interface/mchp-velocitysp-port:eth-mirror/\
config"
: monitor:
forwarding: false
vid: 100