How to add arp entry persistent when using NetworkManager?

Solution Verified - Updated -

Issue

  • When I add the arp entries in /etc/ethers, it can be persistent after reboot, but when I use nmcli to down/up the NIC, the entry will disappear in arp table.
# cat /etc/ethers
192.168.10.1 00:1a:4a:16:01:84

# arp -v
Address                  HWtype  HWaddress           Flags Mask            Iface
192.168.10.1             ether   00:50:56:9e:02:0e   CM                    ens192
Entries: 1      Skipped: 0      Found: 1

# nmcli con up ens192
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)

# arp -v
Address                  HWtype  HWaddress           Flags Mask            Iface

Entries: 0      Skipped: 0      Found: 0
  • How to let the arp entries added by manual be persistent when I up/down NIC by nmcli?

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content