From charlesreid1

No edit summary
Line 13: Line 13:


<pre>
<pre>
echo "sysctl -w net.ipv6.conf.all.disable_ipv6=1" > /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.all.disable_ipv6=1" >> /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.default.disable_ipv6=1" > /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.default.disable_ipv6=1" >> /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.lo.disable_ipv6=1" > /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.lo.disable_ipv6=1" >> /etc/sysctl.conf
</pre>
</pre>



Revision as of 08:11, 10 December 2019

disable ipv6

temporarily

sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1
sysctl -w net.ipv6.conf.lo.disable_ipv6=1

permanently

echo "sysctl -w net.ipv6.conf.all.disable_ipv6=1" >> /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.default.disable_ipv6=1" >> /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.lo.disable_ipv6=1" >> /etc/sysctl.conf

enable ipv6

temporarily

sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0

permanently

<pre>
echo "sysctl -w net.ipv6.conf.all.disable_ipv6=0" > /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.default.disable_ipv6=0" > /etc/sysctl.conf
echo "sysctl -w net.ipv6.conf.lo.disable_ipv6=0" > /etc/sysctl.conf

flags