IP Address Script??

  • Thread starter Thread starter Jeremy Byrski
  • Start date Start date
J

Jeremy Byrski

Hi,

I would like to add (and then remove at a later date) ~50 IP addresses to a
NIC on a Win2k server, is there anyway that this can be done by a script? If
so, Could anyone point me in the right direction?

Many thanks,
Jeremy
 
Jeremy,

I'm sure you can do this with WMI. I don't have a link on hand, but check
out msdn.microsoft.com/library. No doubt you'll find it in the platform SDK
in there. On the other hand, I feel inclined to say there is a limit of 32
addresses per nic, or something similiar.

--
--
Brian Desmond
Windows Server MVP
(e-mail address removed)12.il.us

Http://www.briandesmond.com
 
Try a command of the following format.

netsh interface ip add address "Local Area Connection" 192.168.1.1
255.255.255.0

I'm not sure of how many IP addresses you can assign to an interface.

Regards

Oli
 
Thanks for that Oli - Brian, I'll give it a try netsh a try. I'm not sure
about the maximum number of IPs attached to a NIC, but i have had 50 on one
NIC before.

Kind regards,
Jeremy
 
Back
Top