Configuring mac-based mirroring, Configuring mac-based mirroring -8 – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 390

Advertising
background image

39-8

Configuring MAC-Based Mirroring

z

The MAC address specified for MAC-based mirroring must be a static MAC address existing in the
MAC address table.

z

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

Configuration prerequisites

z

The MAC address to be matched is determined.

z

The destination port is determined.

Configuration procedure

Follow these steps to configure MAC-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 MAC-Based Mirroring

mirroring-group group-id
mirroring-mac mac vlan
vlan-id

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 MAC-based remote
mirroring.

Configuration example

Configure MAC-based mirroring to mirror packets whose source/destination MAC addresses match
000f-e20f-0101 to port GigabitEthernet 1/0/2 on the local device.

Configuration procedure:

<device> system-view

[device] mac-address static 000f-e20f-0101 interface Gigabitethernet 1/0/1 vlan 2

[device] mirroring-group 1 local

[device] mirroring-group 1 mirroring-mac 000f-e20f-0101 vlan 2

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

Advertising