Macvlan network do not work and do not appear in my home router

Hi,

I am trying to create macvlan network for use with containers that need to access UPnP devices on my home network. A year ago, I did exactly that it “just worked”. Now, I can’t get it to work again. I am configuring the following using compose:

networks:
  macvlan:
    name: macvlan
    driver: macvlan
    driver_opts:
      parent: eth0
    ipam:
      config:
      - subnet: 192.168.50.0/24
        gateway: 192.168.50.1
        ip_range: 192.168.50.0/24

My container is correctly connected to this network.

But nothing happens on the host nor in my router. I remember that when a container was connected to the macvlan network, in my home router I could see its mac address appearing, alongside the one of the host itself. And it worked with UPnP.

But now I don’t see anything appearing in my router, and the UPnP devices on my network don’t see the container. I also tried with an ipvlan type network, with the same results.

I know very little about macvlan and home networking in general, so there might be something I don’t get. But I can’t find if the issue is with my network configuration or with the host.

Could someone help me ?
Any answer is welcome
Have a nice day!

Note : networking mode “host” works, but that is not the desired goal because it blocks me from connecting to other docker networks in bridge mode. I successfully got it working with macvlan in the past so it should still work

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.