nat alarm port-number user enable

Function

The nat alarm port-number user enable command enables the log and trap functions for the port usage of NAT users.

The undo nat alarm port-number user enable command restores the default configuration.

By default, the log and trap functions for the port usage of NAT users are disabled.

This command is supported only on the NetEngine 8000 F1A.

Format

nat alarm port-number { log | trap } user enable

undo nat alarm port-number { log | trap } user enable

Parameters

Parameter Description Value
log

Enables or disables the log alarm function for NAT user port usage.

-

trap

Enables or disables the alarm function for the port usage of NAT users.

-

Views

NAT instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

To monitor the port usage of NAT users, run the nat alarm port-number enable command to enable the log and trap functions for the port usage of NAT users.

Precautions

This command can only be used with the static source tracing algorithm in the on-board NAT scenario.

Example

# Enable the log function for the port usage of NAT users.
<HUAWEI> system-view
[~HUAWEI] nat instance cpe1 id 1
[*HUAWEI-nat-instance-cpe1] nat alarm port-number log user enable
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >