{"id":3418,"date":"2020-06-04T11:59:00","date_gmt":"2020-06-04T16:59:00","guid":{"rendered":"http:\/\/www.incredigeek.com\/home\/?p=3418"},"modified":"2020-06-04T11:59:01","modified_gmt":"2020-06-04T16:59:01","slug":"whm-cpanel-change-main-server-ip","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/whm-cpanel-change-main-server-ip\/","title":{"rendered":"WHM\/cPanel &#8211; Change Main Server IP"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Change IP Address from command line<\/h2>\n\n\n\n<p>Open up the following file, change eth0 to your primary ethernet adapter.  More info <a href=\"https:\/\/www.incredigeek.com\/home\/how-to-set-a-static-ip-address-on-centos-fedora-or-red-hat-linux\/\">here<\/a>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0<\/pre>\n\n\n\n<p>and under IPADDR set it to the new IP.  Update netmask and gateway if needed.<\/p>\n\n\n\n<p>Save file and restart network<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart network<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Update License<\/h2>\n\n\n\n<p>You may need to run the following to update the license on the server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>\/usr\/local\/cpanel\/cpkeyclt<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Change Server IP in WebHost Manager<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"221\" src=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/06\/image-3-1024x221.png\" alt=\"\" class=\"wp-image-3419\" srcset=\"https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/06\/image-3-1024x221.png 1024w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/06\/image-3-300x65.png 300w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/06\/image-3-768x166.png 768w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/06\/image-3-1536x331.png 1536w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/06\/image-3-500x108.png 500w, https:\/\/www.incredigeek.com\/home\/wp-content\/uploads\/2020\/06\/image-3.png 1674w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Change IP for server in Basic WebHost Manager Setup<br><a rel=\"noreferrer noopener\" href=\"https:\/\/go.cpanel.net\/whmdocsBasicasisWebHostManagerSetup\" target=\"_blank\"><\/a><\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Other things to do<\/h2>\n\n\n\n<p>You may need to migrate IP&#8217;s to the new address.<br>If you are keeping the old address on the server, then you may need to readd it through the IP Functions.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Change IP Address from command line Open up the following file, change eth0 to your primary ethernet adapter. More info here. vi \/etc\/sysconfig\/network-scripts\/ifcfg-eth0 and under IPADDR set it to the new IP. Update netmask and gateway if needed. Save file &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/whm-cpanel-change-main-server-ip\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[195,1],"tags":[1045,196,619,500,693,382],"class_list":["post-3418","post","type-post","status-publish","format-standard","hentry","category-cpanel","category-uncategorized","tag-change","tag-cpanel-2","tag-ip","tag-server","tag-static","tag-whm"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3418","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=3418"}],"version-history":[{"count":2,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3418\/revisions"}],"predecessor-version":[{"id":3421,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/3418\/revisions\/3421"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=3418"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=3418"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=3418"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}