查看完整版本: 子网掩码快速算法

hnza001 2007-1-28 13:41

子网掩码快速算法

有很多人肯定对设定子网掩码这个不熟悉,很头疼,那么我现在就告诉大家一个很容易算子网掩码的方法,帮助一下喜欢偷懒的人:)
大家都应该知道2的0次方到10次方是多少把?也给大家说一下,分别是:
1 2 4 8 16 32 64 128 256 512 1024。
如果你希望每个子网中只有5个ip地址可以给机器用,那么你就最少需要准备给每个子网7个ip地址,因为需要加上两头的不可用的 网络和广播ip,所以你需要选比7多的最近的那位,也就是8,就是说选每个子网8个ip。好,到这一步,你就可以算掩码了,这个 方法就是:最后一位掩码就是256减去你每个子网所需要的ip地址的数量,那么这个例子就是256-8=248,那么算出这个, 你就可以知道那些ip是不能用的了,看:0-7,8-15,16-23,24-31依此类推,写在上面的0、7、8、15、16 、23、24、31(依此类推)都是不能用的,你应该用某两个数字之间的IP,那个就是一个子网可用的IP,怎么了?是不是不相 信?太简单了。。。
我再试验一下,就拿200台机器分成4个子网来做例子吧。
200台机器,4个子网,那么就是每个子网50台机器,设定为192.168.10.0,C类的IP,大子网掩码应为255.2 55.255.0,对巴,但是我们要分子网,所以按照上面的,我们用32个IP一个子网内不够,应该每个子网用64个IP(其中 62位可用,足够了吧),然后用我的办法:子网掩码应该是256-64=192,那么总的子网掩码应该为:255.255.25 5.192。不相信?算算:0-63,64-127,128-191,192-255,这样你就可以把四个区域分别设定到四个子 网的机器上了,是不是很简单?不需要软件算了吧。。。呵呵。。希望大家能看懂我写的。。。。

like 2007-3-19 19:56

慢慢

