文章出處

有3篇文檔詳細介紹

http://kb.linuxvirtualserver.org/wiki/Windows_Servers_in_LVS/DR_and_LVS/TUN_Clusters

http://blog.loadbalancer.org/direct-server-return-on-windows-2008-using-loopback-adpter/

LVS + KEEPALIVED + WINDOWS SERVER 2008 R2 ------高可用負載均衡

在Windows Server上需要做下面的配置:

1、安裝microsoft loopback adapter。

2、配置microsoft loopback adapter IP地址為VIP地址,子網掩碼配置為255.255.255.255,

3、在命令行下修改客戶端網卡接口,環回接口連接模式:

其次,在cmd里面輸入以下命令:

netsh interface ipv4 set interface "extranet" weakhostreceive=enabled

netsh interface ipv4 set interface "extranet" weakhostsend=enabled

netsh interface ipv4 set interface "intranet" weakhostreceive=enabled

netsh interface ipv4 set interface "intranet" weakhostsend=enabled

netsh interface ipv4 set interface "loopback" weakhostreceive=enabled

netsh interface ipv4 set interface "loopback" weakhostsend=enabled

windows 2008的默認中,網卡的stronghost處于啟用狀態,這個設置可以防止跨接口轉發數據包,這就表明:來自一個網絡適配器的請求不會被環回適配器處理,因為這個請求來自于不同的網絡適配器。為了將環回適配器從stronghost切換為weakhost,需要運行以上四條命令,要不然TCP的狀態會一直處于SYN_RECV 狀態, 強弱主機的參看 http://technet.microsoft.com/zh-cn/magazine/2007.09.cableguy.aspx


文章列表




Avast logo

Avast 防毒軟體已檢查此封電子郵件的病毒。
www.avast.com


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 大師兄 的頭像
    大師兄

    IT工程師數位筆記本

    大師兄 發表在 痞客邦 留言(0) 人氣()