Displaying port mirroring, Mirroring configuration example, Local port mirroring configuration example – H3C Technologies H3C S3100 Series Switches User Manual
Page 624: Network requirements

1-7
Operation
Command
Description
Configure trunk port to permit
packets from the
remote-probe VLAN
port trunk permit vlan
remote-probe-vlan-id
Required
Return to system view
quit
—
Create a remote destination
mirroring group
mirroring-group group-id
remote-destination
Required
Configure the destination port
for the remote destination
mirroring group
mirroring-group group-id
monitor-port monitor-port
Required
Configure the remote-probe
VLAN for the remote
destination mirroring group
mirroring-group group-id
remote-probe vlan
remote-probe-vlan-id
Required
When configuring a destination switch, note that:
z
The destination port of remote port mirroring cannot be a member port of an aggregation group, or
a port enabled with LACP or STP.
z
Only an existing static VLAN can be configured as the remote-probe VLAN. To remove a
remote-probe VLAN, you need to restore it to a normal VLAN first. A remote port mirroring group
gets invalid if the corresponding remote port mirroring VLAN is removed.
Displaying Port Mirroring
After the above configurations, you can execute the display commands in any view to view the
mirroring running information, so as to verify your configurations.
Table 1-7 Display configuration of mirroring
Operation
Command
Description
Display port mirroring
configuration
display mirroring-group { group-id |
all | local | remote-destination |
remote-source }
Available in any view
Mirroring Configuration Example
Local Port Mirroring Configuration Example
Network requirements
The departments of a company connect to each other through S3100 Ethernet switches:
z
Research and Development (R&D) department is connected to Switch C through Ethernet 1/0/1.
z
Marketing department is connected to Switch C through Ethernet 1/0/2.
z
Data detection device is connected to Switch C through Ethernet 1/0/3
The administrator wants to monitor the packets received on and sent from the R&D department and the
marketing department through the data detection device.
Use the local port mirroring function to meet the requirement. Perform the following configurations on
Switch C.
z
Configure Ethernet 1/0/1 and Ethernet 1/0/2 as mirroring source ports.