This guide explains how to add an IPv4 address to a cPanel & WHM server so that it can be assigned to a hosting account. You need administrator access to WHM and an address allocated by your hosting provider.

Before you start

Ask your provider for the IP address and subnet mask, which identifies the address’s network. Adding an address in WHM does not allocate it to you or arrange routing to your server.

Add the address

  1. Log in to WHM as root, the server’s main administrator.

  2. Open IP Functions > Add a New IP Address.

    IP Functions

    Add a New IP Address

  3. Enter the allocated address in New IP or IP range to add.

  4. Enter the subnet mask. If adding a range, specify any addresses that should be excluded.

  5. Click Submit and check that WHM reports the address was added.

    add ip

Add a range of addresses

The same field accepts ranges, such as 192.168.5.128-255, or CIDR notation, such as 192.168.5.128/25. These are examples of the format, not addresses to copy into your server. Use only the range supplied by your provider. Servers using one-to-one NAT require the local address rather than the public address.