Mirroring-Group Monitor-Port - H3C S5120-SI Series Command Reference Manual

Hide thumbs Also See for S5120-SI Series:
Table of Contents

Advertisement

both: Mirrors both inbound and outbound packets on the specified port(s).
inbound: Mirrors only inbound packets on the specified port(s).
outbound: Mirrors only outbound packets on the specified port(s).
Description
Use the mirroring-group mirroring-port command to assign ports to a local mirroring group as
mirroring ports.
Use the undo mirroring-group mirroring-port command to remove mirroring ports from the mirroring
group.
By default, no source port is configured for any mirroring group.
Note that:
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.
The mirroring group specified by the group-id argument must already exist.
Related commands: mirroring-group.
Examples
# Create local mirroring group 1, and configure ports GigabitEthernet 1/0/1, GigabitEthernet 1/0/2 and
GigabitEthernet 1/0/3 as mirroring ports in the mirroring group 1..
<Sysname> system-view
[Sysname] mirroring-group 1 mirroring-port gigabitethernet 1/0/1 to gigabitethernet 1/0/23
both
# Remove mirroring port GigabitEthernet 1/0/1 from mirroring group 1.
<Sysname> system-view
[Sysname] undo mirroring-group 1 mirroring-port gigabitethernet 1/0/1 to gigabitethernet
1/0/10 both

mirroring-group monitor-port

Syntax
mirroring-group groupid monitor-port monitor-port-id
undo mirroring-group groupid monitor-port monitor-port-id
View
System view
Default Level
2: System level
Parameters
groupid: Number of a local mirroring group, which can only be 1.
1-3

Advertisement

Table of Contents
loading

Table of Contents