Skip to main content

Strange problem when adding ip addresses

Comments

10 comments

  • 24x7server
    Hi, It appears that the IP from which the request is going is different to the one you are having license on. You will have to check the network configuration and make sure the traffic goes from the same IP that you have licensed application on. Use the below commands to check what IP it shows. # curl -L
    0
  • ggooden
    Yeah, it's reporting .141 So I guess what I'm wondering is how, in a way that won't mess with WHM do I ensure that all outbound traffic is routed through the .140?
    0
  • dalem
    Did you add the IP's via WHM or are they configured via /etc/sysconfig/network-scripts
    0
  • Eminds
    If you are able to login to WHM, then just go to Basic settings >> change the IP that licensed from there >> click on save. on the server run /usr/local/cpanel/cpkeyclt and you should be good to go.
    0
  • 24x7server
    Yeah, it's reporting .141 So I guess what I'm wondering is how, in a way that won't mess with WHM do I ensure that all outbound traffic is routed through the .140?

    You need to check the network configuration properly now and probably have to reconfigure it. Please make sure that you have a KVM access of your machine before you do any configuration, if in case network fails, you should not wait for long to revert the change to check it again.
    0
  • cPanelMichael
    Hello, There's a thread here you may find helpful: Changing the main server IP and sites on server will not load However, I recommend reaching out to your provider or data center for help with changing the IP address used for outgoing connections if you do not have experience making network configuration changes. Any mistakes in the network configuration change could result in downtime and require physical access to the server. Thank you.
    0
  • ggooden
    First I had set the IP's in WHM... then I had even tried doing it manually through network-scripts... Doesn't matter which way. Every time I reboot the machine it is choosing some random PUBLIC IP from the list of ip's entered. :( This is resulting in constantly having to change licences because I can't figure out how to FORCE the public ip to be the base ip.
    0
  • cPanelMichael
    Hello @ggooden, Could you verify the specific steps you took when modifying the network script configuration files? Thank you.
    0
  • ggooden
    When I did it MANUALLY I used "nmtui" to do it.. Then I removed it using "nmtui" and did it through WHM's "Add an IP Address" feature. Now either way the addresses ended up on the box and resolving correctly. ALSO either way, when the system reboots I am not guaranteed any particular IP address as the public outbound IP; which is the PROBLEM because cpanel, installatron, cxs, etc all RELY on a single IP to activate licenses against. So currently the box has a BASE IP of x.x.x.140 with additional IP's of 141 through 147 One reboot it's .141 showing to cpanel license server... then next reboot it's .146 So I'm seeking a method to ENSURE that it's always .140; no matter what.
    0
  • cPanelMichael
    Hello, The default IP address used for outgoing connections isn't something you can configure with the cPanel/WHM software. You have to use instructions like the ones referenced at: Changing the main server IP and sites on server will not load Or, in some cases, you may need to contact your provider to determine which steps are required to make the change and ensure it's preserved through reboots. Thank you.
    0

Please sign in to leave a comment.