perl and network addresses

Jason Stephenson jason at sigio.com
Tue Mar 28 20:07:01 EST 2006


Paul Lussier wrote:
> Jason Stephenson <jason at sigio.com> writes:
> 
> 
>>It seems to me that the answer is that your IP addresses are limited
>>to the range of 10.0.32.0 to 10.0.63.255 with 10.0.0.0 being the
>>network address and 10.255.255.255 being the broadcast address, no?
> 
> 
> Err, you've got the IP addresses wrong.  It's 10.32.0.0/16, but
> segmented on a /19 boundary. I need to be able to calculate the "next"
> network, which for 10.32.0.0/19, would be 10.64.0.0/19, then take the
> host portion and "add" it to this new network such that any given host
> has the same host portion on all networks it may exist on.

Doesn't matter. I got the network address wrong, too. ;)

You want to interpolate the address of one host to another network, is 
that it?





More information about the gnhlug-discuss mailing list