I'm using static IP but WHM use dynamic IP DHCP

Operating System & Version
Centos7
cPanel & WHM Version
latest

ibrahimhajjaj

Registered
Mar 4, 2020
4
0
1
Palestine
cPanel Access Level
Root Administrator
Hello There,

I've installed WHM on Centos 7 at azure VM server and I'm using a static IP address at azure, but for no reason, WHM uses a dynamic IP address DHCP!

so is there is a way to change this?

Installation guide from cPanel & WHM on Microsoft Azure | cPanel Blog


when I run ip addr

Code:
2: eth0:
    inet 10.0.0.4/24 brd 10.0.0.255 scope global eth0
       valid_lft forever preferred_lft forever
ip route

default via 10.0.0.1 dev eth0

Regards
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
There is nothing in cPanel & WHM that would configure the server to use a dynamic IP address. The configuration you have set up would use a Private IP that translates to a Public IP. What is the output of the following?

Code:
 /scripts/build_cpnat
Please ensure you don't add the actual public IP address in your response.
 
  • Like
Reactions: ibrahimhajjaj

ibrahimhajjaj

Registered
Mar 4, 2020
4
0
1
Palestine
cPanel Access Level
Root Administrator
There is nothing in cPanel & WHM that would configure the server to use a dynamic IP address. The configuration you have set up would use a Private IP that translates to a Public IP. What is the output of the following?

Code:
 /scripts/build_cpnat
Please ensure you don't add the actual public IP address in your response.


info [build_cpnat] 10.0.0.4 => 5x.1xx.23x.1x0 ( Public server IP )

Thanks Lauren
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,273
313
Houston
So in your cPanel/WHM interfaces, you should see the public IP being represented and your sites should all resolve to the public IP - is that the case or is it still changing?