Interface-based traffic policing implements unified interface-specific traffic control through CAR configuration.
The system view is displayed.
Perform either of the following operations to add the Layer 2 interface to one or more VLANs:
Before running this command, ensure that the specified VLAN has been created.
CAR is configured on the interface.
The cir and pir parameters are expressed in kbit/s, and the cbs and pbs parameters are expressed in bytes.
If the network traffic is complex, you must configure dual-token-bucket traffic policing. In this case, specify the cir, pir, cbs, and pbs parameters.
The configuration is committed.
After completing the configuration, perform the following operations to check the configurations:
Run the display interface [ interface-type [ interface-number ] ] command to check the traffic information about an interface.
Run the display car statistics interface interface-type interface-number { inbound | outbound } command to check the CAR statistics about a Layer 3 interface in a specified direction.
Run the display car statistics interface interface-type interface-number vlan vlan-id { inbound | outbound } command to check the CAR statistics about a Layer 2 interface in a specified direction.