beautypg.com

H3C Technologies H3C S7500E Series Switches User Manual

Page 176

background image

10-7

[SwitchA-behavior-1] mirror-to interface GigabitEthernet 2/0/1

[SwitchA-behavior-1] quit

# Create QoS policy 1 and associate class 1 with behavior 1 in the QoS policy.

[SwitchA] qos policy 1

[SwitchA-policy-1] classifier 1 behavior 1

[SwitchA-policy-1] quit

# Apply QoS policy 1 to the inbound direction of GigabitEthernet 2/0/2.

[SwitchA] interface GigabitEthernet 2/0/2

[SwitchA-GigabitEthernet2/0/2] qos apply policy 1 inbound

[SwitchA-GigabitEthernet2/0/2] quit

# Create remote source mirroring group 1.

[SwitchA] mirroring-group 1 remote-source

# Create VLAN 2.

[SwitchA] vlan 2

[SwitchA-vlan2] quit

# Configure VLAN 2 as the remote probe VLAN, GigabitEthernet 2/0/48 as the mirroring port, and

GigabitEthernet 2/0/1 as the egress port for the remote source mirroring group.

[SwitchA] mirroring-group 1 remote-probe vlan 2

[SwitchA] mirroring-group 1 mirroring-port GigabitEthernet 2/0/48 inbound

[SwitchA] mirroring-group 1 monitor-egress GigabitEthernet 2/0/1

# Configure GigabitEthernet 2/0/1 as a trunk port and assign it to VLAN 2.

[SwitchA] interface GigabitEthernet 2/0/1

[SwitchA-GigabitEthernet2/0/1] port link-type trunk

[SwitchA-GigabitEthernet2/0/1] port trunk permit vlan 2

z

Configuration on Switch B

# Configure GigabitEthernet 2/0/1 as a trunk port and assign it to VLAN 2.

system-view

[SwitchB] interface GigabitEthernet 2/0/1

[SwitchB-GigabitEthernet2/0/1] port link-type trunk

[SwitchB-GigabitEthernet2/0/1] port trunk permit vlan 2

[SwitchB-GigabitEthernet2/0/1] quit

# Configure GigabitEthernet 2/0/2 as a trunk port and assign it to VLAN 2.

[SwitchB] interface GigabitEthernet 2/0/2

[SwitchB-GigabitEthernet2/0/2] port link-type trunk

[SwitchB-GigabitEthernet2/0/2] port trunk permit vlan 2

z

Configuration on Switch C

# Configure GigabitEthernet 2/0/1 as a trunk port and assign it to VLAN 2.

system-view

[SwitchC] interface GigabitEthernet 2/0/1

[SwitchC-GigabitEthernet2/0/1] port link-type trunk

[SwitchC-GigabitEthernet2/0/1] port trunk permit vlan 2

[SwitchC-GigabitEthernet2/0/1] quit

# Create remote destination mirroring group 1.

[SwitchC] mirroring-group 1 remote-destination

# Create VLAN 2.

[SwitchC] vlan 2

[SwitchC-vlan2] quit