The limit-log-interval command configures the interval for displaying logs when the number of routes exceeds the threshold.
The undo limit-log-interval command restores the default setting.
By default, the interval for displaying logs when the number of routes exceeds the threshold is 5 seconds.
Parameter | Description | Value |
---|---|---|
interval | Specifies the interval for displaying logs when the number of routes exceeds the threshold. | An integer ranging from 1 to 60, in seconds. |
VPN instance view, VPN instance IPv4 address family view or VPN instance IPv6 address family view
Usage Scenario
If the routes or prefixes in the IPv4 or IPv6 address family of a VPN instance reach the maximum, the system will generate logs at intervals (defaulting to 5 seconds). To prevent logs from being displayed frequently, run the limit-log-interval command to prolong the interval of log generation.
The maximum number of routes or prefixes that the IPv4 or IPv6 address family of a VPN instance supports can be configured using the routing-table limit or prefix limit command.
Prerequisites
Precautions
If a log is generated to record the event that routes or prefixes in the IPv4 or IPv6 address family of a VPN instance reach the maximum, no more routes can be added to the routing table of the IPv4 or IPv6 address family of the VPN instance. Instead, the routes will be discarded.
# Set the interval for displaying logs to 8 seconds when the number of routes in the IPv4 address family of the VPN instance named vpn1 exceeds the threshold.
<HUAWEI> system-view [HUAWEI] ip vpn-instance vpn1 [HUAWEI-vpn-instance-vpn1] ipv4-family [HUAWEI-vpn-instance-vpn1-af-ipv4] route-distinguisher 100:1 [HUAWEI-vpn-instance-vpn1-af-ipv4] limit-log-interval 8