Skip to content

Instantly share code, notes, and snippets.

@Alex4386
Created October 23, 2025 09:16
Show Gist options
  • Save Alex4386/ccd2934be012a91737b74dd9681fc0f1 to your computer and use it in GitHub Desktop.
Save Alex4386/ccd2934be012a91737b74dd9681fc0f1 to your computer and use it in GitHub Desktop.
Fix the different NIC responding to other NIC's network if both of them are on the same subnet
net.ipv4.conf.all.arp_ignore=1
net.ipv4.conf.all.arp_announce=2
net.ipv4.conf.all.rp_filter=2
@Alex4386
Copy link
Author

curl https://gist.githubusercontent.com/Alex4386/ccd2934be012a91737b74dd9681fc0f1/raw/99-sysctl-same-lan-fix-arp.conf | sudo tee /etc/sysctl/99-sysctl-same-lan-fix-arp.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment