nat64 session-limit

Function

The nat64 session-limit command sets the maximum number of NAT64 sessions that can be established.

The undo nat64 session-limit command restores the default configuration.

By default, The NAT64 session number limit function is enabled. The maximum number of user-to-network NAT64 sessions for each user of a specific or all three protocols is as follows:
  • TCP or UDP: 10240
  • ICMP: 512
  • TCP, UDP, and ICMP: 8192

This command is supported only on the NetEngine 8000 F1A.

Format

nat64 session-limit { icmp | tcp | udp | total } session-number

undo nat64 session-limit { icmp | tcp | udp | total } [ session-number ]

Parameters

Parameter Description Value
icmp

Configures a limit on the number of ICMP NAT64 sessions.

-

tcp

Configures a limit on the number of TCP NAT64 sessions.

-

udp

Configures a limit on the number of UDP NAT64 sessions.

-

total

Configures a limit on the number of NAT64 sessions for all application layer protocols.

-

session-number

Sets the maximum number of NAT64 sessions that can be established.

The value is an integer ranging from 50 to 65535.

Views

NAT64 instance view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
nat write

Usage Guidelines

Usage Scenario

To set the maximum number of user-based NAT sessions that can be established, run the nat64 session-limit command in the NAT64 instance view.

Prerequisites

The limitation on the number of user-specific NAT64 sessions has been enabled using the nat64 session-limit enable command.

Configuration Impact

When the number of NAT64 sessions of a user reaches the upper limit, additional NAT64 sessions cannot be established. After existing NAT64 sessions age and the number of established sessions falls below the upper limit, new sessions can be established for the user.

Example

# Set the limit on the number of NAT64 sessions for all application layer protocols to 20000 in aNAT64 instance named nat1.
<HUAWEI> system-view
[~HUAWEI] nat64 instance nat1 id 1
[*HUAWEI-nat64-instance-nat1] nat64 session-limit total 20000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >