{"id":9500,"date":"2016-12-07T08:36:15","date_gmt":"2016-12-07T07:36:15","guid":{"rendered":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/"},"modified":"2016-12-07T08:36:15","modified_gmt":"2016-12-07T07:36:15","slug":"oel-7-how-to-disable-ipv6-on-oracle-linux-7","status":"publish","type":"post","link":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/","title":{"rendered":"OEL 7 &#8211; How to disable IPv6 on Oracle Linux 7"},"content":{"rendered":"<h2>By William Sescu<\/h2>\n<p>In case you are not interested in IPv6, you can use the following HowTo to disable it on Oracle Linux 7. Unless you have something very very special on your System, these 10 Steps should do it.<\/p>\n<ol>\n<li>First of all, check if IPv6 is active at all<\/li>\n<li>Add the disable_ipv6 = 1 entries to the \/etc\/sysctl.conf file<\/li>\n<li>Disable IPv6 in all \/etc\/sysconfig\/network-scripts\/ifcfg-* files, e.g.<\/li>\n<li>Disable IPv6 in \/etc\/sysconfig\/network<\/li>\n<li>Remove the &#8220;::1&#8221; line from the \/etc\/hosts file<\/li>\n<li>Remove the &#8220;restrict -6&#8221; line from the \/etc\/ntp.conf<\/li>\n<li>Add ipv6.disable=1 to the GRUB_CMDLINE_LINUX entry in the \/etc\/default\/grub file<\/li>\n<li>Regenerate a GRUB configuration file and overwrite the existing one<\/li>\n<li>Reboot the server<\/li>\n<li>Confirm if IPV6 is disabled<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>First of all, check if IPv6 is active at all<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[root@dbidg01 ~]# \/sbin\/ip -6 addr\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536\n    inet6 ::1\/128 scope host\n       valid_lft forever preferred_lft forever\n2: enp0s3: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qlen 1000\n    inet6 fe80::ad02:9b6a:bf40:5a3a\/64 scope link\n       valid_lft forever preferred_lft forever\n3: enp0s8: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qlen 1000\n    inet6 fe80::a00:27ff:feb8:3544\/64 scope link\n       valid_lft forever preferred_lft forever<\/pre>\n<p>&nbsp;<\/p>\n<p>Add the disable_ipv6 = 1 entries to the \/etc\/sysctl.conf file<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">#-- Disable IPv6\nnet.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1<\/pre>\n<p>&nbsp;<\/p>\n<p>Disable IPv6 in all \/etc\/sysconfig\/network-scripts\/ifcfg-* files, e.g.<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">cat \/etc\/sysconfig\/network-scripts\/ifcfg-enp0s3 | grep IPV6INIT\nIPV6INIT=no<\/pre>\n<p>&nbsp;<\/p>\n<p>Disable IPv6 in \/etc\/sysconfig\/network<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">cat \/etc\/sysconfig\/network | grep NETWORKING_IPV6\nNETWORKING_IPV6=no<\/pre>\n<p>&nbsp;<\/p>\n<p>Remove the following line from the \/etc\/hosts file<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">::1         localhost localhost.localdomain localhost6 localhost6.localdomain6<\/pre>\n<p>&nbsp;<\/p>\n<p>Remove the following line from the \/etc\/ntp.conf<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">cat \/etc\/ntp.conf | egrep ' -6'\nrestrict -6 default kod nomodify notrap nopeer noquery\nrestrict -6 ::1<\/pre>\n<p>&nbsp;<\/p>\n<p>Add ipv6.disable=1 to the GRUB_CMDLINE_LINUX entry in the \/etc\/default\/grub file<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[root@dbidg01 \/]# cat \/etc\/default\/grub | grep GRUB_CMDLINE_LINUX\nGRUB_CMDLINE_LINUX=\"ipv6.disable=1 crashkernel=auto rd.lvm.lv=ol\/root rd.lvm.lv=ol\/swap rhgb quiet numa=off transparent_hugepage=never\"<\/pre>\n<p>&nbsp;<\/p>\n<p>Regenerate a GRUB configuration file and overwrite the existing one<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[root@dbidg01 \/]# grub2-mkconfig -o \/boot\/grub2\/grub.cfg\nGenerating grub configuration file ...\nFound linux image: \/boot\/vmlinuz-4.1.12-61.1.19.el7uek.x86_64\nFound initrd image: \/boot\/initramfs-4.1.12-61.1.19.el7uek.x86_64.img\nFound linux image: \/boot\/vmlinuz-4.1.12-61.1.18.el7uek.x86_64\nFound initrd image: \/boot\/initramfs-4.1.12-61.1.18.el7uek.x86_64.img\nFound linux image: \/boot\/vmlinuz-3.10.0-514.el7.x86_64\nFound initrd image: \/boot\/initramfs-3.10.0-514.el7.x86_64.img\nFound linux image: \/boot\/vmlinuz-0-rescue-547c48bd53614a2ca2d16909b3c14419\nFound initrd image: \/boot\/initramfs-0-rescue-547c48bd53614a2ca2d16909b3c14419.img\ndone<\/pre>\n<p>&nbsp;<\/p>\n<p>Reboot the server<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">init 6<\/pre>\n<p>&nbsp;<\/p>\n<p>Confirm if IPV6 is disabled<\/p>\n<pre class=\"brush: actionscript3; gutter: true; first-line: 1\">[root@dbidg01 ~]# \/sbin\/ip -6 addr\n[root@dbidg01 ~]# lsmod | grep -i v6<\/pre>\n<p>&nbsp;<\/p>\n<p>In case the ip and the lsmod command do not return anything back, then you have successfully disabled IPv6.<\/p>\n<p>Cheers, William<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By William Sescu In case you are not interested in IPv6, you can use the following HowTo to disable it on Oracle Linux 7. Unless you have something very very special on your System, these 10 Steps should do it. First of all, check if IPv6 is active at all Add the disable_ipv6 = 1 [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[42],"tags":[46],"type_dbi":[],"class_list":["post-9500","post","type-post","status-publish","format-standard","hentry","category-operating-systems","tag-linux-unix"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>OEL 7 - How to disable IPv6 on Oracle Linux 7 - dbi Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"OEL 7 - How to disable IPv6 on Oracle Linux 7\" \/>\n<meta property=\"og:description\" content=\"By William Sescu In case you are not interested in IPv6, you can use the following HowTo to disable it on Oracle Linux 7. Unless you have something very very special on your System, these 10 Steps should do it. First of all, check if IPv6 is active at all Add the disable_ipv6 = 1 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/\" \/>\n<meta property=\"og:site_name\" content=\"dbi Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-12-07T07:36:15+00:00\" \/>\n<meta name=\"author\" content=\"Oracle Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Oracle Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/\"},\"author\":{\"name\":\"Oracle Team\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"headline\":\"OEL 7 &#8211; How to disable IPv6 on Oracle Linux 7\",\"datePublished\":\"2016-12-07T07:36:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/\"},\"wordCount\":260,\"commentCount\":0,\"keywords\":[\"Linux\/UNIX\"],\"articleSection\":[\"Operating systems\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/\",\"name\":\"OEL 7 - How to disable IPv6 on Oracle Linux 7 - dbi Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\"},\"datePublished\":\"2016-12-07T07:36:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\/\/www.dbi-services.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"OEL 7 &#8211; How to disable IPv6 on Oracle Linux 7\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#website\",\"url\":\"https:\/\/www.dbi-services.com\/blog\/\",\"name\":\"dbi Blog\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee\",\"name\":\"Oracle Team\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g\",\"caption\":\"Oracle Team\"},\"url\":\"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"OEL 7 - How to disable IPv6 on Oracle Linux 7 - dbi Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/","og_locale":"en_US","og_type":"article","og_title":"OEL 7 - How to disable IPv6 on Oracle Linux 7","og_description":"By William Sescu In case you are not interested in IPv6, you can use the following HowTo to disable it on Oracle Linux 7. Unless you have something very very special on your System, these 10 Steps should do it. First of all, check if IPv6 is active at all Add the disable_ipv6 = 1 [&hellip;]","og_url":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/","og_site_name":"dbi Blog","article_published_time":"2016-12-07T07:36:15+00:00","author":"Oracle Team","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Oracle Team","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#article","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/"},"author":{"name":"Oracle Team","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"headline":"OEL 7 &#8211; How to disable IPv6 on Oracle Linux 7","datePublished":"2016-12-07T07:36:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/"},"wordCount":260,"commentCount":0,"keywords":["Linux\/UNIX"],"articleSection":["Operating systems"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/","url":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/","name":"OEL 7 - How to disable IPv6 on Oracle Linux 7 - dbi Blog","isPartOf":{"@id":"https:\/\/www.dbi-services.com\/blog\/#website"},"datePublished":"2016-12-07T07:36:15+00:00","author":{"@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee"},"breadcrumb":{"@id":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.dbi-services.com\/blog\/oel-7-how-to-disable-ipv6-on-oracle-linux-7\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.dbi-services.com\/blog\/"},{"@type":"ListItem","position":2,"name":"OEL 7 &#8211; How to disable IPv6 on Oracle Linux 7"}]},{"@type":"WebSite","@id":"https:\/\/www.dbi-services.com\/blog\/#website","url":"https:\/\/www.dbi-services.com\/blog\/","name":"dbi Blog","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.dbi-services.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.dbi-services.com\/blog\/#\/schema\/person\/66ab87129f2d357f09971bc7936a77ee","name":"Oracle Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f711f7cd2c9b09bf2627133755b569fb5be0694810cfd33033bdd095fedba86d?s=96&d=mm&r=g","caption":"Oracle Team"},"url":"https:\/\/www.dbi-services.com\/blog\/author\/oracle-team\/"}]}},"_links":{"self":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/comments?post=9500"}],"version-history":[{"count":0,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/posts\/9500\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/media?parent=9500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/categories?post=9500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/tags?post=9500"},{"taxonomy":"type","embeddable":true,"href":"https:\/\/www.dbi-services.com\/blog\/wp-json\/wp\/v2\/type_dbi?post=9500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}