防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/…

常用教育网源

以下为ubuntu feisty 7.04

#传说中的中国科技大学 5M/s

deb http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-backports restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-proposed main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-security main restricted universe multiverse

deb http://debian.ustc.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

deb-src …