< Home

Configuring Static NAT64 Mapping

Static NAT64 mapping enables the IP address and port translation of UDP, TCP, and ICMP segments. It applies to the scenario where IPv4 hosts access the IPv6 network.

Prerequisites

Before you configure static NAT64 mapping, ensure that the device supports the IPv6/IPv4 dual stack and is configured as follows:

  • IPv6 or IPv4 addresses are specified for interfaces, and the interfaces are Up.
  • The routes between the IPv4 address specified for the interface and the destination IPv6 address are reachable.
  • IPv6 is enabled globally.

Context

Static NAT64 mapping enables the translation in any of the three modes:

  • Translation for specified IPv6 addresses
  • Translation for the specified IPv6 addresses of ICMP
  • Translation for the specified transport addresses of TCP or UDP

Procedure

  1. Access the system view.

    system-view

  2. Access the interface view.

    interface interface-type { interface-number | interface-number.subinterface-number }

    The interface in this command is the interface that connects the FW to the IPv6 network.

  3. Enable the NAT64 function on the interface.

    nat64 enable

  4. Return to the system view.

    quit

  5. Configure static NAT64 mapping by choosing one of the three modes:

    • Configure the static NAT64 mapping for the specified IPv6 address.

      nat64 static ipv6-address ipv4-address [ unr-route ]

    • Configure the static NAT64 mapping for ICMP.

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

    • Configure the static NAT64 mapping for TCP or UDP.

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

Example

# Configure a static NAT64 mapping to translate IPv4 destination address 10.1.1.1 into IPv6 destination address 2001::1.

<FW> system-view
[FW] nat64 prefix 3001:: 96
[FW] nat64 static 2001::1 10.1.1.1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic