分页: 1 / 1

关于IPv6关闭的问题找到答案了,但是恢复不到我自己的问题当中,只能重新开一帖,莫怪啊

发表于 : 2009-07-24 22:13
熊独独
好像真是个BUG,通过升级内核可以解决,网上查到了几篇文章,英文的
Howto Disable IPV6 at Ubuntu Jaunty

EDIT : Updated for latest Ubuntu Jaunty.There is a kernel bug at ubuntu jaunty's current kernel, you can read the comments to get more details(bug page, patch etc) about this issue.SO this is the only way to disable ipv6 without compiling new or your current kernel!

You have to install a 2.6.29.3 or a later kernel.You can find debian packages of kernels from here

In this example we are going to install 2.6.29.3 kernel.If you have problems with this kernel, you can always install a newer kernel.Also i will use i386 packages, if you have a 64bit system, install and use 64 bit packages from there!

Now navigate to kernel ppa by clicking here and install the debian files :

linux-headers-2.6.29-02062903-generic_2.6.29-02062903_i386.deb
linux-headers-2.6.29-02062903_2.6.29-02062903_all.deb
linux-image-2.6.29-02062903-generic_2.6.29-02062903_i386.deb

For i386 packages example :

$wget -c http://kernel.ubuntu.com/~kernel-ppa/ma ... 3_i386.deb
$wget -c http://kernel.ubuntu.com/~kernel-ppa/ma ... 03_all.deb
$wget -c http://kernel.ubuntu.com/~kernel-ppa/ma ... 3_i386.deb

Now install it :

$sudo dpkg -i *.deb

###################
Optional part :

Now open start up manager (You can install it via $sudo apt-get install startupmanager) via System > Administration > StartUp-Manager navigation or startupmanager command.

Change default operation system to latest kernel we installed (Ubuntu 9.04, kernel 2.6.29-02062903-generic) and close it.

###Optional part ends

Open your grub menu config via :

$sudo gedit /boot/grub/menu.lst

command.Find the kernel line which we installed a couple of minutes ago, and add option ipv6.disable=1

It will look like this :

title Ubuntu 9.04, kernel 2.6.29-02062903-generic
uuid 96c2b3cb-f93c-4601-ac54-922c9efd8de0
kernel /boot/vmlinuz-2.6.29-02062903-generic root=UUID=96c2b3cb-f93c-4601-ac54-922c9efd8de0 ro quiet splash ipv6.disable=1
initrd /boot/initrd.img-2.6.29-02062903-generic
quiet

Edit : I am also posting a screen shot of this , since my theme's width is a little small : ) You can find the screenshot here.

Update your grub via :

$sudo update-grub

Reboot your box with 2.6.29-03 kernel.To be sure, open a terminal and paste this command (change eth0 to your network interface : eth1,eth0, wlan0 etc)

$ifconfig eth0

eth0 Link encap:Ethernet HWaddr 00:1d:92:4b:92:c7
inet addr:94.54.36.125 Bcast:94.54.63.255 Mask:255.255.192.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:228348 errors:0 dropped:0 overruns:0 frame:0
TX packets:2891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:16159134 (16.1 MB) TX bytes:486253 (486.2 KB)
Interrupt:27 Base address:0xe000

If the output is similar to this (no extra lines like 213123/64), then you have disabled ipv6 ;)

Re: 关于IPv6关闭的问题找到答案了,但是恢复不到我自己的问题当中,只能重新开一帖,莫怪啊

发表于 : 2009-07-24 22:20
hcym
: 关于IPv6关闭的问题找到答案了,但是恢复不到我自己的问题当中,只能重新开一帖,莫怪啊
悠着点啊,一模一样的发了六贴

发明IPv106也不致于吧

:em04

Re: 关于IPv6关闭的问题找到答案了,但是恢复不到我自己的问题当中,只能重新开一帖,莫怪啊

发表于 : 2009-07-25 20:56
熊独独
:em06 不好意思不好意思,不知道怎么回事儿,昨天老是发不出去,不小心成这样了