Here's some sample configs I'm using:
-- snip -- master config -- snip --
global_defs {
lvs_id director1
}
vrrp_instance INTERNAL {
state MASTER
interface eth0
virtual_router_id 1
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass hayguys
}
virtual_ipaddress {
192.168.10.1
}
}
vrrp_instance EXTERNAL {
state MASTER
interface eth1
virtual_router_id 2
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass hayguys
}
virtual_ipaddress {
11.22.33.44
}
}
vrrp_sync_group SG1 {
group {
INTERNAL
EXTERNAL
}
}
-- snip --
-- snip -- slave config -- snip --
global_defs {
lvs_id director2
}
vrrp_instance INTERNAL {
state SLAVE
interface eth0
virtual_router_id 1
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass hayguys
}
virtual_ipaddress {
192.168.10.1
}
}
vrrp_instance EXTERNAL {
state MASTER
interface eth1
virtual_router_id 2
priority 150
advert_int 1
authentication {
auth_type PASS
auth_pass hayguys
}
virtual_ipaddress {
11.22.33.44
}
}
vrrp_sync_group SG1 {
group {
INTERNAL
EXTERNAL
}
}
-- snip --
--
Ian Eure
Developer,
eNotes.com LLC
|