I was reading about RHEL 8, and this statement is made:
Network scripts are deprecated in Red Hat Enterprise Linux 8 and they are no longer provided by default. The basic installation provides a new version of the ifup and ifdown scripts which call the NetworkManager service through the nmcli tool.
OK, so to me this would imply that /etc/sysconfig/network-scripts
would no longer be used, though it is unclear from my reading what is supposed to replace ifcfg-eth0
(or similar).
But then I read this page about static IP addresses, which asserted:
The procedure to configure a static IP address on RHEL 8: Create a file named
/etc/sysconfig/network-scripts/ifcfg-eth0
as follows:
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
PREFIX=24
IPADDR=192.168.2.203
Restart network service on RHEL 8: `systemctl restart NetworkManager` OR `sudo nmcli connection reload`
So, is it only the ifup
and ifdown
that are deprecated, but the configuration files remain? Is the distinction between scripts
and configuration files
, even though they seem lumped under a single chapter? Chapter 12 of the RHEL defined network scripts as the:
Chapter 12. Network Scripts
...configuration files for network interfaces and the scripts to activate and deactivate them are located in the/etc/sysconfig/network-scripts/
directory.
So, what constitutes what is deprecated? It doesn't seem to be the scripts in /etc/sysconfig/network-scripts
since that apparently is still an appropriate way to configure a static IP.
I do not yet have a RHEL 8 box running, so I am hoping someone can shed light on what it is one is supposed to avoid.