Configuring vlan-based mirroring, Displaying and maintaining port mirroring – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 391

Advertising
background image

39-9

Configuring VLAN-Based Mirroring

You can configure VLAN-based mirroring for a remote source mirroring group to implement the
VLAN-based remote mirroring function.

Configuration prerequisites

z

The VLAN to be monitored is determined.

z

The destination port is determined.

Configuration procedure

Follow these steps to configure VLAN-based mirroring:

To do…

Use the command…

Remarks

Enter system view

system-view

Create a local or remote source
mirroring group

mirroring-group group-id

{ local |

remote-source

}

Required

Configuring VLAN-Based Mirroring

mirroring-group group-id
mirroring-vlan vlan-id inbound

Required

Configure the destination port for
the mirroring group

mirroring-group group-id
monitor-port
monitor-port-id

Required
Note that you need not configure
the destination port on the source
switch when configuring
VLAN-based remote mirroring.

Configuration example

Configure VLAN-based mirroring to mirror packets received on all ports in VLAN 2 to port
GigabitEthernet 1/0/2 on the local device.

Configuration procedure:

<device> system-view

[device] mirroring-group 1 local

[device] mirroring-group 1 mirroring-vlan 2 inbound

[device] mirroring-group 1 monitor-port GigabitEthernet 1/0/2

Displaying and Maintaining Port Mirroring

To do…

Use the command…

Remarks

Display the information of a
mirroring group.

display mirroring-group

{ group-id | all |

local

| remote-destination |

remote-source

}

Available in any view

Advertising