Figure 2-3 Networking diagram of interface-based traffic policing
Core network
GE 1/0/1
GE 2/0/1
Switch
Router
GE 1/0/2
branch 1 of the
enterprise
branch 2 of the
enterprise
Configuration Roadmap
The configuration roadmap is as follows:
1. Configure each interface of the Switch so that users can access the network.
2. Create CAR profiles and set the CIR and PIR values.
3. Apply CAR profiles on GE 1/0/1 and GE 1/0/2 of the Switch in the inbound direction.
Data Preparation
To complete the configuration, you need the following data:
l IP address of the upstream interface on the Switch being 192.168.1.1/24
l VLANs 100 and 200 that branch 1 and branch 2 of the enterprise belong to
l CIR value 8000 kbit/s and PIR value 10000 kbit/s of branch 1, and CIR value 5000 kbit/s
and PIR value 8000 kbit/s of branch 2
Procedure
Step 1 Create VLANs and configure each interface of the Switch.
# Create VLANs 100, 200, and 300, and add GE 1/0/1, GE 1/0/2, and GE 1/0/1 to VLANs 100,
200, and 300.
<Quidway> system-view
[Quidway] sysname Switch
[Switch] vlan batch 100 200 300
# Configure the type of GE 1/0/1, GE 1/0/2, and GE 2/0/1 as trunk and permit packets from
VLANs 100, 200, and 300 to pass through.
Quidway S7700 Smart Routing Switch
Configuration Guide - QoS 2 Traffic Policing and Traffic Shaping Configuration
Issue 01 (2011-07-15) Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
65