Skip to content

dhcp: Add priority option to dhcp.#1091

Merged
squeed merged 1 commit intocontainernetworking:mainfrom
lisongmin:add-priority-option-to-dhcp
Sep 17, 2024
Merged

dhcp: Add priority option to dhcp.#1091
squeed merged 1 commit intocontainernetworking:mainfrom
lisongmin:add-priority-option-to-dhcp

Conversation

@lisongmin
Copy link
Copy Markdown
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.

@lisongmin lisongmin force-pushed the add-priority-option-to-dhcp branch from a1cecda to 7c17f87 Compare September 14, 2024 11:36
@lisongmin lisongmin force-pushed the add-priority-option-to-dhcp branch from 7c17f87 to 4afafa5 Compare September 16, 2024 17:01
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 <lisongmin@protonmail.com>
@lisongmin lisongmin force-pushed the add-priority-option-to-dhcp branch from 4afafa5 to 442e8bb Compare September 16, 2024 17:10
@squeed squeed merged commit cc8b1bd into containernetworking:main Sep 17, 2024
@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