Change Network Settings via Command Prompt in win2k.

Rilescat

Senior member
Jan 11, 2002
815
0
0
Hello All....

I need to know how to edit my network settings using only the command prompt in Windows 2000.

Anyone have any pointers?

Thanks
 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
Which network settings are you looking to change?

Routes? addresses? gateways? DNS? what???????

(Now I've used up my quota of question marks for the week.......)

Scott
 

Rilescat

Senior member
Jan 11, 2002
815
0
0
Originally posted by: ScottMac
Which network settings are you looking to change?

Routes? addresses? gateways? DNS? what???????

(Now I've used up my quota of question marks for the week.......)

Scott

All of them actually.

This is for a classroom environment. The systems (about 150) are imaged using Ghost 7.5 Enterprise and boot up to a Sysprep setup. Previously, we were allowed to use DHCP and be on our way. However, now, we need to have static IPs for every machine. WHAT A HEADACHE....

We have already created a program that will programmatically go out and change the Student IDs to random passwords, collect those passwords and then email them out to the correct student. However, what we also need to do is change all the IPs, subnets, etc....from DHCP to a static IP.

If I know how to do the network config via a command prompt, then we can do this with our program as well.

Thanks for the help!
 

Abzstrak

Platinum Member
Mar 11, 2000
2,450
0
0
If they just want the tracking advantage of static IPs, then use DHCP and reserve an indivdual IP for each MAC address... kinda a pain to setup, but has the advantages of dhcp and static IPs.

you can use the netsh command to set ip info from the command line...
 

Rilescat

Senior member
Jan 11, 2002
815
0
0
Originally posted by: Abzstrak
If they just want the tracking advantage of static IPs, then use DHCP and reserve an indivdual IP for each MAC address... kinda a pain to setup, but has the advantages of dhcp and static IPs.

you can use the netsh command to set ip info from the command line...

Actually, the reason for going static is due to our Citrix servers. Each Citrix application and server are setup via IP (we have external people accessing who don't always have DNS capabilities) so we now need to keep all of the addresses static so that we can quickly reset any box and not have to worry about the connection documents that everyone has.

Netsh.....cool. I went here: Microsoft support page but I am still a little confused.

Could you provide me an example of a netsh command I would use to do something like this:

Make eth1 active
Set its IP to 10.10.10.200
Set its subnet to 255.255.255.128
set its gateway to 10.10.10.129
set DNS to 10.10.5.5

Thanks!

 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
I think you missed the other posters point. You can configure your DHCP server to ALWAYS assign the same IP address to the same machine based on it's MAC address. This way you can centrally manage the IP's in case you do need to make changes, but the machine (until you make such changes) will always get the same ip

Bill
 

Rilescat

Senior member
Jan 11, 2002
815
0
0
Yes, I understand the DHCP to MAc relationship, but unfotunately, we are not allowed that kind of authority.