HP VPN Firewall Appliances NAT and ALG Command Reference
29
Default command 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.
Views
System view
Default command level
2: System level
Examples
# Set the ToS field in an IPv4 packet translated from an IPv6 packet to 0.
<Sysname> system-view
[Sysname] natpt turn-off tos