Article overview

Help article

How to configure internal IP-addresses on my VPS?

When you've added VPS'es to a Private Network, you need to assign internal IP-addresses. In this article the range 192.168.0.0/16 is used as example of internal IP-addresses. You can chose from the RFC established ranges for use in private networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16.
In this article vi is used as editor. You can also use your own editor.

We advise you to make a snapshot of your VPS before changing the settings.



FreeBSD

First you need to login as 'root' on your VPS.

Then you need to execute the following command to configure the network interfaces.

vi /etc/rc.conf

Configure vtnet1 (the private network interface). Choose an internal IP-address.

ifconfig_vtnet1="inet 192.168.1.2 netmask 255.255.255.0"

Save your settings and execute the following command to restart the network.

/etc/rc.d/netif restart



Ubuntu

First you need to login as your user on your VPS.

Then you need to execute the following command to configure the network interfaces.

sudo vi /etc/network/interfaces

Configure eth1 (the private network interface). Choose an internal IP-address.

auto eth1
iface eth1 inet static
  address 192.168.1.4
  netmask 255.255.255.0

Save your settings and execute the following command to restart the network.

sudo /etc/init.d/networking restart



Debian

First you need to login as 'root' on your VPS.

Then you need to execute the following command to configure the network interfaces.

vi /etc/network/interfaces

Configure eth1 (the private network interface). Choose an internal IP-address.

auto eth1
iface eth1 inet static
  address 192.168.1.6
  netmask 255.255.255.0

Save your settings and execute the following command to restart the network.

/etc/init.d/networking restart



CentOS

First you need to login as 'root' on your VPS.

Then you need to execute the following command to configure the network interfaces.

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

Configure eth1 (the private network interface). Choose an internal IP-address.

DEVICE=eth1
BOOTPROTO=none
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.1.7
USERCTL=no

Save your settings and execute the following command to restart the network.

/etc/init.d/network restart



Windows Server 2008

Click on Start an then on Contol Panel. Choose 'View Network status and tasks'.

Click on Local Area Connection 2 and then on 'Properties'.

Click on 'Internet Protocol Version 4 (TCP / IPv4) and then on 'Properties'.

Choose your internal IP-address and enter the subnet mask.



Windows Server 2012

Visit the Contol Panel. Choose 'View Network status and tasks'.

Click on Ethernet 2 and then on 'Properties'.

Click on 'Internet Protocol Version 4 (TCP / IPv4) and then on 'Properties'.

Choose your internal IP-address and enter the subnet mask.

Do you have a good idea?

Give us your idea! If it's popular we'll add it to the wishlist!

Has this article been helpful?

Create an account or log in to leave a rating.

Comments

Create an account or log in to be able to leave a comment.

0
Matthijs van Beek Admin June 21, 2018 (#1463)

@thunderb1te

Not yet, but this article is on our schedule to receive an overhaul / update (probably late August / early september), in which Ubuntu 18.04 will be included.

0
thunderb1te June 20, 2018 (#1459)

Hebben jullie hier toevallig ook een voorbeeld voor in Ubuntu 18.04?

Are you stuck?

Ask one of our specialists to assist you

Contact us