「臨時 ipv6 位址」沒有什麼不好,ip 一直浮動、一直更新,可以避免在網路上被盯上。不過..

不過在一些情況下,管理起來有點麻煩,譬如說我的網站想鎖 IP,只給某幾個 IP 連上網站後台,如果 ipv6 的位址一直變動的話,就沒法很精確的將某個IP設定為白名單(雖然可以開某個 range)。

如果你家網路有申請 ipv6 的話,以下方法可以讓你的電腦固定使用某個 ipv6 位址,不會再跳來跳去,也不會顯示「臨時 ipv6 位址」這一行。

Windows 7/8/10:  (執行以下指令後,重開機)

netsh interface ipv6 set privacy state=disabled store=active
netsh interface ipv6 set privacy state=disabled store=persistent
netsh interface ipv6 set global randomizeidentifiers=disabled store=active
netsh interface ipv6 set global randomizeidentifiers=disabled store=persistent

Mac 電腦:(開啟終端機,執行以下指令)
sudo sh -c ‘echo net.inet6.ip6.use_tempaddr=0 >> /etc/sysctl.conf’

最後修改日期: 2017-12-16

作者

留言

撰寫回覆或留言