Multiple IP’s Not Working on CentOS7 & cPanel

March 25th, 2019 | by chase

Recently I’ve begun moving all customer servers and any remaining legacy infrastructure to the newest versions of CentOS7.

Surprisingly, the way CentOS7 treats IP address naming… it seems to completely bork cPanel’s ability to handle multiple IP’s! Greatttt.

Well, luckily the fix is actually quite simple.

Follow the steps below to adjust the relevant Eth system config files and then restart (after double/triple-checking everything is proper):

Disable NetworkManager service 

(source:https://documentation.cpanel.net/display/CKB/How+to+Disable+Network+Manager)

systemctl stop NetworkManager.service

systemctl disable NetworkManager.service

Adjust the eth config entries

(source: https://forums.cpanel.net/threads/add-multiple-ip.495581/)

add

NM_CONTROLLED=”no”

in both eth-lo and eth-ens160/eth0

Next, Rename the eth device files

rename eth-ens160 to eth0

Add grub entries

edit the /etc/default/grub and add the following after “quiet”
net.ifnames=0 biosdevname=0

Save and Rebuild GRUB2

Changes to /etc/default/grub require rebuilding the grub.cfg file as follows:

# grub2-mkconfig -o /boot/grub2/grub.cfg

Last, but not least… Restart!

Assuming everything goes well….cPanel should now be able to manage the additional IP addresses on the system.

WARNING: since this is adjusting the network settings of your server…. make sure you have direct access to the server (if it loses public connectivity!).

Leave a Reply

Your email address will not be published. Required fields are marked *