![](https://pdfstore-manualsonline.prod.a.ki/pdfasset/1/8b/18b1e1e7-4363-4706-bb94-6eba3a993996/18b1e1e7-4363-4706-bb94-6eba3a993996-bg367.png)
871
Parameter max-number: Maximum number of sessions, in the range of 0 to 2,048.
Description Use the
natpt max-session command to set the maximum number of NAT-PT
sessions.
Use the
undo natpt max-session command to restore the default maximum
number of NAT-PT sessions.
By default, the maximum number of NAT-PT sessions is 2,048.
Example # Configure the system to allow 300 concurrent NAT-PT sessions.
<Sysname> system-view
[Sysname] natpt max-session 300
natpt prefix
Syntax natpt prefix natpt-prefix [ interface interface-type interface-number [ nexthop
ipv4-address ]]
undo natpt prefix natpt-prefix
View System view
Parameter natpt-prefix: Prefix of an IPv6 address, 96 bits in length.
interface-type interface-number: Interface from which an IPv6 packet is forwarded
if the prefix of the destination address of the packet complies with the format of
the natpt-prefix argument during a dynamic mapping on the IPv6 network side.
ipv4-address: IPv4 address of the specified next hop to which an IPv6 packet is
forwarded if the prefix of the destination address of the packet complies with the
format natpt-prefix for a dynamic IPv6-to-IPv4 mapping.
Description Use the
natpt prefix command to configure the NAT-PT prefix.
Use the
undo natpt prefix command to remove the configured NAT-PT prefix.
Note that:
■ A NAT-PT prefix must be different from an IPv6 address prefix of an interface on
the NAT-PT device. Otherwise, the NAT-PT device will implement a NAT-PT after
receiving such a packet from an IPv6 node, resulting in packet loss.
■ The execution of the undo natpt prefix command may affect the translation
of some dynamic mappings. Therefore, be careful with this command.
Example # Configure a NAT-PT prefix.
<Sysname> system-view
[Sysname] natpt prefix 2001::