Re-enabling IPv6 support on CentOS kernels after update

Want to help support this blog? Try out Oh Dear, the best all-in-one monitoring tool for your entire website, co-founded by me (the guy that wrote this blogpost). Start with a 10-day trial, no strings attached.

We offer uptime monitoring, SSL checks, broken links checking, performance & cronjob monitoring, branded status pages & so much more. Try us out today!

Profile image of Mattias Geniar

Mattias Geniar, May 29, 2012

Follow me on Twitter as @mattiasgeniar

A Kernel update on one box led to the following system error when trying to enable its IPv6-addresses again.

# /etc/init.d/network restart
Shutting down interface eth0:                              [  OK  ]
Shutting down loopback interface:                          [  OK  ]
FATAL: Module off not found.
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support
Bringing up loopback interface:                            [  OK  ]
Bringing up interface eth0:  FATAL: Module off not found.
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support
                                                           [  OK  ]
FATAL: Module off not found.
CRITICAL : [ipv6_test] Kernel is not compiled with IPv6 support

Which was odd, since its IPv6 addresses worked just fine before the reboot. Chances are, a change in /etc/modprobe.conf disabled IPv6. Here’s what may be in there.

# cat /etc/modprobe.conf

alias eth0 e1000
alias scsi_hostadapter mptbase
alias scsi_hostadapter1 mptspi
alias scsi_hostadapter2 ata_piix
alias net-pf-10 off
alias ipv6 off
options ipv6 disable=1

If you comment out those last 3 lines (that effectively disable IPv6) and reboot your box, you should have IPv6 connectivity again. Simply place a #-sign in front of them will suffice.



Want to subscribe to the cron.weekly newsletter?

I write a weekly-ish newsletter on Linux, open source & webdevelopment called cron.weekly.

It features the latest news, guides & tutorials and new open source projects. You can sign up via email below.

No spam. Just some good, practical Linux & open source content.