ubuntu 16.04 无线连接校园网 无法获取ipv6

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
Tae123
帖子: 2
注册时间: 2016-07-28 21:05
系统: Ubuntu16.04.1

ubuntu 16.04 无线连接校园网 无法获取ipv6

#1

帖子 Tae123 » 2016-07-28 21:14

连接校园网无线后,获取不了全局ipv6, wifi连接设置里,ipv4和ipv6都是自动
ifconfig 结果如下:
enp4s0f0 Link encap:Ethernet HWaddr 20:6a:8a:67:ac:6c
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Interrupt:19

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:633 errors:0 dropped:0 overruns:0 frame:0
TX packets:633 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:67109 (67.1 KB) TX bytes:67109 (67.1 KB)

wlp3s0 Link encap:Ethernet HWaddr 60:d8:19:27:7a:26
inet addr:172.23.29.168 Bcast:172.23.255.255 Mask:255.255.0.0
inet6 addr: fe80::8e74:681b:515f:9da1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:46701 errors:0 dropped:0 overruns:0 frame:26216
TX packets:1493 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4469134 (4.4 MB) TX bytes:181171 (181.1 KB)
Interrupt:17
能够获取局部的ipv6,但是没有全局的ipv6。window情况下是可以的
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 16.04 无线连接校园网 无法获取ipv6

#2

帖子 poloshiao » 2016-07-28 22:22

wlp3s0 Link encap:Ethernet HWaddr 60:d8:19:27:7a:26
inet addr:172.23.29.168 Bcast:172.23.255.255 Mask:255.255.0.0
inet6 addr: fe80::8e74:681b:515f:9da1/64 Scope:Link
能够获取局部的ipv6,但是没有的ipv6。window情况下是可以的
1. https://en.wikipedia.org/wiki/IPv6_addr ... _addresses
Local addresses
fe80 通常指 本機內才有效的網址
1-1. 通常 只要 IPv6 enabled / 網卡正常驅動 就會有 fe80 開頭的 ipv6

2. https://en.wikipedia.org/wiki/IPv6_addr ... _addresses
fc00::/7 — Unique local addresses (ULAs) are intended for local communication.
fc00 開頭的 IPv6 比較像 局部的 ipv6

3. https://en.wikipedia.org/wiki/IPv6_address#Presentation
例如
2001:0db8:85a3:0000:0000:8a2e:0370:7334
2001 開頭的 IPv6 比較接近 全局的 ipv6

4. 先參閱
https://wiki.ubuntu.com/IPv6

5. 有問題 歡迎再貼出來討論
Tae123
帖子: 2
注册时间: 2016-07-28 21:05
系统: Ubuntu16.04.1

Re: ubuntu 16.04 无线连接校园网 无法获取ipv6

#3

帖子 Tae123 » 2016-07-29 12:53

是的,我现在能获取fe80的ipv6,但是无法获取global的ipv6

我查了一下,ipv6是enabled的,无线网络设置里面,ipv4是autonomically(DHCP), ipv6是autonomically

然后再说一下,这是在无线网络情况下,有线的时候ipv4和ipv6都是ok的


有大神解答一下吗?
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: ubuntu 16.04 无线连接校园网 无法获取ipv6

#4

帖子 poloshiao » 2016-07-29 14:15

连接校园网无线
ipv4是autonomically(DHCP), ipv6是autonomically
1. ipv4 因為數量不夠 才有 DHCP 機制 讓許多台內網 IPv4 分享一個外網 IPv4
IPv6 因為數量足夠 不一定需要依賴 DHCP 機制 (意思是 可以每個網卡 擁有唯一的 Native IPv6)
可以直接把外網 Native IPv6 寫進設定檔中
1-1. 參閱
https://wiki.ubuntu.com/IPv6#Native_IPv6_connections
Native IPv6 connections

Contact your Internet Service Provider to see if they offer IPv6 yet. Only a few Internet Service Providers (ISP) currently offer native IPv6 service, though by 2015 probably all of them will.

If your uplink involves a wifi router or broadband modem, those devices will need to support IPv6. Cable-Modems need to support DOCSIS 3.0 or 2.0+IPv6. As of 2010, very few DSL-Modems support IPv6; this will change by 2012.

If your hardware or ISP does not support native IPv6, which is the best kind, you might still be able to use IPv6 tunneled over IPv4 instead.

1-2. 建議 向校园网 技術人員請教 你的 Native IPv6 如何產生 及 如何設定

1-3. 如果還有問題 請提供 1-2 校园网 技術人員提供的 Native IPv6 數據 及 無線路由或分享器 品牌及型號
是的,我现在能获取fe80的ipv6
2. 就如同前面說的
只要 IPv6 enabled / 網卡已經驅動 就會有 fe80
用通俗的話說 fe80 是綁定你的網卡 不須額外往外要求配給

3. 如果你還是需要使用 IPv6 的 DHCPv6 功能
參閱
https://wiki.ubuntu.com/DHCPv6
ISC DHCP v6 Client
客戶端

4. 其它 IPv6 連線方法
https://wiki.ubuntu.com/IPv6#Getting_Connected

5. 進一步參閱
http://www.tldp.org/HOWTO/Linux+IPv6-HOWTO/
Linux IPv6 HOWTO
烟波钓叟
帖子: 112
注册时间: 2015-04-04 23:20
系统: linux & windows

Re: ubuntu 16.04 无线连接校园网 无法获取ipv6

#5

帖子 烟波钓叟 » 2016-07-29 22:25

或许你的无线网络没有支持ipv6。
xudero
帖子: 1
注册时间: 2016-08-27 9:12
系统: ubuntu 16.04

Re: ubuntu 16.04 无线连接校园网 无法获取ipv6

#6

帖子 xudero » 2016-08-27 9:15

我有线连接也遇到类似的问题


该怎么解决呢
回复