Cannot ping jellyfin macvlan IP

Hi, new to this forum.

I am currently setting up jellyfin/jellyfin docker. I have traefik to handle 80 -> 8096 and cloudflare to handle SSL, no problem at all.

The only concern is DLNA. I have created a macvlan with the following detail:

[
{
“Name”: “jellyfin-macvlan”,
“Id”: “ef2ba26926286dce21ba861cd67a690d84da0bb0b77b4556b400c6832b77afc2” ,
“Created”: “2020-12-01T11:16:47.268703518+08:00”,
“Scope”: “local”,
“Driver”: “macvlan”,
“EnableIPv6”: false,
“IPAM”: {
“Driver”: “default”,
“Options”: null,
“Config”: [
{
“Subnet”: “172.16.10.0/24”
}
]
},
“Internal”: false,
“Attachable”: true,
“Ingress”: false,
“ConfigFrom”: {
“Network”: “”
},
“ConfigOnly”: false,
“Containers”: {
“3904321af604c1f21d30228a3f1f2b827c6a226c9eafc76554f32c0ccf8bdc2f”: {
“Name”: “jellyfin”,
“EndpointID”: “084bcf750af88431c61c1e4eb535a752009e7743e4c5011b9 91f69065c04bc08”,
“MacAddress”: “02:42:ac:10:0a:a5”,
“IPv4Address”: “172.16.10.165/24”,
“IPv6Address”: “”
}
},
“Options”: {
“parent”: “eth0”
},
“Labels”: {
“com.docker.compose.network”: “jellyfin-macvlan”,
“com.docker.compose.project”: “docker_vol”,
“com.docker.compose.version”: “1.27.4”
}
}
]

The problem is that I cannot ping 172.16.10.165 from a win10 PC (not the docker host), so obviously the Win10 cannot find jellyfin DLNA server

Jelllyfin docker service is as follow:

jellyfin:
image: jellyfin/jellyfin:latest
container_name: jellyfin
restart: unless-stopped
networks:
jellyfin-macvlan:
ipv4_address: 172.16.10.165
proxy: {}
environment:
- PUID=1000
- PGID=1000
- TZ=Asia/Hong_Kong
- UMASK_SET=<022>
labels:
- traefik.enable=true
- traefik.docker.network=proxy
- traefik.http.routers.jellyfin-secure.entrypoints=websecure
- traefik.http.routers.jellyfin-secure.rule=Host(media.mydomain.tld)
- traefik.http.routers.jellyfin-secure.service=jellyfin-service
- traefik.http.services.jellyfin-service.loadbalancer.server.port=8096
volumes:
- ‘/docker_vol/jellyfin/storage/config:/config’
- ‘/docker_vol/jellyfin/storage/mv:/data/mv’
- ‘/docker_vol/jellyfin/storage/movies:/data/movies’
ports:
- ‘7359:7359/udp’
- ‘1900:1900/udp’

networks:
proxy: #this is external traffic used by traefik
external: true
jellyfin-macvlan:
name: jellyfin-macvlan
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 172.16.10.0/24

Any help would be appreciated, thanks!

I have deploy another test docker and attach it to the macvlan with the ip 172.16.10.166. I can ping 172.16.10.165 inside this test container.

So anything that is outside the container network, even the nodes are on the same subnet, are not pingable. Would it be anything wrong on the host machine? docker host is running alpine linux.

end up I found that I need to enable promiscuous mode on the esxi portgroup…