< Home

ip prefix-limit log-interval

Function

The ip prefix-limit log-interval command configures an interval at which logs are generated after the number of IPv4 public route prefixes exceeds the limit.

The undo ip prefix-limit log-interval command restores the default configuration.

By default, the system generates logs at an interval of 5s after the number of IPv4 public route prefixes exceeds the limit.

Format

ip prefix-limit log-interval interval

undo ip prefix-limit log-interval

Parameters

Parameter Description Value
interval Specifies an interval at which logs are generated after the number of IPv4 public route prefixes exceeds the limit. The value is an integer ranging from 1 to 60, in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The system generates logs at an interval of 5s after the number of IPv4 public route prefixes exceeds the limit. You can run the ip prefix-limit log-interval command to set a larger value for the interval to decrease the frequency at which these logs are generated.

The maximum number of IPv4 public route prefixes supported by the routing table can be adjusted using the ip prefix-limit command.

Precautions

If a log is generated to record the event that the number of IPv4 public route prefixes reaches the limit, no more routes can be added to the routing table, and subsequent routes are discarded.

Example

# Set the interval at which logs are generated after the number of IPv4 public route prefixes exceeds the limit to 30s.

<HUAWEI> system-view
[HUAWEI] ip prefix-limit log-interval 30
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >