Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to disable IPv6 on interface eth0 on RHEL 5.

Here is a description of what I have attempted.

  1. I had already made following entries in ifcfg-eth0 :



  2. Following entries were made in /etc/modprob.conf" :

    alias net-pf-10 off

    alias ipv6 off

  3. These entries in /etc/sysconfig/network :



  4. This line is added to /etc/modprobe.d/blaclist :

    blacklist ipv6

  5. Also I did one more in /etc/sysctl.conf :

    `net.ipv6.conf.all.autoconf = 0`        
    `net.ipv6.conf.accept_ra = 0`

After performing each of the above mentioned steps, I restarted n/w service and even rebooted my machine.

But when I check ifconfig, it is still showing IPv6 address on interface.

Reference : How to disable ipv6 in Linux Mint

How to disable autoconfiguration on IPv6 in Linux?

Note : - I am more a CCNA/CCNP guy and new on linux.

share|improve this question
Please check that /etc/modprob.conf and /etc/modprobe.d/blaclist are only typos in your question and not on your machine. It would explain why it doesn't work otherwise ;-) – Sander Steffann Jan 7 '13 at 13:26
@ Sander Steffann i am not getting you actually what you try to indicate... – navneet shamra Jan 9 '13 at 12:27
You have typos in your question: the mentioned filenames should be: /etc/modprobe.conf and /etc/modprobe.d/blacklist. If you actually used the wrong filenames then of course it won't work... – Sander Steffann Jan 9 '13 at 18:26
Yes this is mistake with typing in question. Actually "/etc/modprobe.conf" is right file, in which i made that changes. – navneet shamra Jan 13 '13 at 14:08
Unless you want to disable IPv6 just for fun, you should specify your real goal. Otherwise you could just as well ask how to disable IPv4. The best way would be bug report style (i.e. including expected result and actual result). – Pavel ┼áimerda Oct 19 '13 at 22:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.