From ArchWiki
Revision as of 02:24, 28 September 2012 by AskApache (talk | contribs) (Disabling IPv6 by adding to GRUB)
Jump to: navigation, search

Disable IPv6

The Beginner's Guide has !net-pf-10 in MODULES in rc.conf, isn't this the most elegant solution? Or does it not work? --Unhammer 03:24, 3 September 2010 (EDT)

Not only that, but these instructions are confusing. The differences between the two options are left unexplained, and the reader isn't told the benefits of each, if any. - KitchM 21:30, 24 October 2010 (EDT)

if you just stop the module from being loaded during boot, it still gets autoloaded by various programs (same thing happens with bluetooth modules and gnome) - this article is correct, the beginner's guide method will likely end up with the module loaded anyway after boot thestinger 23:08, 24 October 2010 (EDT)

Another possibility seems to be adding "!ipv6" to the modules line in rc.conf. It would seem that this would keep the original module from loading at all. Any comments anyone? - KitchM 17:06, 1 November 2010 (EDT)

it stops the module from loading during boot, but the udev will end up loading it anyway when you receive any ipv6 packets or a program tries to use ipv6 (it might work if you have a very minimal environment and your router doesn't send ipv6 stuff by default) thestinger 17:17, 1 November 2010 (EDT)
So the basic concept appears that it can't actually be stopped from loading, since it will load whenever there is ipv6 activity. And since that cannot be stopped, one never knows when that might occur?
I had understood that one can configure her ethernet settings to only use ipv4. But if that is so, then ipv6 will never activate in the first place. Or is that wrong? Are we getting into some sort of weird catch-22? - KitchM 18:16, 1 November 2010 (EDT)
IPv6 is build in kernel now. Not a module anymore. So ipv6.disable=1 is needed. Disable kernel module loading does not work. -- Fengchao (talk) 02:20, 28 September 2012 (UTC)

Setup static IP address

The page only mentions how to setup static IP address with netcfg. Shouldn't some explanation about the default network daemon also be present ? --Gyscos 12:44, 27 April 2012 (UTC)

Disabling IPv6 by adding to GRUB

Adding ipv6.disable=1 to the kernel line disables the whole IPv6 stack.

To add this using grub, add ipv6.disable=1 to /etc/default/grub in the GRUB_CMDLINE_LINUX_DEFAULT= line, then regenerate grub.cfg with:

# grub-mkconfig -o /boot/grub/grub.cfg

-AskApache (talk) 15:18, 27 September 2012 (UTC)

There are 3 bootloaders which have large user base in Arch: Grub(Grub2), Grub-Legacy(Grub1) and syslinux. There is Kernel parameters which list how to add parameters to all of them. So link is provided to prevent duplication. -- Fengchao (talk) 02:14, 28 September 2012 (UTC)
I appreciate that, I'm a tremendous fan of Kernel parameters. I manage several machines and build new ones often enough, so it helps to have specifics on how to solve this specific task of disabling ipv6 for the specific bootloader being used. From my point-of-view, ideally there would be instructions on this page for all of the bootloaders still in use. -- AskApache (talk) 02:24, 28 September 2012 (UTC)