防arp

防arp(转oneleaf 老大的)
引用:

1) 建立静态ARP表

touch /etc/static_arp_entry
chown root:root /etc/static_arp_entry
chmod 600 /etc/static_arp_entry

2) 编辑/etc/static_arp_entry文件,输入类似内容

192.168.8.90 00:00:00:11:11:11
192.168.8.1 00:00:00:22:22:22

3) arp -s -f /etc/static_arp_entry

我是直接加入两行命令到/etc/init.d/rc.local中
原理是每次系统启动时自动绑定网关IP和MAC
然后禁用ARP协议,这样就OK了!~!~
pjq@pjq-desktop:~$ cat /etc/init.d/rc.local
#! /bin/sh
mount –bind /media/sda5/software/ /var/ftp/winsoft/
mount –bind /media/sda6/music/ /var/ftp/music/…