在TCP/IP 的子网寻址图解,卷。1: The Protocols , 有描述:
This makes sense because class A and class B addresses have too many bits allocated for the host ID: 16384 - 2 and 65536 - 2, respectively., 我想这是 的原因Subnet Addressing,但我不知道在哪里可以找到协议,它描述了任何两个主机只有在它们具有相同network id和subnet id? 这是相对于Ethernet? 但我没有找到关于它的描述。我知道一定有什么我错过了!
这里,网关有1.4,aix有1.92,solaris有1.32,上面粗线,有一个1.0
不知道能不能总结一下我的问题,为什么在LAN,如果第一个主机要ping第二个主机,第一个是140.252.1.4,然后第二个必须是140.252.1.x?
为了让我的问题更清楚,我做了一个测试,我通过电缆直接连接了我的 mac 和 Fedora linux,然后:
在mac下:
~ » sudo ifconfig en0 192.168.90.104
在 Fedora Linux 下:
[abelard@bogon ~] ifconfig eno1 192.168.90.197
并在mac下执行以下命令:
~ » ping 192.168.90.197 abelard@localhost
PING 192.168.90.197 (192.168.90.197): 56 data bytes
64 bytes from 192.168.90.197: icmp_seq=0 ttl=64 time=0.803 ms
64 bytes from 192.168.90.197: icmp_seq=1 ttl=64 time=0.602 ms
64 bytes from 192.168.90.197: icmp_seq=2 ttl=64 time=0.606 ms
但是当我将 mac 的 ip 更改为192.168.91.104:
~ » sudo ifconfig en0 192.168.91.104
然后
~ » ping 192.168.90.197 abelard@localhost
PING 192.168.90.197 (192.168.90.197): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
为什么?
