< Home

nat discard logging interval

Function

The nat discard logging interval command sets the interval for sampling logs.

The undo nat discard logging interval command restores the interval for sampling logs to the default period of 120 seconds.

Format

nat discard logging interval time-interval

undo nat discard logging interval

Parameters

Parameter Description Value
time-interval Specifies the log sampling interval. The value is an integer ranging from 30 to 1800, default value is 120 , in seconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After the nat discard logging enable command is configured, the system samples conflict information over the NAT64, NAT444, and DS-Lite ports and UNR configurations in source NAT and NAT server modes based on the specified sampling interval and generates logs.

Example

# Set the log sampling interval to 50 seconds.

<sysname> system-view
[sysname] nat discard logging interval 50
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >