Atlantic.Net Cloud – How to Add a Private IP on Fedora

Jason Mazzota
by (35posts) under Cloud Hosting
0 Comments
Verified and Tested 09/27/2015

Introduction

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.

Prerequisites

-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.

IPADDR=x.x.x.x
NETMASK=255.255.255.0

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 255.255.255.0.

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.


Related Posts

New York, NY

100 Delawanna Ave, Suite 1

Clifton, NJ 07014

United States

Dallas, TX

2323 Bryan Street,

Dallas, Texas 75201

United States

San Francisco, CA

2820 Northwestern Pkwy,

Santa Clara, CA 95051

United States

Orlando, FL

440 W Kennedy Blvd, Suite 3

Orlando, FL 32810

United States

London, UK

14 Liverpool Road, Slough,

Berkshire SL1 4QZ

United Kingdom

Toronto, Canada

20 Pullman Ct, Scarborough,

Ontario M1X 1E4

Canada