[英]Is there a way to disable and enable the standard gateway in WIndows with cmd
我嘗試禁用和啟用標准網關,以便您無法使用互聯網但仍在本地網絡中。
以這種方式斷開 Internet 連接不是一個好主意。 但有可能:
route print | findstr "0.0.0.0"
route print | findstr "0.0.0.0"
route delete 0.0.0.0 mask 0.0.0.0
route print | findstr "0.0.0.0"
route print | findstr "0.0.0.0"
更改僅在 PC 重新啟動或動態分配的 IP 地址 (DHCP) 恢復之前有效。 地址的自動更新發生在租用時間的中間,可以是 30 分鍾、12 小時等。這也是這種解決方法根本不可靠的原因之一。
最好在您的 Internet 路由器上阻止 PC 訪問 Internet。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.