PDA

View Full Version : change ip address from command line under win2k ?


dodgertc
10-15-03, 07:12 AM
hi, i need quick help

we got a team member in another country which has to change his internet settings. under "networks/dial up connections" all items dissappeared. (make new connection, local area..)

how cant he either bring the local area connection back to make the changes according to the LAN he is in now, or

use a command line tool to change IP and DNS settings ?
i didnt found any tool yet while i searched

greets,
dodgertc

redduc900
10-15-03, 07:37 AM
The following MSKB article may be of some help to you...

Some Network and Dial-Up Connections Icons May Be Missing
http://support.microsoft.com/default.aspx?scid=kb;[LN];254631

W2K has a set of commands that allow you to change your IP address, DNS, WINS, etc. all from the command line (or a batch file)...these changes are immediate and don't require a reboot. Just create one batch file per "settings", and run it before you need to network. Here's an example of the commands you could use in conjunction with a batch file to set your system to the following static addresses...

netsh interface ip set address "Local Area Connection" static xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy zzz.zzz.zzz.zzz 1
netsh interface ip set dns "Local Area Connection" static ddd.ddd.ddd.ddd
netsh interface ip set wins "Local Area Connection" static none

Just replace the X's with your IP address, Y's with the netmask, Z's with the default gateway, and D's with the local DNS. :)

EazyduzIt
10-15-03, 07:41 AM
Nice one Redduc. http://forum.oc-forums.com/vb/images/icons/icon14.gif I also found this with Google magic: Network settings altered with a click (using netsh) (http://www.foxpop.co.uk/pc/network_01.htm) Contains a pre-made batch file that can be altered to suit situation.

dodgertc
10-15-03, 07:54 AM
wohoo :) thanks all i used google for 30 min before writing but my search keywords seem to have been a bad choice :)


greetings,
dodgertc