ubuntu1804 keepalived

Posted alexhe

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu1804 keepalived相关的知识,希望对你有一定的参考价值。

主:

cat /etc/keepalived/keepalived.conf
! Configuration File for keepalived

global_defs {
router_id LVS_DEVEL
}

vrrp_instance VI_1 {
state MASTER
interface ens33
#garp_master_delay 10
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.219.88 label ens33:1
#192.168.200.17
#192.168.200.18

# optional label. should be of the form "realdev:sometext" for
# compatibility with ifconfig.
#192.168.200.18 label eth0:1
}
}

备:

root@kb:~# cat /etc/keepalived/keepalived.conf
global_defs {
router_id LVS_DEVEL
}

vrrp_instance VI_1 {
state BACKUP
interface ens33
#garp_master_delay 10
virtual_router_id 51
priority 100
advert_int 1
authentication {
auth_type PASS
auth_pass 1111
}
virtual_ipaddress {
192.168.219.88 label ens33:1
#192.168.200.17
#192.168.200.18

# optional label. should be of the form "realdev:sometext" for
# compatibility with ifconfig.
#192.168.200.18 label eth0:1
}
}

以上是关于ubuntu1804 keepalived的主要内容,如果未能解决你的问题,请参考以下文章

ubuntu1804修改远程root用户登录系统

ubuntu1804安装后设置

ubuntu1804 cuda安装

Ubuntu1804 安装 Nginx

ubuntu1804 安装Nvidia驱动

ubuntu1804日常小知识