nat64 log send-mode

Function

The nat64 log send-mode command configures the mode of sending NAT64 logs.

The undo nat64 log send-mode command restores the default configuration.

By default, logs are sent when a NAT64 session is created and when a NAT64 session ages out.

This command is supported only on the NetEngine 8000 F1A.

Format

nat64 log send-mode { session-start-only | session-end-only }

undo nat64 log send-mode { session-start-only | session-end-only }

Parameters

Parameter Description Value
session-start-only

Indicates that logs are sent only when a NAT64 session is created.

-

session-end-only

Indicates that logs are sent only when a NAT64 session ages out.

-

Views

NAT64 instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

By default, logs are sent when a NAT64 session is created and when a NAT64 session ages out. To allow logs to be sent only when a NAT64 session is created or ages out so that the number of NAT64 logs is reduced, run the nat64 log send-mode command.

Precaution

This command takes effect only after the NAT64 log function is enabled on a NAT64 instance.

If the session-start-only parameter is specified, logs are sent only when a NAT64 session is created. In this case, the NAT64 session aging time cannot be specified after a NAT64 session ages out.

If the session-end-only parameter is specified, logs are sent only when a NAT64 session ages out. In this case, information about the NAT64 session is not displayed on the log server before the NAT64 session ages out. If the NAT64 session keeps not aging out (traffic always exists), information about the NAT64 session will never be displayed on the log server. If the board is reset, log tracing fails.

Precautions

This command takes effect only after the NAT64 log function is enabled on a NAT64 instance.

If the session-start-only parameter is specified, logs are sent only when a NAT64 session is created. In this case, the NAT64 session aging time cannot be specified after a NAT64 session ages out.

If the session-end-only parameter is specified, logs are sent only when a NAT64 session ages out. In this case, information about the NAT64 session is not displayed on the log server before the NAT64 session ages out. If the NAT64 session keeps not aging out (traffic always exists), information about the NAT64 session will never be displayed on the log server. If the board is reset, log tracing fails.

Example

# Configure NAT64 logs to be sent only when a NAT64 session is created.
<HUAWEI> system-view
[~HUAWEI] nat64 instance nat64 id 1
[*HUAWEI-nat64-instance-nat64] nat64 log send-mode session-start-only
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >