500CHAPTER 30: PORT MIRRORING CONFIGURATION COMMANDS

Layer 2 Ethernet ports, Layer 3 Ethernet interfaces, and tunnel interfaces can all 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.

<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.

both: Mirrors both inbound and outbound packets.

inbound: Mirrors the inbound packets only.

outbound: Mirrors the outbound packets only.

Description Use the mirroring-portcommand to add the current port to a port mirroring group as a source mirroring port.

Use the undo mirroring-portcommand to remove the configuration.

Note that:

If you do not specify the mirroring-groupgroupid keyword-argument 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.

When you use the undo mirroring-portcommand 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.

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.

Page 500
Image 500
3Com MSR 30, MSR 50 manual Mirroring-port, # Add POS 5/1 to local port mirroring group