R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

115
Complete these tasks to configure local port mirroring:
Task Remarks
Creating a local mirroring group Required.
Configuring source ports for the local mirroring group Required.
Configuring the monitor port for the local mirroring group Required.
Creating a local mirroring group
Local port mirroring takes effect only when the source ports and the monitor port are configured.
To create a local mirroring group:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a local mirroring
group.
mirroring-group group-id local
No local mirroring group
exists by default.
Configuring source ports for the local mirroring group
CAUTION:
Do not assign a source port to a source VLAN.
Either you can configure a list of source ports for a mirroring group in system view, or you can assign only
the current port to the mirroring group as a source port in interface view. The two configuration modes
lead to the same result.
Configuring source ports in system view
To configure source ports for a local mirroring group in system view:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure source ports.
mirroring-group group-id
mirroring-port mirroring-port-list
{ both | inbound | outbound }
By default, no source port is
configured for a local mirroring
group.
Configuring a source port in interface view
To configure a source port for a local mirroring group in interface view:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type
interface-number
N/A