This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
linux:disable_ipv6 [2022/09/19 10:00] admin created |
linux:disable_ipv6 [2022/09/19 10:07] (current) admin |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Open a terminal window. | Open a terminal window. | ||
| + | |||
| Change to the root user. | Change to the root user. | ||
| - | Issue the command sysctl -w net.ipv6.conf.all.disable_ipv6=1 | + | |
| - | Issue the command sysctl -w net.ipv6.conf.default.disable_ipv6=1 | + | Issue the command : |
| + | <code bash> | ||
| + | sysctl -w net.ipv6.conf.all.disable_ipv6=1 | ||
| + | </code> | ||
| + | |||
| + | Issue the command : | ||
| + | <code bash> | ||
| + | sysctl -w net.ipv6.conf.default.disable_ipv6=1 | ||
| + | </code> | ||
| To re-enable IPv6, issue the following commands: | To re-enable IPv6, issue the following commands: | ||
| Line 30: | Line 40: | ||
| <code bash> | <code bash> | ||
| 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 | ||
| - | |||
| net.ipv6.conf.lo.disable_ipv6 = 1 | net.ipv6.conf.lo.disable_ipv6 = 1 | ||
| - | |||
| </code> | </code> | ||
| 4. Save and close the file. | 4. Save and close the file. | ||