求高手,一个批处理软件自动填写IP地址

2024-12-31 21:18:39
推荐回答(2个)
回答1:

netsh interface ip set address name="本地连接" source=static addr=10.179.250.78 mask=255.255.255.0 gateway=10.179.250.1


::下面是改回自动获取IP和DNS

netsh interface ip set address name="本地连接" source=dhcp

netsh interface ip set dns name="本地连接" source=dhcp


回答2:

IP应该是自动获取的吧?还用设置?