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

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

Advertisement

monitor-port-id: Port to be assigned to the specified mirroring group as the monitor port. The argument
takes the form of interface-type interface-number, where interface-type specifies the port type and
interface-number specifies the port number.
Description
Use the mirroring-group monitor-port command to assign a port to a local mirroring group as the
monitor port.
Use the undo mirroring-group monitor-port command to remove the monitor port from the local
mirroring group.
By default, no monitor port is configured for a mirroring group.
In a local mirroring group, you must configure a monitor port. From this port, mirrored packets are sent
to the monitor device for analysis.
Note that:
You can configure only one monitor port for a mirroring group.
The mirroring group specified by group-id must already exist.
In a mirroring group, you can configure only one monitor port. This port must not belong to any
other mirroring group.
Related commands: mirroring-group.
Examples
# Configure GigabitEthernet 1/0/1 as the monitor port in local mirroring group 1.
<Sysname> system-view
[Sysname] mirroring-group 1 local
[Sysname] mirroring-group 1 monitor-port gigabitethernet 1/0/1

mirroring-port

Syntax
[ mirroring-group groupid ] mirroring-port { inbound | outbound | both }
undo [ mirroring-group groupid ] mirroring-port { inbound | outbound | both }
View
Interface view
Default Level
2: System level
Parameters
groupid: Number of a local mirroring group, which can only be 1.
both: Mirrors both inbound and outbound packets on the current port.
inbound: Mirrors only inbound packets on the current port.
outbound: Mirrors only outbound packets on the current port.
1-4

Advertisement

Table of Contents
loading

Table of Contents