强烈请求一个LVS/TUN的配置案例

由于本人一直没有做成功过LVS/TUN方式,所以
有那位朋友做成功做LVS/TUN方式的,麻烦说下你们是怎么做的!

麻烦从director到realserver的配置详细说下

如果用到像arptables工具的,请把如何避免arp过程写下来

万分感谢!!!!

装上了arptables_jf
echo 0 > /proc/sys/net/ipv4/ip_forward
ifconfig tunl0 192.168.0.20 netmask 255.255.255.255 broadcast 192.168.0.20
arptables -F
arptables -A IN -d 192.168.0.20 -j DROP
arptables -A OUT -d 192.168.0.20 -j mangle --mangle-ip-s 192.168.0.12

还是不行!
echo 1 > /proc/sys/net/ipv4/ip_forward---也一样不行

我前端机器是echo 1 > proc/sys/net/ipv4/ip_forward,把前端机器也echo 0 > proc/sys/net/ipv4/ip_forward
同样不行!
疯狂!!!

Forums:

仔细看文档吧,我参照文档一次就成功了

What an awesome way to explain this-now I know evhinteryg!

That takes us up to the next level. Great pogisnt.

文档多了,兄弟看的是哪篇文档.

linbsd兄弟,请把你参考的文章地址给我,谢谢,或者直接帖上来

Director:
/sbin/ifconfig eth0:0 172.16.172.201 netmask 255.255.255.255 broadcast 172.16.172.255 up
/sbin/route add -host 172.16.172.201 dev eth0:0
/sbin/ipvsadm -C
/sbin/ipvsadm -A -t 172.16.172.201:80 -s rr
/sbin/ipvsadm -a -t 172.16.172.201 -r 172.16.172.205 -i -w 1
/sbin/ipvsadm -a -t 172.16.172.201:80 -r 172.16.172.205 -i -w 1

RealServer:
/sbin/modprobe ipip
/sbin/ifconfig tunl0 172.16.172.201 netmask 255.255.255.255 broadcast 172.16.172.201 up
/sbin/route add -host 172.16.172.201 dev tunl0
/bin/echo "1" > /proc/sys/net/ipv4/conf/all/arp_ignore
/bin/echo "2" > /proc/sys/net/ipv4/conf/all/arp_announce
/bin/echo "1" > /proc/sys/net/ipv4/conf/tunl0/arp_ignore
/bin/echo "2" > /proc/sys/net/ipv4/conf/tunl0/arp_announce
/bin/echo "0" > /proc/sys/net/ipv4/conf/tunl0/rp_filter

多谢回复

请问一下.你的配置是否已经搞定了? 请指教.. 我也遇到这样的问题.不知道是否有解决方案了呢?