Configure an additional IP address
An additional IP address becomes available only after you configure it. This guide will help you to configure IP addresses manually. If you want to configure it automatically, reinstall the operating system of your server.
Configure an additional IP address on Debian/Ubuntu
- Open the network configuration file in
/etc/network/interfaces. - Add the following lines to the file:
auto eth0:N
iface eth0:N inet static
address X.X.X.X
netmask 255.255.255.255
Replace N with the serial number of the interface (0 for the first one, 1 for the second, etc.), X.X.X.X with the IP address you want to add, and 255.255.255.255 with the netmask (found in your Control Panel β IP addresses).
Adding IPv6
iface eth0:N inet6 static
address 2Ρ
01:X:X:X::X
Save the file and reboot the server or run service network restart.
Configure an additional IP address on CentOS
- Create the file
ifcfg-eth0:Nin/etc/sysconfig/network-scripts/. - Add the following lines:
DEVICE=eth0:N
ONBOOT=yes
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=255.255.255.255
Replace N, X.X.X.X, and 255.255.255.255 as appropriate (values found in Control Panel).
Adding IPv6
IPV6ADDR_SECONDARIES="2Ρ
01:X:X:X::X/64"
Save the file and reboot the server or run service network restart.
Configure an additional IP address on Windows Server 2012
- Run the server via RDP.
- Click Start and open Server Manager.
- In Server Manager, click Local Server.
- On the configuration page, right-click the connection β Properties.
-
Choose IP Version:
- For IPv4, select Internet Protocol Version 4 (TCP/IPv4).
- For IPv6, select Internet Protocol Version 6 (TCP/IPv6).
- Click Advanced β Add to specify the IP and subnet mask.
- Click OK to save and then Close.
