IPv6 for Linux: Difference between revisions

From KlavoWiki
Jump to navigationJump to search
(Created page with 'To Disbale IPv6 for Linux: '''/etc/sysconfig/network''' <pre> NETWORKING_IPV6=no </pre> '''/etc/modprobe.conf''' <pre> alias net-pf-10 off alias ipv6 off </pre> Stop the ipv6t...')
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
To Disbale IPv6 for Linux:
To Disbale IPv6 for Linux:<br>
'''/etc/sysconfig/network'''
 
= 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>


'''/etc/modprobe.conf'''
<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