WHM Licence verification failed after adding a second IP
Hello, My bare metal server has a main IP of xxx.xxx.xxx.219. After I added a second IP xxx.xxx.xxx.216 in WHM and restarted the server, WHM license verification fails. License verification says that IP xxx.xxx.xxx.216 doesn't have a valid license, but this is not my main IP.
Command curl -L http://cpanel.net/showip.cgi reports IP xxx.xxx.xxx.216 (This is not my main IP)
When I edit /etc/sysconfig/network-scripts/ifcfg-eno1 and /var/cpanel/mainip, I see inside the correct main IP xxx.xxx.xxx.219
If I remove the additional ip xxx.216 from /etc/ips and run the following:
# /scripts/fixetchosts
# systemctl restart NetworkManager
# /scripts/build_cpnat
validation service works again.
I created a reseller account and added this second IP to him.
Why after adding a second IP, WHM uses this IP for license validation?
How can I instruct from the terminal (command line) WHM to uses its main IP xxx.219 for license validations instead of the additional IP? Every time I add the second IP, I loose access to WHM due to this validation error.
-
Hey there! There isn't a way to tell cPanel to use a specific IP to check the license. It sounds like something is amiss in the networking configuration of the server causing the main outbound IP address to not be the one you want.
You may need to adjust the "ip route" settings as outlined here:
https://serverfault.com/questions/849253/centos-configure-outbound-ip-address
0 -
Did you resolve this? I used cpanel/whm to add a second IP and I've got the same issue, keeps reverting to the new ip for outbound traffic. I'm using ifconfig iface down to stop it, but keeps coming back up and screwing me
0 -
I followed the advice of cPRex in his link, but command:
# ip route replace...
works only temporary. After reboot cpanel shows invalid license again.
I have ordered a new server and in the new server the second IP has a "higher number" than the main IP so everything now works fine. I think Almalinux or Cpanel have a behavior, from the list of all IPs in the server to consider always the lowest IP as the default, but I am not sure if this is valid.
I can't investigate any further, because I don't have this server anymore, so this ticket can be closed.
0
Please sign in to leave a comment.
Comments
3 comments