{"id":6736,"date":"2014-04-22T20:57:27","date_gmt":"2014-04-22T20:57:27","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/possible-to-re-enable-ipv6-without-rebooting-collection-of-common-programming-errors\/"},"modified":"2014-04-22T20:57:27","modified_gmt":"2014-04-22T20:57:27","slug":"possible-to-re-enable-ipv6-without-rebooting-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/22\/possible-to-re-enable-ipv6-without-rebooting-collection-of-common-programming-errors\/","title":{"rendered":"Possible to re-enable IPv6 without rebooting?-Collection of common programming errors"},"content":{"rendered":"<p>I have a machine running CentOS 5.8. IPv6 was disabled by creating a file <code>\/etc\/modprobe.d\/disable-ipv6<\/code> with the following contents:<\/p>\n<pre><code>options ipv6 disable=1\n<\/code><\/pre>\n<p>Removing the file and rebooting the machine should re-enable IPv6. Is there a way to enable IPv6 without having to reboot?<\/p>\n<p><strong>Additional info:<\/strong><\/p>\n<p>I found something that said to <code>echo 0 &gt; \/proc\/sys\/net\/ipv6\/conf\/interface\/disable_ipv6<\/code>, but <code>\/proc\/sys\/net\/ipv6<\/code> does not exist on this machine.<\/p>\n<p><code>sysctl<\/code> shows nothing about IPv6:<\/p>\n<pre><code># sysctl -a | grep -i ipv6 | wc -l\n0\n<\/code><\/pre>\n<p>The ipv6 kernel module is loaded:<\/p>\n<pre><code>#lsmod | grep ipv6\nipv6                  437857  1 cnic\n<\/code><\/pre>\n<p>Attempting to remove it throws an error:<\/p>\n<pre><code># modprobe -vnr ipv6\nFATAL: Module ipv6 is in use.\n\n# modprobe --show-depends ipv6\ninsmod \/lib\/modules\/2.6.18-308.13.1.el5\/kernel\/crypto\/crypto_api.ko \ninsmod \/lib\/modules\/2.6.18-308.13.1.el5\/kernel\/net\/xfrm\/xfrm_nalgo.ko \ninsmod \/lib\/modules\/2.6.18-308.13.1.el5\/kernel\/net\/ipv6\/ipv6.ko\n<\/code><\/pre>\n<p>Modprobe says <code>crypto_api<\/code> depends on the ipv6 module. Unloading and loading that on a running webserver does not sound like best idea.<\/p>\n<p>I tried <code>rmmod<\/code> as suggested by @Zoredache:<\/p>\n<pre><code># rmmod -v ipv6\nERROR: Module ipv6 is in use by cnic\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I have a machine running CentOS 5.8. IPv6 was disabled by creating a file \/etc\/modprobe.d\/disable-ipv6 with the following contents: options ipv6 disable=1 Removing the file and rebooting the machine should re-enable IPv6. Is there a way to enable IPv6 without having to reboot? Additional info: I found something that said to echo 0 &gt; \/proc\/sys\/net\/ipv6\/conf\/interface\/disable_ipv6, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6736","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6736","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6736"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6736\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6736"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6736"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6736"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}