I have a project to write a cgi code to change ip address of internet users on my network. The users will login with web interface and they will be assigned with fixed ip address based on their login name and password. For example:
Username : Jason
Password : 1234
if he correctly input his username and password, his computer will be assigned ip address bla.bla.bla.bla.
For doing this thing, I discovered Net:IP, but it seems that I can not use it to change ip address of my internet users.
In addition, of course my internet users have their own internet setting(network setting) on their computers. This is because I am working in an apartment, and my computer users sometime bring their laptops into their office and their computers assigned with their offices' setting.
Then, if the users use DHCP setting, can I change it into fixed ip address with perl code? And then assigned the ip address with perl code too? How I can do this with perl? Or would you mind for referencing me into the right modules or packages please.
I am a perl beginner and this project is very complicated to me.
Thank you very much for the help.
Eko Hermiyanto
Edit: g0n - formatting tags
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.