434
For IPv4-initiated communication
Task at a glance
(Required.) Enabling AFT
(Required.) Configuring an IPv4-to-IPv6 destination address translation policy
(Required.) Configuring an IPv4-to-IPv6 source address translation policy
(Optional.) Configuring AFT logging
(Optional.) Setting the Traffic Class field to 0 for translated IPv6 packets
Enabling AFT
To implement address translation between IPv4 and IPv6 networks, you must enable AFT on
interfaces connected to the IPv4 network and interfaces connected the IPv6 network.
To enable AFT:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Enter interface view.
interface
interface-type
interface-number
N/A
3. Enable AFT.
aft enable
By default, AFT is disabled.
Configuring an IPv6-to-IPv4 destination address
translation policy
AFT compares an IPv6 packet with IPv6-to-IPv4 destination address translation policies in the
following order:
1. IPv4-to-IPv6 source address static mappings.
2. NAT64 prefixes.
To configure an IPv6-to-IPv4 destination address translation policy:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Configure an
IPv6-to-IPv4 destination
address translation policy.
• Configure an IPv4-to-IPv6 source
address static mapping:
aft v4tov6 source ipv4-address
[ vpn-instance
vpn-instance-name4 ] ipv6-address
[ vpn-instance
vpn-instance-name6 ]
• Configure a NAT64 prefix:
aft prefix-nat64 prefix-nat64
prefix-length
By default, no IPv6-to-IPv4
destination address translation
policy exists.