Submitted by luck___star on 周三, 2014-06-18 07:04
主网关配置:
[root@localhost ~]# cat /etc/keepalived/keepalived.conf
#指定keepalived在发生切换时需要发送email到的对象,一行一个
global_defs {
notification_email {
acassen@firewall.loc
}
#指定发件人
notification_email_from Alexandre.Cassen@firewall.loc
#指定smtp服务器地址
smtp_server 127.0.0.1
#指定smtp连接超时时间
smtp_connect_timeout 30
router_id LVS_DEVEL #运行keepalived机器的一个标识
}