The FW determines whether to perform the NAT64 function on an IPv6 packet by checking whether the IPv6 packet contains the NAT64 prefix.
NAT64 prefixes are classified into the following types:
Well-known prefix
64:FF9B::/96, which exists by default.
Pre-defined prefix
The prefix with the length 32, 40, 48, 56, 64 or 96.
Where an IPv4 address is embedded in an IPv6 address depends on the length of the NAT64 prefix, as shown in Figure 1. In a NAT64 prefix, PL indicates the length of the prefix, suffix can be a random value (the FW does not process this field), and U is the reserved octet of which the value must be set to 0.
If an IPv4 address is 192.168.0.1 and the NAT prefix is 3000::/64, then the IPv6 address mapped to the IPv4 address is 3000:0000:0000:0000:00C0:A800:0100:0000, which can be abbreviated to 3000::C0:A800:100:0.
When you configure the DNS64 device, ensure that the DNS64 device and the FW has the same content and length of the NAT64 prefix.