> The problem occurs when I try to get keepalived to set up the
> VIP using a vrrp instance.
I far as I now, please correct me if I'm wrong, you don't need the syncgroup if
you only have one interface.
> The config is as follows (I copied it out of the LVS-NAT
> howto and just removed the instance for the gateway).
I got it working with this configuration:
On master:
----------
global_defs {
lvs_id lvs_test
}
vrrp_instance VI_1 {
interface eth0
state MASTER
lvs_sync_daemon_interface eth0
virtual_router_id 50
priority 150
advert_int 1
virtual_ipaddress {
11.81.19.203
}
preempt
}
#
# http
#
virtual_server 11.81.19.203 80 {
delay_loop 6
lb_algo wrr
lb_kind DR
protocol TCP
ha_suspend
real_server 11.81.19.44 80 {
weight 1
TCP_CHECK {
connect_port 80
connect_timeout 15
}
}
real_server 11.81.19.45 80 {
weight 1
TCP_CHECK {
connect_port 80
connect_timeout 15
}
}
}
On backup:
----------
global_defs {
lvs_id lvs_test2
}
vrrp_instance VI_1 {
interface eth0
state BACKUP
lvs_sync_daemon_interface eth0
virtual_router_id 50
priority 100
advert_int 1
virtual_ipaddress {
11.81.19.203
}
preempt
}
#
# http
#
virtual_server 11.81.19.203 80 {
delay_loop 6
lb_algo wrr
lb_kind DR
protocol TCP
ha_suspend
real_server 11.81.19.44 80 {
weight 1
TCP_CHECK {
connect_port 80
connect_timeout 15
}
}
real_server 11.81.19.45 80 {
weight 1
TCP_CHECK {
connect_port 80
connect_timeout 15
}
}
}
> I notice the authentication type is SIMPLE_PASSWORD. Doees
> this need setting up in any way?
> Can any one suggest what I\'m missing?
I haven't tested with authentication.
Regards /Bernt
|