How to disable IPV6 in karmic 9.10

Asked by HamilJF

I've just installed Karmic and have problems that I think are IPv6 related.

History:
1. installed Karmic... some minor errors reported after reboot to do, I now think, with network access.
2. firefox, pidgin, kontact all failed. "ping www.google.com" worked. After analysis, concluded an IPV6 issue.
3. change firefox about:config to disable IPv6. firefox worked, ping worked.
4. tried /proc..../disable_ipv6 changed from 0 to 1. rebooted. no effect
5. tried /boot/grub/menu.lst ipv6.disable=1. rebooted. no effect
6. tried /etc/network/interfaces... no mention of ipv6 or inet6 to disable
7. tried /etc/modprobe.d/aliases (file not present after installation) adding various forms of alias ipv6 off. no effect
Currently, ip a shows inet6 up and running and nothing I can do to stop it.

So there are two forms to this question
a) how does one stop IPv6 in Karmic; or
b) how does one get applications (pidgin, kontact for example) to work with IPv6

and,
btw1, I have asked my broadband isp to confirm exactly what support they implement for IPv6
btw2, do not email me: until I fix this problem, kontact is disabled and I'm using spouse's minimac

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
HamilJF
Solved:
Last query:
Last reply:
Revision history for this message
wojox (wojox) said :
#1

IPv6 is a kernel module that you can stop from being loaded at boot.

Open a terminal:

gksudo gedit /etc/default/grub

Look for this line and add:

GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"

Save and close your file then run:

sudo update-grub

Reboot.

Revision history for this message
HamilJF (john-hamilton) said :
#2

thanks wojox.
It did not work.
I did not have a file /etc/default/grub so I made one (using nano) with the line specified
ran update-grub
it produced feedback... updating menu.lst
rebooted
ip a shows inet6 running

Revision history for this message
HamilJF (john-hamilton) said :
#3

... but since i can run firefox, now connecting from the ubuntu machine and can list the update-grub response ...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.31-14-generic
Found kernel: /boot/vmlinuz-2.6.28-15-generic
Found kernel: /boot/vmlinuz-2.6.27-14-generic
Found kernel: /boot/vmlinuz-2.6.24-21-generic
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done

should the entry...
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"

really be put into
/boot/grub/default
?

btw3: I use kde and do the editting having su'd in a terminal

Revision history for this message
HamilJF (john-hamilton) said :
#4

... checked out /boot/grub/default and found out about grub-set-default and so tried

root> grub-set-default GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1 quiet splash"
root> update-grub

that hasn't worked either... the line is in /boot/grub/default without the quote marks, but no mention of ipv6 in /boot/grub/menu.lst

and inet6 is still there

Revision history for this message
Juan Carlos Inostroza (jci) said :
#5

Hi,

please send the output of

$ ifconfig -a
$ lsmod
$ cat /etc/modules

Also, search for the following lines on /boot/grub/menu.lst

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

Change the "defoptions" line to the following (DON'T UNCOMMENT!) :

# defoptions=quiet splash ipv6.disable=1

And run

$ sudo update-grub

And reboot.

Revision history for this message
HamilJF (john-hamilton) said :
#6

thanks Juan Carlos

that did work.

here are (most of) the details you requested

root@z:/home/hamiljf/Documents# cd /
root@z:/# ifconfig -a
eth0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
          inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
          inet6 addr: XXXX::XXXX:XXXX:XXXX:XXXX/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
          RX packets:27238 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27641 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:28649886 (28.6 MB) TX bytes:3858507 (3.8 MB)
          Interrupt:17 Base address:0xa400

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:16436 Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:480 (480.0 B) TX bytes:480 (480.0 B)

pan0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
          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:0
          RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr XX:XX:XX:XX:XX:XX
          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)

wmaster0 Link encap:UNSPEC HWaddr XX:XX:XX:XX:XX:XX
          UP RUNNING MTU:0 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)

