How to disable IPv6 in RHEL, Fedora, CentOS

Open your /etc/modprobe.conf file and append:

# Turn off IPv6
alias net-pf-10 off
alias ipv6 off

Then restart your server.

10 comments ↓

#1 Derek Morr on 11.21.08 at 11:06 pm

Why would you want to disable IPv6 on your machine?

#2 admin on 11.22.08 at 10:38 am

When you are not using IPv6 yet, then it’s a good reason to disable it.

#3 Derek Morr on 11.22.08 at 7:02 pm

Why? It shouldn’t hurt anything to leave it enabled. And we’ll need to migrate to IPv6 soon. The more people turn it off on devices, the harder it will be to get it deployed.

#4 Vitalie Cherpec on 11.24.08 at 1:52 pm

In business environment the pressure is very high, usually you don’t have time to test/run new features that you don’t need. You just want to do your job quick and right, so this is left to people who really need those features or do have enough time to test them well.

#5 Derek Morr on 11.24.08 at 7:14 pm

I think that’s a rather myopic position to take. If you don’t start preparing for IPv6 now, you’ll be in for a world of hurt when you have to start using it. It’s better to prepare now, before it’s a crisis.

#6 Larry Bailey on 12.29.08 at 6:48 pm

I agree with Mr. Morr.
Why disable IPv6,when you need to start migrating to IPv6.
I understand in one sense,that there is little native global IPv6 in some areas,but that is really no excuse.
The way I see it,adoption of IPv6 will be as desirable for some,as learning the metric system.

#7 Dennis P. Nikolaenko on 04.07.09 at 12:55 pm

A remark for all IPv6 early adopters.
Disabling IPv6 may somewhat reduce possible attack vectors. I have seen instances of SSH brute forcing through IPv6 in data centers.

#8 Omar Refai on 05.14.09 at 9:03 am

So, the reason I found myself disabling ipv6 was because I was concerned about this message that was riddled throughout lsof on an apache server i maintain (primarily for downloads)

httpd 31611 root 8u sock 0,5 34880 can’t identify protocol

I think it was causing some memory issues for me but I’ll be able to say for sure tomorrow as I just disabled ipv6 and am letting it run for a bit. I certainly can’t deny Derek’s rationale though regarding not disabling and I’m curious to hear any thoughts from the early ipv6 adopter camp.

#9 nimd4 on 10.12.09 at 8:34 pm

& there’s more @ g-loaded.eu/2008/05/12/how-to-disable-ipv6-in-fedora-and-centos/

#10 George on 10.25.09 at 8:11 am

We also had issues with IPv6 on Debian 4. In a special environment, having IPv6 enabled causes the first DNS query to fail. Any successive dns queries will succeed (first goes to ipv6, second to ipv4, then cache).

George

Leave a Comment