Link to home
Start Free TrialLog in
Avatar of cdub1234
cdub1234

asked on

How can I change my IP info on a daily basis?

Currently, I have to do the following process manually, using the Mandrake
Config tools in X-Windows.  It takes me about 20 minutes.  Can you guys help
me figure out a script for the following:

- flush all IPtables rules (so the packet filters are not active)
- switch eth0 from a static IP to DHCP
- receive a DHCP IP address
- run a Perl Script that I have already
- switch eth0 back to a static IP
- restart my firewall.sh script to setup my packet filters again

I want to do the above on a nightly basis.  In Windows 2K, I would write a
batch file (using the netsh.exe command) and have the Scheduler service run
the batch file nightly.

In Linux, the scripting and scheduling look much different.

BTW, this is a Mandrake 8.1 box, P][-266, 64mb RAM, 4gb HD, running no
server services (no apache or whatnot).  It has 2 ethernet cards (eth0 and
eth1).


TIA!!!!!!!!!


ASKER CERTIFIED SOLUTION
Avatar of jlevie
jlevie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CleanupPing
CleanupPing

cdub1234:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
This question has been classified abandoned. I will make a recommendation to the moderators on its resolution in a week or two. I appreciate any comments that would help me to make a recommendation.
 

Unless it is clear to me that the question has been answered I will recommend delete. It is possible that a Grade less than A will be given if no expert makes a case for an A grade. It is assumed that any participant not responding to this request is no longer interested in its final disposition.

 
If the user does not know how to close the question, the options are here:
https://www.experts-exchange.com/help/closing.jsp
 
drewber
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Split: jlevie {http:#7020691} & st_steve {http:#7036444}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

paullamhkg
EE Cleanup Volunteer