# Configure IPv4 IPs & Subnets

If you’ve purchased any additional IPv4 addresses for your service, Fixed or Failover. These will need to be configured **inside your server**. We only configure the main server IPv4 on our side.

The correct method for adding extra IPs or subnets depends on the operating system you’re using, as each distribution handles network configuration differently.

#### Red Hat Enterprise Linux (RHEL / AlmaLinux / RockyLinux)

<p class="callout warning">Do not use eth0-x files to configure additional IPs or Subnets in your server. No support is provided for servers using eth0-x files.</p>

On the First2Host network, your primary network interface is usually **eth0**, as shown below.

[![nmcli-additional-ips.jpg.webp](https://docs.f2h.cloud/uploads/images/gallery/2026-05/scaled-1680-/nmcli-additional-ips-jpg.webp)](https://docs.f2h.cloud/uploads/images/gallery/2026-05/nmcli-additional-ips-jpg.webp)

Copy the **UUID** of the interface, then run the command below, replacing the example UUID with your own.

<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" id="bkmrk--1"><svg height="14" viewbox="0 0 54 14" width="54" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" fill="#FF5F56" r="6" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" fill="#FFBD2E" r="6" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" fill="#27C93F" r="6" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></div>```
nmcli connection edit 5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
```

You can view the currently assigned IPv4 addresses using the **print** command. In most cases, you’ll only see your virtual server’s main IPv4 address.

<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" id="bkmrk--2"><svg height="14" viewbox="0 0 54 14" width="54" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" fill="#FF5F56" r="6" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" fill="#FFBD2E" r="6" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" fill="#27C93F" r="6" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></div>```
print ipv4.address
```

To configure additional **IPv4** or **IPv6** addresses, you can use the `set ipv4.address` and `set ipv6.address` commands.

<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" id="bkmrk--3"><svg height="14" viewbox="0 0 54 14" width="54" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" fill="#FF5F56" r="6" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" fill="#FFBD2E" r="6" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" fill="#27C93F" r="6" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></div>```
set ipv4.address
```

In the console, specify all of the IPv4 addresses you want to configure on the server. Make sure each IPv4 address is separated by a comma.

<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" id="bkmrk--4"><svg height="14" viewbox="0 0 54 14" width="54" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" fill="#FF5F56" r="6" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" fill="#FFBD2E" r="6" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" fill="#27C93F" r="6" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></div>```
51.xXx.149.x, 91.xXx.173.172, 137.xx.49.2X2, 198.xXx.4.8
```

Once you’ve added all of your IPv4 or IPv6 addresses, run **save** and then **quit**. After that, reboot the server to ensure the configuration is fully applied.

#### Ubuntu / Debian

In **Ubuntu** and **Debian** servers, you use **Netplan** to configure any additional IPs and subnets. It’s very important to maintain the correct indentation in the file — if the spacing is incorrect, your network configuration will fail.

For that reason, always run `netplan try` before applying the changes. This allows you to confirm the configuration is valid and automatically rolls back if something is wrong.

The Netplan configuration file is located at`/etc/netplan/50-cloud-init.yaml`. Its default form is below.

```
network:
  version: 2
  ethernets:
    eth0:
      match:
        macaddress: "bc:24:11:42:df:88"
      addresses:
      - "5.175.67.192/27"
      - "2001:41d0:203:5ca7::14/117"
      nameservers:
        addresses:
        - 213.186.33.99
        - 8.8.8.8
        - 2001:4860:4860::8888
        search:
        - f2hdns.com
      set-name: "eth0"
      routes:
      - on-link: true
        to: "default"
        via: "51.198.88.215"
      - to: "default"
        via: "2001:41d0:209:5ca7::2"
```

To configure further IPv4 on your server. Just add further IPs to the `addresses` section.

```
network:
  version: 2
  ethernets:
    eth0:
      match:
        macaddress: "bc:24:11:42:df:88"
      addresses:
      - "5.175.67.192/27"
      - "149.209.35.24/32"
      - "5.135.4.231/32"
      - "2001:41d0:203:5ca7::14/117"
      nameservers:
        addresses:
        - 213.186.33.99
        - 8.8.8.8
        - 2001:4860:4860::8888
        search:
        - f2hdns.com
      set-name: "eth0"
      routes:
      - on-link: true
        to: "default"
        via: "51.198.88.215"
      - to: "default"
        via: "2001:41d0:209:5ca7::2"
```

Once finished, issue **netplan try** and **netplan apply to apply the network configuration to your servers.**