All pastes #2097275 Raw Edit

Stuff

public text v1 · immutable
#2097275 ·published 2011-12-30 00:38 UTC
rendered paste body

SET LAN=Local Area Connection
SET IP=192.168.1.125
SET MASK=255.255.255.0
SET GW=192.168.1.1
SET DNS=24.89.0.22
SET ADNS=24.92.22.102

netsh interface ip set address name="%LAN%" source=static addr=%IP% mask=%MASK

netsh interface ip set address name="%LAN%" gateway=%GW% gwmetric=0

netsh interface ip set dns name="%LAN%" source=static addr=%DNS% register=NONE

netsh interface ip add dns name=”%LAN%” %ADNS% index=2