F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices NAT and ALG Command Reference-6PW100
32
Examples
# Configure a static mapping between the IPv4 address 2.3.4.9 and the IPv6 address 2001::1 on the
IPv4 side.
<Sysname> system-view
[Sysname] natpt v4bound static 2.3.4.9 2001::1
Related commands
display natpt address-mapping
natpt v4bound static v6server
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.
Syntax
natpt v4bound static v6server protocol protocol-type ipv4-address-destination ipv4-port-number
ipv6-address-destination ipv6-port-number
undo natpt v4bound static v6server protocol protocol-type ipv4-address-destination ipv4-port-number
ipv6-address-destination ipv6-port-number
Views
System view
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.
Examples
# 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 respectively, and the IPv6 address and port number are
2001::1 and 80 respectively.
<Sysname> system-view
[Sysname] natpt v4bound static v6server protocol tcp 2.3.4.5 80 2001::1 80
Related commands
display natpt address-mapping