How to change a website’s IP address via command line
Just run
/usr/local/cpanel/bin/setsiteip -u $user $ip
or using whmapi1
whmapi1 setsiteip ip=11.12.13.14 user=$user
to add IP onto the server
whmapi1 addips ips=11.12.13.14 netmask=255.255.255.248
to remove IP
whmapi1 delip ip=11.12.13.14
to check IP usage
whmapi1 get_shared_ip user=$user
to check server’s IP addresses
whmapi1 listips… Read the rest