CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Grow, Shrink, Combine Ip address net mask

 

First page Previous page 1 2 Next page Last page  View All


sh.ajay12
User

Dec 30, 2013, 9:17 PM

Post #26 of 30 (810 views)
Re: [FishMonger] Grow, Shrink, Combine Ip address net mask [In reply to] Can't Post

Yes understood.


sh.ajay12
User

Dec 30, 2013, 11:08 PM

Post #27 of 30 (807 views)
Re: [FishMonger] Grow, Shrink, Combine Ip address net mask [In reply to] Can't Post

Yes FishMonger and Laurent,

I would request you to please let me make understand exact meaning of GROW AND SHRINK related to ip address range.

I have been asked to GROW OR SHRINK an ip address.
Like this ip address

172.105.239.0/24

and if i complete above requirement then i have to combine two or three ip ranges.

Initially I was told that GROWING an ip address means if its /32 bit then it becomes /31 bit and SHRINK means if it is /29 bit then it becomes /30 bit.

I am not able to understand how to do this.

Thank You for suggestions.


Laurent_R
Enthusiast / Moderator

Dec 30, 2013, 11:21 PM

Post #28 of 30 (802 views)
Re: [sh.ajay12] Grow, Shrink, Combine Ip address net mask [In reply to] Can't Post

That's the whole point. You do not seem to know exactly what you want to do. My first question on the thread was: what do you mean, to grow or shrink an IP address (this was not a rhetorical question, I do not know what this really means)? You just can't hope to solve the problem in Perl if you don't know what the underlying operation should be. And it turns out that this is not really a Perl question, but a networking question (which does not mean that you might not find a Perl module answering these questions and solving it for you). I think you should really "google" the underlying functional question and make sure you understand fully what you need to do before trying to figure out how to do it.


sh.ajay12
User

Jan 1, 2014, 7:45 AM

Post #29 of 30 (739 views)
Re: [Laurent_R] Grow, Shrink, Combine Ip address net mask [In reply to] Can't Post

Yes Laurent, I am working on it. Thank You for the reply.


sh.ajay12
User

Jan 2, 2014, 2:34 AM

Post #30 of 30 (679 views)
Re: [sh.ajay12] Grow, Shrink, Combine Ip address net mask [In reply to] Can't Post

Hello Members,

range2cidrlist($startip, $endip) is a function of Module Net::Netmask

Can you please tell me what is the meaning of the above function, and how can we use above function.

Thank You for reply.

First page Previous page 1 2 Next page Last page  View All
 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives