Thats what I want to achieve:
Case I
In ubuntu 18.04 LTS and upwards, 'systemctl --version' is something like that:
Quote:
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
|
So in that output default-hierarchy looks hybrid. So if you use systemd-networkd and put the following statement in the .network configuration file the interface turns to DOWN state after rebooting.
Case II
In Centos 8, 'systemctl --version' output is:
Quote:
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=legacy
|
In this output, when you use Unmanaged=yes does not turn the network interface to DOWN state.
So I suppose that if we could change the default-hierarchy effects that parameter. What do you think? Any idea?
Regards.