oh,god , anybody help me!<br>recently , i try build lvs/tun of keepalived . but i am failure.<br>-------------------------------------------------------------------------------------<br>vip 172.16.39.100<br>lb1 master 172.16.39.10<br>

lb2 backup 172.16.39.20<br>real server1 172.16.39.30<br>real server2 172.16.39.40<br><br>------master keepalived.conf----------------------------------------<br>global_defs {<br>
    router_id LVS_DEVEL_M<br>}<br><br>vrrp_instance websev {<br>    state MASTER<br>    interface eth0<br>    virtual_router_id 51 <br>    priority 100         <br>    advert_int 1         <br><br>    authentication {<br>


        auth_type PASS<br>        auth_pass 1111<br>    }<br><br>    virtual_ipaddress {<br>        172.16.39.100<br>    }<br>}<br><br>virtual_server 172.16.39.100 80 {<br>    delay_loop 6<br>    lb_algo rr<br>    lb_kind <span style="color: rgb(255, 0, 0);">TUN</span><br>


    persistence_timeout 10<br>    protocol TCP<br><br>    real_server 172.16.39.30 80 {<br>        weight 1<br>        TCP_CHECK {<br>            connect_timeout 3<br>            nb_get_retry 3<br>            delay_before_retry 3<br>


        }<br>    }<br>    real_server 172.16.39.40 80 {<br>        weight 1<br>        TCP_CHECK {<br>            connect_timeout 3<br>            nb_get_retry 3<br>            delay_before_retry 3<br>        }<br>    }<br>


}<br><br><div id=":f9">---------------------------------------------------------------------<br>real server 1:<br><br>ifconfig tunl0 172.16.39.100 netmask 255.255.255.0 up<br>route add -host 172.16.39.100 dev tunl0<br>
echo "1" >/proc/sys/net/ipv4/conf/tunl0/arp_ignore<br>echo "2" >/proc/sys/net/ipv4/conf/tunl0/arp_announce<br>echo "1" >/proc/sys/net/ipv4/conf/all/arp_ignore<br>echo "2" >/proc/sys/net/ipv4/conf/all/arp_announce<br>


sysctl -p</div><br><br><div class="gmail_quote">2011/3/8 Steve Barnes <span dir="ltr"><<a href="mailto:steve@echo.id.au" target="_blank">steve@echo.id.au</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>> no,my mean is the keepalived lvs need ipvsadm<br>
<br>
</div>Ah right. Sorry, I thought you were having more problems :)<br>
<div><div></div><div><br>
Steve<br>
<br>
<br>
_______________________________________________<br>
CentOS mailing list<br>
<a href="mailto:CentOS@centos.org" target="_blank">CentOS@centos.org</a><br>
<a href="http://lists.centos.org/mailman/listinfo/centos" target="_blank">http://lists.centos.org/mailman/listinfo/centos</a><br>
</div></div></blockquote></div><br>