Configuration Guide Configuring ARP
Interface configuration mode
If a network interface of a device acts as the gateway for downstream devices but a downstream device
pretends to be the gateway, enable gratuitous ARP on the interface to advertise itself as the real gateway.
Configuration
Example
For the network topology, see Figure 2-1.
Configure the GigabitEthernet 0/0 interface to send a gratuitous ARP packet every 5 seconds.
Ruijie(config-if-GigabitEthernet 0/0)#arp gratuitous-send interval 5
Run the show running-config interface command to check whether the configuration takes effect.
Ruijie#sh running-config interface gigabitEthernet 0/0
Building configuration...
Current configuration : 127 bytes
!
interface GigabitEthernet 0/0
duplex auto
speed auto
ip address 30.1.1.1 255.255.255.0
arp gratuitous-send interval 5
2.4.4 Enabling Proxy ARP
Configuration Effect
The device acts as a proxy to reply to ARP request packets from other users.
Notes
By default, Proxy ARP is disabled.
Configuration Steps
Optional.
If a user without any route information needs to obtain the MAC addresses of the IP users in other subnets, enable
Proxy ARP on the device so that the device can act as a proxy to send ARP replies.
Enable Proxy ARP in interface configuration mode.
Verification
Run the show ip interface <name> command to check whether the configuration takes effect.