beautypg.com

Configuring the device – H3C Technologies H3C SR8800 User Manual

Page 144

background image

132

Figure 49 Network diagram

Configuring the device

# Enter system view.

system-view

# Configure ACL 2000 to match all packets.

[Device] acl number 2000

[Device-acl-basic-2000] rule 1 permit

[Device-acl-basic-2000] quit

# Create traffic class classifier 1 and use ACL 2000 as the match criterion.

[Device] traffic classifier 1

[Device-classifier-1] if-match acl 2000

[Device-classifier-1] quit

# Create traffic behavior behavior 1 and configure the action of mirroring traffic to
GigabitEthernet 3/0/2 for the traffic behavior.

[Device] traffic behavior 1

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

[Device-behavior-1] quit

# Create QoS policy policy 1, and associate traffic behavior behavior 1 with traffic class classifier
1.

[Device] qos policy 1

[Device-qospolicy-1] classifier 1 behavior 1

[Device-qospolicy-1] quit

# Apply the QoS policy in the inbound direction of GigabitEthernet 3/0/1.

[Device] interface GigabitEthernet 3/0/1

[Device-GigabitEthernet3/0/1] qos apply policy 1 inbound

After the configuration above, you can analyze and monitor all the packets that Host sends on Server.