Verified and Tested 09/27/2015


This guide will take you through how to add a private IP address to a Fedora server. This guide has been tested with Fedora 20, 21, and 22. One thing to note before we start is that our cloud hosting service automatically uses eth1 as the private interface.


-A private IP to add to your server. If using an Atlantic.Net Cloud VM, this would be an IP from your assigned Private IP range.

-A server with Fedora installed on it.

Adding a Private IP on Fedora

Login to your cloud control panel and click on “Private IP’s” to see what private range has been allocated to you.

Assigned Private range.

Cloud control panel Private IP range.

Assigning the IP in Fedora

Assigning a Private IP on Fedora  is pretty simple. You simply edit the configuration and restart networking. In our Cloud example below, the private interface is known as eth1. So we run:

nano /etc/sysconfig/network-scripts/ifcfg-eth1

If you do not have nano installed, you may do so by running

yum install nano -y

Once opened, add the below configuration to the bottom of the file.


Where IPADDR= your private IP address and the NETMASK= is the range’s netmask for your IP. In our Cloud this would be a /24 private IP range so the netmask is

Once this is complete, simply restart networking with the below command and the IP will be active for use.

service network restart

And that’s it. Configure another server on the private IP range and you will be able to communicate between the two. Make sure you add an exception for the IP/range to any firewall that may be on the server.