How to Change the Primary IP Address from the Command Line

Share this post...Tweet about this on TwitterShare on Google+0Share on Facebook0

The Migrate IP tool can be used to change the primary IP address of the server from the command line.

  1. Run ~iworx/bin/migrate-ip.pex
  2. Follow the prompts to input both the current and new IPs

 

[root@localhost ~]# ~iworx/bin/migrate-ip.pex
Enter OLD IP Address: 10.1.10.19
Enter NEW IP Address: 10.1.10.88

Updating Reseller IP access
0 Resellers updated
Revoke reseller access to old IP? [y/N]y
Reseller access revoked for old ip
Updating SiteWorx Account IP access
2 SiteWorx accounts updated
SiteWorx access revoked for old ip
Updating domain IP assignments
2 domains updated
Updating hard coded DNS entries...
0 rows updated
Updating DNS Template entries...
2 rows updated
Syncing and exporting DNS...
done.
Updating apache configs...
done.
Restarting Apache...
Redirecting to /bin/systemctl restart httpd.service
done.
[root@localhost ~]#

Jun 27, 2017, 3:20 pmBy: InterWorx
How to Change the Primary IP Address from the Command Line
0 votes, 0.00 avg. rating (0% score)
(0) Comments

Leave a Reply
Surround code blocks with <pre>code</pre>

Your email address will not be published.

Comments

Broken Link