Set static IP
@echo.
@echo -------------------------------------------
@echo.
@echo changes the "link-local" IP address
@echo IP:10.11.1.119
@echo subnet mask: 255.255.0.0
@echo gateway: 10.11.1.1
@echo DNS:172.16.0.65
@echo.
@echo -------------------------------------------
@echo.
@echo.
@echo Powered By cjq
@echo.
@echo off
netsh interface ip set address name="本地连接" source=static addr=10.11.1.119 mask=255.255.0.0 gateway=10.11.1.1 gwmetric=0
::netsh interface ip set dns name="Local Area Connection" source=static addr=10.11.1.119
Set up automatic acquisition
@echo.
@echo -------------------------------------------
@echo.
@echo changes the "link-local" IP address
@echo IP:DHCP
@echo DNS:DHCP
@echo.
@echo -------------------------------------------
@echo.
@echo.
@echo Powered By cjq
@echo off
netsh interface ip set address name="local connection" source=dhcp
netsh interface ip set dns name="local connection" source=dhcp