同一內網使用多組主從keepalived



#Configuration File for keepalived
  global_defs {
  router_id haproxy_ha2          --這裏不能重複
}
  vrrp_instance VI_HAPROXY {
  state BACKUP
  nopreempt
  interface eth1 ##內網網卡名稱
  virtual_router_id 48           --這裏不能重複
  priority 100 ##這裏不用改
  advert_int 1
  authentication {
  auth_type PASS
  auth_pass 1111
  }
  track_script {
  check_haproxy
  }
  virtual_ipaddress {
  10.10.102.211                --這裏不能重複
  }
}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章