码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu1804 keepalived

时间:2020-05-07 11:59:27      阅读:84      评论:0      收藏:0      [点我收藏+]

标签:com   ubunt   optional   orm   ack   ifconf   lvs   ipaddress   inter   

主:

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

标签:com   ubunt   optional   orm   ack   ifconf   lvs   ipaddress   inter   

原文地址:https://www.cnblogs.com/alexhjl/p/12842001.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!