- ##
- yum install -y gcc openssl-devel popt-devel
- ## 源码包安装
- wget https://www.keepalived.org/software/keepalived-2.0.19.tar.gz
-
- ## yum方式安装
- yum install keepalived
-
- ! Configuration File for keepalived
-
- global_defs {
- notification_email {
- knight.zhou@qq.com
- }
- notification_email_from Alexandre.Cassen@firewall.loc
- smtp_server 192.168.200.1
- smtp_connect_timeout 30
-
- router_id base-01
- vrrp_skip_check_adv_addr
- vrrp_strict
- vrrp_garp_interval 0
- vrrp_gna_interval 0
- }
-
- vrrp_instance VI_1 {
- state BACKUP
- interface ens33
- virtual_router_id 51
- priority 80
- advert_int 1
- authentication {
- auth_type PASS
- auth_pass 1111
- }
- virtual_ipaddress {
- 172.16.10.140
- }
- }
-
- [root@base-01 keepalived]#
-
- ! Conf