找回密码
 注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 14171|回复: 11

不能调用IPV6 HOSTS的地址,仍然延用IPV4的地址是怎么回事

[复制链接]
wyun96711256 发表于 2011-8-18 23:17:07 | 显示全部楼层 |阅读模式
本帖最后由 wyun96711256 于 2011-8-24 08:11 编辑

我是家庭个人电脑,XP GHOST系统,按照坛里的顶置贴一步步测试认应该是IPV6通了,输入IPV6的地址后,不能PING出YOUTUBE的地址,可以ping出www.google.com的地址但是这个地址是ipv4的,而不是ipv6的hosts指定地址,不知道怎么回事,是不是要换teredo的服务器?请教导师,严格按坛里规矩提供以下完整信息:
1  ipconfig/all
C:\Documents and Settings\Administrator>ipconfig/all

Windows IP Configuration

        Host Name . . . . . . . . . . . . : PC-200912261600
        Primary Dns Suffix  . . . . . . . :
        Node Type . . . . . . . . . . . . : Unknown
        IP Routing Enabled. . . . . . . . : No
        WINS Proxy Enabled. . . . . . . . : No

Ethernet adapter 本地连接:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Realtek RTL8168C(P)/8111C(P) PCI-E G
igabit Ethernet NIC
        Physical Address. . . . . . . . . : 00-25-64-EF-33-FE
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 192.168.1.2
        Subnet Mask . . . . . . . . . . . : 255.255.255.0
        IP Address. . . . . . . . . . . . : fe80::225:64ff:feef:33fe%4
        Default Gateway . . . . . . . . . : 192.168.1.1
        DNS Servers . . . . . . . . . . . : 8.8.8.8
                                            8.8.4.4
                                            fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1

Tunnel adapter Teredo Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Teredo Tunneling Pseudo-Interface
        Physical Address. . . . . . . . . : 00-00-F6-11-C4-CB-BE-A6
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : 2001:0:4137:9e76:0:f611:c4cb:bea6
        IP Address. . . . . . . . . . . . : fe80::ffff:ffff:fffd%5
        Default Gateway . . . . . . . . . : ::
        NetBIOS over Tcpip. . . . . . . . : Disabled

Tunnel adapter Automatic Tunneling Pseudo-Interface:

        Connection-specific DNS Suffix  . :
        Description . . . . . . . . . . . : Automatic Tunneling Pseudo-Interface

        Physical Address. . . . . . . . . : C0-A8-01-02
        Dhcp Enabled. . . . . . . . . . . : No
        IP Address. . . . . . . . . . . . : fe80::5efe:192.168.1.2%2
        Default Gateway . . . . . . . . . :
        DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
                                            fec0:0:0:ffff::2%1
                                            fec0:0:0:ffff::3%1
        NetBIOS over Tcpip. . . . . . . . : Disabled

2 netsh interface ipv6 show route

C:\Documents and Settings\Administrator>netsh interface ipv6 show route
正在查询活动状态...

发行     类型      Met   前缀                     索引  网关/接口名
-------  --------  ----  ------------------------  ---  ---------------------
no       Autoconf    10  2001::/32                   5  Teredo Tunneling Pseudo-
Interface
yes      手动        1101  ::/0                        3  2002:ca70:1af6::ca70:1
af6
no       Autoconf    10  ::/0                        5  Teredo Tunneling Pseudo-
Interface

3 ping -6  fe80::5efe:192.168.1.2%2

C:\Documents and Settings\Administrator> ping -6  fe80::5efe:192.168.1.2%2

Pinging fe80::5efe:192.168.1.2%2 with 32 bytes of data:

Reply from fe80::5efe:192.168.1.2%2: time<1ms
Reply from fe80::5efe:192.168.1.2%2: time<1ms
Reply from fe80::5efe:192.168.1.2%2: time<1ms
Reply from fe80::5efe:192.168.1.2%2: time<1ms

Ping statistics for fe80::5efe:192.168.1.2%2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

4 ping -6 ipv6.google.com

C:\Documents and Settings\Administrator>ping -6 ipv6.google.com

Pinging ipv6.l.google.com [2404:6800:8005::6a] with 32 bytes of data:

Reply from 2404:6800:8005::6a: time=1401ms
Reply from 2404:6800:8005::6a: time=405ms
Reply from 2404:6800:8005::6a: time=412ms
Reply from 2404:6800:8005::6a: time=428ms

Ping statistics for 2404:6800:8005::6a:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 405ms, Maximum = 1401ms, Average = 661ms

5 tracert -6 ipv6.google.com

C:\Documents and Settings\Administrator>tracert -6 ipv6.google.com

