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

Andras Korn <[email protected]> Fri, 13 Apr 2018 18:05:23 +0200
Newsgroups gmane.linux.keepalived.devel
Message-ID <20180413160523.xq4tyaovse5glncs@hellgate>
On Fri, Apr 13, 2018 at 02:50:11PM +0100, Quentin Armitage wrote:

Hi,

> Would it also be a good idea to add
> notify_stop "/usr/bin/macchanger -p eth1"

Yes, that seems like a good idea.

> It would be useful if you could describe your use case for requiring the
> specific MAC, since if it is a more general requirement then I suspect we could
> implement the MAC change functionality into Keepalived.

I have a leased line implemented via a directed microwave connection, and
the router the ISP supplied with it has a static ARP table that persists
over power cycling. I don't know if this is due to how the ISP set it up, or
whether the router is really this dumb; my guess is it's configured this
way.

I have a small set of globally unique IPv4 IPs and my own router; the ISP
router sends traffic to my IPs via my router. It has a routing table entry like this:

destination	gateway		interface
1.2.3.0/27 	1.2.3.1		eth0

If I replace the internal router, I have to call the ISP and ask them to
update the ARP entry for 1.2.3.1, because otherwise the ISP router will keep
sending traffic to the old MAC, even if I power cycle it.

I don't know how common this is; I haven't seen it elsewhere.

Andras

-- 
   It's easier to exact violence upon the person who wrote bad documentation
  than the person who should have written documentation when there isn't any.

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