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

Table Of Contents
263
natpt prefix
Use natpt prefix to configure a NAT-PT prefix.
Use undo natpt prefix to remove the configured NAT-PT prefix.
Syntax
natpt prefix natpt-prefix [ interface interface-type interface-number [ nexthop ipv4-address ] ]
undo natpt prefix natpt-prefix
Views
System view
Default Level
2: System level
Parameters
natpt-prefix: Specifies the prefix of an IPv6 address, 96 bits in length.
interface interface-type interface-number: Specifies an interface by its type and number. If the specified
interface exists and is enabled with NAT-PT, the matching packets are translated. If the specified interface
does not exist or is not enabled with NAT-PT, the matching packets are discarded.
nexthop ipv4-address: This option does not take effect.
Usage guidelines
A NAT-PT prefix must be different from the IPv6 address prefix of the receiving interface on the NAT-PT
device. Otherwise, NAT-PT translation for a received packet with the prefix results in packet loss.
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 reference configuration first.
The execution of the undo natpt prefix command might affect the translation of some mappings.
Therefore, use this command with caution.
Examples
# Configure a NAT-PT prefix.
<Sysname> system-view
[Sysname] natpt prefix 2001::
natpt turn-off tos
Use natpt turn-off tos to set the ToS field in an IPv4 packet translated from an IPv6 packet to 0.
Use undo natpt turn-off tos to restore the default.
Syntax
natpt turn-off tos
undo natpt turn-off tos
Default
The value of the ToS field in an IPv4 packet translated from an IPv6 packet is the same as that of the Traffic
Class field in the IPv6 packet.