安裝 windows 11 過程中,預設只能抓dhcp 連上網路
介面上也沒提供變更成固定ip的選項
只能透過文字介面,以指令方式實現

按下 shift + F10,叫出 cmd
輸入以下指令

顯示網卡介面名稱
netsh interface show interface

將要設定的介面設定固定ip/子網路遮罩/預設gateway
netsh interface ip set address name="Ethernet0" static 192.168.1.100 255.255.255.0 192.168.1.1

設定DNS
netsh interface ip set dns name="Ethernet0" static 8.8.8.8

設定備用DNS
netsh interface ip add dns name="Ethernet0" 168.95.1.1 index=2

最後輸入 ipconfig 確認設定是否正常

文章標籤:
windows
創作者介紹
創作者 Hello World 的頭像
helloworld

Hello World

helloworld 發表在 痞客邦 留言(0) 人氣( 14 )