Configuring port mirroring (cli example) – HP 445946-001 User Manual

Page 192

Advertising
background image

Troubleshooting tools

192

Ingress traffic is duplicated and sent to the mirrored port before processing, and egress traffic is

duplicated and sent to the mirrored port after processing.

Configuring Port Mirroring (CLI example)

To configure Port Mirroring for the example shown in the preceding figure:

1.

Specify the monitoring port.

>> # /cfg/pmirr/monport 18 (Select port 18 for monitoring)

2.

Select the ports that you want to mirror.

>> Port 18 # add 21 (Select port 21 to mirror)

>> Enter port mirror direction [in, out, or both]: in

(Monitor ingress traffic

on port 21)

>> Port 18 # add 1 (Select port 1 to mirror)

>> Enter port mirror direction [in, out, or both]: out

(Monitor egress traffic

on port 1)

3.

Enable Port Mirroring.

>> # /cfg/pmirr/mirr ena (Enable port mirroring)

4.

Apply and save the configuration.

>> PortMirroring# apply (Apply the configuration)

>> PortMirroring# save (Save the configuration)

5.

View the current configuration.

>> PortMirroring# cur (Display the current settings)

Port mirroring is enabled

Monitoring Ports Mirrored Ports

1 none

2 none

3 none

4 none

5 none

:

:

16 none

18 (21, in) (1, out)

20 none

21 none

Advertising