netsh interface ip set address name="本地连接" source=dhcpnetsh interface ip delete dns "本地连接" allipconfig /flushdnsipconfig /all
上面批处理 选择1 ,就是启动DHCP.手动指定了ip后就不能启动DHCP来自动获取ip了.