Skip to content

common: add IPv6 subnet configuration options#995

Open
thrawn-sh wants to merge 1 commit into
podman-container-tools:mainfrom
thrawn-sh:feature/ipv6-subnet-config
Open

common: add IPv6 subnet configuration options#995
thrawn-sh wants to merge 1 commit into
podman-container-tools:mainfrom
thrawn-sh:feature/ipv6-subnet-config

Conversation

@thrawn-sh

Copy link
Copy Markdown

Currently, IPv6 subnets are always randomly generated from fd00::/8 (RFC 4193), with no way for operators to configure a stable, predictable ULA prefix. This makes it difficult to set up DNS exclude lists, firewall rules, and network documentation for containerized services.

Add default_subnet_v6 and default_subnet_pools_v6 configuration options mirroring the existing IPv4 default_subnet and default_subnet_pools. When default_subnet_v6 is set, the default "podman" network is created as a dual-stack network with the configured IPv6 subnet. When default_subnet_pools_v6 is set, podman network create allocates IPv6 subnets sequentially from the configured pools instead of randomly.

When neither option is set, existing random generation behavior is preserved for full backward compatibility.

Fixes: #87

Currently, IPv6 subnets are always randomly generated from fd00::/8
(RFC 4193), with no way for operators to configure a stable, predictable
ULA prefix. This makes it difficult to set up DNS exclude lists, firewall
rules, and network documentation for containerized services.

Add default_subnet_v6 and default_subnet_pools_v6 configuration options
mirroring the existing IPv4 default_subnet and default_subnet_pools.
When default_subnet_v6 is set, the default "podman" network is created
as a dual-stack network with the configured IPv6 subnet. When
default_subnet_pools_v6 is set, podman network create allocates IPv6
subnets sequentially from the configured pools instead of randomly.

When neither option is set, existing random generation behavior is
preserved for full backward compatibility.

Fixes: podman-container-tools#87

Signed-off-by: Alexander Dreweke <alexander@dreweke.net>
@github-actions github-actions Bot added the common Related to "common" package label Jul 20, 2026
@packit-as-a-service

Copy link
Copy Markdown

Packit jobs failed. @containers/packit-build please check.

1 similar comment
@packit-as-a-service

Copy link
Copy Markdown

Packit jobs failed. @containers/packit-build please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common Related to "common" package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

default_subnet_pools option doesn't support IPv6 pools

1 participant