Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/695f6baf-a8c0-8011-ab6c-15ca5129ef57
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Assistant: 簡短結論先講: === 簡短結論先講: 不是問題,而且 TP-Link 並不特別,很多廠商都這樣做。 ==== DHCP 的租期在協定裡是用 32 位元無號整數(秒) 表示的。 ==== * 最大值:2³² − 1 = 4,294,967,295 秒 * 換算成年數:約 136.19 年 所以當廠商想表示「等同永久(forever)」時,最簡單的做法就是: 👉 直接填最大值 TP-Link 顯示的「136 年」其實就是這個最大值,並不是隨便亂設。 ==== ### ==== 對一般家庭或 SOHO 網路來說: * 路由器不可能跑 136 年不重開 * 用戶端(電腦、手機、電視)一定會重開或重新連線 * DHCP 租約資料會被清掉 效果上就等於「永久 IP」。 ===== 1. IP 被佔滿 - 很多設備來過一次就再也不回來 - 常見於咖啡廳、實驗室、來客 Wi-Fi - 家用環境幾乎不會遇到 ===== # 非常老或有 bug 的 DHCP 用戶端 - 可能處理不了超大的租期數值 - 現代系統(Windows / macOS / Linux / Android / iOS)基本沒問題 # 網路架構常變 - 想快速換子網、換 IP 規劃 - 長租期會讓舊 IP 留比較久 ==== 不是,這是業界常見做法。 ==== ===== - TP-Link:136 年(最大值) ===== * MikroTik RouterOS:lease-time=forever * Cisco(IOS / IOS-XE):lease infinite * Ubiquiti(EdgeOS / UniFi) * 不少 ISP 提供的家用數據機 只是 TP-Link 直接顯示成「136 年」,而不是顯示「forever」。 ===== - OpenWrt / dnsmasq:預設 12 小時 ===== * pfSense / OPNsense:常見 24 小時 * Windows Server DHCP / ISC / Kea - 多用小時或天數 這類比較偏企業或進階管理用途。 ==== 因為它有好處: ==== * 裝置 IP 不亂跳(印表機、NAS、電視很重要) * DHCP 流量更少 * 實作簡單 * 減少使用者抱怨「IP 怎麼一直變」 對一般家庭來說,長租期通常是優點。 ==== 如果你是: ==== * 公共 Wi-Fi * 企業網路 * 學校、辦公室 * 裝置進出頻繁 那建議用: * 1~24 小時 的租期 * 或搭配 MAC 綁定 / 保留 IP ==== - 136 年 ≈ DHCP 協定裡的「永久」 ==== * 不是 Bug,也不是 TP-Link 偷懶 * 很多大廠都這樣做 * 家用完全 OK,企業才需要短租期 如果你想,我也可以幫你: * 解釋 DHCP 封包裡實際怎麼表示 * 比較 家用 vs 企業 DHCP 設計差異 * 建議 不同使用情境的最佳租期設定
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)