I am trying to disable IPv6 on interface eth0 on RHEL 5.
Here is a description of what I have attempted.
I had already made following entries in
ifcfg-eth0:IPv6INIT=NOIPV6AUTOCONF=NOFollowing entries were made in
/etc/modprob.conf":alias net-pf-10 offalias ipv6 offThese entries in
/etc/sysconfig/network:IPV6INIT=NONETWORKING_IPV6=NOThis line is added to
/etc/modprobe.d/blaclist:blacklist ipv6Also 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.
/etc/modprob.confand/etc/modprobe.d/blaclistare only typos in your question and not on your machine. It would explain why it doesn't work otherwise ;-) – Sander Steffann Jan 7 at 13:26/etc/modprobe.confand/etc/modprobe.d/blacklist. If you actually used the wrong filenames then of course it won't work... – Sander Steffann Jan 9 at 18:26