[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Permanent Use of IPv4



On 2/15/19 4:12 PM, Stephen P. Molnar wrote:
Thanks for help from this gropup I can force the use of IPv4 by running:  sysctl -w net.ipv6.conf.all.disable_ipv6=1.


If you would like to prevent the kernel from loading IPv6 simply add the following: ipv6.disable=1 to the kernel boot parameters. If you use lilo then in the /etc/lilo.conf should be line beginning with append:

image=/boot/vmlinuz
        root=/dev/md0
        label=DebianSid
	initrd=/boot/initrd.img
	append="net.ifnames=0 biosdevname=0 ipv6.disable=1"

In case of grub.conf search for the line beginning with "linux":

# For booting GNU/Linux
menuentry "Stretch - remote" --id deb {
	set root=(hd0,msdos2)
linux /boot/vmlinuz root=/dev/sda2 net.ifnames=0 biosdevname=0 ipv6.disable=1
	initrd /boot/initrd.img
}

After reboot you should see ipv6.disable=1 in /proc/cmdline

Greg


Reply to: