a grey geek learning by mistakes

Ubuntu Learner

February 22nd, 2007 at 8:41 pm

sudo dhclient and killing IPv6 - still no joy

Well, the sudo dhclient (see previous post) is a great rescue tool, but it’s far from perfect. So long as I keep using Firefox, it works, but if I leave it for a while, I need sudo dhclient again.

Needless to say this is far from satisfactory. The problem seems to be, as far as I can ascertain, that there are two processes running at once, IPv4 and IPv6. So it seems logical to disable IPv6.

This is the solution from Ralph’s Ubuntu Linux Blog

If you want to disable IPv6 to get better internet connection speed just edit the aliases file
sudo vim /etc/modprobe.d/aliases

and change the line: alias net-pf-10 ipv6

to: alias net-pf-10 off ipv6

Don’t forget to reboot!

To check if IPv6 is running use the following command
ip a | grep inet6

I tried that but somehow when I rebooted the line alias net-pf-10 ipv6, and not alias net-pf-10 off ipv6 was still in etc/modprobe.d/aliases.

So I clicked on the home folder, then File System, then etc, hit m on the keyboard as there’s a lot of files in there, and that brought up modeprobe.d/aliases.

There’s no point in just editing the aliases file in a text editor. It will smile at you and give you a false sense of security, allow you to save - but it won’t be saved What you’ve to do is right-click on the aliases file, chose scripts/geddit-root, after which you’ll be asked for your password and you’re working now as root - as I understand it.
Now you can edit alias net-pf-10 ipv6 to alias net-pf-10 off ipv6

Save and you’re home and dry.

Except… in my case, even after re-booting, this didn’t work either. So I’m back to square one and I don’t know where I can go from here. I really don’t want to go back to XP…

 

RSS feed for comments on this post | TrackBack URI