반응형
배치 파일을 만들어서 아이콘을 만들어 활용 합니다.
(게이트 웨이(gateway) 가 있는 경우)
@set IFNAME="로컬 영역 연결"
@echo Interfacename : %IFNAME%
@echo IP, DNS Changing...
@echo Wait 5 seconds.
@netsh interface ip set address %IFNAME% static 192.168.X.X 255.255.255.0 gateway=192.168.X.X
@timeout 6 > NUL
@netsh interface ip set dnsservers %IFNAME% static NULL primary
@netsh interface ip add dnsservers %IFNAME% NULL index=2
@rem pause
(게이트 웨이(gateway) 가 없는 경우)
@set IFNAME="로컬 영역 연결"
@echo Interfacename : %IFNAME%
@echo IP, DNS Changing...
@echo Wait 5 seconds.
@netsh interface ip set address %IFNAME% static 172.16.X.X 255.255.0.0
@timeout 6 > NUL
@netsh interface ip set dnsservers %IFNAME% static NULL primary
@netsh interface ip add dnsservers %IFNAME% NULL index=2
@rem pause
반응형