Setting the tos field after nat-pt translation – H3C Technologies H3C SecPath F1000-E User Manual

Page 46

Advertising
background image

39

Configuring a dynamic mapping policy on the IPv4 side

A dynamic IPv4/IPv6 address mapping policy on the IPv4 side is 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.
To configure a dynamic IPv4/IPv6 mapping policy on the IPv4 side:

Step Command

1.

Enter system view.

system-view

2.

Configure a dynamic IPv4/IPv6 source
address mapping policy on the IPv4 side.

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

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 more information about ACL, see

Access Control Configuration Guide.

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.
To set the ToS field in packets after NAT-PT translation:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Set the ToS field in IPv4 packets
translated from IPv6 packets to 0.

natpt turn-off tos

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.
To set the Traffic Class field in packets after NAT-PT translation:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Set the Traffic Class field
in IPv6 packets translated

from IPv4 packets to 0.

natpt turn-off traffic-class

By default, the value of the Traffic Class
field of IPv6 packets is the same as that of

the ToS field in corresponding IPv4
packets.

Advertising