LVS DR模式 RealServer 為 Windows用戶端配置

來源:互聯網
上載者:User

標籤:style   c   class   blog   ext   http   

LVS   DR模式  Windows 2000,Windows2003用戶端配置 控制台-添加硬體-選“是,我已經串連了此裝置”點擊下一步-在列表中選擇添加新的硬體裝置-選“安 裝我充從手動...” -接下來的列表中選擇“Microsoft loopback adapter ” 添加完成後在“網路位置”右鍵 設定Microsoft loopback adapter  IP地址,子網路遮罩要設定成VIP所對應的子網路遮罩  (不能像linux那樣設定成255.255.255.255) 如果設定為255.255.255.255 則會提示無效IP地址和子網路遮罩組合  <在WINDOWS 2008當中將會無此問題 不 過需要從命令列來做ARP抑制方面的處理> 然後“開始”->"運行"-> regedit.exe  HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\ 尋找“VIP”將其設定成255.255.255.255  重啟網卡之後 如果成功 則VIP的 NETMASK將會變為 255.255.255.255   LVS   DR模式  Windows2008用戶端配置 http://kb.linuxvirtualserver.org/wiki/Windows_Servers_in_LVS/DR_and_LVS/TUN_Clustershttp://blog.loadbalancer.org//direct-server-return-on-windows-2008-using-loopback-adpter/ 控制台-添加硬體-歡迎使用硬體添加嚮導 - 安裝我充從手動...選擇網路介面卡 - 選擇廠商, microsoft,添加microsoft loopback adapter,下一步安裝即可: 配置IP地址為VIP地址,子網路遮罩配置為255.255.255.255, 在命令列下修改用戶端網卡介面,環回介面串連模式: 其次,在cmd裡面輸入以下命令:netsh interface ipv4 set interface "extranet" weakhostreceive=enablednetsh interface ipv4 set interface "extranet" weakhostsend=enabled  netsh interface ipv4 set interface "intranet" weakhostreceive=enablednetsh interface ipv4 set interface "intranet" weakhostsend=enabled netsh interface ipv4 set interface "loopback" weakhostreceive=enablednetsh interface ipv4 set interface "loopback" weakhostsend=enabled   另外的方法:LVS-DR,real-server為windows 2008的配置

部署郵件系統負載平衡,採用LVS-DR模式,調度器是一台centos 5.8,real-server是兩台windows2008,DR的配置網上很多,就不貼出來了,主要是real-server的配置,因為是windows 2008,多了些步驟

具體做法如下:
1.關掉系統內建防火牆功能
2.新增環回網卡
3.配置環回ip為vip的ip,掩碼255.255.255.255
4.修改網卡資訊
在命令列下修改,開始--運行--cmd
netsh interface ipv4 set interface "實節點網卡名字" weakhostreceive=enabled
netsh interface ipv4 set interface "實節點網卡名字" weakhostsend=enabled
netsh interface ipv4 set interface "實節點環回網卡名字" weakhostreceive=enabled
netsh interface ipv4 set interface "實節點環回網卡名字" weakhostsend=enabled

完成後,測試一下是否好了,恭喜你,:)大功告成!

上面的四條命令一定要輸入,因為windows 2008的預設中,網卡的stronghost處於啟用狀態,這個設定可以防止跨介面轉寄資料包,這就表明:來自一個網路介面卡的請求不會被環回適配器處理,因為這個請求來自於不同的網路介面卡。為了將環回適配器從stronghost切換為weakhost,需要運行以上四條命令,要不然TCP的狀態會一直處於SYN_RECV 狀態,解決這個問題花了我一天的時間,最後在一個老外的文檔裡找到的辦法

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

有不懂的歡迎留言!

 

注意:IIS要去掉"保持HTTP串連"

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.