root@z:/# lsmod
Module Size Used by
binfmt_misc 10220 1
ppdev 8232 0
arc4 2144 2
ecb 3296 2
iwl3945 89984 0
psmouse 57124 0
iwlcore 133248 1 iwl3945
snd_hda_codec_realtek 277860 1
snd_hda_intel 31880 3
snd_hda_codec 87584 2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 9352 1 snd_hda_codec
snd_seq_dummy 3460 0
snd_seq_oss 33440 0
mac80211 210104 2 iwl3945,iwlcore
snd_seq_midi 8192 0
saa7134_alsa 14560 2
snd_rawmidi 27360 1 snd_seq_midi
snd_pcm_oss 44704 0
snd_mixer_oss 18976 1 snd_pcm_oss
snd_seq_midi_event 8448 2 snd_seq_oss,snd_seq_midi
snd_pcm 93160 4 snd_hda_intel,snd_hda_codec,saa7134_alsa,snd_pcm_oss
snd_seq 60608 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_seq_device 8308 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd_timer 26992 2 snd_pcm,snd_seq
snd 77096 23 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq_oss,saa7134_alsa,snd_rawmidi,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq,snd_seq_device,snd_timer
soundcore 9088 1 snd
cfg80211 109144 3 iwl3945,iwlcore,mac80211
snd_page_alloc 10928 2 snd_hda_intel,snd_pcm
irda 209452 0
tda1004x 17956 0
saa7134_dvb 26860 0
iptable_filter 3872 0
videobuf_dvb 8452 1 saa7134_dvb
bridge 56384 0
ip_tables 21200 1 iptable_filter
stp 3012 1 bridge
dvb_core 104528 1 videobuf_dvb
bnep 15168 2
x_tables 25832 1 ip_tables
tuner 24520 0
serio_raw 6596 0
joydev 13088 0
saa7134 178356 2 saa7134_alsa,saa7134_dvb
ir_common 52740 1 saa7134
v4l2_common 21024 2 tuner,saa7134
sdhci_pci 8928 0
videobuf_dma_sg 14436 3 saa7134_alsa,saa7134_dvb,saa7134
tifm_7xx1 6784 0
sdhci 20484 1 sdhci_pci
videobuf_core 21188 3 videobuf_dvb,saa7134,videobuf_dma_sg
led_class 5256 3 iwl3945,iwlcore,sdhci
tifm_core 9864 1 tifm_7xx1
tveeprom 14884 1 saa7134
sbp2 27180 0
pcmcia 40116 0
btusb 14260 2
gspca_m5602 53676 0
gspca_main 26816 1 gspca_m5602
videodev 43360 4 tuner,saa7134,v4l2_common,gspca_main
v4l1_compat 16804 1 videodev
v4l2_compat_ioctl32 13344 1 videodev
lp 11908 0
parport 40528 2 ppdev,lp
yenta_socket 27500 1
rsrc_nonstatic 11840 1 yenta_socket
pcmcia_core 41796 3 pcmcia,yenta_socket,rsrc_nonstatic
crc_ccitt 2336 1 irda
usbhid 43968 0
ohci1394 33780 0
r8169 38884 0
mii 6368 1 r8169
ieee1394 100896 2 sbp2,ohci1394
intel_agp 32816 0
video 23612 0
output 3680 1 video
root@z:/# cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
lp
rtc
sbp2
root@z:/#
root@z:/# cd /boot/grub
root@z:/boot/grub# nano menu.lst
root@z:/boot/grub# update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.31-14-generic
Found kernel: /boot/vmlinuz-2.6.28-15-generic
Found kernel: /boot/vmlinuz-2.6.27-14-generic
Found kernel: /boot/vmlinuz-2.6.24-21-generic
Found kernel: /boot/memtest86+.bin
Replacing config file /var/run/grub/menu.lst with new version
Updating /boot/grub/menu.lst ... done

Revision history for this message
wojox (wojox) said :
#7

I see, you're not even using grub2, (/boot/grub/menu.lst) is legacy. When I had 9.04 I turned it off by
just adding ¨ipv6.disable=1¨ on the grub menu list like this:

kernel /boot/vmlinuz-2.6.28-15-generic root=UUID=e706a870-ff71-4bee-9016-cb4c6712ee3e ro quiet splash ipv6.disable=1

Revision history for this message
wojox (wojox) said :
#8

Oh I see it's solved never mind.

Revision history for this message
HamilJF (john-hamilton) said :
#9

To help anyone else who has this sort of problem, here is a response from my ISP...

> Although our broadband network can carry IPv6 packets, our DNS
> servers will serve results over IPv4.

> You won't be able to access any websites using native IPv6 unless
> the web server that hosts the site fully supports it. For example,
> Google offer their search page using IPv6 at http://ipv6.google.com
> and this page cannot be accessed using a computer that only has IPv4
> installed.

> It also depends on the router you use as well - some routers don't
> support IPv6 so that would need to be checked.

> My recommendation would be to set Ubuntu to use IPv4 as, until IPv6
> becomes more widely adopted, you will continue to experience problems.