Thanks zwon. i will check ifconfig and system.

Thanks Perlbotics. I am faily new to perl but will try to decode the config given by you.

Here is some more information ::--

* What platform (Windows, Unix, ..., any)? - this is on windows server.

* Switch IP at fixed times or after roughly 12 hours (free floating)? - roughly at 12 hours. i was thinking depending upon the success of this, I may change it to more or less hours. It should be fixed and knows in advance though.

* One or more instances (on several hosts) running? - Just one instance on this server.

* Daemon or cronjob-triggered program? - it is running on VM ware.

* Is this an XY Problem? E.g., can it be solved by DHCP? - it cant be solved by DHCP as my server is connected to the router and if i config DHCP on the router, any device connecting to the router , may opt for that IP hence i need to have it on the client side which is the server

* Security, logging, monitoring, configuration, etc. - i am looking forward to rotate the IP on the server as a part of my testing. i was wondering, when it goes to file ipx.txt, it uses the F5 function of the notepad to advise the IP was changed at certain day and time for me to keep a log of it. apart from it, no other security or monitoring is required.


In reply to Re^2: Is it possible to take the IP address from a file and assign it to LAN interface for certain period of time by TechUser245
in thread Is it possible to take the IP address from a file and assign it to LAN interface for certain period of time by TechUser245

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.