For IPv4-initiated communication
Task at a glance
(Required.)
(Required.)
(Required.)
(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
1.
Enter system view.
2.
Enter interface view.
3.
Enable AFT.
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
1.
Enter system view.
2.
Configure an
IPv6-to-IPv4 destination
address translation policy.
Enabling AFT
Configuring an IPv4-to-IPv6 destination address translation policy
Configuring an IPv4-to-IPv6 source address translation policy
Command
system-view
interface interface-type
interface-number
aft enable
Command
system-view
•
•
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
434
Remarks
N/A
N/A
By default, AFT is disabled.
Remarks
N/A
By default, no IPv6-to-IPv4
destination address translation
policy exists.