BigCloudy KnowledgeBase BigCloudy KnowledgeBase
  • Cloud Hosting
    • cPanel Hosting
    • Laravel Hosting
    • Node.js Hosting
    • Magento Hosting
    • Django Hosting
    • Reseller/Agency Hosting
    • SSL Certificates
  • WordPress
    • WordPress Hosting
    • WooCommerce Hosting
  • VPS & Dedicated Server
    • Linux VPS Hosting
    • Windows VPS
    • Forex VPS Hosting
    • SEO VPS Hosting
    • n8n VPS Hosting
    • Dedicated Servers
  • AI Website Builder
Log in
BigCloudy KnowledgeBase BigCloudy KnowledgeBase
Log in
BigCloudy KnowledgeBase BigCloudy KnowledgeBase
  • Cloud Hosting
    • cPanel Hosting
    • Laravel Hosting
    • Node.js Hosting
    • Magento Hosting
    • Django Hosting
    • Reseller/Agency Hosting
    • SSL Certificates
  • WordPress
    • WordPress Hosting
    • WooCommerce Hosting
  • VPS & Dedicated Server
    • Linux VPS Hosting
    • Windows VPS
    • Forex VPS Hosting
    • SEO VPS Hosting
    • n8n VPS Hosting
    • Dedicated Servers
  • AI Website Builder
  • banner shape
  • banner shape
  • plus icon
  • plus icon
cPanel

Assigning an additional IP address using whmapi1 / SSH Commands

1 minute
27 Views
Share

Copy link

Docy theme

Sometimes it’s faster for serevr administrator to manage your server through SSH instead of logging into WHM and using the graphical interface.

You can use the whmapi1 command-line tool to complete WHM tasks using SSH faster and quicker.

Please use the following whmapi1 command-line to add IP address :

For example we need to add IP with details :
IP : 111.222.33.44
Subnetmask 255.255.254.0

Please login to your serevr using SSH

# ssh root@serevr.ip.address -p 22

Use following whmapi1command to add IP address (111.222.33.44)

# whmapi1 addips ips=111.222.33.44 netmask=255.255.254.0

Once IP address has been added to server, make sure that its responding and you are able to ping it.

# ping 111.222.33.44

Assign newly added IP address to cPanel account as dedicated IP.

For example assign dedicated IP to cpuser
IP : 111.222.33.44
cPanel username : cpuser

whmapi1 setsiteip ip=111.222.33.44 user=cpuser

To verify if IP (111.222.33.44) address is assigned to user (cpuser)

whmapi1 get_shared_ip user=cpuser

To remove IP using whmapi1

# whmapi1 delip ip=111.222.33.44

Leave a Comment Cancel reply

Cloud Hosting

cPanel Hosting
Laravel Hosting
Node.js Hosting
Magento Hosting
Django Hosting
WordPress Hosting
WooCommerce Hosting
Reseller / Agency Hosting

Cloud VPS & Server

Linux VPS Hosting
Windows VPS Hosting
Forex VPS Hosting
SEO VPS Hosting
n8n VPS Hosting
Dedicated Server

Addons

Domain
SSL Certificates
AI Website Builder
Affiliate Program

Company

About Us
Contact Us
Blog
Knowledge Base
Sitemap
Status

Legal

Privacy Policy
Terms of Service
Refund Policy
Affiliate TOS

Follow Us

Facebook X-twitter Instagram Linkedin

Copyright Ⓒ 2026 BigCloudy Internt Services Pvt. Ltd. All Rights Reserved

Assigning an additional IP address using whmapi1 / SSH Commands

Or copy link

Clipboard Icon