< Home

nat64 static

Function

The nat64 static command configures the static NAT64 mapping of the specified IPv6 address.

The undo nat64 static command deletes the static mapping of the specified IPv6 addresses.

Format

nat64 static [ protocol icmp ] ipv6-address ipv4-address [urn-route ]

nat64 static protocol{ tcp | udp } ipv6-address [ ipv6-port ] ipv4-address [ ipv4-port ] [urn-route ]

undo nat64 static [ protocol icmp ] ipv6-address ipv4-address [urn-route ]

undo nat64 static protocol { tcp | udp } ipv6-address [ ipv6-port ] ipv4-address [ ipv4-port ] [urn-route ]

undo nat64 static all

Parameters

Parameter Description Value
protocol { icmp tcp | udp } Indicates a protocol type. -
ipv6-address Indicates an IPv6 address. -
ipv6-port Indicates the IPv6 port. The value is an integer ranging from 1 to 65535.
ipv4-address Indicates an IPv6 address. -
ipv4-port Indicates the IPv4 port. The value is an integer ranging from 1 to 65535.
unr-route

Delivers the UNR route to prevent routing loops.

By default, no UNRs are delivered.

If ipv6-address is the IP address of an interface connecting to an IPv6 network, UNRs are not required.
all Indicates all NAT64 static mapping. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

When an IPv6 packet is transmitted to the IPv4 network, the source IP address is translated according to the static mapping configuration. This configuration can also be adopted to translate the destination IP address of IPv4 packets sent to the IPv6 network.

When the undo nat64 static command is executed, some sessions may still use mapping until they time out. It is recommended to delete the static mapping on the IPv6 side as well as related sessions simultaneously generated by NAT46.

Example

# Set mapping from the IPv6 address and port (2001::1, 2000) to the IPv4 address and port (2.3.4.5, 3000).

<sysname> system-view
[sysname] nat64 static protocol tcp 2001::1 2000 2.3.4.5 3000
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >