Submitted by windyyu on 周一, 2015-08-24 09:08
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