Method used to set the NAT64 prefix on the USG6000 series

The USG6000 series determine the implementation of NAT64 processing on an IPv6 packet by checking whether the destination address of the IPv6 packet contains the NAT64 prefix. The NAT64 prefix is classified into the following types:

Well-known prefix: 64:FF9B::/96

User-defined prefix: The prefix can contain 32, 40, 48, 56, 64, or 96 bits.

The position where an IPv4 address is embedded in an IPv6 address varies depending on prefix lengths. The rules are as follows:
When the prefix has 32 bits, the IPv4 address is embedded in bits 32-63 in the IPv6 address.
When the prefix has 40 bits, 24 bits of the IPv4 address are embedded in bits 40-63 in the IPv6 address, and the remaining 8 bits of the IPv4 address are embedded in bits 72-79 in the IPv6 address.
When the prefix has 48 bits, 16 bits of the IPv4 address are embedded in bits 48-63 in the IPv6 address, and the remaining 16 bits of the IPv4 address are embedded in bits 72-87 in the IPv6 address.
When the prefix has 56 bits, 8 bits of the IPv4 address are embedded in bits 56-63 in the IPv6 address, and the remaining 24 bits of the IPv4 address are embedded in bits 72-95 in the IPv6 address.
When the prefix has 64 bits, the IPv4 address is embedded in bits 72-103 in the IPv6 address.
When the prefix has 96 bits, the IPv4 address is embedded in bits 96-127 in the IPv6 address.
Taking IPv4 address 192.168.0.1 and NAT prefix 3000::/64 as an example, the IPv6 address corresponding to this IPv4 is 3000:0000:0000:0000:00C0:A800:0100:0000, that is, 3000::C0:A800:100:0.

Configure the NAT64 prefix as follows:
1. In the user view, run the system-view command to enter the system view.
2. Run the nat64 prefix prefix prefix-length command to configure the NAT64 prefix.

Scroll to top