步驟一:在運行框裏輸入cmd進入命令行窗口,然後輸入命令: ipconfig /all
找到網絡連接的名稱如下圖所示:
步驟二:
1. 設置IP地址
netsh interface ip set address name="區域連線" source=static addr=192.168.1.216 mask=255.255.255.0 gateway=192.168.1.10 gwmetric=1
IP地址: addr=192.168.1.216
子網掩碼: mask=255.255.255.0
網關: gateway=192.168.1.10
gwmetric=1:默認網關的躍點數
2. 填加多個IP地址
netsh interface ip add address name="區域連線" addr=192.168.168.8 mask=255.255.255.0 gateway=192.168.168.8 gwmetric=2
步驟三:設置dns
增加主DNS: netsh interface ip set dns name="區域連線" source=static addr=192.168.1.213 register=primary
添加第二個DNS: netsh interface ip add dns name="區域連線" addr=192.168.1.214 index=2
添加第三個DNS: netsh interface ip add dns name="區域連線" addr=192.168.168.8 index=3