diff --git "a/\320\224\320\276\320\274\320\260\321\210\320\275\320\265\320\265 \320\267\320\260\320\264\320\260\320\275\320\270\320\265 \320\272 \320\267\320\260\320\275\321\217\321\202\320\270\321\216 \"10.1. Keepalived" "b/\320\224\320\276\320\274\320\260\321\210\320\275\320\265\320\265 \320\267\320\260\320\264\320\260\320\275\320\270\320\265 \320\272 \320\267\320\260\320\275\321\217\321\202\320\270\321\216 \"10.1. Keepalived" new file mode 100644 index 0000000..7024ffd --- /dev/null +++ "b/\320\224\320\276\320\274\320\260\321\210\320\275\320\265\320\265 \320\267\320\260\320\264\320\260\320\275\320\270\320\265 \320\272 \320\267\320\260\320\275\321\217\321\202\320\270\321\216 \"10.1. Keepalived" @@ -0,0 +1,40 @@ +Домашнее задание к занятию "10.1. Keepalived/vrrp" -Дмитрий Савченко +------- нода 1 ------ + +vrrp_instance failover_test { +state MASTER +interface enp0s3 +virtual_router_id 10 +priority 110 +advert_int 4 +authentication { +auth_type AH +auth_pass 1111 +} +unicast_peer { +192.168.0.101 +} + virtual_ipaddress { + 192.168.0.254 dev enp0s3 label enp0s3:vip +} +} + +-------нода 2 ------- + +vrrp_instance failover_test { +state BACKUP +interface enp0s3 +virtual_router_id 10 +priority 110 +advert_int 4 +authentication { +auth_type AH +auth_pass 1111 +} +unicast_peer { +192.168.0.102 +} + virtual_ipaddress { + 192.168.0.254 dev enp0s3 label enp0s3:vip +} +}