当前位置: 技术问答>linux和unix
网络现象问题
来源: 互联网 发布时间:2016-02-19
本文导语: 各位大大, 我的水平不太够, 如果有见解都可以写下来 情况如下: 有一台CENTOS机, 管辖着几台PC机, CENTOS是配置单网卡多IP的形式与多台机器相连通的 如: 其中的一台PC机为SUN的: IP: 133.161.26.1 CENTOS IP配置如下: eth1.1...
各位大大, 我的水平不太够, 如果有见解都可以写下来
情况如下:
有一台CENTOS机, 管辖着几台PC机, CENTOS是配置单网卡多IP的形式与多台机器相连通的
如:
其中的一台PC机为SUN的: IP: 133.161.26.1
CENTOS IP配置如下: eth1.17 Link encap:Ethernet HWaddr 00:1A:64:11:12:9A
inet addr:133.161.26.8 Bcast:133.161.26.255 Mask:255.255.255.0
$ ping 133.161.26.1
PING 133.161.26.1 (133.161.26.1) 56(84) bytes of data.
64 bytes from 133.161.26.1: icmp_seq=0 ttl=255 time=1.47 ms
64 bytes from 133.161.26.1: icmp_seq=1 ttl=255 time=1.47 ms
PING的结果应该是: 64 bytes from 133.161.26.8: ...... 为什么是"64 bytes from 135.161.26.1"?????
"64 bytes from 133.161.26.1" 感觉是自己PING自己的IP结果
情况如下:
有一台CENTOS机, 管辖着几台PC机, CENTOS是配置单网卡多IP的形式与多台机器相连通的
如:
其中的一台PC机为SUN的: IP: 133.161.26.1
CENTOS IP配置如下: eth1.17 Link encap:Ethernet HWaddr 00:1A:64:11:12:9A
inet addr:133.161.26.8 Bcast:133.161.26.255 Mask:255.255.255.0
$ ping 133.161.26.1
PING 133.161.26.1 (133.161.26.1) 56(84) bytes of data.
64 bytes from 133.161.26.1: icmp_seq=0 ttl=255 time=1.47 ms
64 bytes from 133.161.26.1: icmp_seq=1 ttl=255 time=1.47 ms
PING的结果应该是: 64 bytes from 133.161.26.8: ...... 为什么是"64 bytes from 135.161.26.1"?????
"64 bytes from 133.161.26.1" 感觉是自己PING自己的IP结果
|
问题是,你的命令:
ping 133.161.26.1
本来就是ping .1, 而不是.8 的那台机器
ping 133.161.26.1
本来就是ping .1, 而不是.8 的那台机器