Tracing route to ipv6.l.google.com [2404:6800:8005::68]
over a maximum of 30 hops:

  1     *     1438 ms     *     6to4.hkg1.he.net [2001:470:0:163::2]
  2   431 ms     *      428 ms  gige-g3-14.core1.hkg1.he.net [2001:470:0:163::1]

  3   431 ms   432 ms     *     google3-10G.hkix.net [2001:7fa:0:1::ca28:a10a]
  4     *        *        *     Request timed out.
  5   426 ms     *      435 ms  2001:4860::2:0:119c
  6   447 ms   427 ms   422 ms  2001:4860:0:1::df
  7   431 ms   436 ms     *     www.google.com [2404:6800:8005::68]
  8   428 ms     *      994 ms  www.google.com [2404:6800:8005::68]

Trace complete.


PING www.google.com并没有调用IPV6 hosts地址的现象
C:\Documents and Settings\Administrator>ping www.google.com

Pinging www.l.google.com [74.125.71.103] with 32 bytes of data:

Reply from 74.125.71.103: bytes=32 time=67ms TTL=51
Reply from 74.125.71.103: bytes=32 time=65ms TTL=51
Reply from 74.125.71.103: bytes=32 time=65ms TTL=51
Reply from 74.125.71.103: bytes=32 time=68ms TTL=51

Ping statistics for 74.125.71.103:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 65ms, Maximum = 68ms, Average = 66ms
www.youtube.com不能ping通过的现象

C:\Documents and Settings\Administrator>ping www.youtube.com

Pinging www.youtube.com [59.24.3.173] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 59.24.3.173:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),


hosts的样本:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
满天星 发表于 2011-8-18 23:26:33 | 显示全部楼层
貌似你是使用teredo隧道接入的哦,需要修改hosts文件的,请参考置顶帖中的说明吧,teredo接入的教材中及论坛置顶帖中都有hosts文件的链接。
回复

使用道具 举报

满天星 发表于 2011-8-18 23:28:11 | 显示全部楼层
貌似你是使用teredo隧道接入的哦,需要修改hosts文件的,请参考置顶帖中的说明吧,teredo接入的教材中及论坛置顶帖中都有hosts文件的链接。
回复

使用道具 举报

 楼主| wyun96711256 发表于 2011-8-18 23:49:41 | 显示全部楼层
回复 3# 满天星


    是的,我正是使用teredo访问的,看了你的贴子,但是第一个不能连接到下载页面,显示出错,第二个,我换了IPV6的hosts,问题就是ping的时候不会去调用ipv6的hosts,而是延用ipv4的hosts
回复

使用道具 举报

满天星 发表于 2011-8-19 23:18:35 | 显示全部楼层
首先:hosts根本不区分ipv4或ipv6,如果你还是ipv4则必然你hosts没有修改正确,请确认你的方法和步骤!建议你仔细查看论坛帖子,谢谢,这些是基础知识,与ipv6无任何关系!
其次:下载hosts的链接需要帆墙后访问!
回复

使用道具 举报

 楼主| wyun96711256 发表于 2011-8-21 10:39:11 | 显示全部楼层
因为无法翻墙,我将你的坛里可见的ipv6 HOSTS地址复制到一个新建的文本文档,修改为HOSTS直接放到ETC文件夹当中覆盖原文件,结果仍然不能调用IPV6的地址
回复

使用道具 举报

满天星 发表于 2011-8-21 11:01:53 | 显示全部楼层
确认路径位置、文件名称、文件格式等,如果修改成功的话,ping hosts中的地址肯定会直接显示ipv6地址的,而不会是ipv4哦,除非你是加的hosts文件中没有你ping的地址,或者已经用#注释掉了!
建议你仔细查看说明,这些是基本知识,谢谢!
回复

使用道具 举报

 楼主| wyun96711256 发表于 2011-8-24 08:12:06 | 显示全部楼层
确认路径位置、文件名称、文件格式等,如果修改成功的话,ping hosts中的地址肯定会直接显示ipv6地址的,而 ...
满天星 发表于 2011-8-21 11:01



    应该是正确的,我已上传附件,你可以帮我看看
回复

使用道具 举报

满天星 发表于 2011-8-26 22:56:38 | 显示全部楼层
hosts文件应该是没有问题的,需要确认的是你存放的目录是否正确才对!比如是否放在操作系统下c:\windows\system32\drivers\etc\
如果操作系统不在c盘等,最简单的验证方法就是任意在hosts中添加一条记录,比如
1.2.3.4   www.abc.com
然后ping www.abc.com,如果显示地址为1.2.3.4就OK了,当然这个地址是无法ping通的哦,只需要验证将域名解析成你修改的地址了,则说明hosts文件生效了。
回复

使用道具 举报

shangding 发表于 2011-10-17 10:44:55 | 显示全部楼层
hosts文件一直无法生效,郁闷,这是什么情况……
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|IPv6BBS ( 京ICP备13024693号 | 京公网安备11010802012238 )

GMT+8, 2024-4-28 22:24 , Processed in 0.029662 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表