User Tools

Site Tools


disable_ipv6_in_alma_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
disable_ipv6_in_alma_linux [2024/04/24 17:18] walkeradmindisable_ipv6_in_alma_linux [2024/04/24 23:04] (current) walkeradmin
Line 1: Line 1:
 ====== Disable IPV6 in Alma Linux ====== ====== Disable IPV6 in Alma Linux ======
-<color #db5f0b>Jan 2024</color>+<color #db5f0b>Apr 2024</color>
 \\  \\ 
 \\  \\ 
Line 12: Line 12:
 \\  \\ 
 \\  \\ 
 +<file>
 ip -br -c a  ip -br -c a 
  
Line 24: Line 25:
 flannel.1        UNKNOWN        10.42.0.0/32 fe80::e82c:7bff:fe8c:132a/64 flannel.1        UNKNOWN        10.42.0.0/32 fe80::e82c:7bff:fe8c:132a/64
 cni0             UP             10.42.0.1/24 fe80::d02e:25ff:feb6:5865/64 cni0             UP             10.42.0.1/24 fe80::d02e:25ff:feb6:5865/64
 +</file>
 +\\ 
 +\\ 
 +----
 +
 +==== IPV6 Address Removal ====
 +The title is a bit misleading, we are just going to disable some IPV6 settings, the addresses will go on their own.
 +\\ 
 +\\ 
 +From SSH, Edit the file <color #00a2e8>/etc/sysctl.conf</color> by default it will likely just contain the following:
 +\\ 
 +<file>
 +# sysctl settings are defined through files in
 +# /usr/lib/sysctl.d/, /run/sysctl.d/, and /etc/sysctl.d/.
 +#
 +# Vendors settings live in /usr/lib/sysctl.d/.
 +# To override a whole file, create a new file with the same in
 +# /etc/sysctl.d/ and put new settings there. To override
 +# only specific settings, add a file with a lexically later
 +# name in /etc/sysctl.d/ and put new settings there.
 +#
 +# For more information, see sysctl.conf(5) and sysctl.d(5).
 +</file>
 +\\ 
 +At the end of this file, add the following lines (you may not need all of them, or you may need more) replacing the interface names with your own.
 +\\ 
 +\\ 
 +<file>
 +net.ipv6.conf.eno1.disable_ipv6 = 1
 +net.ipv6.conf.eno2.disable_ipv6 = 1
 +net.ipv6.conf.eno3.disable_ipv6 = 1
 +net.ipv6.conf.eno4.disable_ipv6 = 1
 +net.ipv6.conf.mngt.disable_ipv6 = 1
 +</file>
 +Save the file. Next we need to edit the ifcfg-enox files in /etc/sysconfig/network-scripts.
 +\\ 
 +\\ 
 +In each file add the following 2 lines
 +\\ 
 +  IPV6INIT=no
 +  IPV6_AUTOCONF=no
 +\\ 
 +Once all the changes have been made, reboot the server.
 +\\ 
 +\\ 
 +----
  
disable_ipv6_in_alma_linux.1713975518.txt.gz · Last modified: 2024/04/24 17:18 by walkeradmin