计算给定网络中可用子网的数量 [英] Calculate number of available subnets in given network

查看:677
本文介绍了计算给定网络中可用子网的数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在计算网络中可用子网(或主机)的数量时遇到了以下问题。

例如主子网是/ 24(255.255.255.0),其中包含两个/ 25(255.255.255.128)或四个/ 26(255.255.255.192)。



因此,如果一个节点已经被使用,那么将只有一个/ 25个或只有3个/ 26个。那么我应该如何计算可用子网的数量。换句话说,如何获得剩余的数量和类型。我想用PHP执行这个算法。



请点击以下链接成像。



请你给我任何提示。

Hi, I have following issue in calculating the number of available subnets (or hosts) in network.
For example the main subnet is /24 (255.255.255.0) which contains two /25 (255.255.255.128) or four /26 (255.255.255.192).

So if the one node is already being used there will be only one /25 or only 3 times /26. Then how should I calculate the number of available subnets. In other words how to get the number and type of remainders. I want to perform this algorithm in PHP.

please click the following link to image.

Kindly ask you to give me any hint.

推荐答案

从这里开始:

http://www.mindwerks.org/Subneting.htm [ ^ ]



https://learningnetwork.cisco.com/thread/21527 [ ^ ]



a工作版:http://sourceforge.net/projects/subntcalc/ [ ^ ]
Start here :
http://www.mindwerks.org/Subneting.htm[^]

https://learningnetwork.cisco.com/thread/21527[^]

a working version : http://sourceforge.net/projects/subntcalc/[^]


这篇关于计算给定网络中可用子网的数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