Skip to content

Container with macvlan dhcp network does not inherit network routes #1290

@Domini

Description

@Domini

When you create a macvlan dhcp network with hardcoded routes, e.g. podman network create --driver=macvlan --ipam-driver=dhcp --route=X, containers using this network ignore provided --route=X and only insert direct connected route for dhcp-provided IP/subnet and (unless --opt no_default_route provided to podman network create) default route to dhcp-provided gateway.

Together with #1280 this makes it impossible to insert necessary routes declaratively from either hardcoded --route or from DHCP, only programmatically from within the container itself (or with ip netns dirty magic from the host).

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions