Results 1 to 4 of 4

Thread: IP Range

  1. #1
    Join Date
    Mar 2003
    Posts
    345

    Question IP Range

    Hi,

    Anyone have code (in any programming language) to convert an ip range into ip network format ?

    For example :

    192.168.1.0 - 192.168.1.255 will be converted to 192.168.1.0/24

    66.12.0.0 - 66.12.255.255 will be converted to 66.12.0.0/16

    Thanks

  2. #2
    Join Date
    Mar 2003
    Posts
    345
    I found perl Net::CIDR

    http://search.cpan.org/dist/Net-CIDR/

    Thanks!

  3. #3
    Join Date
    Aug 2005
    Location
    California
    Posts
    154
    I use this website alot: http://subnetmask.info/

    It is a very helpful site and it might just help you out.
    Beer is Good.

  4. #4
    Join Date
    Dec 2004
    Location
    New York City, NY, USA
    Posts
    735

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •