184
Configuration prerequisites
Create a tunnel interface and a GRE tunnel. The source and destination addresses of the tunnel interface
are the IP addresses of the physical interfaces on the source and destination devices respectively. For
more information about tunnel interfaces, see Layer 3—IP Services Configuration Guide.
Configuring local mirroring groups
Configure a local mirroring group on the source device and on the destination device separately.
To create a local mirroring group (on the source or destination device):
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Create a local mirroring
group.
mirroring-group group-id local
By default, no local mirroring
group exists on a device.
Configuring source ports for a local mirroring group
On the source device, configure the ports you want to monitor as the source ports. On the destination
device, configure the physical port corresponding to the tunnel interface as the source port.
You can configure a list of source ports for a mirroring group at a time in system view, or assign a port
to it as a source port in interface view. To assign multiple ports to the mirroring group as source ports in
interface view, repeat the operation. The two modes lead to the same result.
Configuration restrictions and guidelines
When you configure source ports for a local mirroring group, follow these restrictions and guidelines:
• A mirroring group can contain multiple source ports.
• A port can act as a source port for multiple mirroring groups, but the port cannot be a reflector port,
egress port, or monitor port at the same time.
Configuration procedure
To configure source ports in system view:
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Configure source ports for the
specified local mirroring
group.
mirroring-group group-id
mirroring-port interface-list { both |
inbound | outbound }
By default, no source port is
configured for a local mirroring
group.
To configure source ports in interface view:
Ste
Command
Remarks
1. Enter system view.
system-view N/A