435
Configuring an IPv6-to-IPv4 source address
translation policy
AFT compares an IPv6 packet with IPv6-to-IPv4 source address translation policies in the following
order:
1. IPv6-to-IPv4 source address static mappings.
2. IVI prefixes.
3. IPv6-to-IPv4 source address dynamic translation policies.
To configure an IPv6-to-IPv4 source address translation policy:
Step Command Remarks
1. Enter system view.
system-view
N/A
2. Create an AFT address
group and enter AFT
address group view.
aft address-group
group-number
By default, no AFT address
group exists.
This step is required if you
decide to use an address
group in an IPv6-to-IPv4
source address dynamic
translation policy.
3. Add an address range to
the address group.
address
start-address end-address
By default, no address range
exists.
You can add multiple address
ranges to an address group.
The address ranges must not
overlap.
4. Return to system view.
quit
N/A
5. Configure an
IPv6-to-IPv4 source
address translation policy.
• Configure an IPv6-to-IPv4 source
address static mapping:
aft v6tov4 source ipv6-address
[ vpn-instance
vpn-instance-name6 ] ipv4-address
[ vpn-instance
vpn-instance-name4 ]
• Configure an IPv6-to-IPv4 source
address dynamic translation policy:
aft v6tov4 source { acl ipv6
{ number acl6-number | name
acl6-name } | prefix-nat64
prefix-nat64 prefix-length
[ vpn-instance
vpn-instance-name6 ] }
{ address-group group-number
[ no-pat | port-block-size
blocksize ] | interface
interface-type interface-number }
[ vpn-instance
vpn-instance-name4 ]
• Configure an IVI prefix:
aft prefix-ivi prefix-ivi
By default, no IPv6-to-IPv4
source address translation
policy exists.