how to automate IP address changing?

Status
Not open for further replies.

kikass

Broken In
my net connection is through LAN. initially the computers in our area had specific IP addresses set and login was through a PPOE dialer. but now the login is through a web based page instead of a dialer and somehow this requires all computers to have NO IP addresses set (in LAN / TCP/IP settings "Obtain IP Address Automatically" is selected). this prohibits us from connecting computers directly to share files and gaming.
as of now we are manually changing the IPs to switch between the net conn and our workgroup, normally 2-3 times a day! is there a way to automate this? like run a script or a bat file which could change the IP from a specific one to "automatic" and reverse?
 
OP
K

kikass

Broken In
thanx digen. thats really helped. but still got one question, how to set it back to "automatically Obtain IP"? what will be the command for that? is "automatic" same as "switching back to using DHCP"?
 

digen

Youngling
Sorry for replying late.Somehow missed this thread.

Anyways for your query you can make a separate batch file for "Automatically obtain IP address"[DHCP] with the help of netsh.

So now you have 2 batch files.One with the static IP settings & the second for obtaining through a DHCP server.This should serve your purpose well I believe.
 
Status
Not open for further replies.
Top Bottom