1.修改 ip地址 子网掩码 默认网关
netsh interface ip set address "本地连接" static 192.168.1.23 255.255.255.0 192.168.1.1
2.修改DNS
netsh interface ip set dns "本地连接" static 192.168.1.1 primary
3.自动获取ip地址
netsh interface ip set address name="本地连接" source=dhcp
时间: 2024-10-09 02:31:32