使用netsh设置静态ip地址:
@echo off
netsh interface ip set address "本地连接" static 172.24.83.239 255.255.255.0 172.24.83.247
netsh interface ip set dns "本地连接" 172.24.102.110
netsh interface ip add dns "本地连接" 172.24.102.110 index=2
pause
使用netsh设置动态ip地址:
@echo off
netsh interface ip set address name="本地连接" source=dhcp
netsh interface ip set dns name="本地连接" source=dhcp
pause
本文介绍如何使用Netsh命令行工具来配置Windows系统的静态和动态IP地址。通过具体示例展示了设置静态IP地址、子网掩码、默认网关及DNS服务器的方法,同时也提供了设置动态IP地址和DNS的步骤。
520

被折叠的 条评论
为什么被折叠?



