sudo 命令怎么不起作用 奉上原文 请指教

Ubuntu 下无法使用ipv6,请指教 - 查看主题 & Ubuntu中文论坛
&[ 24 篇帖子 ]&
&文章标题 : Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
以下是ifconfig的数据eth0
Link encap:Ethernet
HWaddr f0:de:f1:bf:06:ef
UP BROADCAST MULTICAST
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:42 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
RX packets:1565 errors:0 dropped:0 overruns:0 frame:0
TX packets:1565 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5.1 KB)
TX bytes:5.1 KB)wlan0
Link encap:Ethernet
HWaddr 74:e5:0b:73:b0:7e
inet addr:172.17.214.168
Bcast:172.17.255.255
Mask:255.255.128.0
inet6 addr: 2001:da8:::2:ab3b/64 Scope:Global
inet6 addr: fe80::76e5:bff:fe73:b07e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST
RX packets:6769 errors:0 dropped:0 overruns:0 frame:0
TX packets:6390 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:.2 MB)
TX bytes:.0 MB)显示的是分配了ipv6地址啊,而且也是Global但是就是没有ipv6访问啊然后试着 ping6 PING ) 56 data bytesFrom 2001:da8:::2:ab3b icmp_seq=1 Destination unreachable: Address unreachableFrom 2001:da8:::2:ab3b icmp_seq=2 Destination unreachable: Address unreachableFrom 2001:da8:::2:ab3b icmp_seq=3 Destination unreachable: Address unreachableFrom 2001:da8:::2:ab3b icmp_seq=4 Destination unreachable: Address unreachableFrom 2001:da8:::2:ab3b icmp_seq=5 Destination unreachable: Address unreachableFrom 2001:da8:::2:ab3b icmp_seq=6 Destination unreachable: Address unreachable不行,又没有人知道是什么问题?寝室里同一台交换机的室友用的win7是可以进行ipv6访问的我的电脑之前也是可以的,但是这几天不知怎么的就不行。
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
16:33帖子: 10899
引用:显示的是分配了ipv6地址啊,而且也是Global你是通過 wlan0 訪問嗎1. ping6 -c 3 [::1/128]2. ping6 -c 3 [2001:da8:::2:ab3b]2-1. ping6 -c 3 [2001:da8:::2:ab3b/64]3. ping6 -c 3 [05:802::1010]如果三個都沒回應 增加4. sudo cat /etc/sysctl.conf5. sudo cat cat /proc/sys/net/ipv6/conf/all/disable_ipv66. sudo cat /boot/grub/grub.cfg | grep ipv67. sudo route -nv -A inet6把以上結果 複製 貼上來
_________________
评价:&3.85%&
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
[quote=&poloshiao&][quote]显示的是分配了ipv6地址啊,而且也是Global[/quote]你是通過 wlan0 訪問嗎1. ping6 -c 3 [::1/128]2. ping6 -c 3 [2001:da8:::2:ab3b]2-1. ping6 -c 3 [2001:da8:::2:ab3b/64]3. ping6 -c 3 [05:802::1010]如果三個都沒回應 增加4. sudo cat /etc/sysctl.conf5. sudo cat cat /proc/sys/net/ipv6/conf/all/disable_ipv66. sudo cat /boot/grub/grub.cfg | grep ipv67. sudo route -nv -A inet6把以上結果 複製 貼上來[/quote]1,2,2-1,3 显示结果都是unknown host4.## /etc/sysctl.conf - Configuration file for setting system variables# See /etc/sysctl.d/ for additional system variables# See sysctl.conf (5) for information.##kernel.domainname = # Uncomment the following to stop low-level messages on console#kernel.printk = 3 4 1 3##############################################################3# Functions previously found in netbase## Uncomment the next two lines to enable Spoof protection (reverse-path filter)# Turn on Source Address Verification in all interfaces to# prevent some spoofing attacks#net.ipv4.conf.default.rp_filter=1#net.ipv4.conf.all.rp_filter=1# Uncomment the next line to enable TCP/IP SYN cookies# See http://lwn.net/Articles/277146/# Note: This may impact IPv6 TCP sessions too#net.ipv4.tcp_syncookies=1# Uncomment the next line to enable packet forwarding for IPv4#net.ipv4.ip_forward=1# Uncomment the next line to enable packet forwarding for IPv6#
Enabling this option disables Stateless Address Autoconfiguration#
based on Router Advertisements for this host#net.ipv6.conf.all.forwarding=1#################################################################### Additional settings - these settings can improve the network# security of the host and prevent against some network attacks# including spoofing attacks and man in the middle attacks through# redirection. Some network environments, however, require that these# settings are disabled so review and enable them as needed.## Do not accept ICMP redirects (prevent MITM attacks)#net.ipv4.conf.all.accept_redirects = 0#net.ipv6.conf.all.accept_redirects = 0# _or_# Accept ICMP redirects only for gateways listed in our default# gateway list (enabled by default)# net.ipv4.conf.all.secure_redirects = 1## Do not send ICMP redirects (we are not a router)#net.ipv4.conf.all.send_redirects = 0## Do not accept IP source route packets (we are not a router)#net.ipv4.conf.all.accept_source_route = 0#net.ipv6.conf.all.accept_source_route = 0## Log Martian Packets#net.ipv4.conf.all.log_martians = 1#5. No such file or directory6.没有结果单独cat不加管道的话是## DO NOT EDIT THIS FILE## It is automatically generated by grub-mkconfig using templates# from /etc/grub.d and settings from /etc/default/grub#### BEGIN /etc/grub.d/00_header ###if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_envfiset default=&0&if [ &${prev_saved_entry}& ]; then
set saved_entry=&${prev_saved_entry}&
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=truefifunction savedefault {
if [ -z &${boot_once}& ]; then
saved_entry=&${chosen}&
save_env saved_entry
fi}function recordfail {
set recordfail=1
if [ -n &${have_grubenv}& ]; then if [ -z &${boot_once}& ]; then save_ fi}function load_video {
insmod efi_gop
insmod efi_uga
insmod video_bochs
insmod video_cirrus}insmod part_gptinsmod ext2set root='(hd0,gpt2)'search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_gpt
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettextfiterminal_output gfxtermif [ &${recordfail}& = 1 ] ; then
set timeout=-1else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=hidden
set timeout=0
# Fallback hidden-timeout code in case the timeout_style feature is
# unavailable.
elif sleep --interruptible 0 ; then
set timeout=0
fifi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###set menu_color_normal=white/blackset menu_color_highlight=black/light-grayif background_color 44,0,30; then
clearfi### END /etc/grub.d/05_debian_theme ###### BEGIN /etc/grub.d/10_linux ###function gfxmode { set gfxpayload=&${1}& if [ &${1}& = &keep& ]; then
set vt_handoff=vt.handoff=7 else
set vt_handoff= fi}if [ &${recordfail}& != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
set linux_gfx_mode=text
set linux_gfx_mode=text
set linux_gfx_mode=keep
set linux_gfx_mode=textfiexport linux_gfx_modeif [ &${linux_gfx_mode}& != &text& ]; then load_ fimenuentry 'Ubuntu, with Linux 3.2.0-60-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 linux /boot/vmlinuz-3.2.0-60-generic root=UUID=cdee6ba2-262f-41d8-bbf43c3 ro
quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-60-generic}menuentry 'Ubuntu, with Linux 3.2.0-60-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 echo 'Loading Linux 3.2.0-60-generic ...' linux /boot/vmlinuz-3.2.0-60-generic root=UUID=cdee6ba2-262f-41d8-bbf43c3 ro recovery nomodeset
echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-60-generic}submenu &Previous Linux versions& {menuentry 'Ubuntu, with Linux 3.2.0-59-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 linux /boot/vmlinuz-3.2.0-59-generic root=UUID=cdee6ba2-262f-41d8-bbf43c3 ro
quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-59-generic}menuentry 'Ubuntu, with Linux 3.2.0-59-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 echo 'Loading Linux 3.2.0-59-generic ...' linux /boot/vmlinuz-3.2.0-59-generic root=UUID=cdee6ba2-262f-41d8-bbf43c3 ro recovery nomodeset
echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-59-generic}menuentry 'Ubuntu, with Linux 3.2.0-23-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail gfxmode $linux_gfx_mode insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 linux /boot/vmlinuz-3.2.0-23-generic root=UUID=cdee6ba2-262f-41d8-bbf43c3 ro
quiet splash $vt_handoff initrd /boot/initrd.img-3.2.0-23-generic}menuentry 'Ubuntu, with Linux 3.2.0-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod gzio insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 echo 'Loading Linux 3.2.0-23-generic ...' linux /boot/vmlinuz-3.2.0-23-generic root=UUID=cdee6ba2-262f-41d8-bbf43c3 ro recovery nomodeset
echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-3.2.0-23-generic}}### END /etc/grub.d/10_linux ###### BEGIN /etc/grub.d/20_linux_xen ###### END /etc/grub.d/20_linux_xen ###### BEGIN /etc/grub.d/20_memtest86+ ###menuentry &Memory test (memtest86+)& { insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 linux16 /boot/memtest86+.bin}menuentry &Memory test (memtest86+, serial console 115200)& { insmod part_gpt insmod ext2 set root='(hd0,gpt2)' search --no-floppy --fs-uuid --set=root cdee6ba2-262f-41d8-bbf43c3 linux16 /boot/memtest86+.bin console=ttyS0,}### END /etc/grub.d/20_memtest86+ ###### BEGIN /etc/grub.d/30_os-prober ###### END /etc/grub.d/30_os-prober ###### BEGIN /etc/grub.d/30_uefi-firmware ###### END /etc/grub.d/30_uefi-firmware ###### BEGIN /etc/grub.d/40_custom #### This file provides an easy way to add custom menu entries.
Simply type the# menu entries you want to add after this comment.
Be careful not to change# the 'exec tail' line above.### END /etc/grub.d/40_custom ###### BEGIN /etc/grub.d/41_custom ###if [ -f
$prefix/custom.cfg ]; then
source $prefix/custom.fi### END /etc/grub.d/41_custom ###7.Kernel IPv6 routing tableDestination
Flag Met Ref Use If2001:da8:::/64
0 wlan060::
fe80::da49:bff:fe91:e98e
567 wlan060::
fe80::da49:bff:fe91:e98e
11 wlan0fe80::/64
0 wlan0::/0
fe80::da49:bff:fe91:e98e
0 wlan0::/0
fe80::da49:bff:fe91:e98e
UGDAe 1024 0
0 wlan0::/0
8140 lo::1/128
2 lo2001:da8:::2:ab3b/128 ::
3826 lofe80::76e5:bff:fe73:b07e/128
16 loff00::/8
0 wlan0::/0
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
16:33帖子: 10899
引用:4. sudo cat /etc/sysctl.conf從你貼上來的資料 研判你沒有更改過 該設定檔引用:5. sudo cat cat /proc/sys/net/ipv6/conf/all/disable_ipv6No such file or directory安裝 Ubuntu 時 預設是 IPv6 enabled引用:6. sudo cat /boot/grub/grub.cfg | grep ipv6没有结果表示你開機選單 沒有對 IPv6 特殊設定 (所以依照預設情形 IPv6 enabled)引用:7. sudo route -nv -A inet6Kernel IPv6 routing tableDestination Next Hop Flag Met Ref Use If2001:da8:::/64 :: U 256 0 0 wlan060:: fe80::da49:bff:fe91:e98e UG
wlan060:: fe80::da49:bff:fe91:e98e UG
wlan0fe80::/64 :: U 256 0 0 wlan0::/0 fe80::da49:bff:fe91:e98e UG 1 0 0 wlan0::/0 fe80::da49:bff:fe91:e98e UGDAe
wlan0::/0 :: !n -1 1 8140 lo::1/128 :: Un 0 1 2 lo2001:da8:::2:ab3b/128 :: Un 0 1 3826 lofe80::76e5:bff:fe73:b07e/128 :: Un 0 1 16 loff00::/8 :: U 256 0 0 wlan0::/0 :: !n -1 1 8140 lo1. 從上面的路由表 猜出你无法使用ipv6 跟這個 IPv6 路由表 有關係2. 提供一些文章供你參考2-1. 2-2. 2-3. 2-2. 3. 請提供你的 Ubuntu 版本4. 消化這些資料 需要一些時間 我們明天晚上 再繼續討論
_________________
评价:&3.85%&
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
poloshiao 写道:引用:4. sudo cat /etc/sysctl.conf從你貼上來的資料 研判你沒有更改過 該設定檔引用:5. sudo cat cat /proc/sys/net/ipv6/conf/all/disable_ipv6No such file or directory安裝 Ubuntu 時 預設是 IPv6 enabled引用:6. sudo cat /boot/grub/grub.cfg | grep ipv6没有结果表示你開機選單 沒有對 IPv6 特殊設定 (所以依照預設情形 IPv6 enabled)引用:7. sudo route -nv -A inet6Kernel IPv6 routing tableDestination Next Hop Flag Met Ref Use If2001:da8:::/64 :: U 256 0 0 wlan060:: fe80::da49:bff:fe91:e98e UG
wlan060:: fe80::da49:bff:fe91:e98e UG
wlan0fe80::/64 :: U 256 0 0 wlan0::/0 fe80::da49:bff:fe91:e98e UG 1 0 0 wlan0::/0 fe80::da49:bff:fe91:e98e UGDAe
wlan0::/0 :: !n -1 1 8140 lo::1/128 :: Un 0 1 2 lo2001:da8:::2:ab3b/128 :: Un 0 1 3826 lofe80::76e5:bff:fe73:b07e/128 :: Un 0 1 16 loff00::/8 :: U 256 0 0 wlan0::/0 :: !n -1 1 8140 lo1. 從上面的路由表 猜出你无法使用ipv6 跟這個 IPv6 路由表 有關係2. 提供一些文章供你參考2-1. 2-2. 2-3. 2-2. 3. 請提供你的 Ubuntu 版本4. 消化這些資料 需要一些時間 我們明天晚上 再繼續討論用的是Ubuntu 12.04 LTS 64位
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
16:33帖子: 10899
引用:用的是Ubuntu 12.04 LTS 64位你是從NM-Applet/etc/network/interfacesWICD其它設定無線網卡連線的 ?
_________________
评价:&3.85%&
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
poloshiao 写道:引用:用的是Ubuntu 12.04 LTS 64位你是從NM-Applet/etc/network/interfacesWICD其它設定無線網卡連線的 ?什么都没设置,系统启动后什么都没干除了运行你给的那些资料关了无线网卡,然后使用ifconfig wlan0 up开其余关于网络的什么都没干
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
看了下第二个文件显示的是auto loiface lo inet loopback是不是需要改什么?
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
16:33帖子: 10899
引用:系统启动后什么都没干使用ifconfig wlan0 up开桌面右上方系統匣 是不是 有一個 圖示 ? 沒有連線成功時 呈扇形 ?連線成功時 呈雙箭頭 ?
18:50,总共编辑了 1 次
_________________
评价:&3.85%&
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
poloshiao 写道:引用:系统启动后什么都没干使用ifconfig wlan0 up开桌面右上方系統匣 是不是 有一個 圖示 ? 沒有連線成功時 呈扇形 ?連線成功時 呈雙箭頭 ?寝室里面用的是路由器改装的交换机,所以连得是无线,显示的是无线的图标,不是有线的图标,昨天按照你给的设置有了ipv6,但是后来重启了一下又没有了。
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
16:33帖子: 10899
試試引用:1. ping6 -c 3 [::1/128]修正爲ping6 -c 3 ::1引用:2. ping6 -c 3 [2001:da8:::2:ab3b]2-1. ping6 -c 3 [2001:da8:::2:ab3b/64]修正爲ping6 -c 3 2001:da8:::2:ab3b引用:昨天按照你给的设置有了ipv6 后来重启了一下又没有了。引用:3. ping6 -c 3 [05:802::1010]修正爲ping6 -c 3 05:802::1010現在有了 IPv6 了嗎介紹 兩個有用的 IPv6 抓錯及追蹤 工具1. 追蹤路徑 tracepath6tracepath6 05:802::10102. 追蹤路由 tracepath6traceroute6 05:802::10103. 以上兩個指令 把結果 複製貼上來要確認 你的有效路由
_________________
评价:&3.85%&
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
poloshiao 写道:試試引用:1. ping6 -c 3 [::1/128]修正爲ping6 -c 3 ::1引用:2. ping6 -c 3 [2001:da8:::2:ab3b]2-1. ping6 -c 3 [2001:da8:::2:ab3b/64]修正爲ping6 -c 3 2001:da8:::2:ab3b引用:昨天按照你给的设置有了ipv6 后来重启了一下又没有了。引用:3. ping6 -c 3 [05:802::1010]修正爲ping6 -c 3 05:802::1010現在有了 IPv6 了嗎介紹 兩個有用的 IPv6 抓錯及追蹤 工具1. 追蹤路徑 tracepath6tracepath6 05:802::10102. 追蹤路由 tracepath6traceroute6 05:802::10103. 以上兩個指令 把結果 複製貼上來要確認 你的有效路由1.
ping6 -c 3 ::1PING ::1(::1) 56 data bytes64 bytes from ::1: icmp_seq=1 ttl=64 time=0.043 ms64 bytes from ::1: icmp_seq=2 ttl=64 time=0.055 ms64 bytes from ::1: icmp_seq=3 ttl=64 time=0.055 ms--- ::1 ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 1998msrtt min/avg/max/mdev = 0.043/0.051/0.055/0.005 ms2.
ping6 -c 3 2001:da8:::2:ab3bPING 2001:da8:::2:ab3b(2001:da8:::2:ab3b) 56 data bytes64 bytes from 2001:da8:::2:ab3b: icmp_seq=1 ttl=64 time=0.047 ms64 bytes from 2001:da8:::2:ab3b: icmp_seq=2 ttl=64 time=0.059 ms64 bytes from 2001:da8:::2:ab3b: icmp_seq=3 ttl=64 time=0.054 ms--- 2001:da8:::2:ab3b ping statistics ---3 packets transmitted, 3 received, 0% packet loss, time 1998msrtt min/avg/max/mdev = 0.047/0.053/0.059/0.007 ms3.
ping6 -c 3 05:802::1010PING 05:802::00:10) 56 data bytesFrom 2001:da8:::2:ab3b icmp_seq=1 Destination unreachable: Address unreachableFrom 2001:da8:::2:ab3b icmp_seq=2 Destination unreachable: Address unreachableFrom 2001:da8:::2:ab3b icmp_seq=3 Destination unreachable: Address unreachable--- 05:802::1010 ping statistics ---3 packets transmitted, 0 received, +3 errors, 100% packet loss, time 2014ms然后是最新的两条命令:tracepath6 05:802::1010 1?: [LOCALHOST]
0.043ms pmtu 1500 1:
2001:da8:::2:ab3b
Resume: pmtu 1500 traceroute6 05:802::1010traceroute to 05:802:::2::1010) from 2001:da8:::2:ab3b, 30 hops max, 24 byte packets 1
2001:da8:::2:ab3b (2001:da8:::2:ab3b)
925.979 ms !H
2998.38 ms !H
2999.92 ms !H好像没找到有效的路由路径?怎么回事呢?
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
16:33帖子: 10899
引用:1. ping6 -c 3 ::1PING ::1(::1) 56 data bytes64 bytes from ::1: icmp_seq=1 ttl=64 time=0.043 ms表示 你的 lo 網卡界面 (即 Localhost) 可以引用:2. ping6 -c 3 2001:da8:::2:ab3bPING 2001:da8:::2:ab3b(2001:da8:::2:ab3b) 56 data bytes64 bytes from 2001:da8:::2:ab3b: icmp_seq=1 ttl=64 time=0.047 ms表示 你的 wlan0 網卡界面 可以引用:3. ping6 -c 3 05:802::1010PING 05:802::00:10) 56 data bytesFrom 2001:da8:::2:ab3b icmp_seq=1 Destination unreachable: Address unreachable表示無法 ping 補充如果你的 IPv6 的 route 問題解決了 可以試試這篇網頁 (有點早期了 有些鏈接 可能改變了)引用:tracepath6 05:802::10101?: [LOCALHOST] 0.043ms pmtu 15001: 2001:da8:::2:ab3b ms !H表示 從 wlan0 後面的路徑 不通引用:traceroute6 05:802::1010traceroute to 05:802:::2::1010) from 2001:da8:::2:ab3b, 30 hops max, 24 byte packets1 2001:da8:::2:ab3b (2001:da8:::2:ab3b) 925.979 ms !H 2998.38 ms !H 2999.92 ms !H表示 從 wlan0 後面的路由 不通引用:7. sudo route -nv -A inet62001:da8:::/64 :: U 256 0 0 wlan0:: 2001:da8:::2:ab3b UG 256 0 0 wlan0 &--- 好像少了這一行 這是預設 Gate 關鍵 !參考這一篇的指令sudo route add default gw 172.20.29.1 dev wlan1需要修改的地方1. 172.20.29.1 改爲 2001:da8:::2:ab3b2. 增加 -A inet6 參數3. 其它參數 有需要的話 參考4. 這是 一次性 的 增加 預設 Gateway重開機 需要重新來一次如果想 每次開機都有效參考引用:60:: fe80::da49:bff:fe91:e98e UG
wlan060:: fe80::da49:bff:fe91:e98e UG
wlan0查一下 爲何多了這個 60:: 網址是不是 你的無線路由器 的 IPv6如果你實在找不出原因 建議把它刪除 以免它搗亂刪除方法 參考刪除有困難 請再貼文繼續努力 你的無線路由器 的 IPv6 網址是多少 ?ping6 看看 通不通traceroute6 看看 通不通traceroute6 看看 通不通上面這一些問題 你可以先動手看看手動新增一個 IPv6 的預設路由成功了再看看效果如何引用:fe80::/64 :: U 256 0 0 wlan0::/0 fe80::da49:bff:fe91:e98e UG 1 0 0 wlan0::/0 fe80::da49:bff:fe91:e98e UGDAe
wlan0::/0 :: !n -1 1 8140 lo::1/128 :: Un 0 1 2 lo2001:da8:::2:ab3b/128 :: Un 0 1 3826 lofe80::76e5:bff:fe73:b07e/128 :: Un 0 1 16 loff00::/8 :: U 256 0 0 wlan0::/0 :: !n -1 1 8140 lo這一些 跟你現在碰到的問題 應該沒有直接關係 等你的問題 解決了 有興趣 再繼續討論
_________________
评价:&3.85%&
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
引用:這一些 跟你現在碰到的問題 應該沒有直接關係 等你的問題 解決了 有興趣 再繼續討論还是不行啊,现在又是室友可以有ipv6而我还是没有,上面的指令全部试过了,还是不行,什么都没变啊。
&文章标题 : Re: Ubuntu 下无法使用ipv6,请指教发表于 :
14:37帖子: 14
系统: Ubuntu,Windows 7
接收感谢: 0 次
贴一点以便判断:引用:sudo route -A inet6 add default gw 2001:da8:::2:ab3b dev wlan0SIOCADDRT: No route to host无线交换机的路由地址怎么查看?
显示帖子 : 全部帖子1天7天2周1个月3个月6个月1年&排序 作者发表时间文章标题 升序降序&
&[ 24 篇帖子 ]&
正在浏览此版面的用户:没有注册用户 和 8 位游客
您 不能 在这个版面发表主题您 不能 在这个版面回复主题您 不能 在这个版面编辑帖子您 不能 在这个版面删除帖子您 不能 在这个版面提交附件
选择一个版面
------------------
公告/注意事项
& &新闻和通知
& &校园社团支持
& && &华东校区
& && &华南校区
& && &华北校区
& && &华中校区
& && &东北校区
& && &西北校区
& && &港澳台校区
& && &国外校区
& &软件推荐
& &非常任务
系统安装区
& &教学和常见问答
& && &课堂教学和培训
& &初学者园地 - 15.10
& &系统安装和升级
& && &新立得和软件源
& && &Wubi安装讨论
& &启动和引导
& &网卡问题以及网络和拨号
& && &校园网拨号
& &笔记本、UMPC支持
& &手机和平板
& && &Ubuntu移动应用开发
& &常用硬件支持
& &系统架构支持
配置美化区
& &字体美化和中文支持
& && &个人配置文件存放点
& &桌面特效
& &窗口管理器
& &屏幕抓图
& &办公、图像、机械电子设计等
& && &Vim和Emacs
& &因特网相关软件
& &影音多媒体
& &Wine及其分支
& &游戏和游戏模拟器
& &虚拟机和虚拟化
& &其它类软件
& &开源模板库
服务器管理
& &服务器基础应用
& &数据库管理
& &服务器维护和硬件相关
& &Ubuntu VPS
参与Ubuntu开发
& &软件和文档翻译
& &编译或打包
& &Ubuntu错误报告
程序设计区
& &Shell脚本
& &GTK+和QT
& &软件/网站开发
& && &Python/Php/Perl
& && &C/C++/Java
& &内核及嵌入式开发
& &开源小工具
& &Ubuntu 16.04
& &Ubuntu 14.10
& &Ubuntu 14.04 LTS
& &Ubuntu 12.04 LTS
& &Ubuntu 10.04 LTS
& &老旧版本支持
& && &Ubuntu 15.04
衍生发行版
& &Ubuntu GNOME
& &Kubuntu
& &Xubuntu & Lubuntu
& &Ubuntu中文衍生版
& && &Deepin
& && &UbuntuKylin
& &Ubuntu国外衍生版
& && &Mint
& &Ubuntu衍生版制作
& &其它类Unix OS发行版
& && &Arch发行版
& && &Debian发行版
& && &OpenSUSE发行版
& &深度PK版
& &Ubuntu故事和感慨
& &Full Circle开源杂志
分享交流区
& &同城交流
& &线下活动专版
& &Ubuntu宣传推广
& &论坛管理
& && && &Ubuntu中文网上商店}

我要回帖

更多关于 linux sudo 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信