您尚未登录。

#1 2013-03-21 22:47:44

proudzhu
会员
注册时间: 2012-11-25
帖子: 69

校园网ipv6能获取到地址, 但是无法连接?

自从这学期学校ipv4改成dhcp后, 每次重启机器后ipv6都连不上, 但是新建一个相同的网络

ipv4 Automatic(DHCP); ipv6 Automatic; Connect automatically

再连接又是正常的.
如果改成不自动连接, 开机后手动连接, 则有时正常, 有时不正常.
OS: archlinux+linux-ck3.8.4.1+kde4.10.1
使用networkmanager0.9.8.0

ip addr show eth0                                                                                                                       
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 90:e6:ba:0b:5a:2e brd ff:ff:ff:ff:ff:ff
    inet 10.170.24.134/16 brd 10.170.255.255 scope global eth0
    inet6 2001:da8:8001:8000::3:ad6b/128 scope global 
       valid_lft forever preferred_lft forever
    inet6 fe80::92e6:baff:fe0b:5a2e/64 scope link 
       valid_lft forever preferred_lft forever
dig AAAA ipv6.google.com
; <<>> DiG 9.9.2-P1 <<>> AAAA ipv6.google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6858
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 4, ADDITIONAL: 5

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;ipv6.google.com.               IN      AAAA

;; ANSWER SECTION:
ipv6.google.com.        401171  IN      CNAME   ipv6.l.google.com.
ipv6.l.google.com.      300     IN      AAAA    2404:6800:4008:c01::69

;; AUTHORITY SECTION:
google.com.             144897  IN      NS      ns4.google.com.
google.com.             144897  IN      NS      ns3.google.com.
google.com.             144897  IN      NS      ns1.google.com.
google.com.             144897  IN      NS      ns2.google.com.

;; ADDITIONAL SECTION:
ns1.google.com.         262784  IN      A       216.239.32.10
ns2.google.com.         262784  IN      A       216.239.34.10
ns3.google.com.         262784  IN      A       216.239.36.10
ns4.google.com.         262784  IN      A       216.239.38.10

;; Query time: 397 msec
;; SERVER: 202.120.224.26#53(202.120.224.26)
;; WHEN: Thu Mar 21 22:17:10 2013
;; MSG SIZE  rcvd: 229
traceroute -6 ipv6.google.com                                                                                                         
traceroute to ipv6.google.com (2404:6800:4008:c01::69), 30 hops max, 80 byte packets
 1  archlinux (2001:da8:8001:8000::3:ad6b)  1271.490 ms !H  1271.478 ms !H  1271.463 ms !H
ping6 -c 4 ipv6.google.com                                                                                                       
PING ipv6.google.com(2404:6800:4008:c00::68) 56 data bytes
From archlinux icmp_seq=1 Destination unreachable: Address unreachable
From archlinux icmp_seq=2 Destination unreachable: Address unreachable
From archlinux icmp_seq=3 Destination unreachable: Address unreachable
From archlinux icmp_seq=4 Destination unreachable: Address unreachable

--- ipv6.google.com ping statistics ---
4 packets transmitted, 0 received, +4 errors, 100% packet loss, time 2999ms

BTW:在WIN7下是正常的

