Skip to content
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@io7m
Comment options

Answer selected by io7m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants