21
Step Command Remarks
interface that connects to the
internal network.
interface-number
supported:
• Layer 3 Ethernet interfaces.
• Layer 3 Ethernet subinterfaces.
8. Enable the ARP PnP feature.
arp pnp
By default, the ARP PnP feature is
disabled.
Displaying and maintaining ARP PnP
Execute display commands in any view.
Task Command
Display ARP PnP mappings.
display arp pnp
[
interface
interface-type
interface-number ]
ARP PnP configuration example
Network requirements
As shown in Figure 7, configure the ARP PnP feature to allow the host at 1.2.3.4 to access the
external server through GigabitEthernet 1/0/1.
Figure 7 Network diagram
Configuration procedure
1. 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.