防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/
mount –bind /media/sda6/movies/ /var/ftp/movies/
mount –bind /media/sda7/linux/ /var/ftp/linux/
mount –bind /media/sda7/games/ /var/ftp/games/

arp -s 10.0.1.1 00:E0:FC:1C:A8:24
arp -s 10.0.1.112 00:E0:4D:1B:76:9C
ifconfig eth0 -arp

PATH=/sbin:/bin:/usr/sbin:/usr/bin
[ -f /etc/default/rcS ] && . /etc/default/rcS
. /lib/lsb/init-functions

do_start() {
if [ -x /etc/rc.local ]; then
log_begin_msg “Running local boot scripts (/etc/rc.local)”
/etc/rc.local
log_end_msg $?
fi
}

case “$1” in
start)
do_start
;;
restart|reload|force-reload)
echo “Error: argument ‘$1’ not supported” >&2
exit 3
;;
stop)
;;
*)
echo “Usage: $0 start|stop” >&2
exit 3
;;
esac

以下为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 http://debian.ustc.edu.cn/ubuntu/ feisty main restricted universe multiverse

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

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

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

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

#传说中的北京交大 速度 2M/s

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-updates main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-security main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ feisty-backports main restricted universe multiverse

#传说中的上海交通大学,听说现在硬盘挂了,500k/s 曾经最热门的源之一

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu-cn/ feisty main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe

#真正可以上的清华大学ubuntu源 300k/s

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty-security main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ feisty-updates main restricted universe multiverse

#这个清华源现在我也可以用 了

deb http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ feisty main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ feisty-backports main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ feisty-proposed main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ feisty-security main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ feisty-updates main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu-cn/ feisty main multiverse restricted universe

#传说中的兰州大学 260k/s

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-backports main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-proposed main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-security main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ feisty-updates main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ feisty main multiverse restricted universe

#传说中的台湾大学 中国电信adsl 150k/s

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-updates main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-backports main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ feisty-security main restricted universe multiverse

以下为 ubuntu edgy 6.10

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

deb ftp://debian.ustc.edu.cn/ubuntu edgy main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu edgy-security main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu edgy-updates main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu edgy-backports main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu edgy-proposed main restricted universe multiverse

#传说中的北京交大 速度 2M/s

deb http://mirror.bjtu.edu.cn/ubuntu/ edgy main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ edgy-updates main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ edgy-security main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ edgy-backports main restricted universe multiverse

#这个清华源我从来没用成过,楼下有朋友帖上来了,可能对别人也有用,网上流传甚广

deb http://mirror9.net9.org/ubuntu/ edgy main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-backports main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-proposed main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-security main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-updates main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-backports main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-proposed main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-security main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-updates main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu-cn/ edgy main multiverse restricted universe

#真正可以上的清华大学ubuntu源

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ edgy main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ edgy-security main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ edgy-updates main restricted universe multiverse

#传说中的上海交通大学,听说现在硬盘挂了,曾经最热门的源之一

deb http://ftp.sjtu.edu.cn/ubuntu/ edgy main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-security main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-security main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universe

##传说中的兰州大学

deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-security main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universe

#传说中的台湾大学 中国电信adsl 150k/s

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-updates main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-updates main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-backports main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-backports main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-security main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ edgy-security main restricted universe multiverse

以下为ubuntu dapper 6.06

#传说中的中国科技大学

deb ftp://debian.ustc.edu.cn/ubuntu dapper main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu dapper-security main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu dapper-updates main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu dapper-backports main restricted universe multiverse

deb ftp://debian.ustc.edu.cn/ubuntu dapper-proposed main restricted universe multiverse

#传说中的北京交通大学

deb http://mirror.bjtu.edu.cn/ubuntu/ dapper main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ dapper-updates main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ dapper-security main restricted universe multiverse

deb http://mirror.bjtu.edu.cn/ubuntu/ dapper-backports main restricted universe multiverse

#真正能用的清华大学的源

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ dapper main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ dapper-security main restricted universe multiverse

deb ftp://ftp3.tsinghua.edu.cn/mirror/ubuntu/ubuntu/ dapper-updates main restricted universe multiverse

#这个清华源现在我也可以用 了

deb http://mirror9.net9.org/ubuntu/ fdapper main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ dapper-backports main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ dapper-proposed main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ dapper-security main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ dapper-updates main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ dapper main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ dapper-backports main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ dapper-proposed main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ dapper-security main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ dapper-updates main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu-cn/ dapper main multiverse restricted universe

#传说中的上海交通大学,听说现在硬盘挂了,曾经最热门的源之一

deb http://ftp.sjtu.edu.cn/ubuntu/ dapper main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-backports main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-proposed main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-security main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu/ dapper-updates main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ dapper main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ dapper-backports main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ dapper-proposed main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ dapper-security main multiverse restricted universe

deb-src http://ftp.sjtu.edu.cn/ubuntu/ dapper-updates main multiverse restricted universe

deb http://ftp.sjtu.edu.cn/ubuntu-cn/ dapper main multiverse restricted universe

#传说中的兰州大学

deb ftp://mirror.lzu.edu.cn/ubuntu/ dapper main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ dapper-backports main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ dapper-proposed main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ dapper-security main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu/ dapper-updates main multiverse restricted universe

deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ dapper main multiverse restricted universe

#传说中的台湾大学

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-updates main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-backports main restricted universe multiverse

deb http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse

deb-src http://ubuntu.csie.ntu.edu.tw/ubuntu/ dapper-security main restricted universe multiverse

上一次由skyx于2007-4-21 周六, 下午12:21修改,总共修改了34次

引用:

deb http://mirror9.net9.org/ubuntu/ edgy main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-backports main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-proposed main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-security main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu/ edgy-updates main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-backports main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-proposed main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-security main multiverse restricted universe

deb-src http://mirror9.net9.org/ubuntu/ edgy-updates main multiverse restricted universe

deb http://mirror9.net9.org/ubuntu-cn/ edgy main multiverse restricted universe