Skip to main content
Remove some tags
Source Link
AdminBee
  • 23.6k
  • 25
  • 55
  • 77

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/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?

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?

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?

Source Link

Disable networking on boot / permanently

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?