R3721-F3210-F3171-HP High-End Firewalls NAT and ALG Command Reference-6PW101

26
View
System view
Default level
2: System level
Parameters
None
Description
Use natpt turn-off traffic-class to set the Traffic Class field in an IPv6 packet translated from an IPv4
packet to 0.
Use undo natpt turn-off traffic-class to restore the default.
By default, the value of the Traffic Class field in an IPv6 packet translated from an IPv4 packet is the same
as that of the ToS field in the IPv4 packet.
Examples
# Set the Traffic Class field in an IPv6 packet translated from an IPv4 packet to 0.
<Sysname> system-view
[Sysname] natpt turn-off traffic-class
natpt v4bound dynamic
Syntax
natpt v4bound dynamic acl number acl-number prefix natpt-prefix
undo natpt v4bound dynamic acl number acl-number
View
System view
Default level
2: System level
Parameters
acl number acl-number: Specifies the IPv4 access control list (ACL) number, in the range of 2000 to
2999.
prefix natpt-prefix: Specifies the NAT-PT prefix, which is 96 bits in length.
Description
Use natpt v4bound dynamic to configure a dynamic source address mapping policy for packets from
IPv4 hosts to IPv6 hosts by associating an ACL with a NAT-PT prefix.
Use undo natpt v4bound dynamic to remove the association.
For a packet from an IPv4 host to an IPv6 host, if the source IPv4 address matches the specified ACL, the
NAT-PT prefix will be added to translate the source IPv4 address into an IPv6 address.
CAUTION:
The
natpt-prefix
argument in the natpt v4bound dynamic command must be specified by the natpt prefi
x
command in advance.