osixia / docker-keepalived

Keepalived container image 🐳🌴
MIT License
395 stars 143 forks source link

Is it possible to add a static mac address for a vrrp ip? #34

Closed meyayl closed 4 years ago

meyayl commented 4 years ago

I am using a consumer grade Fritz!Box 7590 DSL router. My problem is, that it does not allow to select the vrrp ip of my three instance keepalived "cluster" as it seems the default mode is ipvlan sharing the same mac adress as the hosts network interface.

Is it possible to configure a static mac address for the vrrp ip assigned to the master node?

meyayl commented 4 years ago

Adding the configuration item use_vmac to keepalived.conf made this work. It results in creating a macvlan interface vrrp.{virtual_router_id} and an identical mac address on each instance. The master node registeres the vip using the mac address on my router now. Though, I ended up creating an ansible role to perform the keepalived setup and configuration.