R3721-F3210-F3171-HP High-End Firewalls NAT and ALG Command Reference-6PW101
27
Related commands: display natpt address-mapping.
Examples
# Configure a dynamic source address mapping policy for packets from IPv4 hosts to IPv6 hosts in system
view. Use ACL 2000 to match IPv4 packets and add the NAT-PT prefix 2001:: to translate the source IPv4
address into an IPv6 address.
<Sysname> system-view
[Sysname] natpt prefix 2001::
[Sysname] natpt v4bound dynamic acl number 2000 prefix 2001::
natpt v4bound static
Syntax
natpt v4bound static ipv4-address ipv6-address
undo natpt v4bound static ipv4-address ipv6-address
View
System view
Default level
2: System level
Parameters
ipv4-address: IPv4 address to be mapped.
ipv6-address: IPv6 address to which an IPv4 address is mapped.
Description
Use natpt v4bound static to configure a static IPv4/IPv6 address mapping on the IPv4 side.
Use undo natpt v4bound static to remove a static IPv4/IPv6 address mapping on the IPv4 side.
The ipv6-address prefix should be contained in the configured NAT-PT prefix.
Related commands: display natpt address-mapping.
Examples
# Configure a static mapping between the IPv4 address 2.3.4.9 and the IPv6 address 2001::1 on the
IPv4 side in system view.
<Sysname> system-view
[Sysname] natpt v4bound static 2.3.4.9 2001::1
natpt v4bound static v6server
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
View
System view