beautypg.com

Configuring a dynamic mapping on the ipv6 side – H3C Technologies H3C SecPath F1000-E User Manual

Page 191

background image

6

To do…

Use the command…

Remarks

Enter system view

system-view

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

natpt v6bound static ipv6-address
ipv4-address

Required

Configuring a dynamic mapping on the IPv6 side

A dynamic IPv4/IPv6 mapping on the IPv6 side means that if the source IPv6 address matches a

specified IPv6 ACL or the destination IPv6 address is the same as the specified NAT-PT prefix, the source

IPv6 address will be translated into an IPv4 address in a specified NAT-PT address pool or the IPv4

address of a specified interface.
The device provides four types of dynamic mappings.

Combination 1: Combination of an IPv6 ACL with an address pool

If the source IPv6 address of a packet matches the specified IPv6 ACL, the source IPv6 address will be
translated into an IPv4 address in the specified address pool.

Combination 2: Combination of an IPv6 ACL with an interface address

If the source IPv6 address of a packet matches the specified IPv6 ACL, the source IPv6 address will be

translated into the IPv4 address of the specified interface.

Combination 3: Combination of a NAT-PT prefix with an address pool

If the destination IPv6 address of a packet matches the NAT-PT prefix, the source IPv6 address will be

translated into an IPv4 address in the specified address pool.

Combination 4: Combination of a NAT-PT prefix with an interface address

If the destination IPv6 address of a packet matches the NAT-PT prefix, the source IPv6 address will be

translated into the IPv4 address of the specified interface.
To use combination 1 or combination 3, you need to configure a NAT-PT address pool first.
A NAT-PT address pool is a group of contiguous IPv4 addresses and is used to translate an IPv6 address
into an IPv4 address dynamically. When an IPv6 packet is sent from an IPv6 network to an IPv4 network,

if the combination 1 or 3 is set, the NAT-PT device will select an IPv4 address from the NAT-PT address

pool as the source IPv4 address of the IPv6 packet.
Follow these steps to configure a dynamic IPv4/IPv6 address mapping on the IPv6 side:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a NAT-PT address pool

natpt address-group
group-number start-ipv4-address

end-ipv4-address

Required for the first type
and third type in which the
source IPv6 address is

translated into an IPv4

address in the specified

address pool.
This configuration is not

needed in the second type
and fourth type.