containers / containers/netavark

Container with macvlan dhcp network does not inherit network routes

Open
#1,290 3 comments 0 reactions 1 assignee Claimed by @blackdragoon26 View on GitHub
kind/bug
Dominant language
Rust
Stars
794
Forks
161
Avg merge
8d 17h
Merged PRs (30d)
3

Description

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 https://github.com/containers/netavark/issues/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).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.