3com MSR 20-20 참조 매뉴얼
500
C
HAPTER
30: P
ORT
M
IRRORING
C
ONFIGURATION
C
OMMANDS
■
Layer 2 Ethernet ports, Layer 3 Ethernet interfaces, and tunnel interfaces can all
be destination mirroring ports of local port mirroring groups.
be destination mirroring ports of local port mirroring groups.
■
Member ports of an existing port mirroring group cannot be destination ports.
Example
# Add port Ethernet1/1 to port mirroring group 1 (a remote destination port
mirroring group) as the destination port.
mirroring group) as the destination port.
<Sysname> system-view
[Sysname] mirroring-group 1 monitor-port ethernet 1/1
mirroring-port
Syntax
[ mirroring-group groupid ] mirroring-port { both | inbound | outbound }
undo [ mirroring-group groupid ] mirroring-port { both | inbound | outbound }
View
Interface view
Parameter
groupid: Port mirroring group number. The value range is 1 to 5 for MSR 20 and
BSR 30 series routers and 1 to 10 for MSR 50 series routers.
BSR 30 series routers and 1 to 10 for MSR 50 series routers.
both: Mirrors both inbound and outbound packets.
inbound: Mirrors the inbound packets only.
outbound: Mirrors the outbound packets only.
Description
Use the mirroring-port command to add the current port to a port mirroring
group as a source mirroring port.
group as a source mirroring port.
Use the undo mirroring-port command to remove the configuration.
Note that:
■
If you do not specify the mirroring-group groupid keyword-argument
combination, these two commands apply to port mirroring group 1.
combination, these two commands apply to port mirroring group 1.
■
Depending on device models, you can add ports/interfaces to local port
mirroring groups as source mirroring ports in Layer 2 Ethernet port view, Layer
3 Ethernet interface view, POS interface view, and CPOS interface view.
mirroring groups as source mirroring ports in Layer 2 Ethernet port view, Layer
3 Ethernet interface view, POS interface view, and CPOS interface view.
■
When you use the undo mirroring-port command to remove the current port
from a port mirroring group, make sure the both/inbound/outbound
keyword specified matches the actual packet direction of the port.
from a port mirroring group, make sure the both/inbound/outbound
keyword specified matches the actual packet direction of the port.
Example
# Add port Ethernet1/1 to port mirroring group 2, which already exists.
<Sysname> system-view
[Sysname] interface ethernet 1/1
[Sysname-Ethernet1/1] mirroring-group 2 mirroring-port both
# Add POS 5/1 to local port mirroring group 3.