F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices NAT and ALG Command Reference-6PW100
29
[Sysname] interface gigabitethernet 0/1
[Sysname-GigabitEthernet0/1] natpt enable
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: 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 may 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