Například mezi adresami 224.0.0.1 a 224.2.63.254
224.0.0.1
perl -le '@a = split /\./ => shift; @b = split /\./ => shift; for $i (0 .. 3) { for $j (0 .. 7) { (($a[$i] >> $j ^ $b[$i] >> $j)) & 1 and $h++; } } END { print $h }' 224.0.0.1 224.2.63.254