以下是一个使用 vrrp_garp_interval 参数的 keepalived 配置样例:

vrrp_instance VI_1 {
    state MASTER
    interface eth0
    virtual_router_id 1
    priority 100
    advert_int 1
    authentication {
        auth_type PASS
        auth_pass MySecretPassword
    }
    virtual_ipaddress {
        192.168.1.100
    }
    garp_master_delay 5
    garp_master_repeat 1
    garp_master_refresh 60
    vrrp_garp_interval 5
}

在上面的配置中,vrrp_garp_interval 参数被设置为 5。这个参数定义了 GARP (Gratuitous ARP) 消息的发送间隔时间,GARP 消息用于通知网络中的其他设备虚拟 IP 地址的所有权已经发生变化。通过设置较短的间隔时间,可以更快地通知网络中的其他设备虚拟 IP 的变更。

Keepalived 配置中的 vrrp_garp_interval 参数示例

原文地址: https://www.cveoy.top/t/topic/qbNY 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录