You could earn up to $300 by adding new articles!

Get Started Now

Configuring Private Network

Published on: Wed, Sep 17, 2014 at 12:52 pm EST

If you're assigning a private network to an existing machine (or deploying your own operating system), you'll need to configure the IP addresses on the private interface.

The control panel will assign you an IP address, you should replace '10.99.0.200' in the examples with that IP. Additional examples can be seen on a per-VM basis in the control panel, under the VM's IPv4 settings.

Windows

Note: Windows may choose a different name for your private interface, make sure you check before trying with "Ethernet 2"

netsh interface ip set address name="Ethernet 2" static 10.99.0.200 255.255.0.0 0.0.0.0 1

CentOS / RHEL

Replace /etc/sysconfig/network-scripts/ifcfg-eth1 with the following:

DEVICE=eth1
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=10.99.0.200
NETMASK=255.255.0.0
IPV6INIT=no
    MTU=1450

Ubuntu 12.xx - 15.xx

In /etc/network/interfaces add the following lines:

auto eth1
iface eth1 inet static
    address 10.99.0.200
    netmask 255.255.0.0
            mtu 1450

Ubuntu 16.xx, Ubuntu 17.04

In /etc/network/interfaces add the following lines:

auto ens7
iface ens7 inet static
    address 10.99.0.200
    netmask 255.255.0.0
    mtu 1450

Then run the command:

ifup ens7

Ubuntu 17.10

In /etc/netplan/10-ens7.yaml add the following lines:

network:
  version: 2
  renderer: networkd
  ethernets:
    ens7:
      mtu: 1450
      dhcp4: no
      addresses: [10.99.0.200/16]

Then run the command:

netplan apply

Debian 7, Debian 8

In /etc/network/interfaces add the following lines:

auto eth1
iface eth1 inet static
    address 10.99.0.200
    netmask 255.255.0.0
            mtu 1450

Debian 9

In /etc/network/interfaces add the following lines:

auto ens7
iface ens7 inet static
    address 10.99.0.200
    netmask 255.255.0.0
    mtu 1450

Then run the command:

ifup ens7

FreeBSD 10, FreeBSD 11

In /etc/rc.conf add the following line:

ifconfig_vtnet1="inet 10.99.0.200 netmask 255.255.0.0 mtu 1450"

OpenBSD 6

In /etc/hostname.vio1 add the following lines:

inet 10.99.0.200 255.255.0.0
!ifconfig vio1 mtu 1450

Fedora 24-27

Replace /etc/sysconfig/network-scripts/ifcfg-ens7 with the following:

DEVICE=ens7
ONBOOT=yes
NM_CONTROLLED=no
BOOTPROTO=static
IPADDR=10.99.0.200
NETMASK=255.255.0.0
NOZEROCONF=yes
IPV6INIT=no
    MTU=1450

Note

Private networks support both IPv4 and IPv6.

Want to contribute ?

You could earn up to $300 by adding new articles!

Get started in the SSD Cloud!