Difference between revisions of "Ubuntu IPv6"
From Teknologisk videncenter
m |
m (→Disable permanent) |
||
Line 16: | Line 16: | ||
==Disable permanent== | ==Disable permanent== | ||
Add the following lines to /etc/sysctl.conf. | Add the following lines to /etc/sysctl.conf. | ||
− | /source lang=cli> | + | </source lang=cli> |
net.ipv6.conf.all.disable_ipv6 = 1 | net.ipv6.conf.all.disable_ipv6 = 1 | ||
net.ipv6.conf.default.disable_ipv6 = 1 | net.ipv6.conf.default.disable_ipv6 = 1 |
Revision as of 08:28, 3 November 2011
Enabling/Disabling IPv6
In flight
- Note
- Enabling or disabling IPv6 this way is only in effect until next boot.
Disabling
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
Enabling
sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0
sysctl -w net.ipv6.conf.lo.disable_ipv6=0
Disable permanent
Add the following lines to /etc/sysctl.conf. </source lang=cli> net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1 </source>