R3721-F3210-F3171-HP High-End Firewalls NAT and ALG Command Reference-6PW101
28
Default level
2: System level
Parameters
protocol protocol-type: Specifies the protocol type. The protocol-type argument can be:
• tcp: Specifies the TCP protocol.
• udp: Specifies the UDP protocol.
ipv4-address-destination: IPv4 address to which an IPv6 address is mapped.
ipv4-port-number: IPv4 port number, in the range of 1 to 12287.
ipv6-address-destination: Destination IPv6 address to be mapped.
ipv6-port-number: IPv6 port number, in the range of 1 to 12287.
Description
Use natpt v4bound static v6server to configure a static NAPT-PT mapping for an IPv6 server.
Use undo natpt v4bound static v6server to remove a static NAPT-PT mapping for an IPv6 server.
Related commands: display natpt address-mapping.
Examples
# In system view, configure a static NAPT-PT mapping for an IPV6 server, in which the protocol type is TCP,
the IPv4 address and port number are 2.3.4.5 and 80, and the IPv6 address and port number are
2001::1 and 80.
<Sysname> system-view
[Sysname] natpt v4bound static v6server protocol tcp 2.3.4.5 80 2001::1 80
natpt v6bound dynamic
Syntax
natpt v6bound dynamic { acl6 number acl6-number | prefix natpt-prefix } { address-group
address-group [ no-pat ] | interface interface-type interface-number }
undo natpt v6bound dynamic { acl6 number acl6-number | prefix natpt-prefix }
View
System view
Default level
2: System level
Parameters
acl6 number acl6-number: Specifies the IPv6 ACL number. If the source IPv6 address of a packet sent
from an IPv6 network to an IPv4 network matches this IPv6 ACL, the source IPv6 address is translated
based on the command. The IPv6 ACL number ranges 2000 to 2999.
prefix natpt-prefix: Specifies the NAT-PT prefix. If the destination IPv6 address of a packet sent from an
IPv6 network to an IPv4 network is in this NAT-PT prefix, the source IPv6 address is translated based on
the command. The NAT-PT prefix is 96 bits in length.
address-group address-group: Specifies the number of the IPv4 address pool for the translation of the
source IPv6 address. The IPv4 address pool number is in the range of 1 to 32.