Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file to configure TCP/IP?

Status
Not open for further replies.

cyberspace

Technical User
Aug 19, 2005
968
GB
One of the directors for the company I work for regularly travels to Dubai.

from there he uses his laptop to connect to the office via a VPN tunnel.

However, firstly the IP settings must be reconfigured - and he is not a techy, and often forgets how to do it/has difficulty, and is a general inconvenience.

What I would like to know is, is there a way of using a batch file so that he can simply run the file to reconfigure the TCP/IP?

Thanks in advance
 
If his regular configuration is static, what about just using the alternate configuration?

Of course if he is DHCP please disregard this idea.

BR
David Tracy
 
Of coruse! I hadn't thought of that.

I presume that when the regular connection won't connect it will just automatically switch to the alternate config?
 
Yes it will, but it's important that you work out if he is DHCP or Static.

What VPN software are you using? Surely if it's a dialup\dsl and then using a VPN it will automatically assign an IP to the dialup\dsl connection already?

Failing that why not create a batch file with something like this?

ipconfig /renew

or do an

ipconfig /release
ipconfig /renew

if it doesn't want to work straight away.

It's important to note that the above would only work if you had DHCP allocated addressing (which would be a better idea if you have a company larger than say 50 employees because after that doing manual changes to each workstation becomes boring).

Good luck.

SimonD.
MCSE NT4, MCSE\MCSA 2003, MCSE\MCSA 2003:Security, CNA3.12\IntraNetware, CNE IntraNetware, CCNA and Security+

The real world is not about exam scores, it's about ability.

 
The addresses are Static.

I am just working from information I have been given, when he goes to Dubai to his house, he has to use an exact config to get on the internet.

I should be able to use the alternate address, thanks for the advice :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top