mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-20 08:25:50 +08:00
Update keepalived.conf
This commit is contained in:
@@ -48,7 +48,7 @@ track_script {
|
||||
vrrp_instance VI_1 {
|
||||
state BACKUP #这里所有节点都定义为BACKUP
|
||||
interface ens34 #指定虚拟ip的网卡接口
|
||||
mcast_src_ip 192.168.10.11 #本地IP
|
||||
mcast_src_ip 192.168.10.16 #本地IP
|
||||
virtual_router_id 51 #路由器标识,MASTER和BACKUP必须是一致的
|
||||
priority 101
|
||||
#定义优先级,数字越大,优先级越高,在同一个vrrp_instance下,MASTER的优先级必须大于BACKUP的优先级。
|
||||
|
||||
Reference in New Issue
Block a user