How to Add an Additional IP to FreeBSD 10.1

Atlantic.Net NOC
by (77posts) under Cloud Hosting
Verified and Tested 04/21/2015


This tutorial will take you through adding an additional IP to your FreeBSD 10.1 Atlantic.Net Cloud server. This tutorial will cover both public and private IPs available in the Cloud Portal.


– An Atlantic.Net Cloud server with the FreeBSD 10.1 operating system.

– If adding a public IP, a public IP that has been reserved. See Adding a Public IP.

– If adding a private IP, a private IP chosen from your Cloud account’s private IP list.

– Connected to your server via SSH or VNC.

Add an Additional IP to FreeBSD 10.1

To add an IP to FreeBSD, you need to first open /etc/rc.conf with an editor. In our case we use vi here.

vi /etc/rc.conf

Once in, you should receive a screen like below.


Sample rc.confFree


For public IPs:
For adding a public IP, you will want to add an alias to the ifconfig_vtnet0 interface. To do this we add a new line that begins with ifconfig_vtnet0_alias1 under ifconfig_vtnet0 and add your additional IP information. The line should look like:

ifconfig_vtnet0_alias1="inet netmask"

Where is our additional IP.

If you are adding more than one IP, you simply need to increment the alias segment (so alias2alias3, and so forth.)


For private IPs:
For adding a private IP, you will want to notice the spot that states #ifconfig_vtnet1=”inet <private-ip-addres> netmask <private-netmask>”. You will first want to uncomment the line by removing the #. Once done you will want to remove <private-ip-addres> and insert your private IP address you will be using. You will want to do the same thing with <private-netmask> and insert your netmask. The line should end up looking like:

ifconfig_vtnet1="inet netmask"

Where our private IP is

To add more than one private IP, you will want to follow the alias format like done in the public IP section above. You’d want to start a new line that begins with ifconfig_vtnet1_alias1 and increment the alias as you need to.


Once you have made your changes, all you need to do is save the file and restart networking on the server. To do this run:

ifconfig_vtnet1="inet netmask"

The changes and routing will take place immediately and you can begin to use your new IP address(es).

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