R3303-HP 6600/HSR6600 Routers Layer 3 - IP Services Configuration Guide

218
On Host A, specify the IPv6 address 2000:0:303:305:: of the DNS server (which is translated from
IPv4 address 3.3.3.5 by using the DNS64 prefix).
Configuration procedure
1. Configure Router B (the AFT):
# Enable IPv6.
<RouterB> system-view
[RouterB] ipv6
# Configure IP addresses for the interfaces GigabitEthernet 3/0/1, GigabitEthernet 3/0/2, and
GigabitEthernet 3/0/3, and enable AFT on the interfaces.
[RouterB] interface gigabitethernet 3/0/1
[RouterB-GigabitEthernet3/0/1] ipv6 address 6::1/64
[RouterB-GigabitEthernet3/0/1] aft enable
[RouterB-GigabitEthernet3/0/1] quit
[RouterB] interface gigabitethernet 3/0/2
[RouterB-GigabitEthernet3/0/2] ip address 4.4.4.1 24
[RouterB-GigabitEthernet3/0/2] aft enable
[RouterB-GigabitEthernet3/0/2] quit
[RouterB] interface gigabitethernet 3/0/3
[RouterB-GigabitEthernet3/0/3] ip address 3.3.3.1 24
[RouterB-GigabitEthernet3/0/3] aft enable
[RouterB-GigabitEthernet3/0/3] quit
# Configure the DNS64 prefix.
[RouterB] aft prefix-dns64 2000:: 32
# Configure an AFT address pool.
[RouterB] aft address-group 1 6.6.6.10 6.6.6.20
# Configure a 6to4 AFT policy so that if the prefix of the destination address of a packet is the
DNS64 prefix (2000::/32), the source address is translated into an IPv4 address in address pool
1 and the port number is also translated.
[RouterB] aft 6to4 prefix-dns64 2000:: 32 address-group 1
# Create ACL 2000 to permit packets from network 4.4.4.0/24 where Host C resides (this step is
optional).
[RouterB] acl number 2000
[RouterB-acl-basic-2000] rule permit source 4.4.4.0 0.0.0.255
[RouterB-acl-basic-2000] quit
# Configure a 4to6 AFT policy for source address translation so that if the resolved IPv4 address
is in network 4.4.4.0/24, the address is translated into an IPv6 address by using DNS64 prefix
2000::/32 (this step is optional).
[RouterB] aft 4to6 acl number 2000 prefix-dns64 2000:: 32
NOTE:
It is optional to configure the 4to6 AFT policy for source address translation. If the policy is not
configured, AFT uses the first configured DNS64 prefix to translate the resolved IPv4 address into an
IPv6 address.
2. Configure Host A:
Perform the following configurations on Host A. (Details not shown.)