Re: VRRP: how to move specific MAC from one router to the other on failover?

Andras Korn <[email protected]> Tue, 10 Apr 2018 18:17:54 +0200
Newsgroups gmane.linux.keepalived.devel
Message-ID <20180410161754.j223aoalnw22ujsp@hellgate>
On Tue, Apr 10, 2018 at 03:46:41PM +0000, Damien Clabaut wrote:

Hi,

> > My problem is that the next hop upstream router has a static ARP table; it
> > ignores the gratuitous ARP replies keepalived sends. The only way of making
> > it talk to my backup router is to move the MAC address it has in its ARP
> > table from the master to the backup on failover.
> > 
> > What's a good way of doing this? ebtables NAT? Or use a script to set up a
> > macvlan interface on the master, with the requisite MAC address?
> > 
> > (I thought use_vmac would be a mechanism for this, but apparently it's not.)
>
> You can use the use_vmac to have a virtual interface with a VRRP mac.
> 
> You can find example templates in the beta branch of Keepalived: https://github.com/acassen/keepalived/blob/beta/tools/json_tracking/template_vrrp_instance

I think I didn't explain my problem properly.

I realize I can use use_vmac to have *a* magical MAC address for my router
(although, after trying it, I don't understand how it works and may ask
about it later); the problem is that I need the MASTER to have a *specific*
MAC address (00:26:18:82:8b:07 -- so, not one of those 00:00:5e VRRP MACs).

Andras

-- 
     Money can't buy friends, but you can afford a better class of enemy.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot