如何在Linux下禁用ARP协议

如何在Linux下禁用ARP协议

方法一:禁用网卡的ARP协议

使用 ifconfig eth0 -arp

方法二:关闭内核的ARP功能

01

echo 1 > /proc/sys/net/ipv4/conf/eth0/arp_ignoreecho 2 > /proc/sys/net/ipv4/conf/eth0/arp_announce

方法三:安装软件

安装arptables(类似iptables),ARP协议还是启动,但是arptables drop所有进入和出去的包

arptables -A INPUT -j DROP

arptables -A OUTPUT -j DROP

参考:http://blog.163.com/szliug@yeah/blog/static/141774019201110205370187/

参考:http://kb.linuxvirtualserver.org/wiki/Using_arp_announce/arp_ignore_to_disable_ARP

参考:http://kb.linuxvirtualserver.org/wiki/Using_arptables_to_disable_ARP

参考:http://linux.die.net/man/8/ifconfig文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/system/disable-linux-arp/

文 章 源 自 note.t4x.orgByrd's Blog-https://note.t4x.org/system/disable-linux-arp/

相关推荐