{"id":8697,"date":"2025-06-27T07:13:23","date_gmt":"2025-06-27T07:13:23","guid":{"rendered":"https:\/\/kb.cloudhostgeek.com\/?p=8697"},"modified":"2025-11-05T10:44:07","modified_gmt":"2025-11-05T10:44:07","slug":"assigning-an-additional-ip-address-using-whmapi1-ssh-commands","status":"publish","type":"post","link":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/","title":{"rendered":"Assigning an additional IP address using whmapi1 \/ SSH Commands"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>Sometimes it&#8217;s faster for serevr administrator to manage your server through SSH instead of logging into WHM and using the graphical interface.<\/p>\n\n\n\n<p>You can use the whmapi1 command-line tool to complete WHM tasks using SSH faster and quicker.<\/p>\n\n\n\n<p>Please use the following whmapi1 command-line to add IP address :<\/p>\n\n\n\n<p>For example we need to add IP with details :<br>IP : 111.222.33.44<br>Subnetmask 255.255.254.0<\/p>\n\n\n\n<p>Please login to your serevr using SSH<\/p>\n\n\n\n<p class=\"has-ast-global-color-4-background-color has-background\"><em># ssh root@serevr.ip.address -p 22<\/em><\/p>\n\n\n\n<p>Use following whmapi1command to add IP address (111.222.33.44)<\/p>\n\n\n\n<p class=\"has-ast-global-color-4-background-color has-background\"><em># whmapi1 addips ips=111.222.33.44 netmask=255.255.254.0<\/em><\/p>\n\n\n\n<p>Once IP address has been added to server, make sure that its responding and you are able to ping it.<\/p>\n\n\n\n<p class=\"has-ast-global-color-4-background-color has-background\"><em># ping 111.222.33.44<\/em><\/p>\n\n\n\n<p>Assign newly added IP address to cPanel account as dedicated IP.<\/p>\n\n\n\n<p>For example assign dedicated IP to cpuser<br>IP : 111.222.33.44<br>cPanel username : cpuser<\/p>\n\n\n\n<p class=\"has-ast-global-color-4-background-color has-background\"><em>whmapi1 setsiteip ip=111.222.33.44 user=cpuser<\/em><\/p>\n\n\n\n<p>To verify if IP (111.222.33.44) address is assigned to user (cpuser)<\/p>\n\n\n\n<p class=\"has-ast-global-color-4-background-color has-background\"><em>whmapi1 get_shared_ip user=cpuser<\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>To remove IP using whmapi1<\/p>\n\n\n\n<p class=\"has-ast-global-color-4-background-color has-background\"># whmapi1 delip ip=111.222.33.44<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes it&#8217;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.44Subnetmask 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 cpuserIP : 111.222.33.44cPanel 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<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"elementor_theme","format":"standard","meta":{"_acf_changed":false,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":[],"rop_publish_now_history":[],"rop_publish_now_status":"pending","footnotes":""},"categories":[5],"tags":[],"class_list":["post-8697","post","type-post","status-publish","format-standard","hentry","category-cpanel","no-post-thumbnail"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.7 (Yoast SEO v26.8) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Assigning an additional IP address using whmapi1 \/ SSH Commands - CloudHostGeek Help Center<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Assigning an additional IP address using whmapi1 \/ SSH Commands\" \/>\n<meta property=\"og:description\" content=\"Sometimes it&#8217;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.44Subnetmask 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 cpuserIP : 111.222.33.44cPanel 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\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudHostGeek Help Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/BigCloudyHosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-06-27T07:13:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-05T10:44:07+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:site\" content=\"@bigcloudypvtltd\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Assigning an additional IP address using whmapi1 \/ SSH Commands - CloudHostGeek Help Center","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/","og_locale":"en_US","og_type":"article","og_title":"Assigning an additional IP address using whmapi1 \/ SSH Commands","og_description":"Sometimes it&#8217;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.44Subnetmask 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 cpuserIP : 111.222.33.44cPanel 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","og_url":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/","og_site_name":"CloudHostGeek Help Center","article_publisher":"https:\/\/www.facebook.com\/BigCloudyHosting\/","article_published_time":"2025-06-27T07:13:23+00:00","article_modified_time":"2025-11-05T10:44:07+00:00","author":"admin","twitter_card":"summary_large_image","twitter_creator":"@bigcloudypvtltd","twitter_site":"@bigcloudypvtltd","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/#article","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/"},"author":{"name":"admin","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/378209d3259734d846716786afbc52b0"},"headline":"Assigning an additional IP address using whmapi1 \/ SSH Commands","datePublished":"2025-06-27T07:13:23+00:00","dateModified":"2025-11-05T10:44:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/"},"wordCount":165,"commentCount":0,"publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"articleSection":["cPanel"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/","name":"Assigning an additional IP address using whmapi1 \/ SSH Commands - CloudHostGeek Help Center","isPartOf":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website"},"datePublished":"2025-06-27T07:13:23+00:00","dateModified":"2025-11-05T10:44:07+00:00","breadcrumb":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/assigning-an-additional-ip-address-using-whmapi1-ssh-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bigcloudy.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Assigning an additional IP address using whmapi1 \/ SSH Commands"}]},{"@type":"WebSite","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#website","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","name":"https:\/\/www.bigcloudy.com\/","description":"Your step-by-step guide to hosting, servers &amp; website tools.","publisher":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bigcloudy.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#organization","name":"BigCloudy internt services pvt ltd.","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","contentUrl":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-content\/uploads\/2024\/09\/cropped-BGC_logo.webp","width":368,"height":114,"caption":"BigCloudy internt services pvt ltd."},"image":{"@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/BigCloudyHosting\/","https:\/\/x.com\/bigcloudypvtltd","https:\/\/www.instagram.com\/bigcloudypvtltd\/"]},{"@type":"Person","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/378209d3259734d846716786afbc52b0","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bigcloudy.com\/knowledge-base\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/42ea90e921e5926f1db3403e79195ea7c0e898504fd43555e6099a85c9c91443?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/42ea90e921e5926f1db3403e79195ea7c0e898504fd43555e6099a85c9c91443?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/kb.cloudhostgeek.com"]}]}},"_links":{"self":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=8697"}],"version-history":[{"count":0,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/8697\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=8697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=8697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bigcloudy.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=8697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}