R3303-HP HSR6800 Routers Network Management and Monitoring Command Reference
155
remote-destination: Creates a remote destination group or removes all remote destination groups with
the undo command.
remote-source: Creates a remote source group or removes all remote source groups with the undo
command.
Examples
# Create a local mirroring group numbered 1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
mirroring-group mirroring-port
Use mirroring-group mirroring-port to configure source ports for a local or remote source group.
Use undo mirroring-group mirroring-port to remove source ports from the mirroring group.
Syntax
mirroring-group group-id mirroring-port mirroring-port-list { both | inbound | outbound }
undo mirroring-group group-id mirroring-port mirroring-port-list { both | inbound | outbound }
Default
No source port is configured for any mirroring group.
Views
System view
Default command level
2: System level
Parameters
group-id: Specifies the number of a local or remote source group, in the range of 1 to 4. The mirroring
group specified by the group-id argument must already exist.
mirroring-port-list: Specifies a list of source ports or port ranges to be assigned to or removed from the
mirroring group specified by group-id. You can specify up to eight single ports, port ranges, or
combinations of both for the list. A single port takes the form of interface-type interface-number. A port
range takes the form interface-type interface-number to interface-type interface-number, where the end
port number must be greater than the start port number. For example, you can specify up to eight
combinations of single ports and port ranges for the list like this: ethernet 1/1 ethernet 1/3 ethernet 1/5
ethernet 2/2 to ethernet 2/10 ethernet 3/1 ethernet 3/4 ethernet 3/6 to ethernet 3/10 ethernet 3/12.
both: Mirrors both inbound and outbound packets on the specified ports.
inbound: Mirrors only inbound packets on the specified ports.
outbound: Mirrors only outbound packets on the specified ports.
Usage guidelines
You cannot configure source ports for a remote destination group.
When removing a source port from a mirroring group, make sure the traffic direction you specified in the
undo mirroring-group mirroring-port command matches the actual monitored direction specified earlier
in the mirroring-group mirroring-port command.