Keepalived on Ubuntu
安装
```
apt-get install keepalived
```
配置
```
vrrp_sync_group VG {
group {
VG_1
}
}
vrrp_instance VG_1 {
state BACKUP
interface em1
virtual_router_id 51
priority 101
advert_int 1
authentication {
auth_type PASS
auth_pass xxxx
}
track_interface {
em1
em3
}
virtual_ipaddress {
xxx.xxx.xxx.xxx/24 dev em3
xxx.xxx.xxx.xxx/24 dev em1
}
nopreempt
}
```
启动
```
/etc/init.d/keepalived start
```
keepalived UBUNTU
更新于 2023年03月28日 20:53:55