# sudo apt install -y python3-scapy from __future__ import print_function from scapy.all import * iface = "vxlan42" vxlan_mac = get_if_hwaddr(iface) def handle_packet(packet): if packet[ARP].op == ARP.who_has: print(packet.summary()) reply = ARP(op=ARP.is_at, hwsrc=vxlan_mac, hwdst=packet.src, psrc=packet.pdst, pdst=packet.psrc) go = Ether(dst=packet.src, src=vxlan_mac) / reply sendp(go, iface=iface) return sniff(iface=iface, filter="arp",prn=handle_packet)