This section describes how to configure the CAR. Traffic policing prevents packets to be sent to the CPU from causing higher CPU usage to affect normal services.
Procedure
- Run system-view
The system view is displayed.
- Run cpu-defend policy policy-number
The attack defense policy view is displayed.
- Run car { protocol-name | index index | whitelist [ bgp | ldp | ospf | radius | rsvp | isis ] | whitelist-v6 [ bgpv6 | ospfv3 ] | blacklist | tcpsyn | fragment | user-defined-flow flow-id } { cir cir-value | cbs cbs-value | min-packet-length min-packet-length-value } *
The packet CAR is set.
- Run car total-packet { high | low | middle | total-packet-rate }
The rate of sending packets to the CPU is set.
- Run commit
The configuration is committed.