#
return
1.7.4 Example for Configuring Traffic Statistics Based on Complex
Traffic Classification
After traffic statistics based on complex traffic classification is configured, the S3700 collect
traffic statistics on packets with the specified source MAC address.
Networking Requirements
, PC1 with the MAC address of 0000-0000-0003 is connected to other
devices through Eth0/0/1 on the Switch. The Switch is required to collect the statistics on the
packets with the source MAC address of 0000-0000-0003.
Figure 1-4
Networking diagram for configuring traffic statistics based on complex traffic
classification
Core
Network
Switch
PC1
Router
MAC:0000-0000-0003
Eth0/0/1
GE0/0/2
VLANIF 20
20.20.20.1/24
20.20.20.2/24
Configuration Roadmap
The configuration roadmap is as follows:
1.
Configure interfaces so that the Switch is connected to PC1 and the router.
2.
Create an ACL to match the packets with the source MAC address as 0000-0000-0003.
3.
Create a traffic classifier to match the ACL.
4.
Create a traffic behavior to take the statistics on the matching packets.
5.
Create a traffic policy, bind the traffic classifier to the traffic behavior in the traffic policy,
and apply the traffic policy to Eth0/0/1 in the inbound direction.
Data Preparation
To complete the configuration, you need the following data:
l
VLAN 20
l
ACL 4000
l
Traffic classifier
c1
l
Traffic behavior
b1
l
Traffic policy
p1
Procedure
Step 1
Create a VLAN and configure interfaces.
S3700HI Ethernet Switches
Configuration Guide - QoS
1 Class-based QoS Configuration
Issue 01 (2012-03-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
49