有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

相关文章:

  • 2021-07-01
  • 2021-07-07
  • 2021-08-02
  • 2021-11-03
  • 2022-12-23
  • 2021-07-05
  • 2021-09-26
猜你喜欢
  • 2021-10-22
  • 2021-07-14
  • 2021-11-01
  • 2021-10-11
  • 2022-01-25
  • 2022-12-23
  • 2021-11-22
相关资源
相似解决方案