{"id":607,"date":"2022-03-11T15:49:34","date_gmt":"2022-03-11T08:49:34","guid":{"rendered":"https:\/\/naitinoi.com\/?p=607"},"modified":"2022-03-16T16:24:41","modified_gmt":"2022-03-16T09:24:41","slug":"disable-ipv6-in-kernel-module-requires-reboot-centos7","status":"publish","type":"post","link":"https:\/\/omtel.ltd\/index.php\/2022\/03\/11\/disable-ipv6-in-kernel-module-requires-reboot-centos7\/","title":{"rendered":"Disable IPv6 in kernel module (requires reboot) CentOS7"},"content":{"rendered":"\n<p><strong>Check IP V6 Interface<\/strong><\/p>\n\n\n\n<p>[root@fs teee]# ip addr show | grep net6<br>inet6 ::1\/128 scope host<br>inet6 fe80::1097:73ff:fe6e:9d73\/64 scope link<br>inet6 fe80::504d:83ff:fe2b:962\/64 scope link<\/p>\n\n\n\n<p>[root@fs teee]# ee \/etc\/default\/grub<br>GRUB_TIMEOUT=1<br>GRUB_DISTRIBUTOR=&#8221;$(sed &#8216;s, release .*$,,g&#8217; \/etc\/system-release)&#8221;<br>GRUB_DEFAULT=saved<br>GRUB_DISABLE_SUBMENU=true<br>GRUB_TERMINAL=&#8221;serial console&#8221;<br><strong>GRUB_CMDLINE_LINUX=&#8221;ipv6.disable=1 crashkernel=auto rhgb quiet&#8221;<\/strong><br>GRUB_SERIAL_COMMAND=&#8221;serial&#8221;<br>GRUB_CMDLINE_LINUX=&#8221;console=tty0 crashkernel=auto net.ifnames=0 console=ttyS0&#8243;<br>GRUB_DISABLE_RECOVERY=&#8221;true&#8221;<\/p>\n\n\n\n<p><strong>Rebuilt GRUB<\/strong><\/p>\n\n\n\n<p>[root@fs teee]# grub2-mkconfig -o \/boot\/grub2\/grub.cfg<\/p>\n\n\n\n<p>[root@fs teee]# ee \/etc\/sysctl.conf<\/p>\n\n\n\n<p>net.ipv6.conf.all.disable_ipv6 = 1<br>net.ipv6.conf.default.disable_ipv6 = 1<\/p>\n\n\n\n<p>&lt;SAVE><br>[root@fs teee]# sysctl -p<br>net.ipv6.conf.all.disable_ipv6 = 1<br>net.ipv6.conf.default.disable_ipv6 = 1<\/p>\n\n\n\n<p><strong>SSH<\/strong> <\/p>\n\n\n\n<p>[root@fs teee]# ee \/etc\/ssh\/sshd_config<br>Port xxxx<br>AddressFamily inet<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Check IP V6 Interface [root@fs teee]# ip addr show | gr [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-607","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/607","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/comments?post=607"}],"version-history":[{"count":2,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/607\/revisions"}],"predecessor-version":[{"id":613,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/posts\/607\/revisions\/613"}],"wp:attachment":[{"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/media?parent=607"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/categories?post=607"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/omtel.ltd\/index.php\/wp-json\/wp\/v2\/tags?post=607"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}