I have a strange issue with my vps, it's running CentOS 6 and WHM, today i purchased the license after expiration but i can't activate it because the
/usr/local/cpanel/cpkeyclt uses the non primary IP address to look up.
I have 4 IP addresses and the activation thing uses the last one even though it's not the primary, it's a dedicated IP for some account.
Also when i run as a root:
lynx -dump http://www.cpanel.net/showip.cgi it shows the non primary ip too (ifcfg-eth0:2).
My IP setup is this:
ifcfg-eth0 -> contains the primary IP ifcfg-eth0:0 -> contains 2nd IP ifcfg-eth0:1 -> contains 3rd IP ifcfg-eth0:2 -> contains 4th IP ( this is the one WHM uses to lookup the license! ) ifcfg-eth0:3 -> contains the local IP address
How can i make it use the first primary IP address?
My ethernet files are like: DEVICE="eth0" ONBOOT="yes" BOOTPROTO="none" IPV6INIT="no" IPADDR=188.8.131.52 NETMASK=255.255.255.0 GATEWAY=184.108.40.206 DEVICE="eth0:0" ONBOOT="yes" BOOTPROTO="none" IPV6INIT="no" IPADDR=220.127.116.11 NETMASK=255.255.255.0 GATEWAY=18.104.22.168 ...etc...
It seems that the server picks a random IP address from my
ifcfg-eth files everytime the network starts up, I resolved the issue by restarting the network several times and checking the current IP until it matched the actual main IP address. I'm still looking for a real solution!