掩码的1必须连续?关于像255.255.0.255这样的非连续子网掩码
2012-09-13 07:19
330 查看
掩码的1必须连续?关于像255.255.0.255这样的非连续子网掩码
2009-10-28 18:36:13| 分类: IT|字号 订阅百度上搜索的都是说255.255.0.255的掩码不合法,其实这些人没有读过RFC,也就大惊小怪了RFC950的内容:
3. A Class C Network Case (illustrating non-contiguous subnet bits) For this case, assume that the requesting host is on class C network 192.1.127.0, has address 192.1.127.19, that there is a gateway at 192.1.127.50, and that on network an 3-bit subnet field is in use (01011000), that is, the address mask is 255.255.255.88. The host sends the ICMP request to 255.255.255.255: Source address: 192.1.127.19 Destination address: 255.255.255.255 Protocol: ICMP = 1 Type: Address Mask Request = AM1 Code: 0 Mask: 0 //19的二进制是00010011 //88的二进制是01011000 AND的结果是00010000 The gateway can then respond directly to the requesting host. Source address: 192.1.127.50 Destination address: 192.1.127.19 Protocol: ICMP = 1 Type: Address Mask Reply = AM2 Code: 0 Mask: 255.255.255.88. //50的二进制是00110010 //88的二进制是01011000 AND的结果是00010000、 所以这两个机器在一个子网内,destination address直接就是192.1.127.19 In the diskless workstation case the host sends: Source address: 0.0.0.0 Destination address: 255.255.255.255 Protocol: ICMP = 1 Type: Address Mask Request = AM1 Code: 0 Mask: 0 192.1.127.50 will hear the datagram, and should respond with this datagram: Source address: 192.1.127.50 Destination address: 255.255.255.255 Protocol: ICMP = 1 Type: Address Mask Reply = AM2 Code: 0 Mask: 255.255.255.88. Read more: http://www.faqs.org/rfcs/rfc950.html#ixzz0VE0qJANw 另外一篇: 相信读过TCP-IP详解的都知道这个问题,位于中文版vol 1 004里面 10. (3.5) Is the subnet mask 255.255.0.255 valid for a class A address? See RFC 1219 [Tsuchiya 1991] for more info. This is available from the Networking I web page, as well as from the usual sources. It's valid and it's called a noncontiguous subnet mask since the 16 bits for the subnet mask are not contiguous. The RFC's, however, recommend against using noncontiguous subnet masks. //看到没,只是反对使用,没说不连续的子网掩码是非法的
相关文章推荐
- 谁说子网掩码的1必须连续?关于像255.255.0.255这样的非连续子网掩码
- 关于手机必须知道的几件事(含SP陷阱)。
- 关于 OLEDB 读取 XLS 关系型数据文件的指定 Worksheet 时末尾必须加 $ 的原因。
- 关于html5你必须知道的28个新特性
- 关于怎样用javascript判断网页上我们想要必须选择的复选框至少选择一个的问题
- 关于使用Asp.net导出Excel,遭遇“LinkButton必须放在一个具有runat=server的标签的Form”的解决方案。
- 关于C语言中连续多次scanf无法成功运行的问题简析
- 关于android初学者必须掌握的Activity的四大知识点
- java中关于null你必须知道的几件事情
- 关于iBatis中的错误提示(必须以> 或 />结尾,有时并不是你的结尾没有以 />结束,而是这个标签里面有问题!!)(更重要的是sqlMap的修改手段!!!)
- 关于Python模块,或许是这样的:
- 关于程序员成长的一点思考,程序员必须得看
- 关于NoSQL,你必须知道的九件事
- <漫谈ElasticSearch>关于ES性能调优几件必须知道的事
- 关于Lotus Notes必须知道的7件事
- 坑爹的sql,好不容易写成这样,谁知道,必须得有userid参照值,否则就报错,求解救
- 如果你已经这样了,那你必须要跳槽了。
- 关于Google Instant 你必须知道的6件事情,互联网营销
- MySql中关于某列中相同数值连续出现次数的统计
- 绝对干货:关于php7几件你必须知道的事