Open fpoirotte opened 1 year ago
@Luap99 PTAL
I see the use-case for multiple ip ranges but why do you want multiple networks with different ranges? Wouldn't it better to allow multiple ranges for the same subnet in the same network.
Doing this across multiple networks is much more complicated. We would need to ensure the same bridge interface name is used with the same subnet. And even then I think the iptables rules would still be duplicated as we use the name, this should not cause problems but still adds unnecessary work.
A friendly reminder that this issue had no activity for 30 days.
@Luap99 : you mean something like: podman network create --subnet 10.44.0.0/24 --subnet 10.44.1.0/24 subnet
?
I seem to have missed this possibility in my initial testing, and I think this would indeed solve my problem.
Given your previous answer, feel free to close this issue.
you mean something like:
podman network create --subnet 10.44.0.0/24 --subnet 10.44.1.0/24 subnet
?
This would create an interface with two ipv4 addresses, one from each subnet.
I don't understand why do you want two networks for this? To me this sounds like you want multiple ip range per network:
--subnet 10.44.0.0/16 --ip-range 10.44.0.0/24 --ip-range 10.44.1.0/24
Feature request description
I would like to be able to create several networks which share the same base subnet (e.g. 10.44.0.0/16), but use different (non-overlapping) IP ranges (e.g. 10.44.0.0/24, 10.44.1.0/24, etc.).
Currently, this fails when attempting to create the second network:
A manual workaround is available (see below), but I'm looking for a way to make this more user-friendly.
Suggest potential solution
The commands given above should work without erroring out.
Have you considered any alternatives?
The following workaround works but is a bit tedious and error prone:
podman network create ...
as usual<network>.conflist
for CNI &<network>.json
for netavark)Additional context
podman info: