Package: keepalived
Version: 1.2.13-1
Severity: normal

Hi !
I want to use vrrp_garp_master_refresh to make sure my firewall is aware
of every switch between the slave and the master (we had at least one
incident when it was not the case).

When I put vrrp_garp_master_refresh 10 in the global_defs section,
nothing happen.

When I restart the service, I don't see the parameters in the dumped
configuration :

Keepalived_vrrp[36970]: ------< Global definitions >------
Keepalived_vrrp[36970]:  Router ID = xxxxxxxx
Keepalived_vrrp[36970]:  Smtp server = 127.0.0.1
Keepalived_vrrp[36970]:  Smtp server connection timeout = 30
Keepalived_vrrp[36970]:  Email notification from =
x...@blue-solutions.com
Keepalived_vrrp[36970]:  Email notification = x...@polyconseil.fr
Keepalived_vrrp[36970]:  Email notification = x...@polyconseil.fr
Keepalived_vrrp[36970]:  VRRP IPv4 mcast group = 224.0.0.18
Keepalived_vrrp[36970]:  VRRP IPv6 mcast group = 224.0.0.18
Keepalived_vrrp[36970]:  SNMP Trap disabled

And if I use tcpdump to check the GARP, there is nothing to see.
However, when I stop keepalived on the master server, I can see the garp
request sent during the switch :

tcpdump -nteli any arp
ethertype ARP Request who-has xxx.xx.xx.xx (ff:ff:ff:ff:ff:ff) tell
xxx.xx.xx.xx, length 46
ethertype ARP Request who-has yyy.yy.y.yy (ff:ff:ff:ff:ff:ff) tell
yyy.yy.y.yy, length 46

I thought I would see this king of request every 10 seconds using
"vrrp_garp_master_refresh 10". Am I misunderstanding something ?

Official documentation :
global_defs {          # Block identification
    notification_email {
       ...
    }
       ...
    vrrp_garp_master_refresh <INTEGER>     # Periodic delay in seconds
                       #  sending gratuitous ARP while in MASTER state
                       #  Default: 0 (no refreshing)
    vrrp_garp_master_refresh_repeat <INTEGER> # how many gratuitous
ARP messages shoule be sent
                       #  at each periodic repeat
                       #  Default: once (per period)
}

Here is my full keepalived.conf file :

global_defs {
    notification_email {
    x...@polyconseil.fr
    x...@polyconseil.fr
    }
    notification_email_from x...@blue-solutions.com
    smtp_server 127.0.0.1
    smtp_connect_timeout 30
    vrrp_garp_master_refresh 10
}

vrrp_script 23c1ddc2-8091-5efc-aecc-9dd80657bfe0 {
    script "killall -0 haproxy"
    interval 2
    fall 2
    rise 4
}

vrrp_sync_group sync-group {
    group {
    ws-bi-vrrp
    ws-lb-vrrp
    }
}

vrrp_instance ws-bi-vrrp {
    interface eth2
    state BACKUP
    nopreempt
    advert_int 2
    virtual_router_id 16
    smtp_alert
    priority 118
    authentication {
        auth_type PASS
        auth_pass xxxxxxxxxx
    }
    track_interface {
    eth2
    }
    virtual_ipaddress {
    xxx.xx.xx.xx
    }
    track_script {
        23c1ddc2-8091-5efc-aecc-9dd80657bfe0
    }
}
vrrp_instance ws-lb-vrrp {
    interface eth1
    state BACKUP
    nopreempt
    advert_int 2
    virtual_router_id 20
    smtp_alert
    priority 118
    authentication {
        auth_type PASS
        auth_pass xxxxxxxxxx
    }
    track_interface {
    eth1
    eth2
    }
    virtual_ipaddress {
    yyy.yy.y.yy
    }
    track_script {
        23c1ddc2-8091-5efc-aecc-9dd80657bfe0
    }
}

Best regards,

-- System Information:
Debian Release: 8.2
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

-- 

*Christian PATRY*
*BlueSolutions@Polyconseil* | 26 rue de Berri, 75008 Paris

Reply via email to