Setting Interface IPs temporarily through Script

Discussion of programming on Linux, including shell scripting, perl, python, c/c++, mono, java. Whatever tickles your fancy.
Misam Shah
Lance Naik
Posts: 32
Joined: Mon May 04, 2009 4:08 pm
Location: Hyderabad
Contact:

Setting Interface IPs temporarily through Script

Postby Misam Shah » Tue May 26, 2009 10:02 am

AOA All,
Is there any way to set interface IPs for a temporary period by running a script.

The scenario is that


I have a Server which has two interfaces, one of them is being used for local network and the other is for establishing connectivity through VPN, but in case of the unavailability of the service for connectivity I need to switch them to another medium (PTCL Broadband) which certainly has the different IPs. Now is there any way to change them for a temporary period through a script?.

Remember I don't want the users to give administrative level so that they can do it themselves.

Waiting for the reply. Thanks.

Best Regards,
Misam Shah

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Tue May 26, 2009 11:48 am

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

osama
Havaldaar
Posts: 117
Joined: Fri Aug 22, 2008 9:08 am

Postby osama » Tue May 26, 2009 1:59 pm


Misam Shah
Lance Naik
Posts: 32
Joined: Mon May 04, 2009 4:08 pm
Location: Hyderabad
Contact:

Postby Misam Shah » Tue May 26, 2009 3:01 pm


mudasir
Captain
Posts: 565
Joined: Tue Oct 17, 2006 5:23 am
Location: Dubai
Contact:

Postby mudasir » Tue Jun 02, 2009 11:57 am

Kind Regards
Mudasir Mirza (RHCE)
(+971)55-1045754
http://www.crystalnetworks.org
http://www.diglinux.com


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest