K
K
Ka4a2016-02-10 10:13:56
ubuntu
Ka4a, 2016-02-10 10:13:56

How to disable IPV6 on the fly?

Welcome all. Tell me how to properly disable IPv6.
Googling found this

Убить ipv6 через sysctl и записать в sysctl.conf:
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

And also in the grub config /etc/default/grub:
GRUB_CMDLINE_LINUX_DEFAULT="ipv6.disable=1"
In principle, everything is clear, but I would like it without restarting the server. Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrey, 2016-02-10
@ka4a

sysctl -p run

H
hx510b, 2018-09-06
@hx510b

fastest way:

echo 1 > /proc/sys/net/ipv6/conf/all/disable_ipv6
echo 1 > /proc/sys/net/ipv6/conf/default/disable_ipv6

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question