使用windows2008服务器作为后端的realserver遇到的问题

1、环境情况:
lvs主IP:192.168.10.11
lvs备IP:192.168.10.21
lvsVIP :192.168.10.31

windows RIP1:192.168.10.12
windows RIP2:192.168.10.22

2、配置情况:

lvs主:


! Configuration File for keepalived
global_defs {
router_id LVS_test
}
vrrp_sync_group VG1 {
group {
VI_1
}
}
#--------------------------------
# vrrp_instance settings
# desc: instance VI_1
#--------------------------------
vrrp_instance VI_1 {
state MASTER
interface eth0
virtual_router_id 66
priority 80
advert_int 1
authentication {
auth_type PASS
auth_pass 123456
}
virtual_ipaddress {
192.168.10.31
}
}
#-------------------------------------
# virtual server setting
#-------------------------------------
virtual_server 192.168.10.31 80 {
delay_loop 10
lb_algo wrr
lb_kind DR
protocol TCP
real_server 192.168.10.12 80 {
weight 10
HTTP_GET {
url {
path /monitor.aspx
status_code 200
}
}
}
real_server 192.168.10.22 80 {
weight 10
HTTP_GET {
url {
path /monitor.aspx
status_code 200
}
}
}
}

lvs备:
! Configuration File for keepalived
global_defs {
router_id LVS_test
}
vrrp_sync_group VG1 {
group {
VI_1
}
}
#--------------------------------
# vrrp_instance settings
# desc: instance VI_1
#--------------------------------
vrrp_instance VI_1 {
state BACKUP
interface eth0
virtual_router_id 66
priority 40
advert_int 1
authentication {
auth_type PASS
auth_pass 123456
}
virtual_ipaddress {
192.168.10.31
}
}
#-------------------------------------
# virtual server setting
#-------------------------------------
virtual_server 192.168.10.31 80 {
delay_loop 10
lb_algo wrr
lb_kind DR
protocol TCP

real_server 192.168.10.12 80 {
weight 10
HTTP_GET {
url {
path /monitor.aspx
status_code 200
}
}
}
real_server 192.168.10.22 80 {
weight 10
HTTP_GET {
url {
path /monitor.aspx
status_code 200
}
}
}
}

3、window配置:
设置vip网卡,网卡的IP为192.168.10.31,子网掩码为255.255.255.255

在管理员模式下开启cmd,执行下面命令:
netsh interface ipv4 set interface "网卡1" weakhostreceive=enabled

netsh interface ipv4 set interface "网卡2" weakhostsend=enabled

netsh interface ipv4 set interface "lvsvip" weakhostreceive=enabled

netsh interface ipv4 set interface "lvsvip" weakhostsend=enabled

4、开启keepalived,查看:
IP Virtual Server version 1.2.1 (size=4096)
Prot LocalAddress:Port Scheduler Flags
-> RemoteAddress:Port Forward Weight ActiveConn InActConn
TCP 192.168.10.31:80 wrr

没有加进去,查看错误日志:
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.12:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.12:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.12:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.12:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.12:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.22:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.22:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.22:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.22:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.22:80].
Aug 24 15:38:13 lvs115 Keepalived_healthcheckers: Timeout connect, timeout server [192.168.10.22:80].

现在依然没解决,有遇到的请联系下,先谢谢!!!

randomness