IPv6 for Linux: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
To Disbale IPv6 for Linux:<br> | To Disbale IPv6 for Linux:<br> | ||
= CentOS 7.x = | |||
<pre> | |||
vi /etc/sysctl.conf | |||
</pre> | |||
Add the line | |||
<pre> | |||
net.ipv6.conf.all.disable_ipv6 = 1 | |||
</pre> | |||
Activate the changes without a reboot | |||
<pre> | |||
sysctl -p | |||
</pre> | |||
= CentOS 6.x = | |||
<pre> | |||
vi /etc/sysconfig/network | |||
</pre> | |||
<pre> | <pre> | ||
NETWORKING_IPV6=no | NETWORKING_IPV6=no | ||
</pre> | </pre> | ||
<pre> | |||
vi /etc/modprobe.conf | |||
</pre> | |||
<pre> | <pre> | ||
alias net-pf-10 off | alias net-pf-10 off |
Latest revision as of 00:19, 4 March 2015
To Disbale IPv6 for Linux:
CentOS 7.x
vi /etc/sysctl.conf
Add the line
net.ipv6.conf.all.disable_ipv6 = 1
Activate the changes without a reboot
sysctl -p
CentOS 6.x
vi /etc/sysconfig/network
NETWORKING_IPV6=no
vi /etc/modprobe.conf
alias net-pf-10 off alias ipv6 off
Stop the ipv6tables service
service ip6tables stop chkconfig ip6tables off