keepalived.config (3896B)
1 config global_defs 2 option alt_config_file "/etc/keepalived/keepalived.conf" 3 # list notification_email "acassen@firewall.loc" 4 # list notification_email "failover@firewall.loc" 5 # list notification_email "sysadmin@firewall.loc" 6 # option notification_email_from "Alexandre.Cassen@firewall.loc" 7 # option smtp_server "192.168.200.1" 8 # option smtp_connect_timeout "30" 9 # option router_id "LVS_DEVEL" 10 # option vrrp_mcast_group4 "224.0.0.18" # optional, default 224.0.0.18 11 # option vrrp_mcast_group6 "f02::12" # optional, default ff02::12 12 # option linkbeat_use_polling "1" 13 14 #config ipaddress 15 # option name "ipaddress0" 16 # option address "192.168.1.1/24" 17 # option device "eth0" 18 # option scope "global" 19 20 #config ipaddress 21 # option name "ipaddress1" 22 # option address "192.168.1.2/24" 23 # option device "eth1" 24 # option scope "global" 25 26 #config ipaddress 27 # option name "ipaddress2" 28 # option address "192.168.1.1/24" 29 # option device "eth0" 30 # option scope "link" 31 32 #config ipaddress 33 # option name "ipaddress3" 34 # option address "192.168.1.2/24" 35 # option device "eth2" 36 # option scope "site" 37 38 #config ipaddress 39 # option name "ipaddress4" 40 # option address "192.168.1.1/24" 41 # option device "eth0" 42 # option scope "host" 43 44 #config ipaddress 45 # option name "ipaddress5" 46 # option address "192.168.1.2/24" 47 # option device "eth0" 48 # option scope "nowhere" 49 50 #config route 51 # option name "route0" 52 # option address "192.168.1.1/24" 53 # option gateway "192.168.0.1" 54 # option device "eth0" 55 56 #config route 57 # option name "route1" 58 # option address "192.168.2.1/24" 59 # option gateway "192.168.0.1" 60 # option device "eth0" 61 62 #config route 63 # option name "route2" 64 # option address "127.0.0.1" 65 # option blackhole "1" 66 67 #config static_ipaddress 68 # list address "ipaddress0" 69 # list address "ipaddress1" 70 71 #config static_routes 72 # list route "route0" 73 # list route "route1" 74 75 #config vrrp_sync_group 76 # option name "VI_sync_group_1" 77 # list group "VI_1" 78 # list group "VI_2" 79 # option smtp_alert "1" 80 # option notify_backup "<switch-backup-state-script>" 81 # option notify_master "<switch-master-state-script>" 82 # option notify_fault "<switch-fault-state-script>" 83 # option notify "<switch-any-state-script>" 84 # option global_tracking 1 85 86 #config track_interface 87 # option name "track_intf1" 88 # option value "eth0" 89 # option weight "1" 90 91 #config track_interface 92 # option name "track_intf2" 93 # option value "eth1" 94 # option weight "2" 95 96 #config track_script 97 # option name "track_script1" 98 # option value "<script-file1>" 99 # option weight "1" 100 101 #config track_script 102 # option name "track_script2" 103 # option value "<script-file2>" 104 # option weight "2" 105 106 #config vrrp_instance 107 # option name "VI_1" 108 # option use_vmac "eth0" 109 # option native_ipv6 "1" 110 # option state "MASTER" 111 # option interface "eth0" 112 # list track_interface "track_intf1" 113 # list track_interface "track_intf2" 114 # list track_script "track_script1" 115 # list track_script "track_script2" 116 # option dont_track_primary "1" 117 # list unicast_peer "192.168.0.1" 118 # list unicast_peer "192.168.1.1" 119 # list virtual_ipaddress "ipaddress2" 120 # list virtual_ipaddress "ipaddress3" 121 # list virtual_ipaddress_excluded "ipaddress4" 122 # list virtual_ipaddress_excluded "ipaddress5" 123 # list virtual_routes "route1" 124 # list virtual_routes "route2" 125 # option mcast_src_ip "224.0.0.1" 126 # option unicast_src_ip "192.168.0.1" 127 # option virtual_router_id "128" 128 # option priority "128" 129 # option advert_int "5" 130 # option nopreempt "1" 131 # option preempt_delay "500" 132 # option debug "2" 133 # option notify_backup "<switch-backup-state-script>" 134 # option notify_master "<switch-master-state-script>" 135 # option notify_fault "<switch-fault-state-script>" 136 # option notify_stop "<switch-stop-state-script>" 137 # option notify "<switch-any-state-script>" 138 # option smtp_alert "1" 139 # option accept "1" 140 141 #config vrrp_script 142 # option script "<script-file>" 143 # option interval "5" 144 # option weight "10" 145 # option fall "2" 146 # option rise "3" 147