green it – the way you want IT

This one worked for me.

Set varlan=Local Area Connection 3
Set varip=172.29.52.56
Set vargw=172.29.52.1
netsh int ip set address name="%varlan%" static %varip% 255.255.255.0 %vargw% 1
netsh interface ip set dns "%varlan%" static 172.29.32.10
netsh interface ip add dns "%varlan%" 172.29.41.10
netsh interface ip set wins "%varlan%" static 172.29.41.10
netsh int ip add wins "%varlan%" 172.29.32.10

Comments on: "Small netshscript for setting up IP" (5)

  1. Hello,這裡真是百看不厭的部落格—-幫忙踩個人氣 http://ciel.tw

Comments are closed.