Skip to content
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: Add priority option to dhcp. #1091

Merged

Conversation

lisongmin
Copy link
Contributor

Currently, we can not set the metric of routes in dhcp. It's ok if there is only a network interface.

But if there are multiple network interfaces, and both have a default route, We need to set the metric of the route to make the traffic go through the correct network interface.

For host-local and static, we can set the metric with the route.priority option. But there is no such option for dhcp.

pkg/ipam/ipam_linux.go Show resolved Hide resolved
Currently, we can not set the metric of routes in dhcp.
It's ok if there is only a network interface.

But if there are multiple network interfaces, and both have a default route,
We need to set the metric of the route to make the traffic
go through the correct network interface.

For host-local and static, we can set the metric with the route.priority option.
But there is no such option for dhcp.

Signed-off-by: Songmin Li <[email protected]>
@squeed squeed merged commit cc8b1bd into containernetworking:main Sep 17, 2024
5 checks passed
@lisongmin lisongmin deleted the add-priority-option-to-dhcp branch September 24, 2024 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants