reset nat session table

Function

The reset nat session table command deletes information about NAT session entries.

This command is supported only on the NetEngine 8000 F1A.

Format

reset nat session table [ source { inside inside-address | global global-address | ipv6 ipv6-address } | destination { inside inside-address | global global-address | ipv6 ipv6-address } | slot slot-id | source-vpn-instance vpn-instance-name | destination-vpn-instance vpn-instance-name | protocol { protocol-number | tcp | udp | icmp | esp | gre | sctp | udplite } | destination-port port-number | source-port-global source-port-global-number | cpe cpe-address [ prefix-length prefix-length ] | { nat-instance instance-name | nat64-instance nat64-instance-name } | long-link ] *

Parameters

Parameter Description Value
source

Source IP address.

-

inside inside-address

Deletes NAT session entry information with a specified private IP address.

The value is in dotted decimal notation.

global global-address

Deletes NAT session entry information with a specified public IP address.

The value is in dotted decimal notation.

destination

Destination IP address.

-

slot slot-id

Specifies the slot ID of a service board.

The value is an integer that ranges from 0 to 16.

source-vpn-instance vpn-instance-name

Deletes NAT session entry information with a specified source VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

destination-vpn-instance vpn-instance-name

Deletes NAT session entry information with a specified destination VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

destination-port port-number

Deletes NAT session entry information with a specified destination port number.

The value is an integer ranging from 0 to 65535.

source-port-global source-port-global-number

Deletes NAT session entry information with a specified public source port number.

The value is an integer ranging from 0 to 65535.

nat-instance instance-name

Deletes NAT session entry information with a specified NAT instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

protocol protocol-number

Deletes NAT session entry information on a specified protocol type.

The value is an integer ranging from 0 to 255.

tcp

Transmission Control Protocol.

-

udp

User Datagram Protocol.

-

icmp

Internet Control Message Protocol.

-

esp

Encapsulating Security Payload.

-

gre

Generic Routing Encapsulation.

-

sctp

Stream Control Transmission Protocol.

-

udplite

Lightweight User Datagram Protocol.

-

long-link

Deletes NAT session entry information with the TCP long-link type. This parameter can only be configured for NAT instances.

-

ipv6 ipv6-address

Deletes NAT session entry information with a specified public IPv6 address.

The value is a 32-bit hexadecimal number in the format of X:X::X:X.

cpe cpe-address

Deletes session entry information with a specified IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

prefix-length prefix-length

Deletes session entry information with a specified IPv6 prefix.

The value is an integer that ranges from 1 to 128.

nat64-instance nat64-instance-name

Deletes NAT64 session entry information with a specified NAT64 instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
nat read

Usage Guidelines

Usage Scenario

To delete unnecessary NAT session entries, run the reset nat session table command. This allows new NAT session entries to be created for fault location and rectification.

Configuration Impact

After the reset nat session table command is run, NAT session entries are deleted from the NAT session table based on the IP address, port number, or protocol types.

Example

# Delete all NAT session entries on a service board.
<HUAWEI> reset nat session table
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >