Difference between revisions of "Ubuntu18 disable IPv6"
Jump to navigation
Jump to search
Rafahsolis (talk | contribs) (Created page with "* Edit /etc/sysctl.d/99-sysctl.conf and add the following lines to the end of the file net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6....") |
Rafahsolis (talk | contribs) |
||
| (One intermediate revision by the same user not shown) | |||
| Line 6: | Line 6: | ||
sysctl -p | sysctl -p | ||
| − | + | == Reboot bug == | |
* create a new file /etc/rc.local | * create a new file /etc/rc.local | ||
#!/bin/bash | #!/bin/bash | ||
# /etc/rc.local | # /etc/rc.local | ||
| − | |||
# Load kernel variables from /etc/sysctl.d | # Load kernel variables from /etc/sysctl.d | ||
/etc/init.d/procps restart | /etc/init.d/procps restart | ||
| − | |||
exit 0 | exit 0 | ||
* Change permissions to this file | * Change permissions to this file | ||
chmod 755 /etc/rc.local | chmod 755 /etc/rc.local | ||
Latest revision as of 18:59, 3 December 2018
- Edit /etc/sysctl.d/99-sysctl.conf and add the following lines to the end of the file
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.lo.disable_ipv6 = 1
- Reload values
sysctl -p
Reboot bug[edit]
- create a new file /etc/rc.local
#!/bin/bash # /etc/rc.local # Load kernel variables from /etc/sysctl.d /etc/init.d/procps restart exit 0
- Change permissions to this file
chmod 755 /etc/rc.local