beautypg.com

Displaying and maintaining nat-pt – H3C Technologies H3C SecPath F1000-E User Manual

Page 194

background image

9

Follow these steps to set the Traffic Class field in packets after NAT-PT translation:

To do…

Use the command…

Remarks

Enter system view

system-view

Set the Traffic Class field in

IPv6 packets translated from
IPv4 packets to 0

natpt turn-off traffic-class

Required
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.

Configuring Static NAPT-PT Mappings of IPv6 Servers

Generally, a server such as the FTP server, Web server, or Telnet server on an IPv6 network provides

services for IPv6 hosts only. To allow IPv4 hosts to access the IPv6 server, you can specify a static NAPT-PT

mapping between the IPv6 address plus the port number and the IPv4 address plus the port number of

the IPv6 server.
Upon receiving an access request to an IPv6 server from an IPv4 host, the NAT-PT device checks the

destination address and port number of the packet against the static address/port mapping of the IPv6

server. If they match, the device translates the source IPv4 address of the packet into the corresponding

IPv6 address according to the IPv4/IPv6 address mapping on the IPv4 side, and translates the

destination IPv4 address and port number in the request to the corresponding IPv6 address and port

number according to the static address/port mapping of the IPv6 server.
When configuring a static address/port mapping of an IPv6 server, you need to specify the following:

Protocol type, that is, the type of the transport layer protocol used by the server. It can be TCP or
UDP.

IPv4 address and port number of the server. They are used by IPv4 hosts to access the server.

IPv6 address and port number of the server.

Follow these steps to configure a static NAPT-PT mapping for an IPv6 server:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure a static address and
port number mapping for an IPv6

server

natpt v4bound static v6server protocol

protocol-type ipv4-address ipv4-port-number
ipv6-address ipv6-port-number

Required

Displaying and Maintaining NAT-PT

To do…

Use the command…

Remarks

Display all NAT-PT configuration
information

display natpt all

Available in any view

Display NAT-PT address pool configuration
information

display natpt address-group

Available in any view

Display the static and dynamic NAT-PT
address mappings

display natpt
address-mapping

Available in any view