> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gcore.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

1. Open the network configuration file in `/etc/network/interfaces`.
2. Add the following lines to the file:

```sh theme={null}
auto eth0:N  
iface eth0:N inet static  
                address Х. Х. Х. Х  
                netmask 255.255.255.255
```

Replace

* `N` with the serial number of the interface (0 for the first one, 1 for the second, etc.)
* `Х.Х.Х.Х` with the IP address you want to add
* `255.255.255.255` with the net mask. You can find it in your Control Panel. Go to the **Virtual private servers** or **Dedicated servers** tab, choose the server you need, and click the IP addresses button.

<Frame>
  <img src="https://mintcdn.com/gcore/wxUF-_fvWl5jf6hf/images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image1.png?fit=max&auto=format&n=wxUF-_fvWl5jf6hf&q=85&s=67b01865a428951b1fb138cbe2d5700b" alt="Configure an additional IP address on CentOS" width="1584" height="418" data-path="images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image1.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/gcore/wxUF-_fvWl5jf6hf/images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image2.png?fit=max&auto=format&n=wxUF-_fvWl5jf6hf&q=85&s=1c7525746d7c6b53551a4b20c1bfa8de" alt="Configure an additional IP address on CentOS" width="1327" height="418" data-path="images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image2.png" />
</Frame>

If you need to add an IPv6 address, add the following:

```sh theme={null}
iface eth0:N inet6 static  
    address 2х01:Х:X:X::X
```

3. Save the file.
4. Reboot the server or run the "**service network restart** " command.

## Configure an additional IP address on CentOS

1. Create the `"ifcfg-eth0:N"` file in the `/etc/sysconfig/network-scripts/` directory.
2. Add the following lines to the file:

```sh theme={null}
DEVICE=eth0:N 
ONBOOT=yes 
BOOTPROTO=static 
IPADDR=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.), "Х.Х.Х.Х" with the IP address you want to add, and "255.255.255.255" with the netmask. You can find it in your Control Panel. Go to the **Virtual private servers** or **Dedicated servers** tab, choose the server you need, and click the IP addresses button.

<Frame>
  <img src="https://mintcdn.com/gcore/wxUF-_fvWl5jf6hf/images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image3.png?fit=max&auto=format&n=wxUF-_fvWl5jf6hf&q=85&s=f5fc0b96f23b3a9fb9cc2fb09d709f06" alt="Configure an additional IP address on CentOS" width="1584" height="418" data-path="images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image3.png" />
</Frame>

<Frame>
  <img src="https://mintcdn.com/gcore/wxUF-_fvWl5jf6hf/images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image4.png?fit=max&auto=format&n=wxUF-_fvWl5jf6hf&q=85&s=c57f9cce3bb14403a24d5e7f9a47c270" alt="Configure an additional IP address on CentOS" width="1327" height="418" data-path="images/docs/hosting/dedicated-servers/manage/networking/additional-ip-addresses/configure-an-additional-ip-address/configure-an-additional-ip-address-image4.png" />
</Frame>

If you need to add an IPv6 address, add the following:

```sh theme={null}
IPV6ADDR_SECONDARIES="2х01:Х:X:X::X/64"
```

Replace `"2х01:Х:X:X::X/64"` with the IP address you want to add.

3. Save the file.
4. Reboot the server or run the `"service network restart"` command.

## Configure an additional IP address on Windows Server 2012

1. Run the server via RDP.
2. Click **Start** and find **Server Manager**.
3. In the Server Manager window, click **Local Server.**
4. In the Server Configuration page, right-click the connection you want to configure and select **Properties**.
5. Choose IP Version: for IPv4, select **Internet Protocol Version 4 (TCP/IPv4)**, and for IPv6, select **Internet Protocol Version 6 (TCP/IPv6)**.
6. Click **Advanced** and then select **Add** to specify the IP address and the subnet mask.
7. Click **Ok** to save the changes, and then click **Close**.
