R2511-HP MSR Router Series Layer 3 - IP Services Configuration Guide(V5)
144
CAUTION:
Fast forwarding invalidates NAT-PT. Therefore, before you enable NAT-PT, disable IPv4 or IPv6 fast
forwarding by using undo ip fast-forwarding or undo ipv6 fast-forwarding in interface view, or clear
existing fast-forwarding entries by using reset ip fast-forwarding cache or reset ipv6 fast-forwarding
cache in user view.
Enabling NAT-PT
After NAT-PT is enabled on both the IPv4 network interface and the IPv6 network interface, the device
can implement translation between IPv4 and IPv6 addresses.
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:










