H3C S7500 Series Ethernet Switches Command Manual

Table Of Contents
Command Manual – Mirroring
H3C S7500 Series Ethernet Switches Chapter 1
Mirroring Commands
1-8
mirroring-port mirroring-port-list: Specifies a list of source ports, provided in the form
of mirroring-port-list={ interface-type interface-number [ to interface-type
interface-number ] }&<1-8>, where Interface-type interface-number means an Ethernet
port, and &<1-8> means you can specify eight source ports or source port lists.
monitor-port-list is available in system view only.
both: Mirrors packets received and sent through the port.
inbound: Mirrors packets received through the port.
outbound: Mirrors packets sent through the port.
Description
Use the mirroring-group mirroring-port command to configure the source port.
Use the undo mirroring-group mirroring-port command to remove the configuration
of the source port.
Examples
# Configure GigabitEthernet 2/0/1 as the source port and mirror all packets received
through this port.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] mirroring-group 1 mirroring-port Gigabitethernet2/0/1 inbound
1.1.7 mirroring-group monitor-port
Syntax
mirroring-group group-id monitor-port monitor-port
undo mirroring-group group-id monitor-port monitor-port
View
System view, Ethernet port view
Parameters
group-id: Group number of a port mirroring group, in the range of 1 to 20.
monitor-port monitor-port: Specifies the destination port for port mirroring.
monitor-port is available in system view only.
Description
Use the mirroring-group monitor-port command to configure the destination port.
Use the undo mirroring-group monitor-port to remove the configuration of the
destination port.
Note the following when you configure the destination port: