Configuration example

Network requirements

As shown in Figure 208, the IP and MAC addresses of Host A are 10.1.1.2 and 000f-e349-1233, respectively. The IP and MAC addresses of Host B are 10.1.1.3 and 000f-e349-1234, respectively.

Configure ARP filtering on GigabitEthernet 1/0/1 and GigabitEthernet 1/0/2 of Router B to permit ARP packets from only Host A and Host B.

Figure 203: Network diagram

Configuration procedure

# Configure ARP filtering on Router B.

<RouterB> system-view
[RouterB] interface gigabitethernet 1/0/1
[RouterB-GigabitEthernet1/0/1] arp filter binding 10.1.1.2 000f-e349-1233
[RouterB-GigabitEthernet1/0/1] quit
[RouterB] interface gigabitethernet 1/0/2
[RouterB-GigabitEthernet1/0/2] arp filter binding 10.1.1.3 000f-e349-1234

Verifying the configuration

# Verify that GigabitEthernet 1/0/1 permits ARP packets from Host A and discards other ARP packets.

# Verify that GigabitEthernet 1/0/2 permits ARP packets from Host B and discards other ARP packets.