Jump to content

How to Disable IPV6


Recommended Posts

I thought this might be handy, even for the ones of us that know how to do it. I found there are multiple ways to do this. There are system-wide ways to disable, and you can also disable at interface level.


Please note, that this is for general networking, rather than disabling IPV6 within such applications, eg: Firefox.


Disable at system-wide level


To disable IPV6 at system-wide level, there are two methods.


1. Edit /etc/modprobe.conf and add the following line:


alias net-pf-10 off


2. Edit /etc/sysconfig/network and add the following line:




Both of these would do effectively the same thing. Most of us here always use the first method, but thought it nice that there's an alternative :)


Disable at interface level


Only one method for disabling at interface level. Edit /etc/sysconfig/network-scripts/ifcfg-xxxxx where xxxxx is the specific interface, in this example I will use /etc/sysconfig/network-scripts/ifcfg-eth0, and you add this line:




The benefit of this is, that if you have two network cards, you could disable on eth0 but leave IPV6 enabled on eth1, for example.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...