1

给定一个 IP 地址范围,是否有一种算法可以将其转换为覆盖所有范围的 (ip,mask) 形式的一组对?

4

1 回答 1

0

If you have just a simple IP, you can find your S.N. mask, the range of IPs of your network, your subnet IP, and its broadcast IP. All the IPs have the same S.N. mask. So, the algorithm is like this: for i="S.N. IP + 1" to i="Broadcast IP - 1" createPair (i,S.N. mask); That's all!

于 2014-09-16T23:11:57.533 回答