Editing
KeepAlived
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Balansare IP cu KeepAlived pe Ubuntu 2X.04 LTS == [[File:Keepalived.png|782x782px|none|Keepalived]] Pentru instalare keepalived se cere uneori (depinzand de ditributie si/sau versiune) instalarea librariei libipset13 <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- -->apt install -y keepalived libipset13 </code> Pe fiecare dintre noduri se creaza si editeaza urmatorul fisier: <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- -->nano /etc/keepalived/keepalived.conf </code> cu urmatorul continut ===== ha01 ===== <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- -->vrrp_instance VIP { state MASTER interface ens18 virtual_router_id 66 priority 99 advert_int 1 unicast_src_ip 192.168.14.11 unicast_peer { 192.168.14.22 192.168.14.33 } authentication { auth_type PASS auth_pass <span style="color:#f00">[pass1234]</span> } virtual_ipaddress { 192.168.14.123/24 } } </code> ===== ha02 si ha03 ===== <code class="mw-code mw-highlight plainlinks" style="display:block"><!-- -->vrrp_instance VIP { state BACKUP interface ens18 virtual_router_id 66 priority 97 <span style="color:#f00"><- pentru ha02</span> priority 95 <span style="color:#f00"><- pentru ha03</span> advert_int 1 unicast_src_ip 192.168.14.22 <span style="color:#f00"><- pentru ha02</span> unicast_src_ip 192.168.14.33 <span style="color:#f00"><- pentru ha03</span> unicast_peer { 192.168.14.11 192.168.14.33 <span style="color:#f00"><- pentru ha02</span> 192.168.14.22 <span style="color:#f00"><- pentru ha03</span> } authentication { auth_type PASS auth_pass <span style="color:#f00">[pass1234]</span> } virtual_ipaddress { 192.168.14.123/24 } } </code> ===== Legenda ===== '''vrrp_instance''' = numele instantei de VIP<br> '''state''' = numele NIC-ului fizic sau virtual<br> '''virtual_router_id''' = este un ID ce se aloca instantei respective (keepalived poate balansa mai multe IP-uri de pe mai multe NIC-uri)<br> '''priority''' = reprezinta prioritatea serverului respectiv in lantul de redundanta<br> '''advert_int''' = intervalul (secunde) in care se face verificarea celoralte instante de VIP<br> '''unicast_src_ip''' = se trece IP-ul NIC-ului de pe serverul curent<br> '''unicast_peer''' = se trec IP-urile celorlalte servere din instanta<br> '''auth_pass''' = parola de maxim opt caractere persistenta pe toate instantele<br> '''virtual_ipaddress''' = identifica IP-ul flotant de pe instantele de keepalived
Summary:
Please note that all contributions to Linux Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Linux Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
Edit source
View history
More
Navigation
Main page
Aplicatii Linux
UrBackup
rSyslog
KeepAlived
DHCP
BIND DNS
USB over IP
Hardware Linux
Adaugare Disk
Extindere Disk
Docker
Instalare Docker CE
Portainer
Container UrBackup
Container PiHole
Snippets
History Command
Access Control List
Tools
What links here
Related changes
Special pages
Page information