R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

219
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 confi
g
ured,
A
FT uses the first confi
g
ured 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.)
{ Configure IPv6 address 6::2/64.
{ Configure a static route to network 2000::/32 (the DNS64 prefix) and the next hop address
6::1.