免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1473 | 回复: 2
打印 上一主题 下一主题

为什么ping虚拟主机的alias0地址返回的不是目标地址? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-14 17:03 |只看该作者 |倒序浏览
FB6.1 P10主机,配置如下:
ifconfig_dc0="inet 134.206.224.254 netmask 255.255.255.0"
ifconfig_dc0_alias0="inet 10.10.10.1 netmask 255.255.255.0"
ifconfig_dc0_alias1="inet 10.10.20.1 netmask 255.255.255.0"

在LAN上ping,结果如下:
C:\>ping 10.10.10.1

Pinging 10.10.10.1 with 32 bytes of data:

Reply from 134.206.224.254: bytes=32 time<1ms TTL=64
Reply from 134.206.224.254: bytes=32 time<1ms TTL=64
Reply from 134.206.224.254: bytes=32 time<1ms TTL=64
Reply from 134.206.224.254: bytes=32 time<1ms TTL=64

C:\>ping 10.10.20.1

Pinging 10.10.20.1 with 32 bytes of data:

Reply from 10.10.20.1: bytes=32 time<1ms TTL=64
Reply from 10.10.20.1: bytes=32 time<1ms TTL=64
Reply from 10.10.20.1: bytes=32 time<1ms TTL=64
Reply from 10.10.20.1: bytes=32 time<1ms TTL=64

如上所示:为什么ping 10.10.10.1返回的不是地址10.10.10.1,而是134.206.224.254;ping 10.10.20.1却没有返回134.206.224.254地址?

论坛徽章:
0
2 [报告]
发表于 2006-11-14 22:34 |只看该作者
试下把ifconfig_dc0_alias0 改为ifconfig_dc0_alias3在PING

论坛徽章:
0
3 [报告]
发表于 2006-11-15 08:11 |只看该作者
手册上说只能从alias0开始。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP