50 lines
799 B
Plaintext
50 lines
799 B
Plaintext
|
global_defs {
|
||
|
vrrp_no_swap
|
||
|
checker_no_swap
|
||
|
script_user nobody
|
||
|
enable_script_security
|
||
|
}
|
||
|
|
||
|
vrrp_instance capport_ipv4_default {
|
||
|
state BACKUP
|
||
|
|
||
|
interface <%= @uplink_interface %>
|
||
|
|
||
|
virtual_router_id 1
|
||
|
|
||
|
priority 100
|
||
|
|
||
|
virtual_ipaddress {
|
||
|
<% @uplink_virtual_ipv4 %>
|
||
|
<% @client_virtual_ipv4 %> dev <%= @client_interface %>
|
||
|
}
|
||
|
|
||
|
promote_secondaries
|
||
|
}
|
||
|
|
||
|
vrrp_instance capport_ipv6_default {
|
||
|
state BACKUP
|
||
|
|
||
|
interface <%= @uplink_interface %>
|
||
|
|
||
|
virtual_router_id 2
|
||
|
|
||
|
priority 100
|
||
|
|
||
|
virtual_ipaddress {
|
||
|
fe80::1:1
|
||
|
<%= @uplink_virtual_ipv6 %>
|
||
|
fe80::1 dev <%= @client_interface %>
|
||
|
<%= @client_virtual_ipv6 %> dev <%= @client_interface %>
|
||
|
}
|
||
|
|
||
|
promote_secondaries
|
||
|
}
|
||
|
|
||
|
vrrp_sync_group capport_default {
|
||
|
group {
|
||
|
capport_ipv4_default
|
||
|
capport_ipv6_default
|
||
|
}
|
||
|
}
|