vrrp_instance VI_1 {
# Select proper parameters for the primary and secondary CVMs.
state MASTER #Set the initial status to `Backup`.
interface eth0 #The ENI such as `eth0` used to bind a VIP
virtual_router_id 51 #The`virtual_router_id` value for the cluster
nopreempt #Non-preempt mode
preempt_delay 10 #Set the preempt delay to 10 minutes
priority 100 #Priority. The larger the value, the higher the priority
advert_int 1 #Check interval. The default value is 1 second
authentication { #Authentication
auth_type PASS #Authentication method
auth_pass 1111 #Authentication password
}
unicast_src_ip 172.16.16.5 #Private IP address of the local device
unicast_peer{
172.16.16.6 #IP address of the peer device
}
virtual_ipaddress {
172.16.16.12 #Set the "HAVIP" as a floating IP
}
}
문제 해결에 도움이 되었나요?