Parameter
Description
Example
natpt prefix
Syntax
View
Parameter
Description
Example
max-number: Maximum number of sessions, in the range of 0 to 2,048.
Use the
natpt max-session
sessions.
Use the
undo natpt max-session
number of NAT-PT sessions.
By default, the maximum number of NAT-PT sessions is 2,048.
# Configure the system to allow 300 concurrent NAT-PT sessions.
<Sysname> system-view
[Sysname] natpt max-session 300
natpt prefix natpt-prefix [ interface interface-type interface-number [ nexthop
ipv4-address ] ]
undo natpt prefix natpt-prefix
System view
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.
Use the
natpt prefix
Use the
undo natpt 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.
# Configure a NAT-PT prefix.
<Sysname> system-view
[Sysname] natpt prefix 2001::
command to set the maximum number of NAT-PT
command to restore the default maximum
command to configure the NAT-PT prefix.
command to remove the configured NAT-PT prefix.
871