ping输出和ifconfig

问题描述

我使用URL 15.206.243.81在云上启动了VM。我用笔记本电脑跑ping

ping 15.206.243.81

输出为

Pinging 15.206.243.81 with 32 bytes of data:
Reply from 15.206.243.81: bytes=32 time=66ms TTL=45
Reply from 15.206.243.81: bytes=32 time=2679ms TTL=45
Reply from 15.206.243.81: bytes=32 time=146ms TTL=45
Reply from 15.206.243.81: bytes=32 time=62ms TTL=45

Ping statistics for 15.206.243.81:
    Packets: Sent = 4,Received = 4,Lost = 0 (0% loss),Approximate round trip times in milli-seconds:
    Minimum = 62ms,Maximum = 2679ms,Average = 738ms

但是如果我在该VM上运行ifconfig,则会显示

inet 192.168.83.54  netmask 255.255.224.0  broadcast 192.168.95.255
        inet6 fe80::48:d9ff:fe00:d898  prefixlen 64  scopeid 0x20<link>
        ether 02:48:d9:00:d8:98  txqueuelen 1000  (Ethernet)
        RX packets 217250  bytes 249431544 (249.4 MB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 111138  bytes 38689700 (38.6 MB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

此操作的inet是192.168.83.54,而我ping到的IP地址是15.206.243.81。为什么在同一计算机上的ifconfigping输出中有不同的IP?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...