0

Good morning
my server is a dedicated from SoYouStart. I purchased 8 failover IP.

OS is Centos 7.4 + CloudLinux. The machine will run a cPanel box.

What I need is associate the cPanel and CloudLinux licenses to one of the failover IP's rather than the main server IP.
In order to check the license, both cPanel and CloudLinux check the result of

#hostname --ip-address  

or

curl -L http://cpanel.net/showip.cgi  

I mean that the IP resulting from above command is the IP used for the license.

My question is: how I can configure network in order that #hostname --ip-address returns one of the failover IP's?

I searched on cPanel and CL docs/forums but not found a solution.

Thank you very much.

1 Answers1

1

There may be OVH-specific requirements to change the primary IP address on your server, so check your customer dashboard: for one you should switch to a stock kernel from the OVH netboot kernel if you haven't all ready. You also need to change your cPanel license to the new address at your reseller, which is usually buycpanel.net.

Changing IP addresses should be a case of editing /etc/sysconfig/network-scripts/ifcfg-eth0 with your required address as IPADDR, netmask and the gateway from your address range allocation. Restart the network using systemctl restart networking or just reboot.

Set your hostname using hostname and then edit /etc/hosts to link the new primary IP to the hostname.

Change the cPanel IP address with /usr/local/cpanel/cpkeyclt and confirm that this is validating with curl -L http://cpanel.net/showip.cgi.