就懂的了呀
是不是真的呀:'( :'(

Swordxia 2007-4-6 09:57

还有没有简单一点的呢

nwpu0p 2007-8-12 09:13

不懂

elegantsnow 2007-11-20 10:29

[quote]原帖由 [i]Swordxia[/i] 于 2007-4-6 09:57 发表 [url=http://bbs.315safe.com/redirect.php?goto=findpost&pid=29797&ptid=6543][img]http://bbs.315safe.com/images/common/back.gif[/img][/url]
还有没有简单一点的呢 [/quote]


当然的了,,,做多了就知道了.....
熟能生巧.....这句话应该听过吧...

关键还在自己...努力...

panjix 2008-3-5 16:22

金属回收

panjx
rwqrtyw

[url=http://www.021fly.cn]特价机票[/url]
[url=http://www.021fly.cn]打折机票[/url]
[url=http://www.021fly.cn]飞机票[/url]
[url=http://www.021fly.cn]国际机票[/url]
[url=http://www.021fly.cn]上海机票[/url]
[url=http://www.huishoufeipin.cn]金属回收[/url]
[url=http://www.huishoufeipin.cn]物资回收[/url]
[url=http://www.huishoufeipin.cn]废品回收[/url]
[url=http://www.huishoufeipin.cn]废金属回收[/url]
[url=http://www.huishoufeipin.cn]上海废品回收[/url]
[url=http://www.sh-007.com.cn]上海私家侦探[/url]
[url=http://www.sh-007.com.cn]上海私人侦探[/url]
[url=http://www.sh-007.com.cn]私家侦探[/url]
[url=http://www.sh-007.com.cn]婚姻调查[/url]
[url=http://www.sh-007.com.cn]私人侦探[/url]

[url=http://www.021fly.cn/hkzs.htm]特价机票[/url]
[url=http://www.021fly.cn/xsjp.htm]特价机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx1.htm]特价机票[/url]
[url=http://www.021fly.cn/dzkp/dzkp5.htm]特价机票[/url]
[url=http://www.021fly.cn/tjjp.htm]特价机票[/url]
[url=http://www.021fly.cn/gjjp.htm]特价机票[/url]
[url=http://www.021fly.cn/dzkp/dzkp6.htm]特价机票[/url]
[url=http://www.021fly.cn/xsjp.htm]打折机票[/url]
[url=http://www.021fly.cn/hkzs.htm]打折机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx1.htm]打折机票[/url]
[url=http://www.021fly.cn/tjjp.htm]打折机票[/url]
[url=http://www.021fly.cn/dzkp/dzkp5.htm]打折机票[/url]
[url=http://www.021fly.cn/gjjp.htm]打折机票[/url]
[url=http://www.021fly.cn/dzkp/dzkp6.htm]打折机票[/url]

[url=http://www.021fly.cn/hkzs.htm]飞机票[/url]
[url=http://www.021fly.cn/sitemap.htm]飞机票[/url]
[url=http://www.021fly.cn/dzkp/dzkp1.htm]飞机票[/url]
[url=http://www.021fly.cn/tjjp.htm]飞机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx6.htm]飞机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx5.htm]飞机票[/url]
[url=http://www.021fly.cn/kghl.htm]飞机票[/url]
[url=http://www.021fly.cn/gjjp.htm]国际机票[/url]
[url=http://www.021fly.cn/hkzs.htm]国际机票[/url]
[url=http://www.021fly.cn/sitemap.htm]国际机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx8.htm]国际机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx5.htm]国际机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx3.htm]国际机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx6]国际机票[/url]

[url=http://www.sh-007.com.cn/tsdc.htm]私人侦探[/url]
[url=http://www.sh-007.com.cn/tsdc.htm]私家侦探[/url]
[url=http://www.sh-007.com.cn/Scope/hunyin.htm]婚姻调查[/url]
[url=http://www.sh-007.com.cn/tsdc.htm]上海私人侦探[/url]
[url=http://www.sh-007.com.cn/tsdc.htm]上海私家侦探[/url]
[url=http://www.021fly.cn/xsjp.htm]上海机票[/url]
[url=http://www.021fly.cn/tjjp.htm]上海机票[/url]
[url=http://www.021fly.cn/hkzs.htm]上海机票[/url]
[url=http://www.021fly.cn/zxxx/zxxx1.htm]上海机票[/url]
[url=http://www.021fly.cn/dzkp/dzkp5.htm]上海机票[/url]
[url=http://www.021fly.cn/gjjp.htm]上海机票[/url]
[url=http://www.021fly.cn/lxzs/lx2.html]上海机票[/url]
[url=http://www.huishoufeipin.cn/fwxm.html]金属回收[/url]
[url=http://www.huishoufeipin.cn/zyfw.html]金属回收[/url]
[url=http://www.huishoufeipin.cn/flyp.html]金属回收[/url]
[url=http://www.huishoufeipin.cn/gsjj.html]金属回收[/url]
[url=http://www.huishoufeipin.cn/flyplv.html]金属回收[/url]
[url=http://www.huishoufeipin.cn/flypqt.html]金属回收[/url]
[url=http://www.huishoufeipin.cn/flypsu.html]金属回收[/url]

[url=http://www.huishoufeipin.cn/fwjs.html]物资回收[/url]
[url=http://www.huishoufeipin.cn/gsjj.html]物资回收[/url]
[url=http://www.huishoufeipin.cn/fwxm.html]物资回收[/url]
[url=http://www.huishoufeipin.cn/zyfw.html]物资回收[/url]
[url=http://www.huishoufeipin.cn/flypqt.html]物资回收[/url]
[url=http://www.huishoufeipin.cn/flyp.html]物资回收[/url]
[url=http://www.huishoufeipin.cn/flypsu.html]物资回收[/url]
[url=http://www.huishoufeipin.cn/gsjj.html]废金属回收[/url]
[url=http://www.huishoufeipin.cn/zyfw.html]废金属回收[/url]
[url=http://www.huishoufeipin.cn/flypqt.html]废金属回收[/url]
[url=http://www.huishoufeipin.cn/flyplv.html]废金属回收[/url]
[url=http://www.huishoufeipin.cn/fwxm.html]废金属回收[/url]
[url=http://www.huishoufeipin.cn/flypsu.html]废金属回收[/url]

[url=http://www.dzbc.org]上海搬家公司[/url]
[url=http://www.dzbc.org/shanghaibanjiagongsi.html]上海搬家公司[/url]
[url=http://www.dzbc.org/wiki/ow.asp?%C9%CF%BA%A3%B0%E1%BC%D2%B9%AB%CB%BE20080305a]上海搬家公司[/url]
[url=http://www.dzbc.org/wiki/ow.asp?%C9%CF%BA%A3%B0%E1%BC%D2%B9%AB%CB%BE20080305b]上海搬家公司[/url]
[url=http://www.dzbc.org/wiki/ow.asp?%C9%CF%BA%A3%B0%E1%BC%D2%B9%AB%CB%BE20080305c]上海搬家公司[/url]
[url=http://www.dzbc.org/wiki/ow.asp?%C9%CF%BA%A3%B0%E1%BC%D2%B9%AB%CB%BE20080305d]上海搬家公司[/url]
[url=http://www.dzbc.org/blog/post/shanghaibanjiagongsi20080305a.html]上海搬家公司[/url]
[url=http://www.dzbc.org/blog/post/shanghaibanjiagongsi20080305b.html]上海搬家公司[/url]
[url=http://www.dzbc.org/blog/post/shanghaibanjiagongsi20080305c.html]上海搬家公司[/url]
[url=http://www.dzbc.org/blog/post/shanghaibanjiagongsi20080305d.html]上海搬家公司[/url]
[url=http://cn.liangfang.net]靓方中国[/url]
[url=http://bbs.cn.liangfang.net]靓方中国论坛[/url]
[url=http://blog.cn.liangfang.net]靓方中国博客[/url]
[url=http://bbs.021seo.cn]搜索引擎优化论坛[/url]
[url=http://blog.021seo.cn]搜索引擎优化博客[/url]

dboywp 2008-9-2 14:08

收到
页: [1]
查看完整版本: 子网掩码快速算法