-
The documentation
However, I don't know what the meaning of gateway is in this context. Is this supposed to be the real gateway address of my physical LAN? On the physical LAN, I'm on, the gateway address is
That is, I'm trying to define a network where |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
macvlan exposed the interfaces as layer2 and traffic will bypass the host netns so you will not be able to capture it there. That means that you address would need to be in the same range as your local LAN using and using the same gateway. |
Beta Was this translation helpful? Give feedback.
macvlan exposed the interfaces as layer2 and traffic will bypass the host netns so you will not be able to capture it there.
That means that you address would need to be in the same range as your local LAN using and using the same gateway.
Now if you manually provide --subnet you may want to use --ip-range to limit the address range podman will assign to the container so it does not cause conflicts with other hosts on the same subnet.
Otherwise by default macvlan will default to use DHCP so if your network already has a DHCP server you could just rely on that.