{"id":61889,"date":"2021-08-18T13:39:54","date_gmt":"2021-08-18T18:39:54","guid":{"rendered":"https:\/\/blog.cpanel.com\/?p=61889"},"modified":"2021-08-18T13:39:54","modified_gmt":"2021-08-18T18:39:54","slug":"how-to-change-the-main-shared-ip-address-on-cpanel","status":"publish","type":"post","link":"https:\/\/devel.www.cpanel.net\/blog\/tips-and-tricks\/how-to-change-the-main-shared-ip-address-on-cpanel\/","title":{"rendered":"How to Change the Main Shared IP Address on cPanel\u00ae"},"content":{"rendered":"\n
cPanel & WHM\u2019s main shared IP address is used by new shared hosting accounts created on a server. This allows web hosts to create new accounts easily and automates the otherwise complex and time-consuming domain and web server configuration process. But what if you want to change the main shared IP address on your cPanel server?<\/p>\n\n\n\n
In this article, we outline a three-step process for changing a server\u2019s shared IP address. Changing the main shared IP is straightforward, but we assume you would like to add a new IP address, change the primary shared hosting address, and migrate existing shared hosting accounts to the new address. You can complete each of these tasks quickly within cPanel & WHM.<\/p>\n\n\n\n
To follow along, you need root access to a server managed with cPanel & WHM\u2014we\u2019ll be working in the WHM server administration interface. We\u2019ll focus on IPv4 addresses, but a similar process also works for IPv6 addresses.<\/p>\n\n\n\n
First, you will need to arrange for a new IP address with your hosting provider. They will supply an IP from their available address space and configure their network to connect it to your server. In addition to the IP address, you also need the network\u2019s subnet mask. Subnet masks depend on the network\u2019s configuration, so you may have to ask your hosting provider which to use.<\/p>\n\n\n\n
Once you have a new IP address, you can configure your server to use it with WHM\u2019s \u200cAdd a New IP Address<\/em> tool, which you will find under IP Functions<\/em> in the WHM sidebar menu.<\/p>\n\n\n\n