IP address sharing

Published: Wednesday, July 5, 2017
Tags: techcode

So dhcpcd has supported a shared IP address for a long time. It did this by removing the address from the non preferrred interface and then adding it to the preferred interface.
Easy!
But this came with some issues:
Still, to the best of my knowledge, no other product has this feature and for the most part, it did work well allowing almost seamless switching of wired-> wireless and back again with both using the same IP address. But that wasn’t good enough - I was challenged to do better!
So I took up the bat and changed the behaviour to this:
And lo - IT WORKS!!! The changeover when plugging/removing the wired interface is 100% seamless for me. ssh, ping, etc get zero interuption. Of course, YMMV ;)
But there are some costs:
Only the last bullet is really important, which is mainly why the changeset hasn’t hit the master branch yet. But that should be fixed soon. The other points can be fixed as and when.