nat64 session aging-time

Function

The nat64 session aging-time command sets the aging time for a specific or multiple types of NAT64 sessions.

The undo nat64 session aging-time command restores the default aging time for a specific or multiple types of NAT64 sessions.

The default aging time for a specific or multiple types of NAT64 sessions is the default aging time.

This command is supported only on the NetEngine 8000 F1A.

Format

nat64 session aging-time { tcp | udp | icmp | fragment | fin-rst | syn | ftp | rtsp | sip | pptp } aging-time

undo nat64 session aging-time { tcp | udp | icmp | fragment | fin-rst | syn | ftp | rtsp | sip | pptp } [ aging-time ]

Parameters

Parameter Description Value
tcp

Indicates TCP sessions.

-

udp

Indicates UDP sessions.

-

icmp

Indicates ICMP sessions.

-

fragment

Specifies the session table of the fragment type.

-

fin-rst

Indicates TCP FIN/RST sessions.

-

syn

Indicates SYN sessions.

-

ftp

Indicates FTP sessions.

-

rtsp

Indicates RSTP sessions.

-

sip

Indicates SIP sessions.

-

pptp

Indicates PPTP sessions.

-

aging-time

Specifies an aging time.

  • For Fragment sessions, the value ranges from 40 to 4000, in milliseconds.
  • For other types of sessions, the value is an integer ranging from 1 to 40000, in seconds.

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 aging time for a specific or multiple types of NAT sessions, run the nat session aging-time command. The aging time of NAT session entries of different protocols can be set, so that expired NAT session entries age as soon as possible, and system resources can be released.

  • The default aging time of TCP is 240s
  • The default aging time of UDP is 240s
  • The default aging time of ICMP is 20s
  • The default aging time of RTSP is 240s
  • The default aging time of fragment is 5000ms
  • The default aging time of fin-rst is 5s
  • The default aging time of syn is 5s
  • The default aging time of FTP is 600s
  • The default aging time of SIP is 800s
  • The default aging time of PPTP is 180s

Configuration Impact

After an aging time is set for a specified type of NAT session entry, the session entries age after the configured aging time elapses. The changed aging time does not take effect for the generated NAT64 session entries.

Precautions

If an aging time is set in a NAT64 instance, the aging time takes effect on sessions established in the instance. If no aging time is set in a NAT64 instance, the global aging time takes effect on sessions established in the instance.

Example

# Set the aging time for TCP NAT64 session entries to 420 seconds in the NAT64 instance nat1.
<HUAWEI> system-view
[~HUAWEI] nat64 instance nat1 id 1
[*HUAWEI-nat64-instance-nat1] nat64 session aging-time tcp 420
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >