Hello,
This document aims to assist clients to change their IP addresses in order to complete the migration to the network. (Linux operating system is considered here, but you can even do it on windows)
1. Reconfigure the server's primary IP address
Note: Prior to the change, be sure to contact to confirm that your cPanel license is active for your new primary IP address. You can check the validation of a license on the official site
- Log in as "root" on the server via SSH;
- Open the file / etc / sysconfig / network in a text editor:
Code:
nano / etc / sysconfig / network
- Edit Entry GATEWAY to reflect the new gateway. Press CTRL + X to exit and save changes;
- Copy the interface of the old address to an alias unused:
Code:
cp / etc/sysconfig/network-scripts/ifcfg-eth0 / etc/sysconfig/network-scripts/ifcfg-eth0: 99
- Open the file ifcfg-eth0 in a text editor:
Code:
nano / etc/sysconfig/network-scripts/ifcfg-eth0
- Modify the IPADDR and NETMASK with the new network settings. Be careful to indicate the correct NETMASK. We must remove the entries and BROADCAST NETWORK, otherwise it may conflict with the new settings and make your server is unavailable. Press CTRL + X to exit and save changes;
- Open the file from the old main interface ifcfg-eth0: 99:
Code:
nano / etc/sysconfig/network-scripts/ifcfg-eth0: 99
- Modify the entry to put eth0 DEVICE: 99 instead of eth0. Press CTRL + X to exit and save changes.
- Reconfigure the network interface:
Code:
/ Etc / init.d / network restart
2. Add additional IP addresses
This step is necessary if you have multiple IP addresses configured on your server, including those for your DNS servers.
- Plugging in the interface "WebHost Manager (WHM) of your server.
- Under "IP Functions" click "Add a New IP Address".
- In "Ip (s) to add" include the additional IP address and "Subnet Mask" its netmask. Click "Do It" at the top.
- Repeat steps 2 and 3 for any additional IP addresses to be added.
Bookmarks