acassen / keepalived

Keepalived
https://www.keepalived.org
GNU General Public License v2.0
4.01k stars 736 forks source link

gap and gna help #2510

Closed Mixlining closed 4 days ago

Mixlining commented 4 days ago

Hello, I am confused about the official configuration documents during using keepalived. If my config is:

vrrp_instance VI_1 {
    state BACKUP
    interface eth0
    virtual_router_id 51
    priority 90
    advert_int 1

    virtual_ipaddress {
        192.168.1.100 dev eth1
    }
}

then I config items like "vrrpgarp" and "vrrpgna" . The gna and garp will send via eth0 or eth1 ? Can I specify the network interface for GARP and GNA packets?

pqarmitage commented 4 days ago

The varp_gna_ configuration is not relevant since you are not using IPv6.

The GARP packets should be sent on eth1, since that it the interface that the VIP is configured on. There is no point in sending the GARP packets on any other interface, and indeed it would be wrong to do so.

If you need any further help with this, you will need to provide the following and we can then reopen this issue:

  1. the output of keepalived -v
  2. your full keepalived configuration
  3. separate tcpdump packet traces on both eth0 and eth1 showing VRRP adverts and GARP messages.
pqarmitage commented 4 days ago

If you are still experiencing problems you should upgrade to a recent version of keepalived, e.g. v2.3.2, since v1.3.5 is extremely old.