title: How to fix local IP in Nat Configuration on WHM/Cpanel on Centos 6 on Google Compute Engine
body: <p>If you deleted a VM on Google Compute Engine on a Centos 6 Cpanel server and then create it with the same disk, you often are assigned a new local IP address even if you kept the static IP. This does not properly update in the NAT configuration on Cpanel/WHM servers. </p>
  
  <p>This stops any sites from working and the only way to fix it is manually edit the http.conf file. Inside Web Host Manager you can fix the public facing IP, but there is no place to edit the local IP. Does anyone know how to edit the nat configuration on centos 6 on Google Compute Engine to fix the local IP so that all new sites created will have the correct local IP in the http.conf?</p>
  
  <p>Here is a pic of the current nat configuration on my Centos 6 server. 
  <img src="https://i.stack.imgur.com/XBCPU.png" alt="enter image description here">  </p>
  
  <p>Here is a pic showing my correct local IP in Compute Engine, you can see it does not match the one Cpanel has, which causes the http.conf file to generate new virtual hosts with the wrong IP.
  <img src="https://i.stack.imgur.com/3wgG5.png" alt="enter image description here"></p>