![H3C S5120-SI Series Operation Manual Download Page 96](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174096.webp)
1-2
As shown in
Figure 1-1
, packets on the mirroring port are mirrored to the monitor port for the data
monitoring device to analyze.
Figure 1-1
Local port mirroring implementation
Configuring Local Port Mirroring
Configuring local port mirroring is to configure local mirroring groups.
A local mirroring group comprises one or multiple mirroring ports and one monitor port. These ports
must not have been assigned to any other mirroring group.
Follow these steps to configure a local mirroring group:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Create a local mirroring group
mirroring-group group-id local
Required
In system view
mirroring-group group-id
mirroring-port mirroring-port-list
{
both
|
inbound
|
outbound
}
interface
interface-type
interface-number
[
mirroring-group group-id
]
mirroring-port
{
both
|
inbound
|
outbound
}
Configure
mirroring
ports
In interface
view
quit
Required
In system view, you can
configure a list of
mirroring ports to the
mirroring group at a time.
In interface view, you can
assign only the current
port to the mirroring
group. To monitor multiple
ports, repeat the step.
In system view
mirroring-group group-id
monitor-port monitor-port-id
interface
interface-type
interface-number
Configure
the monitor
port
In interface
view
[
mirroring-group group-id
]
monitor-port
Required
Use either approach.