< Home

car cpu-port (upgrade-compatible command)

Function

The car cpu-port command configures the CIR of all the packets to be sent to the CPU.

By default, the CIR value of all the packets to be sent to the CPU is 1024 kbit/s on the device.

Format

car cpu-port cir cir-rate

Parameters

Parameter

Description

Value

cir cir-rate

Sets the CIR of all the packets to be sent to the CPU.

The value is an integer that ranges from 64 to 2048, in kbit/s.

Views

Attack defense policy view

Default Level

2: Configuration level

Usage Guidelines

The car cpu-port command limits the total rate of all protocol packets sent to the CPU. The car packet-type command limits the rate of packets of a specified protocol. However, the total CIR of packets of specified protocols cannot exceed the CIR of all the packets sent to the CPU.

When the CIR is exceeded, excess packets including unicast, multicast, and broadcast packets are not sent to the CPU. In addition, the unicast packets are discarded directly.

Example

# Set the CIR of all the packets to be sent to the CPU to 512 kbit/s on the device.

<HUAWEI> system-view
[HUAWEI] cpu-defend policy test
[HUAWEI-cpu-defend-policy-test] car cpu-port cir 512
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >