Configuration procedure
Configure NAT:
# Specify IP addresses for GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2.
<Router> system-view [Router] interface gigabitethernet 1/0/1 [Router-GigabitEthernet1/0/1] ip address 192.168.0.2 24 [Router-GigabitEthernet1/0/1] quit [Router] interface gigabitethernet 1/0/2 [Router-GigabitEthernet1/0/2] ip address 202.38.1.100 24 [Router-GigabitEthernet1/0/2] quit
# Configure ACL 2000 to identify packets from subnet 192.168.0.0/24.
[Router] acl basic 2000 [Router-acl-ipv4-basic-2000] rule permit source 192.168.0.0 0.0.0.255 [Router-acl-ipv4-basic-2000] quit
# Create address group 1, and add address 202.38.1.100 to the group.
[Router] nat address-group 1 [Router-nat-address-group-1] address 202.38.1.100 202.38.1.100 [Router-nat-address-group-1] quit
# Enable outbound PAT on interface GigabitEthernet 1/0/2 to translate the source address of outgoing packets matching ACL 2000 into the address in address group 1.
[Router] interface gigabitethernet 1/0/2 [Router-GigabitEthernet1/0/2] nat outbound 2000 address-group 1
Enable the ARP PnP feature on GigabitEthernet 1/0/1.
[Router] interface gigabitethernet 1/0/1 [Router-GigabitEthernet1/0/1] arp pnp [Router-GigabitEthernet1/0/1] quit