beautypg.com

Iv. configuration example – H3C Technologies H3C S3100 Series Switches User Manual

Page 415

background image

Operation Manual – Mirroring

H3C S3100-52P Ethernet Switch

Chapter 1 Mirroring Configuration

1-6

Operation

Command

Description

Display the mirroring

parameter settings

display mirroring-group

{ all |

local

}

Optional
This command can be

executed in any view.

Note:

z

Configurations listed in Table 1-2 do not involve specifying a mirroring group.
Therefore these mirroring settings made in Ethernet port view applies to mirroring
group 1 only.

z

Configurations listed in Table 1-3 can be used to add mirroring settings for any
defined mirroring group in Ethernet port view.

z

Configurations listed in Table 1-4 are performed in system view. Therefore the
mirroring group ID and port number must be specified.

IV. Configuration Example

Network requirements:

z

The source port is GigabitEthernet 1/1/1. All packets received and sent by this port
are to be mirrored.

z

The destination port is GigabitEthernet 1/1/4.

Configuration procedure 1:

system-view

[H3C] mirroring-group 1 local

[H3C] interface gigabitEthernet 1/1/4

[H3C-GigabitEthernet1/1/4] monitor-port

[H3C-GigabitEthernet1/1/4] quit

[H3C] interface gigabitEthernet 1/1/1

[H3C-GigabitEthernet1/1/1] mirroring-port both

Configuration procedure 2:

system-view

[H3C] mirroring-group 1 local

[H3C] interface GigabitEthernet 1/1/4

[H3C-GigabitEthernet1/1/4] mirroring-group 1 monitor-port

[H3C-GigabitEthernet1/1/4] quit

[H3C] interface GigabitEthernet 1/1/1

[H3C-GigabitEthernet1/1/1] mirroring-group 1 mirroring-port both

Configuration procedure 3:

system-view