disable_ipv6_in_alma_linux
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
disable_ipv6_in_alma_linux [2024/04/24 17:14] – created walkeradmin | disable_ipv6_in_alma_linux [2024/04/24 23:04] (current) – walkeradmin | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | Disable IPV6 in Alma Linux | + | ====== |
+ | <color # | ||
+ | \\ | ||
+ | \\ | ||
+ | ---- | ||
+ | ===== Introduction ===== | ||
+ | By default, Alma Linux will have any IPV4 addresses that you assign, but some IPV6 ones, that maybe you did not, for cleaner management you might want to get rid of any IPV6 addresses that you do not need or did not configure. | ||
+ | \\ | ||
+ | \\ | ||
+ | Here is an example from a device that has both IPV4 and IPV6 Addresses, the IPV4 addresses were manually configured, and the IP V6 ones just seemed to appear. | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | ip -br -c a | ||
+ | |||
+ | |||
+ | eno1 UP | ||
+ | eno2 UP | ||
+ | eno3 | ||
+ | eno4 | ||
+ | eno5 DOWN | ||
+ | eno6 | ||
+ | mngt | ||
+ | flannel.1 | ||
+ | cni0 | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | ---- | ||
+ | |||
+ | ==== 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 # | ||
+ | \\ | ||
+ | < | ||
+ | # sysctl settings are defined through files in | ||
+ | # / | ||
+ | # | ||
+ | # Vendors settings live in / | ||
+ | # To override a whole file, create a new file with the same in | ||
+ | # / | ||
+ | # only specific settings, add a file with a lexically later | ||
+ | # name in / | ||
+ | # | ||
+ | # For more information, | ||
+ | </ | ||
+ | \\ | ||
+ | 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. | ||
+ | \\ | ||
+ | \\ | ||
+ | < | ||
+ | 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 | ||
+ | </ | ||
+ | Save the file. Next we need to edit the ifcfg-enox files in / | ||
+ | \\ | ||
+ | \\ | ||
+ | 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.1713975252.txt.gz · Last modified: 2024/04/24 17:14 by walkeradmin