{"id":42452,"date":"2019-04-10T08:14:08","date_gmt":"2019-04-10T06:14:08","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/?p=42452"},"modified":"2019-04-10T08:14:18","modified_gmt":"2019-04-10T06:14:18","slug":"how-to-disable-ipv6-on-centos-rhel-7","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2019\/04\/10\/how-to-disable-ipv6-on-centos-rhel-7\/","title":{"rendered":"How to disable IPv6 on CentOS \/ RHEL 7"},"content":{"rendered":"<!-- google_ad_section_start -->\n\n<p class=\"wp-block-paragraph\">Sometimes I miss the good old days &#8230;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Recently, I had an issue with one of the servers, where a bunch of services were attaching to IPv6 ports instead of the IPv4 ones.  Rather than editing the configuration of each of these services, I wanted to simply disabled IPv6 on the machine.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the old good days, things like these were easily done via the <em>sysctl<\/em>.  I surely tried that option too, but it wasn&#8217;t enough.  Turns out, the proper way these days is to do this via Grub, as per <a href=\"https:\/\/www.thegeekdiary.com\/centos-rhel-7-how-to-disable-ipv6\/\">this blog post<\/a>:<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Vim <em>\/etc\/default\/grub<\/em> file<\/li><li>Change: <em>GRUB_CMDLINE_LINUX=&#8221;<\/em><strong><em>ipv6.disable=1<\/em><\/strong><em> crashkernel=auto rhgb quiet&#8221;<\/em><\/li><li>Regenerate and overwrite Grub config with<em>: grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/em><\/li><li>Reboot.<\/li><\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">That sounds a bit too excessive.  But then again a reboot is also required for the proper disabling of SELinux, so I guess its&#8217; fine. <\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>Sometimes I miss the good old days &#8230; Recently, I had an issue with one of the servers, where a bunch of services were attaching to IPv6 ports instead of the IPv4 ones. Rather than editing the configuration of each of these services, I wanted to simply disabled IPv6 on the machine. In the old &hellip; <a href=\"https:\/\/mamchenkov.net\/wordpress\/2019\/04\/10\/how-to-disable-ipv6-on-centos-rhel-7\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to disable IPv6 on CentOS \/ RHEL 7<\/span><\/a><\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"How to disable IPv6 on CentOS \/ RHEL 7 #Linux #RedHat #CentOS #Fedora #networks","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,6,133,62],"tags":[3246,2351,281,2157,2289],"keyring_services":[],"class_list":["post-42452","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","category-sysadmin","category-technology","tag-centos-linux","tag-fedora-linux","tag-networks","tag-red-hat-linux","tag-web-hosting"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":25102,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/01\/07\/ipv6-20th-birthday-with-10-global-penetration\/","url_meta":{"origin":42452,"position":0},"title":"IPv6 20th birthday with 10% global penetration","author":"Leonid Mamchenkov","date":"January 7, 2016","format":false,"excerpt":"Here's some not so light coffee time reading on IPv6 -\u00a0IPv6 non-alternatives: DJB's article, 13 years later - an article that links, among other things to this Ars Technica article, which features some IPv6 statistics. \u00a0Summary? \u00a0Sure. \u00a0IPv6 RFC celebrates 20 year birthday this month with 10% global penetration. Exponential\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"ipv6","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2016\/01\/ipv6-500x295.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":15618,"url":"https:\/\/mamchenkov.net\/wordpress\/2011\/09\/28\/happy-birthday-cloudflare-thank-you-for-ipv6\/","url_meta":{"origin":42452,"position":1},"title":"Happy birthday, CloudFlare! Thank you for IPv6","author":"Leonid Mamchenkov","date":"September 28, 2011","format":false,"excerpt":"Yesterday I received some very good news from the service that makes this website faster for people all around the world - CloudFlare. \u00a0In summary: it is CloudFlare's first birthday since they went public, and to celebrate this they implemented an extremely easy to setup IPv6 gateway service. \u00a0Anyone using\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":45328,"url":"https:\/\/mamchenkov.net\/wordpress\/2020\/01\/09\/fedora-31-docker-fix\/","url_meta":{"origin":42452,"position":2},"title":"Fedora 31: Docker Fix","author":"Leonid Mamchenkov","date":"January 9, 2020","format":false,"excerpt":"I've updated my laptop to Fedora 31 over the Christmas holidays. Pretty much everything works as it did before. Except for Docker, which suddenly fails to start the service. A quick Google search pointed to the discussion in this bug report, where I found the solution that worked for me:\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":17679,"url":"https:\/\/mamchenkov.net\/wordpress\/2013\/01\/16\/fedora-18\/","url_meta":{"origin":42452,"position":3},"title":"Fedora 18","author":"Leonid Mamchenkov","date":"January 16, 2013","format":false,"excerpt":"After a two month delay, Fedora 18 is finally here. \u00a0So far, I have been surprised by two things: Phasing out of \"preupgrade\" for \"fedup\". \u00a0Seriously? \u00a0How's \"fedup --network 18\" better than \"preupgrade\"? \u00a0Especially, when dealing with desktop users... How much new stuff I found in the Release Notes. \u00a0I\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":26004,"url":"https:\/\/mamchenkov.net\/wordpress\/2016\/04\/07\/ansible-safety-net-for-dns-wildcard-hosts\/","url_meta":{"origin":42452,"position":4},"title":"Ansible safety net for DNS wildcard hosts","author":"Leonid Mamchenkov","date":"April 7, 2016","format":false,"excerpt":"After using Ansible for only a week, I am deeply in love. \u00a0I am doing more and more with less and less, and that's exactly how I want my automation. Today I had to solve an interesting problem. \u00a0Ansible operates, based on the host and group inventory. \u00a0As I mentioned\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27971,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/09\/08\/internet-protocol-version-10-ipv10\/","url_meta":{"origin":42452,"position":5},"title":"Internet Protocol version 10 (IPv10)","author":"Leonid Mamchenkov","date":"September 8, 2017","format":false,"excerpt":"Heard enough about IPv4 and IPv6 yet? \u00a0Good. \u00a0Here's something new for you - IPv10. IP version 10 (IPv10) is a new version of the Internet Protocol, designed to allow IP version 6 [RFC-2460] to communicate to IP version 4 (IPv4) [RFC-791] and vice versa.","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/42452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=42452"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/42452\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=42452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=42452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=42452"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=42452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}