beautypg.com

Network requirements, Configuration procedure – H3C Technologies H3C S7500E Series Switches User Manual

Page 169

background image

9-22

# Configure GigabitEthernet 2/0/1 as a mirroring port and GigabitEthernet 2/0/2 as the monitor port of

local mirroring group 1.

[DeviceC] mirroring-group 1 mirroring-port gigabitethernet 2/0/1 inbound

[DeviceC] mirroring-group 1 monitor-port gigabitethernet 2/0/2

5) Verify the configurations

After the above configurations are completed, you can monitor all the packets received and sent by

the marketing department on the server.

Local Port Mirroring Configuration Example for ONUs

Network requirements

As shown in

Figure 9-7

, the customer network is as described below:

z

OLT 3/0/1 of Device A (an S7500E switch) is connected to ONU 3/0/1:1 of an ONU. The ONU is

connected to hosts and a server (a data monitoring device).

z

Host A, Host B, and Server are connected to UNI 1, UNI 2, and UNI 3 of the ONU respectively.

z

On Device, remotely configure local port mirroring for the ONU to mirror the traffic received on

UNI 1 to UNI 3, so that Server can collect all traffic sent by Host A.

Figure 9-7 Network diagram for local port mirroring configuration

ONU

Device A

Olt3/0/1

Server

POS

UNI 1

UNI 2

UNI 3

HostA

HostB

Configuration procedure

# Enter system view.

system-view

# Enter ONU port view.

[DeviceA] interface Onu 3/0/1:1

# Configure UNI 1 as the mirroring port for local port mirroring and specify to mirror traffic received on

UNI 1.

[DeviceA-Onu3/0/1:1] uni 1 mirroring-port inbound

# Configure UNI 3 as the monitor port for local port mirroring.

[DeviceA-Onu3/0/1:1] uni 3 monitor-port

After the above configurations are completed, you can monitor all the packets sent by Host A on the

server.