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

197
The natpt enable command enables both NAT-PT and Address Family Translation (AFT). For
information about AFT, see "Configuring AFT."
Do not configure NAT-PT mapping policies and AFT policies on the same device.
To enable NAT-PT:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter interface view.
interface interface-type interface-number N/A
3. Enable NAT-PT on the
interface.
natpt enable Disabled by default.
Configuring a NAT-PT prefix
Follow these guidelines when you configure a NAT-PT prefix:
The NAT-PT prefix must be different from the IPv6 address prefix of a local interface. Otherwise,
incoming packets matching the prefix get lost due to NAT-PT translation.
To delete a NAT-PT prefix that has been referenced by using the natpt v4bound dynamic or natpt
v6bound dynamic command, you must cancel the referenced configuration first.
To configure a NAT-PT prefix:
Ste
p
Command
1. Enter system view.
system-view
2. Configure a NAT-PT prefix.
natpt prefix natpt-prefix [ interface interface-type
interface-number [ nexthop ipv4-address ] ]
Configuring IPv4/IPv6 address mappings on the
IPv6 side
IPv4/IPv6 address mappings on the IPv6 side can be static or dynamic.
Configuring a static mapping on the IPv6 side
A static mapping on the IPv6 side shows the one-to-one correspondence between an IPv4 address and
an IPv6 address:
If the source IPv6 address in a packet sent from an IPv6 host to an IPv4 host matches the static
mapping, the source IPv6 address is translated into the corresponding IPv4 address.
If the destination IPv4 address in a packet sent from an IPv4 host to an IPv6 host matches the static
mapping, the destination IPv4 address is translated into the corresponding IPv6 address.
To configure a static IPv4/IPv6 address mapping on the IPv6 side: