Private Internal IP Address Setup

If you plan on linking multiple VM services together, Mean Servers offers a private internal IP address per VPS free of charge. This allows you to pass traffic between each VPS without being billed or having the traffic amount count against your monthly bandwidth allowance. To add a private IP address to your VPS, simply contact the sales department or order one (free of charge!) during the checkout process.

 

In order for your new private IP address to reach the rest of the segregated IP network, you will need to complete the following:

 

Step 1: Configure your second NIC (ethernet card)

 

To do so, edit the following:

 

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

 

Add the following:

 

DEVICE=eth1
BOOTPROTO=static
ONBOOT=yes
GATEWAY=<gateway IP address>
IPADDR=<Assigned Private IP Address>
NETMASK=255.255.255.0
 
Be sure to replace <Assigned Private IP address> with the IP address assigned to you and <gateway IP address> with the gateway IP address, usually the same as your private IP address but ending in 1. For example, your private IP address is 10.101.1.19, your gateway would be 10.101.1.1
 
 
Step 2: Enable persistent routing for the IP address space
 

To do so, edit the following:

 

vi /etc/sysconfig/network-scripts/route-eth1

 

Add the following:

 

10.101.0.0/16 via <gateway IP address> dev eth1
10.102.0.0/16 via <gateway IP address> dev eth1
10.103.0.0/16 via <gateway IP address> dev eth1

 

Replacing <gateway IP address> with your assigned IP address' gateway from step 1.

Save and exit vim.

 

You should now be able to reach your other VM's that are connected to the private IP network!

 

Note: This guide was written for CentOS and other operating systems may require tweaks to the code above in order for it to work. Please consult your individual operating system handbook on the correct method of setting up additional network interfaces and static routes. If you require assistance from Mean Servers with setting up this service, an additional fee may apply (excluding the provisioning of the IP address of course).

 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is your ASN (Autonomous System Number)?

Our North American ASN that covers all of our United States locations is AS32931.Our European ASN...