Configuring local port mirroring
Local port mirroring configuration task list
Configure a local mirroring group and then configure one or more source ports and a monitor port for
the local mirroring group.
Complete these tasks to configure local port mirroring:
Task
Creating a local mirroring group
Configuring source ports for the local mirroring group
Configuring the monitor port for the local mirroring group
Creating a local mirroring group
Step
1.
Enter system view.
2.
Create a local mirroring
group.
NOTE:
A local mirroring group takes effect only after you configure a monitor port and source ports for it.
Configuring source ports for the local mirroring group
If you use system view, you can use a list to configure multiple source ports for a mirroring group at one
time. If you use interface view, you can assign only the current port to the group as a source port, so you
must repeat the step for each additional port.
Configuration restrictions and guidelines
A mirroring group can contain multiple source ports.
•
•
A port can serve as a source port in multiple mirroring groups.
Configuring source ports in system view
Step
1.
Enter system view.
2.
Configure source ports.
Configuring a source port in interface view
Command
system-view
mirroring-group group-id local
Command
system-view
mirroring-group group-id
mirroring-port mirroring-port-list
{ both | inbound | outbound }
79
Remarks
Required.
Required.
Required.
Remarks
N/A
No local mirroring group
exists by default.
Remarks
N/A
By default, no source port is configured
for a local mirroring group.