× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello John,

Am 19.04.2024 um 18:27 schrieb John Yeung <gallium.arsenide@xxxxxxxxx>:

Interestingly, I have not found a calculator that accepts two IP addresses (or ranges, as Jim started with) and returns the tightest CIDR or subnet mask that covers both of them. Would be a fun little programming exercise.

Here you are:

~ $ ipcalc 192.168.0.0 - 192.168.1.255
deaggregate 192.168.0.0 - 192.168.1.255
192.168.0.0/23

From: https://github.com/kjokjo/ipcalc

Should run on IBM i, there's a Perl port for it, AFAIK.

:wq! PoC


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.