netavark icon indicating copy to clipboard operation
netavark copied to clipboard

Add support for classless static routes (options 121 and 249) for DHCP ipam

Open Domini opened this issue 6 months ago • 4 comments

At the moment DHCP ipam ignores classless static routes (option 121) and Microsoft classless static routes (option 249) options provided from DHCP server.

The workaround to hardcode the routes through podman network create --route does not work either.

The workaround to create the routes from within the container significantly increases complexity and also introduces security risks (CAP_NET_ADMIN required), and especially increases complexity if you are trying to run container PID 1 not from USER root.

As far as I can tell, netavark uses mozim for DHCP, and AFAICan tell mozim does not support classless static routes either.

Domini avatar Jul 12 '25 11:07 Domini