其他分享
首页 > 其他分享> > keepalived单播设置

keepalived单播设置

作者:互联网

具体的配置文件参考如下

10.88.0.28 为MFS的master节点之一

10.88.0.29 为MFS的master节点之一

10.88.0.111 为VIP

$ cat /soft/keepalived/etc/keepalived/keepalived.conf
! Configuration File for keepalived
global_defs {
  notification_email {
    root@localhost
    }
notification_email_from keepalived@localhost
smtp_server 127.0.0.1
smtp_connect_timeout 30
router_id mfsmaster-10.88.0.28-sz
}
vrrp_script chk_mfs {
  script "/soft/mfs/keepalived_check_mfsmaster.sh"
  interval 2
  weight 2
}
vrrp_instance VI_1 {
  state MASTER
  interface eth0
  virtual_router_id 51
  priority 100
  advert_int 1
  authentication {
    auth_type PASS
    auth_pass 1111
}
  track_script {
    chk_mfs
}
  unicast_src_ip 10.88.0.28
  unicast_peer {
        10.88.0.29
}
virtual_ipaddress {
    10.88.0.111
}
nopreempt
garp_master_delay 1
garp_master_refresh 5
notify_master "/etc/keepalived/clean_arp.sh 10.88.0.111"
}

标签:0.28,script,keepalived,单播,mfs,master,设置,10.88
来源: https://blog.csdn.net/ethnicitybeta/article/details/122672821