Enabling nat-pt, Configuring a nat-pt prefix, Configuring a static mapping on the ipv6 side – H3C Technologies H3C SecPath F1000-E User Manual

Page 190

Advertising
background image

5

•

Enable IPv6 on the device. For more information, see IPv6 Basics Configuration in the IP Services

Volume.

•

Configure an IPv4 or IPv6 address as required on the interface to be enabled with NAT-PT.

Enabling NAT-PT

After NAT-PT is enabled on both the IPv4 network interface and the IPv6 network interface, the device

can implement translation between IPv4 and IPv6 addresses.
Follow these steps to enable NAT-PT:

To do…

Use the command…

Remarks

Enter system view

system-view

—

Enter interface view

interface interface-type interface-number

—

Enable NAT-PT on the interface natpt enable

Required
Disabled by default.

Configuring a NAT-PT Prefix

Follow these steps to configure a NAT-PT prefix:

To do…

Use the command…

Remarks

Enter system view

system-view

—

Configure a NAT-PT prefix

natpt prefix natpt-prefix [ interface
interface-type interface-number [ nexthop

ipv4-address ] ]

Required

CAUTION:
•

The NAT-PT prefix must not be the same as the IPv6 address prefix of the NAT-PT enabled interface on
the IPv6 network.

•

To delete a NAT-PT prefix that has been referenced by using the natpt v4bound dynamic or natpt
v6bound dynamic command, you need to cancel the referenced configuration first.

Configuring IPv4/IPv6 Address Mappings on the IPv6 Side

IPv4/IPv6 address mappings on the IPv6 side can be static or dynamic.

Configuring a static mapping on the IPv6 side

A static mapping on the IPv6 side shows the one-to-one correspondence between an IPv4 address and

an IPv6 address.

•

If the source IPv6 address in a packet sent from an IPv6 host to an IPv4 host matches the static
mapping, the source IPv6 address is translated into the corresponding IPv4 address.

•

If the destination IPv4 address in a packet sent from an IPv4 host to an IPv6 host matches the static
mapping, the destination IPv4 address is translated into the corresponding IPv6 address.

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

Advertising