[geeks] Win2K question
Gary Nichols
gary at linuxforce.org
Mon May 20 17:50:09 CDT 2002
This may help:
Two scripts, one to set the interface to dhcp and grab an ip - the other
to set a static.
--godhcp.cmd--
net start "Remote Registry Service"
netsh interface ip set address name="Local Area Connection"
source=dhcp
netsh interface ip set wins name="Local Area Connection" source=dhcp
netsh interface ip set dns name="Local Area Connection" source=dhcp
ipconfig /renew
ipconfig /registerdns
nbtstat -RR
net stop "Remote Registry Service"
--gofixed.cmd--
net start "Remote Registry Service"
netsh interface ip set address "Local Area Connection" static
10.1.1.10 255.255.0.0 10.1.1.1 1
netsh interface ip set wins "Local Area Connection" static 10.1.1.254
netsh interface ip set dns "Local Area Connection" static 10.1.1.254
ipconfig /registerdns
nbtstat -RR
net stop "Remote Registry Service"
More information about the geeks
mailing list