ip地址更改win10-(ip地址更改win7)
快速修改一鍵windows系統的IP和DNS采用執行xx.bat所以,文件方法xx.bat如何編寫文件?本期文章總結分享給各位朋友。L6Voffice教程網
實戰演練-如何通過命令修改windows系統的IP和DNS第一步:使用管理員權限打開命令提示符(CMD),如下圖所示(windows10操作系統);L6Voffice教程網

L6Voffice教程網
步驟2:在命令提示符中輸入輸入netsh然后,輸入interface ip”,如下所示;L6Voffice教程網
-C://Users//007>netshL6Voffice教程網
netsh>L6Voffice教程網
netsh>interface ipL6Voffice教程網
netsh interface ipv4>L6Voffice教程網
第3步:在“netsh interface ipv4>”視圖中,輸入命令“show interface查詢系統可用的網卡信息以獲取網卡名稱,如下圖所示;L6Voffice教程網

L6Voffice教程網
第4步:在“netsh interface ipv4>”視圖中,輸入命令set address "Ethernet0" dhcp和set dns "Ethernet0" dhcp,配置網卡Ethernet0自動獲取IP地址和DNS地址,默認情況下,永久保存。如下圖所示;L6Voffice教程網

L6Voffice教程網
第五步:查看網卡IP地址和DNS在netsh interface ipv4>在視圖中,輸入命令show address "Ethernet0"和show dns "Ethernet0",如下圖所示;L6Voffice教程網

L6Voffice教程網
以上是關于windows自動獲取系統IP和DNS如何配置靜態IP地址和DNS地址呢?L6Voffice教程網
Windows靜態配置系統IP地址和DNS地址的方式,如下圖所示;L6Voffice教程網

L6Voffice教程網
備注:L6Voffice教程網
Windows10系統提供的示例——IP地址配置方式:L6Voffice教程網
set address name="Wired Ethernet Connection" source=dhcpL6Voffice教程網
set address "Wired Ethernet Connection" static 10.0.0.9 255.0.0.0 10.0.0.1 1L6Voffice教程網
Windows10系統提供的示例——DNS地址配置方式:L6Voffice教程網
set dnsservers name="Wired Ethernet Connection" source=dhcpL6Voffice教程網
set dnsservers "Wired Ethernet Connection" static 10.0.0.1 primaryL6Voffice教程網
實戰演練-如何一鍵修改windows系統的IP和DNS一鍵修改Windows系統的IP和DNS——DHCP自動獲取將以下兩個命令復制到文本文檔中,并另外為dhcp.bat。(管理員權限運行dhcp.bat)L6Voffice教程網
Ethernet0是系統網卡的名稱,需要命令netsh interface ipv4 show interface提前查詢。L6Voffice教程網
netsh interface ipv4 set address "Ethernet0" dhcpL6Voffice教程網
netsh interface ipv4 set dns "Ethernet0" dhcpL6Voffice教程網
另存為dhcp.bat方式,如下圖所示;L6Voffice教程網

L6Voffice教程網
一鍵修改Windows系統的IP和DNS——靜態配置將以下兩個命令復制到文本文檔中,并另行復制static.bat。(管理員權限運行static.bat)。(管理員權限運行static.bat)。L6Voffice教程網
其中,IP地址:192.168.1.100、掩碼:255.255.255.0、網關:192.168.1.254、DNS地址:223.5.5.5。L6Voffice教程網
netsh interface ipv4 set address "Ethernet0" static 192.168.1.100 255.255.255.0 192.168.1.254L6Voffice教程網
netsh interface ipv4 set dns "Ethernet0" static 223.5.5.5總結L6Voffice教程網
以上是一鍵快速修改windows系統的IP和DNS總結分享,歡迎各位朋友留言多指正。