qlwy95 发表于 2005-3-31 11:06:03
关于EMP老大的sendarp。多网关问题现在我想把Coyote Linux设置成多网关的,把EMPl老大的sendarp放上去,不知道这个sendarp的原理是什么,他向客户机广播是广播的那一个网关。是原来的192.168.0.1还是我新加的网关老大你回答的帖子编辑 /usr/sbin/sarp文件. /etc/coyote/coyote.conf#mac1=`ifconfig eth0 |grep "HWaddr" |cut -f5 -d " "`mac1=`ifconfig eth0 |grep "HWaddr" |cut -c39-55 `echo Sendarp start. send $LOCAL_IPADDR = $mac1while true;dosend_arp $LOCAL_IPADDR $mac1 $LOCAL_IPADDR ff:ff:ff:ff:ff:ff#send_arp $LOCAL_IPADDR2 $mac1 $LOCAL_IPADDR2 ff:ff:ff:ff:ff:ff#send_arp $LOCAL_IPADDR3 $mac1 $LOCAL_IPADDR3 ff:ff:ff:ff:ff:ffsleep 2done这里就是了。 多网卡的话 增加 mac的变量就可以了也能邦定外网网卡。。增加mac2=`ifconfig eth1 |grep "HWaddr" |cut我是这样做的先打edit /usr/sbin/sarp然后. /etc/coyote/coyote.conf#mac1=`ifconfig eth0 |grep "HWaddr" |cut -f5 -d " "`mac1=`ifconfig eth0 |grep "HWaddr" |cut -c39-55 `echo Sendarp start. send $LOCAL_IPADDR = $mac1while true;dosend_arp $LOCAL_IPADDR $mac1 $LOCAL_IPADDR ff:ff:ff:ff:ff:ff#send_arp $LOCAL_IPADDR2 $mac1 $LOCAL_IPADDR2 ff:ff:ff:ff:ff:ff#send_arp $LOCAL_IPADDR3 $mac1 $LOCAL_IPADDR3 ff:ff:ff:ff:ff:ffsleep 2done接着干什么啊??我按art+h 说什么^save什么意思哦?还有你上面的ff:ff:ff:ff:ff:ff就是ff:ff:ff:ff:ff:ff吗?不是实际的mac吗?这样设置后是两个网关就同时向局域网广播吗?我是一只菜鸟!老大帮帮忙?http://www.routerclub.com/ipb/index.php?showtopic=6326
页:
[1]