R3303-HP HSR6800 Routers Layer 3 - IP Services Configuration Guide

202
Task Command Remarks
Display NAT-PT statistics information (in
IRF mode).
display natpt statistics [ chassis
chassis-number slot slot-number ] [ |
{ begin | exclude | include }
regular-expression ]
Available in any view.
Clear all NAT-PT statistics information (in
standalone mode).
reset natpt statistics [ slot slot-number ] Available in user view.
Clear all NAT-PT statistics information (in
IRF mode).
reset natpt statistics [ chassis
chassis-number slot slot-number ]
Available in user view.
NAT-PT configuration examples
Configuring dynamic mapping on the IPv6 side
Network requirements
As shown in Figure 83, Router C with IPv6 address 2001::2/64 on an IPv6 network wants to access
Router A with IPv4 address 8.0.0.2/24 on an IPv4 network, whereas Router A cannot actively access
Router C.
To meet the preceding requirements, you need to configure Router B that is deployed between the IPv4
network and IPv6 network as a NAT-PT device, and configure dynamic mapping policies on the IPv6 side
on Router B so that IPv6 hosts can access IPv4 hosts but IPv4 hosts cannot access IPv6 hosts.
Figure 83 Network diagram
Configuration procedure
1. Configure Router B (NAT-PT device):
# Configure interface addresses and enable NAT-PT on the interfaces.
<RouterB> system-view
[RouterB] ipv6
[RouterB] interface serial 2/2/0
[RouterB-Serial2/2/0] ip address 8.0.0.1 255.255.255.0
[RouterB-Serial2/2/0] natpt enable
[RouterB-Serial2/2/0] quit
[RouterB] interface serial 2/2/1
[RouterB-Serial2/2/1] ipv6 address 2001::1/64
[RouterB-Serial2/2/1] natpt enable
[RouterB-Serial2/2/1] quit
# Configure a NAT-PT prefix.
[RouterB] natpt prefix 3001::