使用命令: netsh interface ip set address "本地連接" dhcp netsh interface ip set dns "本地連接" dhcp
復(fù)制代碼 代碼如下:
netsh interface ip set address "本地連接" dhcp 確定。
netsh interface ip set dns "本地連接" dhcp 確定。
相當(dāng)于操作:
將ip和dns設(shè)置為固定的值
使用命令: netsh interface ip set address "本地連接" static [ip地址] [子網(wǎng)掩碼] [網(wǎng)關(guān)] [網(wǎng)關(guān)跳遠(yuǎn)點(diǎn)數(shù):一般填1] netsh interface ip set dns "本地連接" static [dns地址]
復(fù)制代碼 代碼如下:
netsh interface ip set address "本地連接" static 192.168.1.111 255.255.255.0 192 .168.1.1 1 確定。
netsh interface ip set dns "本地連接" static 8.8.8.8 確定。