Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Disable IPv6 in Kubuntu

  1. #1
    Join Date
    Apr 2007
    Location
    Austin, Texas
    Beans
    717

    Disable IPv6 in Kubuntu

    How do you disable IPv6 in Kubuntu 9.04. My internet is feverishly slow and I'm hoping turning off ipv6 will solve the problem. There are tons of tutorials that tell you how to do it for ubuntu, but none for Kubuntu.

    Thanks.
    Gateway MT6460 Laptop

  2. #2
    Join Date
    May 2007
    Location
    San Francisco, California
    Beans
    5,857
    Distro
    Ubuntu Development Release

    Re: Disable IPv6 in Kubuntu

    It should be the same in Kubuntu I think. Do the following in the Konsole:
    Code:
    sudo gedit /etc/modprobe.d/aliases
    Find the line that says the following:
    Code:
    alias net-pf-10 ipv6
    Then change it to the following:
    Code:
    alias net-pf-10 off ipv6
    Now run the following command:
    Code:
    update-modules
    Then reboot, and IPv6 should be disabled. To make sure it's disabled you can also run the following:
    Code:
    ip a | grep inet6
    That will tell you if IPv6 is currently running.

  3. #3
    Join Date
    Apr 2007
    Location
    Austin, Texas
    Beans
    717

    Re: Disable IPv6 in Kubuntu

    Yeah, that doesn't work. There is no such file located at: /etc/modprobe.d/aliases
    Gateway MT6460 Laptop

  4. #4
    Join Date
    Mar 2007
    Beans
    30

    Re: Disable IPv6 in Kubuntu

    2 ways.

    1: Manual way that's persistent on the current boot only.
    $sudo echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6

    2: Add the kernel parameter to the sysctl.conf
    $sysctl -a |grep net.ipv6.conf.all.disable_ipv6
    This should be a zero, for enabled by default.

    $sudo echo net.ipv6.conf.all.disable_ipv6 = 1 >> /etc/sysctl.conf
    $sudo sysctl -p

    Justin

  5. #5
    Join Date
    Apr 2007
    Location
    Austin, Texas
    Beans
    717

    Re: Disable IPv6 in Kubuntu

    Hi. When I try to set
    Code:
    echo net.ipv6.conf.all.disable_ipv6 = 1
    I get the following error in the terminal.
    Code:
    bash: /etc/sysctl.conf: Permission denied
    Gateway MT6460 Laptop

  6. #6
    Join Date
    Mar 2007
    Beans
    30

    Re: Disable IPv6 in Kubuntu

    You will need root permissions to update the /etc/sysctl.conf

    At any case, you manually edit the file with vi or whatever file editor you are comfortable with. To just append the line:
    net.ipv6.conf.all.disable_ipv6 = 1

    and save it.

    Justin

  7. #7
    Join Date
    Apr 2007
    Location
    Austin, Texas
    Beans
    717

    Re: Disable IPv6 in Kubuntu

    Hi. I was able to get into root and follow the steps you posted, but when I run the command to check if ipv6 is enabled or disabled
    Code:
    ip a | grep inet6
    I get the following:
    Code:
    inet6 ::1/128 scope host
        inet6 fe80::20f:b5ff:fe5d:4b7b/64 scope link
    I believe this means that IPV6 is still running. Can you confirem this? And yes, I did reboot.

    Thanks.
    Gateway MT6460 Laptop

  8. #8
    Join Date
    Dec 2008
    Location
    Isolated Digital Reign
    Beans
    151
    Distro
    Kubuntu Development Release

    Re: Disable IPv6 in Kubuntu

    The sysctl method didn't work for me.

    @izizzle: yes that means that you're still running IPv6. Additionally you can check with netstat -napA inet6 the specific processes that opened such sockets.

    My question here would be:

    Is there any way to force new sockets into a specific protocol family (inet|inet6)?


    C]-[aoZ

  9. #9
    Join Date
    Dec 2008
    Location
    Isolated Digital Reign
    Beans
    151
    Distro
    Kubuntu Development Release

    Re: Disable IPv6 in Kubuntu

    Misunderstood something.

    Actually this is a kernel bug: https://bugs.launchpad.net/ubuntu/+s...ux/+bug/351656

    So we will need to wait until the next kernel update.


    Additionally this bug prevents rollout in corporate environments so I hope it gets applied soon.

  10. #10
    Join Date
    Apr 2007
    Location
    Austin, Texas
    Beans
    717

    Re: Disable IPv6 in Kubuntu

    So there is no way to disable IPv6, not even with the method that Unien9 suggested? By when do you think the kernel update will be released?
    Gateway MT6460 Laptop

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •