R3303-HP HSR6800 Routers Layer 3 - IP Services Command Reference

Table Of Contents
277
Examples
# Configure a static mapping between 192.168.1.22 and 1::1.
<Sysname> system-view
[Sysname] aft static 192.168.1.22 1::1
Related commands
display aft all
aft v4tov6
Use aft v4tov6 to configure a 4to6 AFT policy.
Use undo aft v4tov6 to delete a specific AFT policy.
Syntax
aft v4tov6 acl number acl-number { prefix-dns64 dns64-prefix prefix-length | prefix-ivi ivi-prefix }
undo aft v4tov6 acl number acl-number
Views
System view
Default Level
2: System level
Parameters
acl number acl-number: Specifies an IPv4 ACL for matching IPv4 packets, in the range of 2000 to 3999.
prefix-dns64 dns64-prefix prefix-length: Specifies the DNS64 prefix, which is used to translate source
IPv4 addresses into IPv6 addresses for packets that match the specified ACL. The dns64-prefix argument
represents the DNS64 prefix, and the prefix-length argument represents the length of the prefix, which
can be 32, 40, 48, 56, 64, or 96 bits.
prefix-ivi ivi-prefix: Specifies the IVI prefix. If the destination IPv4 address of an IPv4-to-IPv6 packet
matches the specified ACL, the AFT translates the destination IPv4 address into an IPv6 address by using
the IVI prefix. The ivi-prefix argument represents the IVI prefix.
Usage guidelines
The DNS64 and IVI prefixes must be those configured through the aft prefix-dns64 and aft prefix-ivi
commands.
The ACL specified in the aft v4tov6 acl number prefix-ivi command must be configured to check the
destination addresses of packets.
Different AFT policies cannot reference the same ACL.
Examples
# Configure a 4to6 AFT policy so that: If a packet matches ACL 2000, translate the source IPv4 address
into an IPv6 address using the DNS64 prefix 2000::/32. If a packet matches ACL 3000, translate the
destination IPv4 address into an IPv6 address using the IVI prefix 3000::.
<Sysname> system-view
[Sysname] aft prefix-dns64 2000:: 32
[Sysname] aft prefix-ivi 3000::
[Sysname] aft v4tov6 acl number 2000 prefix-dns64 2000:: 32