beautypg.com

Configuring a dynamic mapping on the ipv4 side, Setting the tos field after nat-pt translation – H3C Technologies H3C SecPath F1000-E User Manual

Page 193

background image

8

If the destination IPv6 address in a packet sent from an IPv6 host to an IPv4 host matches a static

IPv4/IPv6 address mapping, the destination IPv6 address is translated into the corresponding IPv4

address.

Follow these steps to configure a static IPv4/IPv6 address mapping on the IPv4 side:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a static IPv4/IPv6 address
mapping on the IPv4 side

natpt v4bound static ipv4-address
ipv6-address

Required

Configuring a dynamic mapping on the IPv4 side

A dynamic IPv4/IPv6 address mapping on the IPv4 side means that if the source IPv4 address matches
a specified ACL, the source IPv4 address is added with a NAT-PT prefix as the translated IPv6 address.
Follow these steps to configure a dynamic IPv4/IPv6 mapping on the IPv4 side:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a dynamic IPv4/IPv6 address
mapping on the IPv4 side

natpt v4bound dynamic acl number
acl-number prefix natpt-prefix

Required

NOTE:

The

natpt-prefix argument specified in the natpt v6bound dynamic acl number acl-number prefix

natpt-prefix command must have been configured with the natpt prefix command.

For the ACL configuration, see ACL Configuration in the Firewall Web Configuration Manual.

Setting the ToS Field after NAT-PT Translation

You can set the ToS field in IPv4 packets translated from IPv6 packets to 0 or leave it unchanged. 0
indicates that the service priority of the translated packet is set to the lowest. Unchanged indicates that

the existing service priority is used.
Follow these steps to set the ToS field in packets after NAT-PT translation:

To do…

Use the command…

Remarks

Enter system view

system-view

Set the ToS field in IPv4
packets translated from IPv6

packets to 0

natpt turn-off tos

Required
By default, the value of the ToS field of IPv4

packets is the same as that of the Traffic

Class field in corresponding IPv6 packets.

Setting the Traffic Class Field after NAT-PT Translation

You can set the Traffic Class field in IPv6 packets translated from IPv4 packets to 0 or leave it unchanged.
0 indicates that the service priority of the translated packet is set to the lowest. Unchanged indicates that

the existing service priority is used.