sudo journalctl -b -u NetworkManager.service
-- Logs begin at Sat 2012-12-15 14:14:56 CST, end at Mon 2013-12-02 05:53:32 CST. --
Mar 21 23:20:50 archlinux NetworkManager[360]: <info> NetworkManager (version 0.9.8.0) is starting...
Mar 21 23:20:50 archlinux NetworkManager[360]: <info> Read config file /etc/NetworkManager/NetworkManager.conf
Mar 21 23:20:50 archlinux NetworkManager[360]: <info> WEXT support is enabled
Mar 21 23:20:52 archlinux NetworkManager[360]: <info> Loaded plugin keyfile: (c) 2007 - 2010 Red Hat, Inc.  To report bugs please use the NetworkManager mailing list.
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile: parsing fduwireless ...
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile:     read connection 'fduwireless'
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile: parsing ADSL ...
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile:     read connection 'ADSL'
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile: parsing fduwireless.1x ...
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile:     read connection 'fduwireless.1x'
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile: parsing Local ...
Mar 21 23:20:59 archlinux NetworkManager[360]: keyfile:     read connection 'Local'
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> monitoring kernel firmware directory '/lib/firmware'.
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> rfkill0: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill0) (driver ath5k)
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> WiFi hardware radio set disabled
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> WiFi enabled by radio killswitch; disabled by state file
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> WWAN enabled by radio killswitch; enabled by state file
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> WiMAX enabled by radio killswitch; enabled by state file
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> Networking is enabled by state file
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (wlan0): using nl80211 for WiFi device control
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (wlan0): driver supports Access Point (AP) mode
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (wlan0): new 802.11 WiFi device (driver: 'ath5k' ifindex: 3)
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (wlan0): exported as /org/freedesktop/NetworkManager/Devices/0
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (wlan0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (wlan0): bringing up device.
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (wlan0): deactivating device (reason 'managed') [2]
Mar 21 23:21:00 archlinux NetworkManager[360]: <warn> failed to allocate link cache: (-10) Operation not supported
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (eth0): carrier is OFF
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (eth0): new Ethernet device (driver: 'r8169' ifindex: 2)
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (eth0): exported as /org/freedesktop/NetworkManager/Devices/1
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (eth0): device state change: unmanaged -> unavailable (reason 'managed') [10 20 2]
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (eth0): bringing up device.
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (eth0): preparing device.
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> (eth0): deactivating device (reason 'managed') [2]
Mar 21 23:21:00 archlinux NetworkManager[360]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Mar 21 23:21:00 archlinux NetworkManager[360]: <warn> /sys/devices/virtual/net/lo: couldn't determine device driver; ignoring...
Mar 21 23:21:00 archlinux NetworkManager[360]: <info> WiFi now disabled by radio killswitch
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> (eth0): carrier now ON (device state 20)
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> (eth0): device state change: unavailable -> disconnected (reason 'carrier-changed') [20 30 40]
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> Auto-activating connection 'Local'.
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> Activation (eth0) starting connection 'Local'
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> (eth0): device state change: disconnected -> prepare (reason 'none') [30 40 0]
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) scheduled...
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) started...
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) scheduled...
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 1 of 5 (Device Prepare) complete.
Mar 21 23:21:01 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) starting...
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> (eth0): device state change: prepare -> config (reason 'none') [40 50 0]
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) successful.
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) scheduled.
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 2 of 5 (Device Configure) complete.
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) started...
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> (eth0): device state change: config -> ip-config (reason 'none') [50 70 0]
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> Activation (eth0) Beginning DHCPv4 transaction (timeout in 45 seconds)
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> dhclient started with pid 408
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> Activation (eth0) Beginning IP6 addrconf.
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) complete.
Mar 21 23:21:02 archlinux dhclient[408]: Internet Systems Consortium DHCP Client 4.2.5
Mar 21 23:21:02 archlinux dhclient[408]: Copyright 2004-2013 Internet Systems Consortium.
Mar 21 23:21:02 archlinux dhclient[408]: All rights reserved.
Mar 21 23:21:02 archlinux dhclient[408]: For info, please visit [url]https://www.isc.org/software/dhcp/[/url]
Mar 21 23:21:02 archlinux dhclient[408]: 
Mar 21 23:21:02 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed nbi -> preinit
Mar 21 23:21:02 archlinux dhclient[408]: Listening on LPF/eth0/90:e6:ba:0b:5a:2e
Mar 21 23:21:02 archlinux dhclient[408]: Sending on   LPF/eth0/90:e6:ba:0b:5a:2e
Mar 21 23:21:02 archlinux dhclient[408]: Sending on   Socket/fallback
Mar 21 23:21:02 archlinux dhclient[408]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mar 21 23:21:10 archlinux dhclient[408]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mar 21 23:21:10 archlinux dhclient[408]: DHCPNAK from 0.0.0.0
Mar 21 23:21:10 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed preinit -> expire
Mar 21 23:21:10 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed expire -> preinit
Mar 21 23:21:10 archlinux dhclient[408]: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
Mar 21 23:21:10 archlinux dhclient[408]: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Mar 21 23:21:10 archlinux dhclient[408]: DHCPOFFER from 10.170.0.1
Mar 21 23:21:10 archlinux dhclient[408]: DHCPACK from 10.170.0.1
Mar 21 23:21:10 archlinux dhclient[408]: bound to 10.170.24.134 -- renewal in 60 seconds.
Mar 21 23:21:10 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed preinit -> bound
Mar 21 23:21:10 archlinux NetworkManager[360]: <info>   address 10.170.24.134
Mar 21 23:21:10 archlinux NetworkManager[360]: <info>   prefix 16 (255.255.0.0)
Mar 21 23:21:10 archlinux NetworkManager[360]: <info>   gateway 10.170.0.1
Mar 21 23:21:10 archlinux NetworkManager[360]: <info>   nameserver '202.120.224.26'
Mar 21 23:21:10 archlinux NetworkManager[360]: <info>   nameserver '61.129.42.6'
Mar 21 23:21:10 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Mar 21 23:21:10 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
Mar 21 23:21:11 archlinux NetworkManager[360]: <info> (eth0): device state change: ip-config -> secondaries (reason 'none') [70 90 0]
Mar 21 23:21:11 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
Mar 21 23:21:11 archlinux NetworkManager[360]: <info> (eth0): device state change: secondaries -> activated (reason 'none') [90 100 0]
Mar 21 23:21:11 archlinux NetworkManager[360]: <info> Policy set 'Local' (eth0) as default for IPv4 routing and DNS.
Mar 21 23:21:11 archlinux NetworkManager[360]: <info> Activation (eth0) successful, device activated.
Mar 21 23:21:12 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 3 of 5 (IP Configure Start) starting DHCPv6 as requested by IPv6 router...
Mar 21 23:21:12 archlinux NetworkManager[360]: <info> Activation (eth0) Beginning DHCPv6 transaction (timeout in 45 seconds)
Mar 21 23:21:12 archlinux NetworkManager[360]: <info> dhclient started with pid 479
Mar 21 23:21:12 archlinux dhclient[479]: Internet Systems Consortium DHCP Client 4.2.5
Mar 21 23:21:12 archlinux dhclient[479]: Copyright 2004-2013 Internet Systems Consortium.
Mar 21 23:21:12 archlinux dhclient[479]: All rights reserved.
Mar 21 23:21:12 archlinux dhclient[479]: For info, please visit [url]https://www.isc.org/software/dhcp/[/url]
Mar 21 23:21:12 archlinux dhclient[479]: 
Mar 21 23:21:12 archlinux dhclient[479]: Bound to *:546
Mar 21 23:21:12 archlinux dhclient[479]: Listening on Socket/eth0
Mar 21 23:21:12 archlinux dhclient[479]: Sending on   Socket/eth0
Mar 21 23:21:12 archlinux NetworkManager[360]: <info> (eth0): DHCPv6 state changed nbi -> preinit6
Mar 21 23:21:12 archlinux dhclient[479]: XMT: Confirm on eth0, interval 910ms.
Mar 21 23:21:13 archlinux dhclient[479]: XMT: Confirm on eth0, interval 1870ms.
Mar 21 23:21:15 archlinux dhclient[479]: XMT: Confirm on eth0, interval 3900ms.
Mar 21 23:21:19 archlinux dhclient[479]: XMT: Confirm on eth0, interval 7210ms.
Mar 21 23:21:26 archlinux dhclient[479]: Max retransmission duration exceeded.
Mar 21 23:21:26 archlinux NetworkManager[360]: <info> (eth0): DHCPv6 state changed preinit6 -> bound6
Mar 21 23:21:26 archlinux NetworkManager[360]: <info>   address 2001:da8:8001:8000::3:cb31/128
Mar 21 23:21:26 archlinux NetworkManager[360]: <info>   nameserver '2001:da8:8001:2:209:3dff:fe00:77a5'
Mar 21 23:21:26 archlinux NetworkManager[360]: <info>   nameserver '2001:da8:8001:2:203:baff:fe1d:bafc'
Mar 21 23:21:26 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 5 of 5 (IPv6 Commit) scheduled...
Mar 21 23:21:26 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 5 of 5 (IPv6 Commit) started...
Mar 21 23:21:27 archlinux NetworkManager[360]: <info> Policy set 'Local' (eth0) as default for IPv6 routing and DNS.
Mar 21 23:21:27 archlinux NetworkManager[360]: <info> Activation (eth0) Stage 5 of 5 (IPv6 Commit) complete.
Mar 21 23:21:28 archlinux NetworkManager[360]: <info> Policy set 'Local' (eth0) as default for IPv6 routing and DNS.
Mar 21 23:22:10 archlinux dhclient[408]: DHCPREQUEST on eth0 to 10.170.0.1 port 67
Mar 21 23:22:10 archlinux dhclient[408]: DHCPACK from 10.170.0.1
Mar 21 23:22:10 archlinux dhclient[408]: bound to 10.170.24.134 -- renewal in 59 seconds.
Mar 21 23:22:10 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed bound -> renew
Mar 21 23:22:10 archlinux NetworkManager[360]: <info>   address 10.170.24.134
Mar 21 23:22:10 archlinux NetworkManager[360]: <info>   prefix 16 (255.255.0.0)
Mar 21 23:22:10 archlinux NetworkManager[360]: <info>   gateway 10.170.0.1
Mar 21 23:22:10 archlinux NetworkManager[360]: <info>   nameserver '202.120.224.26'
Mar 21 23:22:10 archlinux NetworkManager[360]: <info>   nameserver '61.129.42.6'
Mar 21 23:23:09 archlinux dhclient[408]: DHCPREQUEST on eth0 to 10.170.0.1 port 67
Mar 21 23:23:09 archlinux dhclient[408]: DHCPACK from 10.170.0.1
Mar 21 23:23:09 archlinux dhclient[408]: bound to 10.170.24.134 -- renewal in 46 seconds.
Mar 21 23:23:09 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed renew -> renew
Mar 21 23:23:09 archlinux NetworkManager[360]: <info>   address 10.170.24.134
Mar 21 23:23:09 archlinux NetworkManager[360]: <info>   prefix 16 (255.255.0.0)
Mar 21 23:23:09 archlinux NetworkManager[360]: <info>   gateway 10.170.0.1
Mar 21 23:23:09 archlinux NetworkManager[360]: <info>   nameserver '202.120.224.26'
Mar 21 23:23:09 archlinux NetworkManager[360]: <info>   nameserver '61.129.42.6'
Mar 21 23:23:55 archlinux dhclient[408]: DHCPREQUEST on eth0 to 10.170.0.1 port 67
Mar 21 23:23:55 archlinux dhclient[408]: DHCPACK from 10.170.0.1
Mar 21 23:23:55 archlinux dhclient[408]: bound to 10.170.24.134 -- renewal in 54 seconds.
Mar 21 23:23:55 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed renew -> renew
Mar 21 23:23:55 archlinux NetworkManager[360]: <info>   address 10.170.24.134
Mar 21 23:23:55 archlinux NetworkManager[360]: <info>   prefix 16 (255.255.0.0)
Mar 21 23:23:55 archlinux NetworkManager[360]: <info>   gateway 10.170.0.1
Mar 21 23:23:55 archlinux NetworkManager[360]: <info>   nameserver '202.120.224.26'
Mar 21 23:23:55 archlinux NetworkManager[360]: <info>   nameserver '61.129.42.6'
Mar 21 23:24:49 archlinux dhclient[408]: DHCPREQUEST on eth0 to 10.170.0.1 port 67
Mar 21 23:24:49 archlinux dhclient[408]: DHCPACK from 10.170.0.1
Mar 21 23:24:49 archlinux dhclient[408]: bound to 10.170.24.134 -- renewal in 50 seconds.
Mar 21 23:24:49 archlinux NetworkManager[360]: <info> (eth0): DHCPv4 state changed renew -> renew
Mar 21 23:24:49 archlinux NetworkManager[360]: <info>   address 10.170.24.134
Mar 21 23:24:49 archlinux NetworkManager[360]: <info>   prefix 16 (255.255.0.0)
Mar 21 23:24:49 archlinux NetworkManager[360]: <info>   gateway 10.170.0.1
Mar 21 23:24:49 archlinux NetworkManager[360]: <info>   nameserver '202.120.224.26'
Mar 21 23:24:49 archlinux NetworkManager[360]: <info>   nameserver '61.129.42.6'

最近编辑记录 proudzhu (2013-03-21 23:32:13)

离线

#2 2013-03-21 22:54:00

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 7,184
个人网站

Re: 校园网ipv6能获取到地址, 但是无法连接?

networkmanager 坏掉了?

离线

#3 2013-03-21 23:34:24

proudzhu
会员
注册时间: 2012-11-25
帖子: 69

Re: 校园网ipv6能获取到地址, 但是无法连接?

百合仙子 说:

networkmanager 坏掉了?

不清楚啊, 刚贴了log, 看不出问题在哪

离线

#4 2013-03-22 13:26:31

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 7,184
个人网站

Re: 校园网ipv6能获取到地址, 但是无法连接?

我觉得是路由表的原因。不过我没用过 IPv6,不清楚要怎么办= =

离线

页脚