Configuration procedure
# Create an IPv4 advanced ACL to match packets that are sourced from 192.168.56.0/24.
<SwitchA> system-view
[SwitchA] acl number 3000
[SwitchA-acl-adv-3000] rule permit ip source 192.168.56.0 0.0.0.255
# Configure a traffic behavior to mirror traffic to the CPU.
<SwitchA> system-view
[SwitchA] traffic behavior behavior1
[SwitchA-behavior-behavior1] mirror-to cpu
# Configure a traffic class to use the ACL to match traffic.
<SwitchA> system-view
[SwitchA] traffic classifier classifier1
[SwitchA-classifier-class1] if-match acl 3000
# Associate the traffic class with the traffic behavior in a QoS policy.
<SwitchA> system-view
[SwitchA] qos policy user1
[SwitchA-qospolicy-user1] classifier classifier1 behavior behavior1
# Apply the QoS policy to the incoming traffic of GigabitEthernet 1/0/1.
<SwitchA> system-view
[SwitchA] interface gigabitethernet 1/0/1
[SwitchA-GigabitEthernet1/0/1] qos apply policy user1 inbound
# Capture incoming traffic on GigabitEthernet 1/0/1.
<DeviceA> packet-capture interface gigabitethernet1/0/1
Capturing on Gigabitethernet1/0/1
1
0.000000 192.168.56.1 -> 192.168.56.2 TCP 62 6325 > telnet [SYN] Seq=0 Win
=65535 Len=0 MSS=1460 SACK_PERM=1
2
0.000061 192.168.56.1 -> 192.168.56.2 TCP 60 6325 > telnet [ACK] Seq=1 Ack
=1 Win=65535 Len=0
3
0.024370 192.168.56.1 -> 192.168.56.2 TELNET 60 Telnet Data ...
4
0.024449 192.168.56.1 -> 192.168.56.2 TELNET 78 Telnet Data ...
5
0.025766 192.168.56.1 -> 192.168.56.2 TELNET 65 Telnet Data ...
6
0.035096 192.168.56.1 -> 192.168.56.2 TELNET 60 Telnet Data ...
7
0.047317 192.168.56.1 -> 192.168.56.2 TCP 60 6325 > telnet [ACK] Seq=42 Ac
k=434 Win=65102 Len=0
8
0.050994 192.168.56.1 -> 192.168.56.2 TCP 60 6325 > telnet [ACK] Seq=42 Ac
k=436 Win=65100 Len=0
9
0.052401 192.168.56.1 -> 192.168.56.2 TCP 60 6325 > telnet [ACK] Seq=42 Ac
k=438 Win=65098 Len=0
10
0.057736 192.168.56.1 -> 192.168.56.2 TCP 60 6325 > telnet [ACK] Seq=42 Ac
k=440 Win=65096 Len=0
10 packets captured
Packet file display configuration example
Network requirements
As shown in
Figure
24:
242
Need help?
Do you have a question about the FlexNetwork 5510 HI Series and is the answer not in the manual?