-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for ClientID to DHCP #17
Comments
Ok, this won't work. Adding support for ClientID option is still a good idea but DHCP won't work with ipvlan. DHCPOFFER will come back with some IP but ipvlan machinery won't yet know to which enslaved device to forward it to. |
ClientID is "containerid/netname" and can help with visibility into allocated IPs in DHCP server. Unforunately it still does not make it possible to use DHCP with ipvlan as the messages coming from the DHCP server can't be forwarded to the correct ipvlan interface since they don't yet have the IP assigned. Fixes containernetworking#17
@eyakubovich can you describe a bit more what your problem is? I've had ipvlan + DHCP working with multiple OpenShift containers in the past here: https://github.com/dcbw/openshift-sdn/commits/dcbw/ipvlan There are at least a couple of caveats:
I'll bet your issue is (1) and/or (5). |
ClientID is "containerid/netname" and can help with visibility into allocated IPs in DHCP server. Unforunately it still does not make it possible to use DHCP with ipvlan as the messages coming from the DHCP server can't be forwarded to the correct ipvlan interface since they don't yet have the IP assigned. Fixes containernetworking#17
Broadcast is necessary for ipvlan plugin as kernel will drop unicast replies since the slave device has not yet been configured with an IP. ClientID is "containerid/netname" and can help with visibility into allocated IPs in DHCP server. It is also important for ipvlan as all h/w addresses are the same. Fixes containernetworking#17
Broadcast is necessary for ipvlan plugin as kernel will drop unicast replies since the slave device has not yet been configured with an IP. ClientID is "containerid/netname" and can help with visibility into allocated IPs in DHCP server. It is also important for ipvlan as all h/w addresses are the same. Fixes containernetworking#17
Broadcast is necessary for ipvlan plugin as kernel will drop unicast replies since the slave device has not yet been configured with an IP. ClientID is "containerid/netname" and can help with visibility into allocated IPs in DHCP server. It is also important for ipvlan as all h/w addresses are the same. Fixes containernetworking#17
Broadcast is necessary for ipvlan plugin as kernel will drop unicast replies since the slave device has not yet been configured with an IP. ClientID is "containerid/netname" and can help with visibility into allocated IPs in DHCP server. It is also important for ipvlan as all h/w addresses are the same. Fixes containernetworking#17
@dcbw thank you for your answer here, it helped me a lot by pointing me in the right direction. Details at NixOS/nixpkgs#48753 (comment) |
With ipvlan, all interfaces will share the MAC address so the DHCP server will return the same lease. Need to add support for ClientID (DHCP option 61). The value can be ContainerID by default but over-rideable via
CNI_ARGS
.The text was updated successfully, but these errors were encountered: