윈도우

netsh for windows 7

프로세스 천국 2013. 4. 3. 20:29

netsh 명령이 xp하고 7하고 다르다..

 

 

for Windows xp

netsh interface ip set dns name="로컬 영역 연결" source=static addr=192.168.0.25 mask=255.255.255.0 gateway=192.168.0.1
netsh interface dns set name="로컬 영역 연결" source=static addr=168.126.63.1 register=primary

 

 

for Windows 7

netsh interface ip set address "로컬 영역 연결" static 192.168.0.25 255.255.255.0 192.168.0.1 1

netsh interface ip set dns "로컬 영역 연결" static 168.126.63.1 primary
7에서 dns both는 안먹힘.