-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DHCP proxy doesn't honor host config #695
Comments
Yes the proxy has no idea about any settings on the host interface. First of all how would we even know what dhcp settings do you use? We have no idea until we start reading NetworkManager configs but then other users may not be using network manager so how can we even know that. Supporting this would be a nightmare.
Not at present. The only way I see us supporting this is to allow some options as network options, i.e. |
I see, thank you! |
Is there a specific reason that you have to set dhcp-vendor-class-identifier? We can consider adding this as feature if you need it. |
I was looking to configure a separate set of DHCP options (through |
If DHCP request can carry custom options settable during container creation (for example, #676 wants to send container name as hostname), then you can add a client class in the DHCP server, and assign class-specific options. However, currently all requests comes from the DHCP proxy is not carrying additional info about container, except for a random MAC address. |
For an interface
eth0
with DHCP client settings configured similar to the following:and a
macvlan
Podman network with DHCP proxy:$ sudo podman network create -d macvlan -o parent=eth0 webnetwork $ sudo systemctl enable --now netavark-dhcp-proxy.socket
I would expect that the
macvlan
network honor the configuration of the parent connection through the DHCP proxy, but this doesn't appear to be the case. Testing with a simple container such as:and using
dhcpdump -i eth0
on the host, I'm not seeing the DHCP option being sent in requests by the container. I have confirmed the host will send it if it makes a DHCP request itself however.Is this intended behavior? Is there any way to get the network to use the host's DHCP configuration?
The text was updated successfully, but these errors were encountered: