Using a lot of CentOS 7 hosts on a very small subnet. I use only a small portion of the hosts at each time. The other portion of the hosts are powered off. However, occasionally the powered off hosts are booted accidentally and cause a duplicate IP situation.
Considering that I can't change the working procedure, I want to disable the networking completely on the powered off hosts if they are accidentally booted. I can change the
/etc/sysconfig/network-scripts for each interface, but the names of interfaces vary between hosts and the number of interfaces is ~6 for each host.
So, how do I disable all networking?