Error response from daemon: failed to allocate gateway (192.168.10.1): Address already in use
i found this problem a couple of times on the net but unfortunately no solution. I guess i should extend the ip-range (192.168.10.199/29) but i have no clue how to bind the two macvlans (test1 and test 2) then to a specific ip-adress.
There is no usecase for two docker networks using the same gateway, as they wouldn’t be isolated after all. So as you said, you simply extend the range of the existing network. Then you assign an ip to your service, e.g. in your compose files:
I’m in the same predicament. I want to set up a reverse proxy that gets two IPs via the MAC VLAN…
The Traefik reverse proxy should manage both the local proxy and the web proxy.
One IP address would be for the local proxy and the other for the web proxy, since I don’t want anyone accessing my local servers through the web proxy.
It’s not possible to set up two MAC VLANs…
and something like this isn’t possible either:
networks:
macvlan-web:
external: true
name: macvlan
macvlan-local:
external: true
name: macvlan
It is not possible to have multple docker networks that use the same gateway ip, regardless of the driver.
When It comes to macvlan, before docker version 27.0.1 it was not even allowed to create more than one macvlan network usnig the same parent interface.