【问题标题】:networking - Need help on Network Prefix and Pings网络 - 需要有关网络前缀和 Ping 的帮助
【发布时间】:2016-05-11 22:06:48
【问题描述】:

VMS _________ eth0 的 IP 地址 __________ 网络掩码

PC1 __________ 10.0.1.100 / 24 __________ 255.255.255.0

PC2 __________ 10.0.1.101 / 28 __________ 255.255.255.240

PC3 __________ 10.0.1.120 / 24 __________ 255.255.255.0

PC4 __________ 10.0.1.121 / 28 __________ 255.255.255.240

结果:

从 PC1 ping PC3 -> 成功

从 PC1 ping PC2 -> 成功

从 PC1 ping PC4 -> 错误(100% 丢包)

从 PC4 ping PC1 -> 网络不可达

从 PC2 ping PC4 -> 网络不可达

从 PC2 ping PC3 -> 网络不可达


谁能解释一下为什么 PC1 到 PC4 是错误的,为什么 PC4 到 PC1 网络不可达?

它必须对网络前缀做些什么吗?

【问题讨论】:

    标签: networking


    【解决方案1】:

    所有这些地址都在10.0.1.0/24 网络中。给他们戴上不同的面具只会让你伤心。

    PC4 在网络10.0.1.112/28 中,所以它只能通过它的网关到达PC1,因此它不能响应来自PC1 的ping。 PC1 认为它与 PC4 的地址在同一个网络中,所以您没有收到network is unreachable 错误,但 PC4 无法响应因此 ping 超时。

    【讨论】:

      猜你喜欢
      • 2012-03-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-19
      • 2020-01-28
      • 1970-01-01
      • 2014-02-25
      • 1970-01-01
      相关资源
      最近更新 更多