大网数据广告活动
服务器运维问答

Can DHCP Option121 work with DHCP Option3 together?

· 52CE 我爱测

I have a router with DHCP Option3(Router) set, and it works well. My Ubuntu22.04 machine was able to configure the default route automatically. Yesterday, I configured DHCP Option121 (Classless route) on my DHCP Server. After thi…

问题原文

原帖链接 · Shiyao Wang · CC BY-SA 4.0

I have a router with DHCP Option3(Router) set, and it works well.

My Ubuntu22.04 machine was able to configure the default route automatically.

Yesterday, I configured DHCP Option121 (Classless route) on my DHCP Server.

After this configuration change, my Windows machine was able to get both configuration information (3 and 121) from DHCP.

However, my Ubuntu22.04 machines dropped configuration information from Option3 and no default route is configured.

I wonder if this is by design? Or did I misconfigure anything?

已采纳解答

原帖链接 · Vadim · CC BY-SA 4.0

"If the DHCP server returns both a Classless Static Routes option and a Router option, the DHCP client MUST ignore the Router option."

https://www.rfc-editor.org/rfc/rfc3442.html

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2022-12-26)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。