change static IP address, DNS and so on automatically

Hi Experts,

We have a couple of thousands of servers which we want to change their IP addresses and other info.  Please help if you know some tools or script can do the job automatically.  I will appreciate your sharing the experience.  

We have ESX servers which run Windows and other OS on top of them as virtue machine.  Also we have some true Windows servers and Ubuntu servers.

Regards,

Enjoynet
EnjoyNetAsked:
Who is Participating?
 
Khandakar Ashfaqur RahmanExpert/ConsultantCommented:
There are some scripts that you can use but at least you have to define the IP address you want to set into a pc.Because for each pc IP address should be unique to avoid IP conflict.However, you may check the following URL:
http://community.spiceworks.com/how_to/show/320

Otherwise, DHCP would be the best.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
check this script for physical machines or virtuals

http://gallery.technet.microsoft.com/scriptcenter/Change-IP-configuration-4b136f36

this will change the IP Address on virtual machines

Get-VM VMName | Get-VMGuestNetworkInterface -GuestUser Administrator -GuestPassword <password> -HostUser root -HostPassword <password> | Set-VMGuestNetworkInterface -IPPolicy Static -Ip <IPAddress> -Netmask 255.255.252.0 -Gateway <Gateway> -GuestUser Administrator -GuestPassword <password> -HostUser root -HostPassword <password> 

Open in new window

0
 
arnoldCommented:
You can use netsh to add an ip to the you would likely need to use a vbscript that will pull the ip that will be assigned from somewhere or is this just a segment change?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

 
IanThCommented:
use dhcp get the ip address by a script and then use that for the static ip address
0
 
arnoldCommented:
Using dhcp, there is no need for a script, the Mac address can be used in the reservation and dynamically allocate the static ip, the risk is that should there be issues with dhcp the other servers will have issues.
0
 
IanThCommented:
if you have multiple dhcp servers yes
0
 
EnjoyNetAuthor Commented:
Hi All,

Thank you for your responses.  Some of you mentioned to use DHCP with Mac reservation. I think that is the best for our case.  

Regards,

enjoyroot
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.