Jump to content
Sign in to follow this  
ianw1974

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:

 

NETWORKING_IPV6=NO

 

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:

 

IPV6INIT=NO

 

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.

Share this post


Link to post
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.

Guest
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.

Loading...
Sign in to follow this  

×
×
  • Create New...