Local port mirroring configuration example (in source CPU mode)

Network requirements

As shown in Figure 85, Ten-GigabitEthernet 1/0/1 and Ten-GigabitEthernet 1/0/2 are located on slot 1.

Configure local port mirroring in source CPU mode to enable the server to monitor all packets matching the following criteria:

Figure 85: Network diagram

Configuration procedure

# Create local mirroring group 1.

<Device> system-view
[Device] mirroring-group 1 local

# Configure the CPU in slot 1 of the device as a source CPU for local mirroring group 1.

[Device] mirroring-group 1 mirroring-cpu slot 1 inbound

# Configure Ten-GigabitEthernet 1/0/3 as the monitor port for local mirroring group 1.

[Device] mirroring-group 1 monitor-port ten-gigabitethernet 1/0/3

# Disable the spanning tree feature on the monitor port (Ten-GigabitEthernet 1/0/3).

[Device] interface ten-gigabitethernet 1/0/3
[Device-Ten-GigabitEthernet1/0/3] undo stp enable
[Device-Ten-GigabitEthernet1/0/3] quit

Verifying the configuration

# Verify the mirroring group configuration.

[Device] display mirroring-group all
Mirroring group 1:
    Type: Local
    Status: Active
    Mirroring CPU:
        Slot 1  Inbound
    Monitor port: Ten-GigabitEthernet1/0/3