diff --git a/scapy/layers/l2.py b/scapy/layers/l2.py
index 749d571b7fa078baa91aa3643d64aa831fbd925b..6f3654f69a91b2a4a01a8aed09988cd40dcdcdf0 100644
--- a/scapy/layers/l2.py
+++ b/scapy/layers/l2.py
@@ -472,7 +472,7 @@ Set cache=True if you want arping to modify internal ARP-Cache"""
 
     if cache and ans is not None:
         for pair in ans:
-            arp_cache[pair[1].psrc] = (pair[1].hwsrc, time.time())
+            conf.netcache.arp_cache[pair[1].psrc] = (pair[1].hwsrc, time.time())
     if verbose:
         ans.show()
     return ans,unans